WFFrmMainBLL.cs 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. using LeaRun.Application.Entity.FlowManage;
  2. using LeaRun.Application.IService.FlowManage;
  3. using LeaRun.Application.Service.FlowManage;
  4. using LeaRun.Util.WebControl;
  5. using System;
  6. using System.Data;
  7. namespace LeaRun.Application.Busines.FlowManage
  8. {
  9. /// <summary>
  10. /// 版 本 6.1
  11. /// Copyright (c) 2013-2016 上海力软信息技术有限公司
  12. /// 创建人:陈彬彬
  13. /// 日 期:2016.03.19 13:57
  14. /// 描 述:工作流表单操作(支持:SqlServer)
  15. /// </summary>
  16. public class WFFrmMainBLL
  17. {
  18. private WFFrmMainIService server = new WFFrmMainService();
  19. #region 获取数据
  20. /// <summary>
  21. /// 获取表单列表分页数据
  22. /// </summary>
  23. /// <param name="pagination">分页参数</param>
  24. /// <param name="queryJson">查询参数</param>
  25. /// <returns></returns>
  26. public DataTable GetPageList(Pagination pagination, string queryJson)
  27. {
  28. return server.GetPageList(pagination, queryJson);
  29. }
  30. /// <summary>
  31. /// 获取表单数据ALL(用于下拉框)
  32. /// </summary>
  33. /// <returns></returns>
  34. public DataTable GetAllList()
  35. {
  36. return server.GetAllList();
  37. }
  38. /// <summary>
  39. /// 设置表单
  40. /// </summary>
  41. /// <param name="keyValue">主键</param>
  42. /// <returns></returns>
  43. public WFFrmMainEntity GetForm(string keyValue)
  44. {
  45. try
  46. {
  47. return server.GetForm(keyValue);
  48. }
  49. catch (Exception)
  50. {
  51. throw;
  52. }
  53. }
  54. #endregion
  55. #region 提交数据
  56. /// <summary>
  57. /// 删除表单
  58. /// </summary>
  59. /// <param name="keyValue">主键</param>
  60. public void RemoveForm(string keyValue)
  61. {
  62. try
  63. {
  64. server.RemoveForm(keyValue);
  65. }
  66. catch (Exception)
  67. {
  68. throw;
  69. }
  70. }
  71. /// <summary>
  72. /// 保存表单
  73. /// </summary>
  74. /// <param name="entity">表单模板实体类</param>
  75. /// <param name="keyValue">主键</param>
  76. /// <returns></returns>
  77. public int SaveForm(string keyValue,WFFrmMainEntity entity)
  78. {
  79. try
  80. {
  81. return server.SaveForm(keyValue,entity);
  82. }
  83. catch (Exception)
  84. {
  85. throw;
  86. }
  87. }
  88. /// <summary>
  89. /// 更新表单模板状态(启用,停用)
  90. /// </summary>
  91. /// <param name="keyValue">主键</param>
  92. /// <param name="status">状态 1:启用;0.停用</param>
  93. public void UpdateState(string keyValue, int state)
  94. {
  95. try
  96. {
  97. server.UpdateState(keyValue, state);
  98. }
  99. catch (Exception)
  100. {
  101. throw;
  102. }
  103. }
  104. #endregion
  105. }
  106. }