123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using Bowin.Common.Linq.Entity;
- using EMIS.ViewModel.CalendarManage;
- using EMIS.ViewModel;
- using EMIS.Entities;
- namespace EMIS.CommonLogic.CalendarManage
- {
- public interface ISchoolYearServices
- {
- /// <summary>
- /// 查询学年学期信息
- /// </summary>
- /// <param name="configuretView">查询条件实体</param>
- /// <param name="SchoolyearsType">活动类型</param>
- /// <param name="timesSegment">时间段</param>
- /// <param name="pageIndex">页码</param>
- /// <param name="pageSize">显示页数</param>
- /// <returns></returns>
- IGridResultSet<SchoolYearView> GetSchoolYearViewGrid(ConfiguretView configuretView, int? isCurrent, int pageIndex, int pageSize);
- /// <summary>
- /// 查询学年学期信息
- /// </summary>
- /// <param name="configuretView">查询条件实体</param>
- /// <returns></returns>
- List<SchoolYearView> GetSchoolYearViewList(ConfiguretView configuretView,int? isCurrent);
- /// <summary>
- /// 查询校历的当前学年学期的下一个学期
- /// </summary>
- /// <returns></returns>
- List<SchoolYearView> GetSchoolYearViewListAfterCurrent();
- /// <summary>
- /// 查询之前的学年学期信息
- /// </summary>
- /// <returns></returns>
- List<SchoolYearView> GetSchoolYearViewListBeforeCurrent();
-
- /// <summary>
- /// 查询前一个学年学期信息
- /// </summary>
- /// <returns></returns>
- SchoolYearView GetSchoolYearViewBeforeCurrent();
- /// <summary>
- /// 获取学年学期信息
- /// </summary>
- /// <param name="SchoolyearsID">主键ID</param>
- /// <returns></returns>
- EMIS.Entities.CF_Schoolyear GetSchoolYear(Guid? schoolyearID);
- EMIS.Entities.CF_Schoolyear GetSchoolYearByValue(int value);
- /// <summary>
- /// 获取学年学期信息
- /// </summary>
- /// <param name="Years">学年</param>
- /// <param name="Name">学期名称</param>
- /// <returns></returns>
- EMIS.Entities.CF_Schoolyear GetSchoolYear(int Years, int SchoolcodeID);
- /// <summary>
- /// 获取当前学年学期
- /// </summary>
- /// <param name="IsCurrent"></param>
- /// <returns></returns>
- EMIS.Entities.CF_Schoolyear GetSchoolYearIsCurrent(bool IsCurrent);
- /// <summary>
- /// 获取学年学期信息
- /// </summary>
- /// <param name="schoolyearID">主键ID</param>
- /// <param name="IsCurrent">是否当前学期</param>
- /// <returns></returns>
- List<EMIS.Entities.CF_Schoolyear> GetSchoolYearList(Guid? schoolyearID, bool IsCurrent);
-
- /// <summary>
- /// 获取学年学期信息
- /// </summary>
- /// <param name="schoolyearID">主键ID</param>
- /// <returns></returns>
- SchoolYearView GetSchoolYearView(Guid? schoolyearID);
- /// <summary>
- /// 添加
- /// </summary>
- /// <param name="schoolyear">实体</param>
- /// <returns></returns>
- bool SchoolYearAdd(SchoolYearView schoolyearView);
- /// <summary>
- /// 修改
- /// </summary>
- /// <param name="SchoolyearsSets">实体</param>
- /// <returns></returns>
- bool SchoolYearUpdate(SchoolYearView schoolyearView);
- /// <summary>
- /// 删除
- /// </summary>
- /// <param name="schoolyearIDs"></param>
- /// <returns></returns>
- bool SchoolYearDelete(List<Guid> schoolyearIDs);
- /// <summary>
- /// 只获取学年
- /// </summary>
- /// <param name="configuretView"></param>
- /// <param name="isCurrent"></param>
- /// <param name="pageIndex"></param>
- /// <param name="pageSize"></param>
- /// <returns></returns>
- IGridResultSet<SchoolYearView> GetYearsViewGrid(ConfiguretView configuretView, int? isCurrent, int pageIndex, int pageSize);
- /// <summary>
- /// 获取当前学期学年
- /// </summary>
- /// <returns></returns>
- SchoolYearView GetCurrentSchoolYear();
- /// <summary>
- /// 获取当前校历启用的下一个学年学期ID
- /// </summary>
- /// <returns></returns>
- SchoolYearView GetNextSchoolYear();
- /// <summary>
- /// 更新当前学期学年
- /// </summary>
- void UpdateCurrentSchoolYear();
- void AutoCreateSchoolyearAndYearsSS();
- void AutoCreateSchoolyearAndYears();
- List<int> GetCurrentSchoolyearWeekNumList();
- ///<summary>
- ///获取学年学期周次
- ///</summary>
- List<int> GetSchoolyearWeekNumList(Guid? SchoolYearID);
- List<WeekDayView> GetFutureWeekdayList(int weekNum);
- List<CoursesTimeView> GetFutureCourseTimeList(int weekNum, int weekday);
- bool IsTimePassed(SchoolYearView currentSchoolyear, int? weekNum, int? weekday, int? startHour, int? startMinute);
- /// <summary>
- /// 以指定的学期为参照,将时间转换成周次、星期和节次(仅保留能转换成功的记录)
- /// </summary>
- /// <param name="schoolyearID"></param>
- /// <param name="datetimeList"></param>
- /// <returns></returns>
- List<FullCoursesTimeView> GetCoursesTimeByDateTime(Guid schoolyearID, IList<StartEndTimeView> datetimeList);
- /// <summary>
- /// 以指定的学期为参照,将周次、星期和节次转换成时间(仅保留能转换成功的记录)
- /// </summary>
- /// <param name="schoolyearID"></param>
- /// <param name="datetimeList"></param>
- /// <returns></returns>
- List<StartEndTimeView> GetCoursesTimeByDateTime(Guid schoolyearID, IList<FullCoursesTimeView> coursesTimeList);
- }
- }
|