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.

MeetingManagementBLL.cs 7.9 KiB

4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
3 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  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. #endregion
  112. #region 提交数据
  113. /// <summary>
  114. /// 删除实体数据
  115. /// <param name="keyValue">主键</param>
  116. /// <summary>
  117. /// <returns></returns>
  118. public void DeleteEntity(string keyValue)
  119. {
  120. try
  121. {
  122. meetingManagementService.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. /// <param name="keyValue">主键</param>
  139. /// <summary>
  140. /// <returns></returns>
  141. public string SaveEntity(UserInfo userInfo, string keyValue, MeetingManagementEntity entity)
  142. {
  143. try
  144. {
  145. return meetingManagementService.SaveEntity(userInfo, keyValue, entity);
  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. return entity.Id;
  159. }
  160. /// <summary>
  161. /// 审核实体数据
  162. /// <param name="keyValue">主键</param>
  163. /// <summary>
  164. /// <returns></returns>
  165. public void DoCheck(UserInfo userInfo, string keyValue, string status)
  166. {
  167. try
  168. {
  169. meetingManagementService.DoCheck(userInfo, keyValue, status);
  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. /// <param name="keyValue">主键</param>
  186. /// <summary>
  187. /// <returns></returns>
  188. public void DoSubmit(string keyValue, string status, string processId)
  189. {
  190. try
  191. {
  192. meetingManagementService.DoSubmit(keyValue, status, processId);
  193. }
  194. catch (Exception ex)
  195. {
  196. if (ex is ExceptionEx)
  197. {
  198. throw;
  199. }
  200. else
  201. {
  202. throw ExceptionEx.ThrowBusinessException(ex);
  203. }
  204. }
  205. }
  206. /// <summary>
  207. /// 判断会议场地是否被占用
  208. /// <param name="keyValue">主键</param>
  209. /// <summary>
  210. /// <returns></returns>
  211. public bool JudgeIsOccupy(MeetingManagementEntity entity)
  212. {
  213. try
  214. {
  215. return meetingManagementService.JudgeIsOccupy(entity);
  216. }
  217. catch (Exception ex)
  218. {
  219. if (ex is ExceptionEx)
  220. {
  221. throw;
  222. }
  223. else
  224. {
  225. throw ExceptionEx.ThrowBusinessException(ex);
  226. }
  227. }
  228. }
  229. /// <summary>
  230. /// 审核实体数据
  231. /// <param name="keyValue">主键</param>
  232. /// <summary>
  233. /// <returns></returns>
  234. public void ChangeStatusByProcessId(string processId, string status, string userId)
  235. {
  236. try
  237. {
  238. meetingManagementService.ChangeStatusByProcessId(processId, status, userId);
  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. public void ReceivedList(string processId)
  253. {
  254. try
  255. {
  256. meetingManagementService.ReceivedList(processId);
  257. }
  258. catch (Exception ex)
  259. {
  260. if (ex is ExceptionEx)
  261. {
  262. throw;
  263. }
  264. else
  265. {
  266. throw ExceptionEx.ThrowBusinessException(ex);
  267. }
  268. }
  269. }
  270. #endregion
  271. }
  272. }