123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Linq.Expressions;
- using System.Text;
- using Bowin.Common.Linq.Entity;
- using EMIS.Entities;
- using EMIS.ViewModel;
- using EMIS.ViewModel.UniversityManage.TeacherManage;
- using EMIS.ViewModel.SystemManage.UserManage;
- namespace EMIS.CommonLogic.UniversityManage.TeacherManage
- {
- public interface IStaffServices
- {
- /// <summary>
- /// 查询教师信息View
- /// </summary>
- /// <param name="configuretView"></param>
- /// <param name="campusID"></param>
- /// <param name="collegeID"></param>
- /// <param name="departmentID"></param>
- /// <param name="isPhoto"></param>
- /// <param name="teacherTypeID"></param>
- /// <param name="incumbencyState"></param>
- /// <param name="titleID"></param>
- /// <param name="isDualTeacher"></param>
- /// <param name="pageIndex"></param>
- /// <param name="pageSize"></param>
- /// <returns></returns>
- IGridResultSet<StaffView> GetStaffViewGrid(ConfiguretView configuretView, Guid? campusID, Guid? collegeID, Guid? departmentID, int? isPhoto, int? teacherTypeID,
- int? incumbencyState, int? titleID, int? isDualTeacher, int pageIndex, int pageSize);
- /// <summary>
- /// 查询教师信息List
- /// </summary>
- /// <param name="configuretView"></param>
- /// <param name="campusID"></param>
- /// <param name="collegeID"></param>
- /// <param name="departmentID"></param>
- /// <param name="isPhoto"></param>
- /// <param name="teacherTypeID"></param>
- /// <param name="incumbencyState"></param>
- /// <param name="titleID"></param>
- /// <param name="isDualTeacher"></param>
- /// <returns></returns>
- IList<StaffView> GetStaffViewList(ConfiguretView configuretView, Guid? campusID, Guid? collegeID, Guid? departmentID, int? isPhoto, int? teacherTypeID,
- int? incumbencyState, int? titleID, int? isDualTeacher);
- /// <summary>
- /// 查询教师信息View
- /// </summary>
- /// <param name="configuretView"></param>
- /// <param name="campusID"></param>
- /// <param name="collegeID"></param>
- /// <param name="loginID"></param>
- /// <param name="name"></param>
- /// <param name="pageIndex"></param>
- /// <param name="pageSize"></param>
- /// <returns></returns>
- IGridResultSet<StaffView> GetStaffViewGrid(ConfiguretView configuretView, Guid? campusID, Guid? collegeID, string loginID, string name, int pageIndex, int pageSize);
- /// <summary>
- /// 查询教师信息List
- /// </summary>
- /// <param name="configuretView"></param>
- /// <param name="campusID"></param>
- /// <param name="collegeID"></param>
- /// <param name="loginID"></param>
- /// <param name="name"></param>
- /// <returns></returns>
- IList<StaffView> GetStaffViewList(ConfiguretView configuretView, Guid? campusID, Guid? collegeID, string loginID, string name);
- /// <summary>
- /// 查询教师信息View(无数据范围)
- /// </summary>
- /// <param name="configuretView"></param>
- /// <param name="campusID"></param>
- /// <param name="collegeID"></param>
- /// <param name="departmentID"></param>
- /// <param name="isPhoto"></param>
- /// <param name="teacherTypeID"></param>
- /// <param name="incumbencyState"></param>
- /// <param name="titleID"></param>
- /// <param name="isDualTeacher"></param>
- /// <param name="pageIndex"></param>
- /// <param name="pageSize"></param>
- /// <returns></returns>
- IGridResultSet<StaffView> GetStaffViewGridWithNoDataRange(ConfiguretView configuretView, Guid? campusID, Guid? collegeID, Guid? departmentID, int? isPhoto,
- int? teacherTypeID, int? incumbencyState, int? titleID, int? isDualTeacher, int pageIndex, int pageSize);
- /// <summary>
- /// 查询教师信息List(无数据范围)
- /// </summary>
- /// <param name="configuretView"></param>
- /// <param name="campusID"></param>
- /// <param name="collegeID"></param>
- /// <param name="departmentID"></param>
- /// <param name="isPhoto"></param>
- /// <param name="teacherTypeID"></param>
- /// <param name="incumbencyState"></param>
- /// <param name="titleID"></param>
- /// <param name="isDualTeacher"></param>
- /// <returns></returns>
- IList<StaffView> GetStaffViewListWithNoDataRange(ConfiguretView configuretView, Guid? campusID, Guid? collegeID, Guid? departmentID, int? isPhoto,
- int? teacherTypeID, int? incumbencyState, int? titleID, int? isDualTeacher);
- /// <summary>
- /// 查询教师信息StaffView(全部)
- /// </summary>
- /// <param name="configuretView"></param>
- /// <param name="pageIndex"></param>
- /// <param name="pageSize"></param>
- /// <returns></returns>
- IGridResultSet<StaffView> GetAllStaffView(ConfiguretView configuretView, int pageIndex, int pageSize);
- /// <summary>
- /// 查询教师信息List(全部)
- /// </summary>
- /// <param name="configuretView"></param>
- /// <returns></returns>
- IList<StaffView> GetAllStaffList(ConfiguretView configuretView);
- /// <summary>
- /// 查询对应的教师信息StaffView(全部)
- /// </summary>
- /// <returns></returns>
- List<StaffView> GetListStaffView();
- /// <summary>
- /// 查询对应的教师信息CF_Staff(全部)
- /// </summary>
- /// <returns></returns>
- List<CF_Staff> GetStaffList();
- /// <summary>
- /// 查询对应的教师信息CF_Staff
- /// </summary>
- /// <param name="userID"></param>
- /// <returns></returns>
- CF_Staff GetStaff(Guid? userID);
- /// <summary>
- /// 查询对应的教师信息CF_StaffProfile
- /// </summary>
- /// <param name="userID"></param>
- /// <returns></returns>
- CF_StaffProfile GetStaffProfile(Guid? userID);
- /// <summary>
- /// 查询对应的教师信息CF_Staff
- /// </summary>
- /// <param name="exp"></param>
- /// <returns></returns>
- CF_Staff GetStaff(Expression<Func<CF_Staff, bool>> exp);
- /// <summary>
- /// 查询对应的教师信息StaffView
- /// </summary>
- /// <param name="userID"></param>
- /// <returns></returns>
- StaffView GetStaffView(Guid? userID);
- /// <summary>
- /// 查询对应的教师信息StaffView
- /// </summary>
- /// <param name="exp"></param>
- /// <returns></returns>
- StaffView GetStaffView(Expression<Func<CF_Staff, bool>> exp);
- /// <summary>
- /// 查询对应的教师信息List
- /// </summary>
- /// <param name="userID"></param>
- /// <returns></returns>
- List<StaffView> GetListStaffView(Guid? userID);
- /// <summary>
- /// 编辑(新增、修改,业务主键:教职工号或证件号码)
- /// </summary>
- /// <param name="staffView"></param>
- /// <param name="photoUrl"></param>
- void StaffEdit(StaffView staffView, string photoUrl);
- /// <summary>
- /// 删除
- /// </summary>
- /// <param name="userIDs"></param>
- /// <returns></returns>
- bool StaffDelete(List<Guid?> userIDs);
- /// <summary>
- /// 验证
- /// </summary>
- /// <param name="collegeID"></param>
- /// <param name="departmentID"></param>
- /// <returns></returns>
- bool GetVerification(Guid? collegeID, Guid? departmentID);
- /// <summary>
- /// 删除照片(单个删除)
- /// </summary>
- /// <param name="userID"></param>
- void DeletePhoto(Guid? userID);
- /// <summary>
- /// 删除照片(批量删除)
- /// </summary>
- /// <param name="userIDs"></param>
- /// <returns></returns>
- bool PicDelete(List<Guid?> userIDs);
- /// <summary>
- /// 查询教师对应的角色信息UserView
- /// </summary>
- /// <param name="configuretView"></param>
- /// <param name="userID"></param>
- /// <param name="roleID"></param>
- /// <param name="dataRange"></param>
- /// <param name="roleStatus"></param>
- /// <param name="pageIndex"></param>
- /// <param name="pageSize"></param>
- /// <returns></returns>
- IGridResultSet<UserView> GetRoleListViewGrid(ConfiguretView configuretView, Guid? userID, Guid? roleID, int? dataRange, int? roleStatus, int pageIndex, int pageSize);
- /// <summary>
- /// 查询教师对应的角色信息List
- /// </summary>
- /// <param name="configuretView"></param>
- /// <param name="userID"></param>
- /// <param name="roleID"></param>
- /// <param name="dataRange"></param>
- /// <param name="roleStatus"></param>
- /// <returns></returns>
- IList<UserView> GetRoleListViewList(ConfiguretView configuretView, Guid? userID, Guid? roleID, int? dataRange, int? roleStatus);
- /// <summary>
- /// 导入照片
- /// </summary>
- /// <param name="photoPaths"></param>
- /// <param name="importPicType"></param>
- void StaffPicImport(IList<string> photoPaths, string importPicType);
- /// <summary>
- /// Excel教师信息导入
- /// </summary>
- /// <param name="cellheader"></param>
- /// <param name="inCount"></param>
- /// <param name="upCount"></param>
- /// <param name="errdataList"></param>
- /// <param name="errCount"></param>
- /// <param name="sourcePhysicalPath"></param>
- void StaffImport(Dictionary<string, string> cellheader, out int? inCount, out int? upCount, out List<StaffView> errdataList, out int? errCount, string sourcePhysicalPath);
- }
- }
|