IStaffServices.cs 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using EMIS.ViewModel.TeacherManagement;
  6. using Bowin.Common.Linq.Entity;
  7. using EMIS.ViewModel;
  8. using EMIS.Entities;
  9. using System.Linq.Expressions;
  10. namespace EMIS.CommonLogic.TeacherManagement
  11. {
  12. public interface IStaffServices
  13. {
  14. /// <summary>
  15. /// 查询教师列表
  16. /// </summary>
  17. /// <param name="configuretView">查询条件实体</param>
  18. /// <param name="campusID">校区ID</param>
  19. /// <param name="collegeID">学院ID</param>
  20. /// <param name="DepartmentID">教研室ID</param>
  21. /// <param name="isPhoto">是否显示照片</param>
  22. /// <param name="pageIndex">页码</param>
  23. /// <param name="pageSize">显示码</param>
  24. /// <returns></returns>
  25. IGridResultSet<StaffView> GetStaffViewGrid(ConfiguretView configuretView, Guid? campusID, Guid? collegeID, Guid? departmentID, int? isPhoto, Guid? userID, int pageIndex, int pageSize);
  26. IGridResultSet<StaffView> GetStaffViewGridWithNoDataRange(ConfiguretView configuretView,
  27. Guid? campusID, Guid? collegeID, Guid? departmentID, int? isPhoto, Guid? userID, int pageIndex, int pageSize);
  28. IGridResultSet<StaffView> GetStaffViewGrid(Guid? campusID, Guid? collegeID, string loginID, string name, int pageIndex, int pageSize);
  29. /// <summary>
  30. /// 查询教师列表
  31. /// </summary>
  32. /// <param name="configuretView">查询条件实体</param>
  33. /// <param name="campusID">校区ID</param>
  34. /// <param name="collegeID">学院ID</param>
  35. /// <param name="DepartmentID">教研室ID</param>
  36. /// <param name="isPhoto">是否显示照片</param>
  37. /// <returns></returns>
  38. List<StaffView> GetStaffViewList(ConfiguretView configuretView, Guid? campusID, Guid? collegeID, Guid? departmentID, int? isPhoto);
  39. /// <summary>
  40. /// 获取全部教师列表详细信息
  41. /// </summary>
  42. /// <returns></returns>
  43. List<StaffView> GetListStaffView();
  44. /// <summary>
  45. /// 获取全部教师主表列表信息
  46. /// </summary>
  47. /// <returns></returns>
  48. List<CF_Staff> GetStaffList();
  49. /// <summary>
  50. /// 获取教师主表信息
  51. /// </summary>
  52. /// <param name="userID">用户ID</param>
  53. /// <returns></returns>
  54. CF_Staff GetStaff(Guid? userID);
  55. /// <summary>
  56. /// 获取教师主表信息
  57. /// </summary>
  58. /// <param name="userID">Expression查询条件</param>
  59. /// <returns></returns>
  60. CF_Staff GetStaff(Expression<Func<CF_Staff, bool>> exp);
  61. /// <summary>
  62. /// 获取教师扩展表信息
  63. /// </summary>
  64. /// <param name="userID">用户ID</param>
  65. /// <returns></returns>
  66. CF_StaffProfile GetStaffProfile(Guid? userID);
  67. /// <summary>
  68. /// 获取教师详细信息
  69. /// </summary>
  70. /// <param name="userID">用户ID</param>
  71. /// <returns></returns>
  72. StaffView GetStaffView(Guid? userID);
  73. /// <summary>
  74. /// 获取教师详细信息
  75. /// </summary>
  76. /// <param name="exp">Expression查询条件</param>
  77. /// <returns></returns>
  78. StaffView GetStaffView(Expression<Func<CF_Staff, bool>> exp);
  79. /// <summary>
  80. /// 获取全部教师列表详细信息
  81. /// </summary>
  82. /// <returns></returns>
  83. List<StaffView> GetListStaffView(Guid? userID);
  84. /// <summary>
  85. /// 添加
  86. /// </summary>
  87. /// <param name="staff">主表实体</param>
  88. /// <param name="staffProfile">扩展表实体</param>
  89. /// <returns></returns>
  90. void StaffAdd(StaffView staffView, string photoUrl);
  91. /// <summary>
  92. /// 删除
  93. /// </summary>
  94. /// <param name="userIDs"></param>
  95. /// <returns></returns>
  96. bool StaffDelete(List<Guid> userIDs);
  97. /// <summary>
  98. /// 验证
  99. /// </summary>
  100. /// <param name="userID">教职工ID</param>
  101. /// <param name="Code">代码</param>
  102. /// <returns></returns>
  103. string GetVerification(Guid? userID, string Code,Guid? CollegeID, Guid? DepartmentID);
  104. void DeletePhoto(Guid userID);
  105. /// <summary>
  106. /// 教师信息导入
  107. /// </summary>
  108. /// <param name="dataList">导入的数据集合</param>
  109. /// <param name="errdataList">返回的操作失败集合</param>
  110. /// <param name="successCount">操作成功记录条数</param>
  111. /// <returns></returns>
  112. void StaffImport(out int OkCount, out List<StaffView> errdataList, out int successCount, string sourcePhysicalPath, string sourceWebPath, out string errorWebPath, out string Errinfo);
  113. /// <summary>
  114. /// 保存自我修改信息
  115. /// </summary>
  116. /// <param name="staffView"></param>
  117. void UpdateForSelf(StaffView staffView);
  118. /// <summary>
  119. /// 获取全部教师不带数据范围
  120. /// </summary>
  121. /// <param name="configuretView"></param>
  122. /// <param name="pageIndex"></param>
  123. /// <param name="pageSize"></param>
  124. /// <returns></returns>
  125. Bowin.Common.Linq.Entity.IGridResultSet<ViewModel.TeacherManagement.StaffView> GetAllStaffView(ViewModel.ConfiguretView configuretView, int pageIndex, int pageSize);
  126. }
  127. }