RoadFlow2.1 临时演示

WorkFlowArchives.cs 2.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace RoadFlow.Platform
  5. {
  6. public class WorkFlowArchives
  7. {
  8. private RoadFlow.Data.Interface.IWorkFlowArchives dataWorkFlowArchives;
  9. public WorkFlowArchives()
  10. {
  11. this.dataWorkFlowArchives = Data.Factory.Factory.GetWorkFlowArchives();
  12. }
  13. /// <summary>
  14. /// 新增
  15. /// </summary>
  16. public int Add(RoadFlow.Data.Model.WorkFlowArchives model)
  17. {
  18. return dataWorkFlowArchives.Add(model);
  19. }
  20. /// <summary>
  21. /// 更新
  22. /// </summary>
  23. public int Update(RoadFlow.Data.Model.WorkFlowArchives model)
  24. {
  25. return dataWorkFlowArchives.Update(model);
  26. }
  27. /// <summary>
  28. /// 查询所有记录
  29. /// </summary>
  30. public List<RoadFlow.Data.Model.WorkFlowArchives> GetAll()
  31. {
  32. return dataWorkFlowArchives.GetAll();
  33. }
  34. /// <summary>
  35. /// 查询单条记录
  36. /// </summary>
  37. public RoadFlow.Data.Model.WorkFlowArchives Get(Guid id)
  38. {
  39. return dataWorkFlowArchives.Get(id);
  40. }
  41. /// <summary>
  42. /// 删除
  43. /// </summary>
  44. public int Delete(Guid id)
  45. {
  46. return dataWorkFlowArchives.Delete(id);
  47. }
  48. /// <summary>
  49. /// 查询记录条数
  50. /// </summary>
  51. public long GetCount()
  52. {
  53. return dataWorkFlowArchives.GetCount();
  54. }
  55. /// <summary>
  56. /// 得到一页数据
  57. /// </summary>
  58. /// <param name="pager"></param>
  59. /// <param name="query"></param>
  60. /// <param name="title"></param>
  61. /// <param name="flowIDString"></param>
  62. /// <returns></returns>
  63. public System.Data.DataTable GetPagerData(out string pager, string query = "", string title = "", string flowIDString = "")
  64. {
  65. return dataWorkFlowArchives.GetPagerData(out pager, query, title, flowIDString);
  66. }
  67. }
  68. }