123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using EMIS.ViewModel.TeacherManagement;
- using Bowin.Common.Linq.Entity;
- using EMIS.ViewModel;
- using EMIS.Entities;
- using System.Linq.Expressions;
- namespace EMIS.CommonLogic.TeacherManagement
- {
- public interface IStaffServices
- {
- /// <summary>
- /// 查询教师列表
- /// </summary>
- /// <param name="configuretView">查询条件实体</param>
- /// <param name="campusID">校区ID</param>
- /// <param name="collegeID">学院ID</param>
- /// <param name="DepartmentID">教研室ID</param>
- /// <param name="isPhoto">是否显示照片</param>
- /// <param name="pageIndex">页码</param>
- /// <param name="pageSize">显示码</param>
- /// <returns></returns>
- IGridResultSet<StaffView> GetStaffViewGrid(ConfiguretView configuretView, Guid? campusID, Guid? collegeID, Guid? departmentID, int? isPhoto, Guid? userID, int pageIndex, int pageSize);
- IGridResultSet<StaffView> GetStaffViewGridWithNoDataRange(ConfiguretView configuretView,
- Guid? campusID, Guid? collegeID, Guid? departmentID, int? isPhoto, Guid? userID, int pageIndex, int pageSize);
- IGridResultSet<StaffView> GetStaffViewGrid(Guid? campusID, Guid? collegeID, string loginID, string name, int pageIndex, int pageSize);
- /// <summary>
- /// 查询教师列表
- /// </summary>
- /// <param name="configuretView">查询条件实体</param>
- /// <param name="campusID">校区ID</param>
- /// <param name="collegeID">学院ID</param>
- /// <param name="DepartmentID">教研室ID</param>
- /// <param name="isPhoto">是否显示照片</param>
- /// <returns></returns>
- List<StaffView> GetStaffViewList(ConfiguretView configuretView, Guid? campusID, Guid? collegeID, Guid? departmentID, int? isPhoto);
- /// <summary>
- /// 获取全部教师列表详细信息
- /// </summary>
- /// <returns></returns>
- List<StaffView> GetListStaffView();
- /// <summary>
- /// 获取全部教师主表列表信息
- /// </summary>
- /// <returns></returns>
- List<CF_Staff> GetStaffList();
- /// <summary>
- /// 获取教师主表信息
- /// </summary>
- /// <param name="userID">用户ID</param>
- /// <returns></returns>
- CF_Staff GetStaff(Guid? userID);
- /// <summary>
- /// 获取教师主表信息
- /// </summary>
- /// <param name="userID">Expression查询条件</param>
- /// <returns></returns>
- CF_Staff GetStaff(Expression<Func<CF_Staff, bool>> exp);
- /// <summary>
- /// 获取教师扩展表信息
- /// </summary>
- /// <param name="userID">用户ID</param>
- /// <returns></returns>
- CF_StaffProfile GetStaffProfile(Guid? userID);
- /// <summary>
- /// 获取教师详细信息
- /// </summary>
- /// <param name="userID">用户ID</param>
- /// <returns></returns>
- StaffView GetStaffView(Guid? userID);
- /// <summary>
- /// 获取教师详细信息
- /// </summary>
- /// <param name="exp">Expression查询条件</param>
- /// <returns></returns>
- StaffView GetStaffView(Expression<Func<CF_Staff, bool>> exp);
- /// <summary>
- /// 获取全部教师列表详细信息
- /// </summary>
- /// <returns></returns>
- List<StaffView> GetListStaffView(Guid? userID);
- /// <summary>
- /// 添加
- /// </summary>
- /// <param name="staff">主表实体</param>
- /// <param name="staffProfile">扩展表实体</param>
- /// <returns></returns>
- void StaffAdd(StaffView staffView, string photoUrl);
- /// <summary>
- /// 删除
- /// </summary>
- /// <param name="userIDs"></param>
- /// <returns></returns>
- bool StaffDelete(List<Guid> userIDs);
- /// <summary>
- /// 验证
- /// </summary>
- /// <param name="userID">教职工ID</param>
- /// <param name="Code">代码</param>
- /// <returns></returns>
- string GetVerification(Guid? userID, string Code,Guid? CollegeID, Guid? DepartmentID);
- void DeletePhoto(Guid userID);
- /// <summary>
- /// 教师信息导入
- /// </summary>
- /// <param name="dataList">导入的数据集合</param>
- /// <param name="errdataList">返回的操作失败集合</param>
- /// <param name="successCount">操作成功记录条数</param>
- /// <returns></returns>
- void StaffImport(out int OkCount, out List<StaffView> errdataList, out int successCount, string sourcePhysicalPath, string sourceWebPath, out string errorWebPath, out string Errinfo);
- /// <summary>
- /// 保存自我修改信息
- /// </summary>
- /// <param name="staffView"></param>
- void UpdateForSelf(StaffView staffView);
- /// <summary>
- /// 获取全部教师不带数据范围
- /// </summary>
- /// <param name="configuretView"></param>
- /// <param name="pageIndex"></param>
- /// <param name="pageSize"></param>
- /// <returns></returns>
- Bowin.Common.Linq.Entity.IGridResultSet<ViewModel.TeacherManagement.StaffView> GetAllStaffView(ViewModel.ConfiguretView configuretView, int pageIndex, int pageSize);
- }
- }
|