You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

TeachAttendanceBLL.cs 4.7 KiB

4 years ago
4 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. using Learun.Util;
  2. using System;
  3. using System.Data;
  4. using System.Collections.Generic;
  5. namespace Learun.Application.TwoDevelopment.EducationalAdministration
  6. {
  7. /// <summary>
  8. /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
  9. /// Copyright (c) 2013-2018 北京泉江科技有限公司
  10. /// 创 建:超级管理员
  11. /// 日 期:2019-06-14 10:24
  12. /// 描 述:教师考勤
  13. /// </summary>
  14. public class TeachAttendanceBLL : TeachAttendanceIBLL
  15. {
  16. private TeachAttendanceService teachAttendanceService = new TeachAttendanceService();
  17. #region 获取数据
  18. /// <summary>
  19. /// 获取页面显示列表数据
  20. /// <summary>
  21. /// <param name="queryJson">查询参数</param>
  22. /// <returns></returns>
  23. public IEnumerable<Teach_attendanceEntity> GetPageList(Pagination pagination, string queryJson)
  24. {
  25. try
  26. {
  27. return teachAttendanceService.GetPageList(pagination, queryJson);
  28. }
  29. catch (Exception ex)
  30. {
  31. if (ex is ExceptionEx)
  32. {
  33. throw;
  34. }
  35. else
  36. {
  37. throw ExceptionEx.ThrowBusinessException(ex);
  38. }
  39. }
  40. }
  41. public object GetAttendanceByEmpNo(string empNo)
  42. {
  43. try
  44. {
  45. return teachAttendanceService.GetAttendanceByEmpNo(empNo);
  46. }
  47. catch (Exception ex)
  48. {
  49. if (ex is ExceptionEx)
  50. {
  51. throw;
  52. }
  53. else
  54. {
  55. throw ExceptionEx.ThrowBusinessException(ex);
  56. }
  57. }
  58. }
  59. /// <summary>
  60. /// 获取Teach_attendance表实体数据
  61. /// <param name="keyValue">主键</param>
  62. /// <summary>
  63. /// <returns></returns>
  64. public Teach_attendanceEntity GetTeach_attendanceEntity(string keyValue)
  65. {
  66. try
  67. {
  68. return teachAttendanceService.GetTeach_attendanceEntity(keyValue);
  69. }
  70. catch (Exception ex)
  71. {
  72. if (ex is ExceptionEx)
  73. {
  74. throw;
  75. }
  76. else
  77. {
  78. throw ExceptionEx.ThrowBusinessException(ex);
  79. }
  80. }
  81. }
  82. /// <summary>
  83. /// 授课考勤明细统计
  84. /// <summary>
  85. /// <param name="queryJson">查询参数</param>
  86. /// <returns></returns>
  87. public IEnumerable<Teach_attendanceEntity> GetStatisticDetailList(Pagination pagination, string queryJson)
  88. {
  89. try
  90. {
  91. return teachAttendanceService.GetStatisticDetailList(pagination, queryJson);
  92. }
  93. catch (Exception ex)
  94. {
  95. if (ex is ExceptionEx)
  96. {
  97. throw;
  98. }
  99. else
  100. {
  101. throw ExceptionEx.ThrowBusinessException(ex);
  102. }
  103. }
  104. }
  105. public string GetStatisticDetailimg(string teachno)
  106. {
  107. return teachAttendanceService.GetStatisticDetailimg(teachno);
  108. }
  109. #endregion
  110. #region 提交数据
  111. /// <summary>
  112. /// 删除实体数据
  113. /// <param name="keyValue">主键</param>
  114. /// <summary>
  115. /// <returns></returns>
  116. public void DeleteEntity(string keyValue)
  117. {
  118. try
  119. {
  120. teachAttendanceService.DeleteEntity(keyValue);
  121. }
  122. catch (Exception ex)
  123. {
  124. if (ex is ExceptionEx)
  125. {
  126. throw;
  127. }
  128. else
  129. {
  130. throw ExceptionEx.ThrowBusinessException(ex);
  131. }
  132. }
  133. }
  134. /// <summary>
  135. /// 保存实体数据(新增、修改)
  136. /// <param name="keyValue">主键</param>
  137. /// <summary>
  138. /// <returns></returns>
  139. public void SaveEntity(string keyValue, Teach_attendanceEntity entity)
  140. {
  141. try
  142. {
  143. teachAttendanceService.SaveEntity(keyValue, entity);
  144. }
  145. catch (Exception ex)
  146. {
  147. if (ex is ExceptionEx)
  148. {
  149. throw;
  150. }
  151. else
  152. {
  153. throw ExceptionEx.ThrowBusinessException(ex);
  154. }
  155. }
  156. }
  157. #endregion
  158. }
  159. }