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.
 
 
 
 
 
 

177 lines
4.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-Ultimate V7.0.0 数字化智慧校园
  9. /// Copyright (c) 2013-2018 北京泉江科技有限公司
  10. /// 创 建:超级管理员
  11. /// 日 期:2019-05-30 15:14
  12. /// 描 述:排考结构
  13. /// </summary>
  14. public class ArrangeExamStructureBLL : ArrangeExamStructureIBLL
  15. {
  16. private ArrangeExamStructureService arrangeExamStructureService = new ArrangeExamStructureService();
  17. #region 获取数据
  18. /// <summary>
  19. /// 获取列表数据
  20. /// <summary>
  21. /// <returns></returns>
  22. public IEnumerable<ArrangeExamStructureEntity> GetList( string queryJson )
  23. {
  24. try
  25. {
  26. return arrangeExamStructureService.GetList(queryJson);
  27. }
  28. catch (Exception ex)
  29. {
  30. if (ex is ExceptionEx)
  31. {
  32. throw;
  33. }
  34. else
  35. {
  36. throw ExceptionEx.ThrowBusinessException(ex);
  37. }
  38. }
  39. }
  40. /// <summary>
  41. /// 获取列表分页数据
  42. /// <param name="pagination">分页参数</param>
  43. /// <summary>
  44. /// <returns></returns>
  45. public IEnumerable<ArrangeExamStructureEntity> GetPageList(Pagination pagination, string queryJson)
  46. {
  47. try
  48. {
  49. return arrangeExamStructureService.GetPageList(pagination, queryJson);
  50. }
  51. catch (Exception ex)
  52. {
  53. if (ex is ExceptionEx)
  54. {
  55. throw;
  56. }
  57. else
  58. {
  59. throw ExceptionEx.ThrowBusinessException(ex);
  60. }
  61. }
  62. }
  63. /// <summary>
  64. /// 获取实体数据
  65. /// <param name="keyValue">主键</param>
  66. /// <summary>
  67. /// <returns></returns>
  68. public ArrangeExamStructureEntity GetEntity(string keyValue)
  69. {
  70. try
  71. {
  72. return arrangeExamStructureService.GetEntity(keyValue);
  73. }
  74. catch (Exception ex)
  75. {
  76. if (ex is ExceptionEx)
  77. {
  78. throw;
  79. }
  80. else
  81. {
  82. throw ExceptionEx.ThrowBusinessException(ex);
  83. }
  84. }
  85. }
  86. #endregion
  87. #region 提交数据
  88. /// <summary>
  89. /// 删除实体数据
  90. /// <param name="keyValue">主键</param>
  91. /// <summary>
  92. /// <returns></returns>
  93. public void DeleteEntity(string keyValue)
  94. {
  95. try
  96. {
  97. arrangeExamStructureService.DeleteEntity(keyValue);
  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. /// 保存实体数据(新增、修改)
  113. /// <param name="keyValue">主键</param>
  114. /// <summary>
  115. /// <returns></returns>
  116. public void SaveEntity(string keyValue, ArrangeExamStructureEntity entity)
  117. {
  118. try
  119. {
  120. arrangeExamStructureService.SaveEntity(keyValue, entity);
  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 ArrangeExamStructureEntity GetArrangeExamStructureEntity(string structureId)
  142. {
  143. try
  144. {
  145. return arrangeExamStructureService.GetArrangeExamStructureEntity(structureId);
  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. #endregion
  160. }
  161. }