IDutyServices.cs 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using Bowin.Common.Linq.Entity;
  6. using EMIS.ViewModel.CalendarManage;
  7. using EMIS.ViewModel;
  8. using EMIS.Entities;
  9. namespace EMIS.CommonLogic.CalendarManage
  10. {
  11. public interface IDutyServices
  12. {
  13. /// <summary>
  14. /// 查询值班管理信息
  15. /// </summary>
  16. /// <param name="configuretView">查询条件实体</param>
  17. /// <param name="departmentID">负责部门/科室</param>
  18. /// <param name="campusID">校区ID</param>
  19. /// <param name="collegeID">学院ID</param>
  20. /// <param name="timesSegment">时间段</param>
  21. /// <param name="pageIndex">页码</param>
  22. /// <param name="pageSize">显示页数</param>
  23. /// <returns></returns>
  24. IGridResultSet<DutyView> GetDutyViewGrid(ConfiguretView configuretView, Guid? campusID, Guid? collegeID, Guid? departmentID, int? timesSegment, int pageIndex, int pageSize);
  25. /// <summary>
  26. /// 查询值班管理信息
  27. /// </summary>
  28. /// <param name="configuretView">查询条件实体</param>
  29. /// <param name="departmentID">负责部门/科室</param>
  30. /// <param name="timesSegment">时间段</param>
  31. /// <returns></returns>
  32. List<DutyView> GetDutyViewList(ConfiguretView configuretView, Guid? campusID, Guid? collegeID, Guid? departmentID, int? timesSegment);
  33. /// <summary>
  34. /// 获取值班管理信息
  35. /// </summary>
  36. /// <param name="dutyID">主键ID</param>
  37. /// <returns></returns>
  38. EM_duty GetDuty(Guid? dutyID);
  39. /// <summary>
  40. /// 获取值班管理信息
  41. /// </summary>
  42. /// <param name="userID">值班人ID</param>
  43. /// <param name="dutyTime">值班日期</param>
  44. /// <param name="timesSegment">时间段</param>
  45. /// <param name="departmentID">负责部门/科室</param>
  46. /// <returns></returns>
  47. EM_duty GetDuty(Guid userID, DateTime dutyTime, int timesSegment, Guid departmentID);
  48. /// <summary>
  49. /// 获取值班管理信息
  50. /// </summary>
  51. /// <param name="dutyID">主键ID</param>
  52. /// <returns></returns>
  53. DutyView GetDutyView(Guid? dutyID);
  54. /// <summary>
  55. /// 添加
  56. /// </summary>
  57. /// <param name="duty">实体</param>
  58. /// <returns></returns>
  59. bool DutyAdd(DutyView dutyView);
  60. /// <summary>
  61. /// 修改
  62. /// </summary>
  63. /// <param name="duty">实体</param>
  64. /// <returns></returns>
  65. bool DutyUpdate(DutyView dutyView);
  66. /// <summary>
  67. /// 删除
  68. /// </summary>
  69. /// <param name="dutyIDs"></param>
  70. /// <returns></returns>
  71. bool DutyDelete(List<Guid> dutyIDs);
  72. }
  73. }