ISchoolYearServices.cs 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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 ISchoolYearServices
  12. {
  13. /// <summary>
  14. /// 查询学年学期信息
  15. /// </summary>
  16. /// <param name="configuretView">查询条件实体</param>
  17. /// <param name="SchoolyearsType">活动类型</param>
  18. /// <param name="timesSegment">时间段</param>
  19. /// <param name="pageIndex">页码</param>
  20. /// <param name="pageSize">显示页数</param>
  21. /// <returns></returns>
  22. IGridResultSet<SchoolYearView> GetSchoolYearViewGrid(ConfiguretView configuretView, int? isCurrent, int pageIndex, int pageSize);
  23. /// <summary>
  24. /// 查询学年学期信息
  25. /// </summary>
  26. /// <param name="configuretView">查询条件实体</param>
  27. /// <returns></returns>
  28. List<SchoolYearView> GetSchoolYearViewList(ConfiguretView configuretView,int? isCurrent);
  29. /// <summary>
  30. /// 查询校历的当前学年学期的下一个学期
  31. /// </summary>
  32. /// <returns></returns>
  33. List<SchoolYearView> GetSchoolYearViewListAfterCurrent();
  34. /// <summary>
  35. /// 查询之前的学年学期信息
  36. /// </summary>
  37. /// <returns></returns>
  38. List<SchoolYearView> GetSchoolYearViewListBeforeCurrent();
  39. /// <summary>
  40. /// 查询前一个学年学期信息
  41. /// </summary>
  42. /// <returns></returns>
  43. SchoolYearView GetSchoolYearViewBeforeCurrent();
  44. /// <summary>
  45. /// 获取学年学期信息
  46. /// </summary>
  47. /// <param name="SchoolyearsID">主键ID</param>
  48. /// <returns></returns>
  49. EMIS.Entities.CF_Schoolyear GetSchoolYear(Guid? schoolyearID);
  50. EMIS.Entities.CF_Schoolyear GetSchoolYearByValue(int value);
  51. /// <summary>
  52. /// 获取学年学期信息
  53. /// </summary>
  54. /// <param name="Years">学年</param>
  55. /// <param name="Name">学期名称</param>
  56. /// <returns></returns>
  57. EMIS.Entities.CF_Schoolyear GetSchoolYear(int Years, int SchoolcodeID);
  58. /// <summary>
  59. /// 获取当前学年学期
  60. /// </summary>
  61. /// <param name="IsCurrent"></param>
  62. /// <returns></returns>
  63. EMIS.Entities.CF_Schoolyear GetSchoolYearIsCurrent(bool IsCurrent);
  64. /// <summary>
  65. /// 获取学年学期信息
  66. /// </summary>
  67. /// <param name="schoolyearID">主键ID</param>
  68. /// <param name="IsCurrent">是否当前学期</param>
  69. /// <returns></returns>
  70. List<EMIS.Entities.CF_Schoolyear> GetSchoolYearList(Guid? schoolyearID, bool IsCurrent);
  71. /// <summary>
  72. /// 获取学年学期信息
  73. /// </summary>
  74. /// <param name="schoolyearID">主键ID</param>
  75. /// <returns></returns>
  76. SchoolYearView GetSchoolYearView(Guid? schoolyearID);
  77. /// <summary>
  78. /// 添加
  79. /// </summary>
  80. /// <param name="schoolyear">实体</param>
  81. /// <returns></returns>
  82. bool SchoolYearAdd(SchoolYearView schoolyearView);
  83. /// <summary>
  84. /// 修改
  85. /// </summary>
  86. /// <param name="SchoolyearsSets">实体</param>
  87. /// <returns></returns>
  88. bool SchoolYearUpdate(SchoolYearView schoolyearView);
  89. /// <summary>
  90. /// 删除
  91. /// </summary>
  92. /// <param name="schoolyearIDs"></param>
  93. /// <returns></returns>
  94. bool SchoolYearDelete(List<Guid> schoolyearIDs);
  95. /// <summary>
  96. /// 只获取学年
  97. /// </summary>
  98. /// <param name="configuretView"></param>
  99. /// <param name="isCurrent"></param>
  100. /// <param name="pageIndex"></param>
  101. /// <param name="pageSize"></param>
  102. /// <returns></returns>
  103. IGridResultSet<SchoolYearView> GetYearsViewGrid(ConfiguretView configuretView, int? isCurrent, int pageIndex, int pageSize);
  104. /// <summary>
  105. /// 获取当前学期学年
  106. /// </summary>
  107. /// <returns></returns>
  108. SchoolYearView GetCurrentSchoolYear();
  109. /// <summary>
  110. /// 获取当前校历启用的下一个学年学期ID
  111. /// </summary>
  112. /// <returns></returns>
  113. SchoolYearView GetNextSchoolYear();
  114. /// <summary>
  115. /// 更新当前学期学年
  116. /// </summary>
  117. void UpdateCurrentSchoolYear();
  118. void AutoCreateSchoolyearAndYearsSS();
  119. void AutoCreateSchoolyearAndYears();
  120. List<int> GetCurrentSchoolyearWeekNumList();
  121. ///<summary>
  122. ///获取学年学期周次
  123. ///</summary>
  124. List<int> GetSchoolyearWeekNumList(Guid? SchoolYearID);
  125. List<WeekDayView> GetFutureWeekdayList(int weekNum);
  126. List<CoursesTimeView> GetFutureCourseTimeList(int weekNum, int weekday);
  127. bool IsTimePassed(SchoolYearView currentSchoolyear, int? weekNum, int? weekday, int? startHour, int? startMinute);
  128. /// <summary>
  129. /// 以指定的学期为参照,将时间转换成周次、星期和节次(仅保留能转换成功的记录)
  130. /// </summary>
  131. /// <param name="schoolyearID"></param>
  132. /// <param name="datetimeList"></param>
  133. /// <returns></returns>
  134. List<FullCoursesTimeView> GetCoursesTimeByDateTime(Guid schoolyearID, IList<StartEndTimeView> datetimeList);
  135. /// <summary>
  136. /// 以指定的学期为参照,将周次、星期和节次转换成时间(仅保留能转换成功的记录)
  137. /// </summary>
  138. /// <param name="schoolyearID"></param>
  139. /// <param name="datetimeList"></param>
  140. /// <returns></returns>
  141. List<StartEndTimeView> GetCoursesTimeByDateTime(Guid schoolyearID, IList<FullCoursesTimeView> coursesTimeList);
  142. }
  143. }