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.
 
 
 
 
 
 

274 lines
7.7 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 V7.0.6 力软敏捷开发框架
  9. /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
  10. /// 创 建:超级管理员
  11. /// 日 期:2023-05-29 14:28
  12. /// 描 述:线上课程
  13. /// </summary>
  14. public class LessonInfoOfElectiveOnlineBLL : LessonInfoOfElectiveOnlineIBLL
  15. {
  16. private LessonInfoOfElectiveOnlineService lessonInfoOfElectiveOnlineService = new LessonInfoOfElectiveOnlineService();
  17. #region 获取数据
  18. /// <summary>
  19. /// 获取页面显示列表数据
  20. /// </summary>
  21. /// <param name="pagination">分页参数</param>
  22. /// <param name="queryJson">查询参数</param>
  23. /// <returns></returns>
  24. public IEnumerable<LessonInfoOfElectiveOnlineEntity> GetPageList(Pagination pagination, string queryJson)
  25. {
  26. try
  27. {
  28. return lessonInfoOfElectiveOnlineService.GetPageList(pagination, queryJson);
  29. }
  30. catch (Exception ex)
  31. {
  32. if (ex is ExceptionEx)
  33. {
  34. throw;
  35. }
  36. else
  37. {
  38. throw ExceptionEx.ThrowBusinessException(ex);
  39. }
  40. }
  41. }
  42. /// <summary>
  43. /// 获取LessonInfoOfElectiveOnline表实体数据
  44. /// </summary>
  45. /// <param name="keyValue">主键</param>
  46. /// <returns></returns>
  47. public LessonInfoOfElectiveOnlineEntity GetLessonInfoOfElectiveOnlineEntity(string keyValue)
  48. {
  49. try
  50. {
  51. return lessonInfoOfElectiveOnlineService.GetLessonInfoOfElectiveOnlineEntity(keyValue);
  52. }
  53. catch (Exception ex)
  54. {
  55. if (ex is ExceptionEx)
  56. {
  57. throw;
  58. }
  59. else
  60. {
  61. throw ExceptionEx.ThrowBusinessException(ex);
  62. }
  63. }
  64. }
  65. /// <summary>
  66. /// 获取LessonInfoOfElectiveOnline表实体数据
  67. /// </summary>
  68. /// <param name="keyValue">主键</param>
  69. /// <returns></returns>
  70. public LessonInfoOfElectiveOnlineEntity GetLessonInfoOfElectiveOnlineEntityByLessonNo(string lessonNo)
  71. {
  72. try
  73. {
  74. return lessonInfoOfElectiveOnlineService.GetLessonInfoOfElectiveOnlineEntityByLessonNo(lessonNo);
  75. }
  76. catch (Exception ex)
  77. {
  78. if (ex is ExceptionEx)
  79. {
  80. throw;
  81. }
  82. else
  83. {
  84. throw ExceptionEx.ThrowBusinessException(ex);
  85. }
  86. }
  87. }
  88. /// <summary>
  89. /// 获取页面显示列表数据【学子在线-线上课程选课】
  90. /// </summary>
  91. /// <param name="pagination">分页参数</param>
  92. /// <param name="queryJson">查询参数</param>
  93. /// <returns></returns>
  94. public IEnumerable<LessonInfoOfElectiveOnlineEntity> GetPageListOfStudent(Pagination pagination, string queryJson)
  95. {
  96. try
  97. {
  98. return lessonInfoOfElectiveOnlineService.GetPageListOfStudent(pagination, queryJson);
  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. public void DeleteEntity(string keyValue)
  119. {
  120. try
  121. {
  122. lessonInfoOfElectiveOnlineService.DeleteEntity(keyValue);
  123. }
  124. catch (Exception ex)
  125. {
  126. if (ex is ExceptionEx)
  127. {
  128. throw;
  129. }
  130. else
  131. {
  132. throw ExceptionEx.ThrowBusinessException(ex);
  133. }
  134. }
  135. }
  136. /// <summary>
  137. /// 保存实体数据(新增、修改)
  138. /// </summary>
  139. /// <param name="keyValue">主键</param>
  140. /// <param name="entity">实体</param>
  141. /// <returns></returns>
  142. public void SaveEntity(string keyValue, LessonInfoOfElectiveOnlineEntity entity)
  143. {
  144. try
  145. {
  146. lessonInfoOfElectiveOnlineService.SaveEntity(keyValue, entity);
  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. #endregion
  161. #region 扩展数据
  162. /// <summary>
  163. /// 启用/停用实体数据
  164. /// </summary>
  165. /// <param name="keyValue">主键</param>
  166. public void DoLock(string keyValue, string status)
  167. {
  168. try
  169. {
  170. lessonInfoOfElectiveOnlineService.DoLock(keyValue, status);
  171. }
  172. catch (Exception ex)
  173. {
  174. if (ex is ExceptionEx)
  175. {
  176. throw;
  177. }
  178. else
  179. {
  180. throw ExceptionEx.ThrowBusinessException(ex);
  181. }
  182. }
  183. }
  184. /// <summary>
  185. /// 设置可选/取消可选
  186. /// </summary>
  187. /// <param name="keyValue"></param>
  188. /// <param name="IsAllowSelect"></param>
  189. public void SetUpIsAllowSelect(string keyValue, int IsAllowSelect)
  190. {
  191. try
  192. {
  193. lessonInfoOfElectiveOnlineService.SetUpIsAllowSelect(keyValue, IsAllowSelect);
  194. }
  195. catch (Exception ex)
  196. {
  197. if (ex is ExceptionEx)
  198. {
  199. throw;
  200. }
  201. else
  202. {
  203. throw ExceptionEx.ThrowBusinessException(ex);
  204. }
  205. }
  206. }
  207. /// <summary>
  208. /// 批量设置人数
  209. /// </summary>
  210. /// <param name="keyValue"></param>
  211. /// <param name="StuNumMax"></param>
  212. public void SaveStuNumMax(string keyValue, int StuNumMax)
  213. {
  214. try
  215. {
  216. lessonInfoOfElectiveOnlineService.SaveStuNumMax(keyValue, StuNumMax);
  217. }
  218. catch (Exception ex)
  219. {
  220. if (ex is ExceptionEx)
  221. {
  222. throw;
  223. }
  224. else
  225. {
  226. throw ExceptionEx.ThrowBusinessException(ex);
  227. }
  228. }
  229. }
  230. /// <summary>
  231. /// 获取选课时间管理
  232. /// </summary>
  233. /// <returns></returns>
  234. public EADateArrangeEntity GetEADateArrangeEntityAboutElective()
  235. {
  236. try
  237. {
  238. return lessonInfoOfElectiveOnlineService.GetEADateArrangeEntityAboutElective();
  239. }
  240. catch (Exception ex)
  241. {
  242. if (ex is ExceptionEx)
  243. {
  244. throw;
  245. }
  246. else
  247. {
  248. throw ExceptionEx.ThrowBusinessException(ex);
  249. }
  250. }
  251. }
  252. #endregion
  253. }
  254. }