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.
 
 
 
 
 
 

246 lines
6.5 KiB

  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. /// <summary>
  65. /// 获取EADateArrange表实体数据
  66. /// <param name="name">工作名称</param>
  67. /// <summary>
  68. /// <returns></returns>
  69. public EADateArrangeEntity GetEADateArrangeEntityByName(string name)
  70. {
  71. try
  72. {
  73. return eADateArrangeService.GetEADateArrangeEntityByName(name);
  74. }
  75. catch (Exception ex)
  76. {
  77. if (ex is ExceptionEx)
  78. {
  79. throw;
  80. }
  81. else
  82. {
  83. throw ExceptionEx.ThrowBusinessException(ex);
  84. }
  85. }
  86. }
  87. #endregion
  88. #region 提交数据
  89. /// <summary>
  90. /// 删除实体数据
  91. /// <param name="keyValue">主键</param>
  92. /// <summary>
  93. /// <returns></returns>
  94. public void DeleteEntity(string keyValue)
  95. {
  96. try
  97. {
  98. eADateArrangeService.DeleteEntity(keyValue);
  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. /// <summary>
  113. /// 保存实体数据(新增、修改)
  114. /// <param name="keyValue">主键</param>
  115. /// <summary>
  116. /// <returns></returns>
  117. public void SaveEntity(string keyValue, EADateArrangeEntity entity)
  118. {
  119. try
  120. {
  121. eADateArrangeService.SaveEntity(keyValue, entity);
  122. }
  123. catch (Exception ex)
  124. {
  125. if (ex is ExceptionEx)
  126. {
  127. throw;
  128. }
  129. else
  130. {
  131. throw ExceptionEx.ThrowBusinessException(ex);
  132. }
  133. }
  134. }
  135. #endregion
  136. #region 扩展数据
  137. /// <summary>
  138. /// 审核、去审工作安排
  139. /// </summary>
  140. /// <param name="keyValue"></param>
  141. /// <param name="checkMark"></param>
  142. public void CheckEntity(string keyValue, int checkMark)
  143. {
  144. try
  145. {
  146. eADateArrangeService.CheckEntity(keyValue, checkMark);
  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. /// <param name="academicYearNo">学年</param>
  164. /// <param name="semester">学期</param>
  165. public void InitEvalTutorOfClass(string academicYearNo, string semester)
  166. {
  167. try
  168. {
  169. eADateArrangeService.InitEvalTutorOfClass(academicYearNo, semester);
  170. }
  171. catch (Exception ex)
  172. {
  173. if (ex is ExceptionEx)
  174. {
  175. throw;
  176. }
  177. else
  178. {
  179. throw ExceptionEx.ThrowBusinessException(ex);
  180. }
  181. }
  182. }
  183. /// <summary>
  184. /// 初始化“学生注册信息”表数据
  185. /// </summary>
  186. public void InitStuRegisterInfo()
  187. {
  188. try
  189. {
  190. eADateArrangeService.InitStuRegisterInfo();
  191. }
  192. catch (Exception ex)
  193. {
  194. if (ex is ExceptionEx)
  195. {
  196. throw;
  197. }
  198. else
  199. {
  200. throw ExceptionEx.ThrowBusinessException(ex);
  201. }
  202. }
  203. }
  204. /// <summary>
  205. /// 初始化成绩录入数据
  206. /// </summary>
  207. /// <param name="entity"></param>
  208. public void InitByCondition(ArrangeLessonTermEntity entity)
  209. {
  210. try
  211. {
  212. eADateArrangeService.InitByCondition(entity);
  213. }
  214. catch (Exception ex)
  215. {
  216. if (ex is ExceptionEx)
  217. {
  218. throw;
  219. }
  220. else
  221. {
  222. throw ExceptionEx.ThrowBusinessException(ex);
  223. }
  224. }
  225. }
  226. #endregion
  227. }
  228. }