RoadFlow2.1 临时演示

IWorkFlowDelegation.cs 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. using System;
  2. using System.Collections.Generic;
  3. namespace RoadFlow.Data.Interface
  4. {
  5. public interface IWorkFlowDelegation
  6. {
  7. /// <summary>
  8. /// 新增
  9. /// </summary>
  10. int Add(RoadFlow.Data.Model.WorkFlowDelegation model);
  11. /// <summary>
  12. /// 更新
  13. /// </summary>
  14. int Update(RoadFlow.Data.Model.WorkFlowDelegation model);
  15. /// <summary>
  16. /// 查询所有记录
  17. /// </summary>
  18. List<RoadFlow.Data.Model.WorkFlowDelegation> GetAll();
  19. /// <summary>
  20. /// 查询单条记录
  21. /// </summary>
  22. Model.WorkFlowDelegation Get(Guid id);
  23. /// <summary>
  24. /// 删除
  25. /// </summary>
  26. int Delete(Guid id);
  27. /// <summary>
  28. /// 查询记录条数
  29. /// </summary>
  30. long GetCount();
  31. /// <summary>
  32. /// 查询一个用户所有记录
  33. /// </summary>
  34. List<RoadFlow.Data.Model.WorkFlowDelegation> GetByUserID(Guid userID);
  35. /// <summary>
  36. /// 得到一页数据
  37. /// </summary>
  38. /// <param name="pager"></param>
  39. /// <param name="query"></param>
  40. /// <param name="userID"></param>
  41. /// <param name="startTime"></param>
  42. /// <param name="endTime"></param>
  43. /// <returns></returns>
  44. List<RoadFlow.Data.Model.WorkFlowDelegation> GetPagerData(out string pager, string query = "", string userID = "", string startTime = "", string endTime = "");
  45. /// <summary>
  46. /// 得到未过期的委托
  47. /// </summary>
  48. List<RoadFlow.Data.Model.WorkFlowDelegation> GetNoExpiredList();
  49. }
  50. }