您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

295 行
8.2 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. /// 日 期:2020-04-16 15:52
  12. /// 描 述:班级自诊打卡
  13. /// </summary>
  14. public class ThermographyBLL : ThermographyIBLL
  15. {
  16. private ThermographyService thermographyService = new ThermographyService();
  17. #region 获取数据
  18. /// <summary>
  19. /// 获取页面显示列表分页数据
  20. /// <summary>
  21. /// <param name="pagination">分页参数</param>
  22. /// <param name="queryJson">查询参数</param>
  23. /// <returns></returns>
  24. public IEnumerable<ThermographyEntity> GetPageList(Pagination pagination, string queryJson)
  25. {
  26. try
  27. {
  28. return thermographyService.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<ThermographyEntity> GetList(string queryJson)
  48. {
  49. try
  50. {
  51. return thermographyService.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. /// 获取Thermography表实体数据
  67. /// <param name="keyValue">主键</param>
  68. /// <summary>
  69. /// <returns></returns>
  70. public ThermographyEntity GetThermographyEntity(string keyValue)
  71. {
  72. try
  73. {
  74. return thermographyService.GetThermographyEntity(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. /// 获取Thermography表实体数据
  90. /// <param name="keyValue">主键</param>
  91. /// <summary>
  92. /// <returns></returns>
  93. public ThermographyEntity GetThermographyEntitiesByClass(string classNo, DateTime measureDate, string measureTime)
  94. {
  95. try
  96. {
  97. return thermographyService.GetThermographyEntitiesByClass(classNo, measureDate, measureTime);
  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. /// <summary>
  114. /// <param name="pagination">分页参数</param>
  115. /// <param name="queryJson">查询参数</param>
  116. /// <returns></returns>
  117. public IEnumerable<ThermographyEntity> GetPageListOfStudent(string queryJson)
  118. {
  119. try
  120. {
  121. return thermographyService.GetPageListOfStudent(queryJson);
  122. }
  123. catch (Exception ex)
  124. {
  125. if (ex is ExceptionEx)
  126. {
  127. throw;
  128. }
  129. else
  130. {
  131. throw ExceptionEx.ThrowBusinessException(ex);
  132. }
  133. }
  134. }
  135. /// <summary>
  136. /// 获取页面显示列表分页数据
  137. /// <summary>
  138. /// <param name="pagination">分页参数</param>
  139. /// <param name="queryJson">查询参数</param>
  140. /// <returns></returns>
  141. public IEnumerable<ThermographyEntity> GetPageListOfStudentInApp(string queryJson)
  142. {
  143. try
  144. {
  145. return thermographyService.GetPageListOfStudentInApp(queryJson);
  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. /// <summary>
  162. /// <param name="queryJson">查询参数</param>
  163. /// <returns></returns>
  164. public IEnumerable<ThermographyEntity> GetListOfStatistic(string queryJson)
  165. {
  166. try
  167. {
  168. return thermographyService.GetListOfStatistic(queryJson);
  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. #endregion
  183. #region 提交数据
  184. /// <summary>
  185. /// 删除实体数据
  186. /// <param name="keyValue">主键</param>
  187. /// <summary>
  188. /// <returns></returns>
  189. public void DeleteEntity(string keyValue)
  190. {
  191. try
  192. {
  193. thermographyService.DeleteEntity(keyValue);
  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. /// <param name="keyValue">主键</param>
  210. /// <summary>
  211. /// <returns></returns>
  212. public void SaveEntity(UserInfo userInfo, string keyValue, ThermographyEntity entity)
  213. {
  214. try
  215. {
  216. thermographyService.SaveEntity(userInfo, keyValue, entity);
  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. /// <param name="timeType">时间段类型</param>
  233. /// <summary>
  234. /// <returns></returns>
  235. public void CreateMorningStudents(string timeType)
  236. {
  237. try
  238. {
  239. thermographyService.CreateMorningStudents(timeType);
  240. }
  241. catch (Exception ex)
  242. {
  243. if (ex is ExceptionEx)
  244. {
  245. throw;
  246. }
  247. else
  248. {
  249. throw ExceptionEx.ThrowBusinessException(ex);
  250. }
  251. }
  252. }
  253. /// <summary>
  254. /// 保存实体数据(新增、修改)
  255. /// <param name="keyValue">主键</param>
  256. /// <summary>
  257. /// <returns></returns>
  258. public void SaveEntityList(string measureTime, List<ThermographyEntity> entities)
  259. {
  260. try
  261. {
  262. thermographyService.SaveEntityList(measureTime, entities);
  263. }
  264. catch (Exception ex)
  265. {
  266. if (ex is ExceptionEx)
  267. {
  268. throw;
  269. }
  270. else
  271. {
  272. throw ExceptionEx.ThrowServiceException(ex);
  273. }
  274. }
  275. }
  276. #endregion
  277. }
  278. }