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.
 
 
 
 
 
 

368 lines
10 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-05-14 10:02
  12. /// 描 述:选修课课程信息
  13. /// </summary>
  14. public class OpenLessonPlanOfElectiveBLL : OpenLessonPlanOfElectiveIBLL
  15. {
  16. private OpenLessonPlanOfElectiveService openLessonPlanOfElectiveService = new OpenLessonPlanOfElectiveService();
  17. #region 获取数据
  18. /// <summary>
  19. /// 获取页面显示列表数据
  20. /// <summary>
  21. /// <param name="queryJson">查询参数</param>
  22. /// <returns></returns>
  23. public IEnumerable<OpenLessonPlanOfElectiveEntity> GetPageList(Pagination pagination, string queryJson)
  24. {
  25. try
  26. {
  27. return openLessonPlanOfElectiveService.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. /// 获取页面显示列表数据
  43. /// <summary>
  44. /// <param name="queryJson">查询参数</param>
  45. /// <returns></returns>
  46. public IEnumerable<OpenLessonPlanOfElectiveEntity> GetPageListElective(Pagination pagination, string queryJson)
  47. {
  48. try
  49. {
  50. return openLessonPlanOfElectiveService.GetPageListElective(pagination, queryJson);
  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. /// 获取页面显示列表数据【学子在线-选课中心】
  66. /// <summary>
  67. /// <param name="queryJson">查询参数</param>
  68. /// <returns></returns>
  69. public IEnumerable<OpenLessonPlanOfElectiveEntity> GetPageListOfStudent(Pagination pagination, string queryJson)
  70. {
  71. try
  72. {
  73. return openLessonPlanOfElectiveService.GetPageListOfStudent(pagination, queryJson);
  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. /// <summary>
  88. /// 获取OpenLessonPlanOfElective表实体数据
  89. /// <param name="keyValue">主键</param>
  90. /// <summary>
  91. /// <returns></returns>
  92. public OpenLessonPlanOfElectiveEntity GetOpenLessonPlanOfElectiveEntity(string keyValue)
  93. {
  94. try
  95. {
  96. return openLessonPlanOfElectiveService.GetOpenLessonPlanOfElectiveEntity(keyValue);
  97. }
  98. catch (Exception ex)
  99. {
  100. if (ex is ExceptionEx)
  101. {
  102. throw;
  103. }
  104. else
  105. {
  106. throw ExceptionEx.ThrowBusinessException(ex);
  107. }
  108. }
  109. }
  110. /// <summary>
  111. /// 获取OpenLessonPlan表实体数据
  112. /// <param name="keyValue">主键</param>
  113. /// <summary>
  114. /// <returns></returns>
  115. public OpenLessonPlanOfElectiveEntity GetOpenLessonPlanEntityByJson(string queryJson)
  116. {
  117. try
  118. {
  119. return openLessonPlanOfElectiveService.GetOpenLessonPlanEntityByJson(queryJson);
  120. }
  121. catch (Exception ex)
  122. {
  123. if (ex is ExceptionEx)
  124. {
  125. throw;
  126. }
  127. else
  128. {
  129. throw ExceptionEx.ThrowBusinessException(ex);
  130. }
  131. }
  132. }
  133. /// <summary>
  134. /// 获取StuSelectLessonListEntity表实体数据
  135. /// <param name="keyValue">主键</param>
  136. /// <summary>
  137. /// <returns></returns>
  138. public StuSelectLessonListOfElectiveEntity GetStuSelectLessonListEntityByJson(string queryJson)
  139. {
  140. try
  141. {
  142. return openLessonPlanOfElectiveService.GetStuSelectLessonListEntityByJson(queryJson);
  143. }
  144. catch (Exception ex)
  145. {
  146. if (ex is ExceptionEx)
  147. {
  148. throw;
  149. }
  150. else
  151. {
  152. throw ExceptionEx.ThrowBusinessException(ex);
  153. }
  154. }
  155. }
  156. #endregion
  157. #region 提交数据
  158. /// <summary>
  159. /// 删除实体数据
  160. /// <param name="keyValue">主键</param>
  161. /// <summary>
  162. /// <returns></returns>
  163. public void DeleteEntity(string keyValue)
  164. {
  165. try
  166. {
  167. openLessonPlanOfElectiveService.DeleteEntity(keyValue);
  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. /// <param name="keyValue">主键</param>
  184. /// <summary>
  185. /// <returns></returns>
  186. public void SaveEntity(string keyValue, OpenLessonPlanOfElectiveEntity entity)
  187. {
  188. try
  189. {
  190. openLessonPlanOfElectiveService.SaveEntity(keyValue, entity);
  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. public void AddForm(string keyValue, OpenLessonPlanOfElectiveEntity entity)
  205. {
  206. try
  207. {
  208. openLessonPlanOfElectiveService.AddForm(keyValue, entity);
  209. }
  210. catch (Exception ex)
  211. {
  212. if (ex is ExceptionEx)
  213. {
  214. throw;
  215. }
  216. else
  217. {
  218. throw ExceptionEx.ThrowBusinessException(ex);
  219. }
  220. }
  221. }
  222. /// <summary>
  223. /// 保存实体数据(新增、修改)
  224. /// <param name="keyValue">主键</param>
  225. /// <summary>
  226. /// <returns></returns>
  227. public void SaveFormOfElective(string keyValue, OpenLessonPlanOfElectiveEntity entity)
  228. {
  229. try
  230. {
  231. openLessonPlanOfElectiveService.SaveFormOfElective(keyValue, entity);
  232. }
  233. catch (Exception ex)
  234. {
  235. if (ex is ExceptionEx)
  236. {
  237. throw;
  238. }
  239. else
  240. {
  241. throw ExceptionEx.ThrowBusinessException(ex);
  242. }
  243. }
  244. }
  245. #endregion
  246. #region 扩展数据
  247. /// <summary>
  248. /// 获取选课时间管理
  249. /// </summary>
  250. /// <returns></returns>
  251. public EADateArrangeEntity GetEADateArrangeEntityAboutElective()
  252. {
  253. try
  254. {
  255. return openLessonPlanOfElectiveService.GetEADateArrangeEntityAboutElective();
  256. }
  257. catch (Exception ex)
  258. {
  259. if (ex is ExceptionEx)
  260. {
  261. throw;
  262. }
  263. else
  264. {
  265. throw ExceptionEx.ThrowBusinessException(ex);
  266. }
  267. }
  268. }
  269. public IEnumerable<OpenLessonPlanOfElectiveEntity> GetPageListOfMerge(Pagination pagination, string queryJson)
  270. {
  271. try
  272. {
  273. return openLessonPlanOfElectiveService.GetPageListOfMerge(pagination, queryJson);
  274. }
  275. catch (Exception ex)
  276. {
  277. if (ex is ExceptionEx)
  278. {
  279. throw;
  280. }
  281. else
  282. {
  283. throw ExceptionEx.ThrowBusinessException(ex);
  284. }
  285. }
  286. }
  287. /// <summary>
  288. /// 选修课课程异动
  289. /// <param name="keyValue">主键</param>
  290. /// <summary>
  291. /// <returns></returns>
  292. public void DoElectiveChange(OpenLessonPlanOfElectiveChangeEntity entity)
  293. {
  294. try
  295. {
  296. openLessonPlanOfElectiveService.DoElectiveChange(entity);
  297. }
  298. catch (Exception ex)
  299. {
  300. if (ex is ExceptionEx)
  301. {
  302. throw;
  303. }
  304. else
  305. {
  306. throw ExceptionEx.ThrowBusinessException(ex);
  307. }
  308. }
  309. }
  310. public void InitStuSelectLesson(string keyvalue)
  311. {
  312. try
  313. {
  314. openLessonPlanOfElectiveService.InitStuSelectLesson(keyvalue);
  315. }
  316. catch (Exception ex)
  317. {
  318. if (ex is ExceptionEx)
  319. {
  320. throw;
  321. }
  322. else
  323. {
  324. throw ExceptionEx.ThrowBusinessException(ex);
  325. }
  326. }
  327. }
  328. public void SaveStuSelectLessonListScaleByJson(string queryJson, StuSelectLessonListOfElectiveEntity entity)
  329. {
  330. try
  331. {
  332. openLessonPlanOfElectiveService.SaveStuSelectLessonListScaleByJson(queryJson, entity);
  333. }
  334. catch (Exception ex)
  335. {
  336. if (ex is ExceptionEx)
  337. {
  338. throw;
  339. }
  340. else
  341. {
  342. throw ExceptionEx.ThrowBusinessException(ex);
  343. }
  344. }
  345. }
  346. #endregion
  347. }
  348. }