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.

DemoleaveBLL.cs 2.5 KiB

4 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. using Learun.Util;
  2. using System;
  3. using System.Collections.Generic;
  4. namespace Learun.Application.TwoDevelopment.SystemDemo
  5. {
  6. /// <summary>
  7. /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
  8. /// Copyright (c) 2013-2018 北京泉江科技有限公司
  9. /// 创建人:陈彬彬
  10. /// 日 期:2017.04.17
  11. /// 描 述:系统表单-请假单
  12. /// </summary>
  13. public class DemoleaveBLL : DemoleaveIBLL
  14. {
  15. private DemoleaveService demoleaveService = new DemoleaveService();
  16. #region 获取数据
  17. /// <summary>
  18. /// 获取请假数据列表
  19. /// </summary>
  20. /// <param name="pagination">分页</param>
  21. /// <returns></returns>
  22. public IEnumerable<DemoleaveEntity> GetPageList(Pagination pagination)
  23. {
  24. try
  25. {
  26. return demoleaveService.GetPageList(pagination);
  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. /// </summary>
  43. /// <param name="processId"></param>
  44. /// <returns></returns>
  45. public DemoleaveEntity GetEntity(string processId)
  46. {
  47. try
  48. {
  49. return demoleaveService.GetEntity(processId);
  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. #endregion
  64. #region 提交数据
  65. /// <summary>
  66. /// 保存更新数据
  67. /// </summary>
  68. /// <param name="keyValue">主键</param>
  69. /// <param name="entity">实体对象</param>
  70. public void SaveEntity(string keyValue, DemoleaveEntity entity)
  71. {
  72. try
  73. {
  74. demoleaveService.SaveEntity(keyValue, entity);
  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. #endregion
  89. }
  90. }