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.
 
 
 
 
 
 

95 lines
2.6 KiB

  1. using Learun.Util;
  2. using System;
  3. using System.Collections.Generic;
  4. namespace Learun.Application.WorkFlow
  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 WfConfluenceBLL : WfConfluenceIBLL
  14. {
  15. private WfConfluenceService wfConfluenceService = new WfConfluenceService();
  16. #region 获取数据
  17. /// <summary>
  18. /// 获取会签记录
  19. /// </summary>
  20. /// <param name="processId">流程实例主键</param>
  21. /// <param name="nodeId">节点主键</param>
  22. /// <returns></returns>
  23. public IEnumerable<WfConfluenceEntity> GetList(string processId, string nodeId)
  24. {
  25. try
  26. {
  27. return wfConfluenceService.GetList(processId, nodeId);
  28. }
  29. catch (Exception ex)
  30. {
  31. if (ex is ExceptionEx)
  32. {
  33. throw;
  34. }
  35. else
  36. {
  37. throw ExceptionEx.ThrowBusinessException(ex);
  38. }
  39. }
  40. }
  41. #endregion
  42. #region 提交数据
  43. /// <summary>
  44. /// 保存成功的会前记录
  45. /// </summary>
  46. /// <param name="entity">实体</param>
  47. public void SaveEntity(WfConfluenceEntity entity)
  48. {
  49. try
  50. {
  51. wfConfluenceService.SaveEntity(entity);
  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. /// 删除会签节点数据
  67. /// </summary>
  68. /// <param name="processId">实例主键</param>
  69. /// <param name="nodeId">节点主键</param>
  70. public void DeleteEntity(string processId, string nodeId)
  71. {
  72. try
  73. {
  74. wfConfluenceService.DeleteEntity(processId, nodeId);
  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. }