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.
 
 
 
 
 
 

269 lines
7.4 KiB

  1. using Learun.Util;
  2. using System;
  3. using System.Data;
  4. using System.Collections.Generic;
  5. namespace Learun.Application.TwoDevelopment.PersonnelManagement
  6. {
  7. /// <summary>
  8. /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
  9. /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
  10. /// 创 建:超级管理员
  11. /// 日 期:2021-02-21 10:07
  12. /// 描 述:会议管理
  13. /// </summary>
  14. public class MeetingManagementBLL : MeetingManagementIBLL
  15. {
  16. private MeetingManagementService meetingManagementService = new MeetingManagementService();
  17. #region 获取数据
  18. /// <summary>
  19. /// 获取页面显示列表分页数据
  20. /// <summary>
  21. /// <param name="pagination">分页参数</param>
  22. /// <param name="queryJson">查询参数</param>
  23. /// <returns></returns>
  24. public IEnumerable<MeetingManagementEntity> GetPageList(Pagination pagination, string queryJson)
  25. {
  26. try
  27. {
  28. return meetingManagementService.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. /// 获取页面显示列表数据
  44. /// <summary>
  45. /// <param name="queryJson">查询参数</param>
  46. /// <returns></returns>
  47. public IEnumerable<MeetingManagementEntity> GetList(string queryJson)
  48. {
  49. try
  50. {
  51. return meetingManagementService.GetList(queryJson);
  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. /// 获取MeetingManagement表实体数据
  67. /// <param name="keyValue">主键</param>
  68. /// <summary>
  69. /// <returns></returns>
  70. public MeetingManagementEntity GetMeetingManagementEntity(string keyValue)
  71. {
  72. try
  73. {
  74. return meetingManagementService.GetMeetingManagementEntity(keyValue);
  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. /// 获取MeetingManagement表实体数据
  90. /// <param name="keyValue">主键</param>
  91. /// <summary>
  92. /// <returns></returns>
  93. public MeetingManagementEntity GetMeetingManagementEntityByProcessId(string processId)
  94. {
  95. try
  96. {
  97. return meetingManagementService.GetMeetingManagementEntityByProcessId(processId);
  98. }
  99. catch (Exception ex)
  100. {
  101. if (ex is ExceptionEx)
  102. {
  103. throw;
  104. }
  105. else
  106. {
  107. throw ExceptionEx.ThrowBusinessException(ex);
  108. }
  109. }
  110. }
  111. /// <summary>
  112. /// 获取MeetingManagement表实体数据
  113. /// <param name="keyValue">主键</param>
  114. /// <summary>
  115. /// <returns></returns>
  116. public DataTable GetStatisticList(string queryJson)
  117. {
  118. try
  119. {
  120. return meetingManagementService.GetStatisticList(queryJson);
  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. #endregion
  135. #region 提交数据
  136. /// <summary>
  137. /// 删除实体数据
  138. /// <param name="keyValue">主键</param>
  139. /// <summary>
  140. /// <returns></returns>
  141. public void DeleteEntity(string keyValue)
  142. {
  143. try
  144. {
  145. meetingManagementService.DeleteEntity(keyValue);
  146. }
  147. catch (Exception ex)
  148. {
  149. if (ex is ExceptionEx)
  150. {
  151. throw;
  152. }
  153. else
  154. {
  155. throw ExceptionEx.ThrowBusinessException(ex);
  156. }
  157. }
  158. }
  159. /// <summary>
  160. /// 保存实体数据(新增、修改)
  161. /// <param name="keyValue">主键</param>
  162. /// <summary>
  163. /// <returns></returns>
  164. public void SaveEntity(UserInfo userInfo, string keyValue, MeetingManagementEntity entity)
  165. {
  166. try
  167. {
  168. meetingManagementService.SaveEntity(userInfo, keyValue, entity);
  169. }
  170. catch (Exception ex)
  171. {
  172. if (ex is ExceptionEx)
  173. {
  174. throw;
  175. }
  176. else
  177. {
  178. throw ExceptionEx.ThrowBusinessException(ex);
  179. }
  180. }
  181. }
  182. /// <summary>
  183. /// 审核实体数据
  184. /// <param name="keyValue">主键</param>
  185. /// <summary>
  186. /// <returns></returns>
  187. public void DoCheck(UserInfo userInfo, string keyValue, string status)
  188. {
  189. try
  190. {
  191. meetingManagementService.DoCheck(userInfo, keyValue, status);
  192. }
  193. catch (Exception ex)
  194. {
  195. if (ex is ExceptionEx)
  196. {
  197. throw;
  198. }
  199. else
  200. {
  201. throw ExceptionEx.ThrowBusinessException(ex);
  202. }
  203. }
  204. }
  205. /// <summary>
  206. /// 提交实体数据
  207. /// <param name="keyValue">主键</param>
  208. /// <summary>
  209. /// <returns></returns>
  210. public void DoSubmit(string keyValue, string status, string processId)
  211. {
  212. try
  213. {
  214. meetingManagementService.DoSubmit(keyValue, status, processId);
  215. }
  216. catch (Exception ex)
  217. {
  218. if (ex is ExceptionEx)
  219. {
  220. throw;
  221. }
  222. else
  223. {
  224. throw ExceptionEx.ThrowBusinessException(ex);
  225. }
  226. }
  227. }
  228. /// <summary>
  229. /// 审核实体数据
  230. /// <param name="keyValue">主键</param>
  231. /// <summary>
  232. /// <returns></returns>
  233. public void ChangeStatusByProcessId(string processId, string status, string userId)
  234. {
  235. try
  236. {
  237. meetingManagementService.ChangeStatusByProcessId(processId, status, userId);
  238. }
  239. catch (Exception ex)
  240. {
  241. if (ex is ExceptionEx)
  242. {
  243. throw;
  244. }
  245. else
  246. {
  247. throw ExceptionEx.ThrowBusinessException(ex);
  248. }
  249. }
  250. }
  251. #endregion
  252. }
  253. }