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.

EADateArrangeBLL.cs 5.8 KiB

4 years ago
4 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  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-07-03 15:32
  12. /// 描 述:教学工作安排
  13. /// </summary>
  14. public class EADateArrangeBLL : EADateArrangeIBLL
  15. {
  16. private EADateArrangeService eADateArrangeService = new EADateArrangeService();
  17. #region 获取数据
  18. /// <summary>
  19. /// 获取页面显示列表数据
  20. /// <summary>
  21. /// <param name="queryJson">查询参数</param>
  22. /// <returns></returns>
  23. public IEnumerable<EADateArrangeEntity> GetPageList(Pagination pagination, string queryJson)
  24. {
  25. try
  26. {
  27. return eADateArrangeService.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. /// <summary>
  42. /// 获取EADateArrange表实体数据
  43. /// <param name="keyValue">主键</param>
  44. /// <summary>
  45. /// <returns></returns>
  46. public EADateArrangeEntity GetEADateArrangeEntity(string keyValue)
  47. {
  48. try
  49. {
  50. return eADateArrangeService.GetEADateArrangeEntity(keyValue);
  51. }
  52. catch (Exception ex)
  53. {
  54. if (ex is ExceptionEx)
  55. {
  56. throw;
  57. }
  58. else
  59. {
  60. throw ExceptionEx.ThrowBusinessException(ex);
  61. }
  62. }
  63. }
  64. #endregion
  65. #region 提交数据
  66. /// <summary>
  67. /// 删除实体数据
  68. /// <param name="keyValue">主键</param>
  69. /// <summary>
  70. /// <returns></returns>
  71. public void DeleteEntity(string keyValue)
  72. {
  73. try
  74. {
  75. eADateArrangeService.DeleteEntity(keyValue);
  76. }
  77. catch (Exception ex)
  78. {
  79. if (ex is ExceptionEx)
  80. {
  81. throw;
  82. }
  83. else
  84. {
  85. throw ExceptionEx.ThrowBusinessException(ex);
  86. }
  87. }
  88. }
  89. /// <summary>
  90. /// 保存实体数据(新增、修改)
  91. /// <param name="keyValue">主键</param>
  92. /// <summary>
  93. /// <returns></returns>
  94. public void SaveEntity(string keyValue, EADateArrangeEntity entity)
  95. {
  96. try
  97. {
  98. eADateArrangeService.SaveEntity(keyValue, entity);
  99. }
  100. catch (Exception ex)
  101. {
  102. if (ex is ExceptionEx)
  103. {
  104. throw;
  105. }
  106. else
  107. {
  108. throw ExceptionEx.ThrowBusinessException(ex);
  109. }
  110. }
  111. }
  112. #endregion
  113. #region 扩展数据
  114. /// <summary>
  115. /// 审核、去审工作安排
  116. /// </summary>
  117. /// <param name="keyValue"></param>
  118. /// <param name="checkMark"></param>
  119. public void CheckEntity(string keyValue, int checkMark)
  120. {
  121. try
  122. {
  123. eADateArrangeService.CheckEntity(keyValue, checkMark);
  124. }
  125. catch (Exception ex)
  126. {
  127. if (ex is ExceptionEx)
  128. {
  129. throw;
  130. }
  131. else
  132. {
  133. throw ExceptionEx.ThrowBusinessException(ex);
  134. }
  135. }
  136. }
  137. /// <summary>
  138. /// 初始化“评班主任和辅导员”表数据
  139. /// </summary>
  140. /// <param name="academicYearNo">学年</param>
  141. /// <param name="semester">学期</param>
  142. public void InitEvalTutorOfClass(string academicYearNo, string semester)
  143. {
  144. try
  145. {
  146. eADateArrangeService.InitEvalTutorOfClass(academicYearNo, semester);
  147. }
  148. catch (Exception ex)
  149. {
  150. if (ex is ExceptionEx)
  151. {
  152. throw;
  153. }
  154. else
  155. {
  156. throw ExceptionEx.ThrowBusinessException(ex);
  157. }
  158. }
  159. }
  160. /// <summary>
  161. /// 初始化“学生注册信息”表数据
  162. /// </summary>
  163. public void InitStuRegisterInfo()
  164. {
  165. try
  166. {
  167. eADateArrangeService.InitStuRegisterInfo();
  168. }
  169. catch (Exception ex)
  170. {
  171. if (ex is ExceptionEx)
  172. {
  173. throw;
  174. }
  175. else
  176. {
  177. throw ExceptionEx.ThrowBusinessException(ex);
  178. }
  179. }
  180. }
  181. /// <summary>
  182. /// 初始化成绩录入数据
  183. /// </summary>
  184. /// <param name="entity"></param>
  185. public void InitByCondition(ArrangeLessonTermEntity entity)
  186. {
  187. try
  188. {
  189. eADateArrangeService.InitByCondition(entity);
  190. }
  191. catch (Exception ex)
  192. {
  193. if (ex is ExceptionEx)
  194. {
  195. throw;
  196. }
  197. else
  198. {
  199. throw ExceptionEx.ThrowBusinessException(ex);
  200. }
  201. }
  202. }
  203. #endregion
  204. }
  205. }