IStaffServices.cs 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Linq.Expressions;
  5. using System.Text;
  6. using Bowin.Common.Linq.Entity;
  7. using EMIS.Entities;
  8. using EMIS.ViewModel;
  9. using EMIS.ViewModel.UniversityManage.TeacherManage;
  10. using EMIS.ViewModel.SystemManage.UserManage;
  11. namespace EMIS.CommonLogic.UniversityManage.TeacherManage
  12. {
  13. public interface IStaffServices
  14. {
  15. /// <summary>
  16. /// 查询教师信息View
  17. /// </summary>
  18. /// <param name="configuretView"></param>
  19. /// <param name="campusID"></param>
  20. /// <param name="collegeID"></param>
  21. /// <param name="departmentID"></param>
  22. /// <param name="isPhoto"></param>
  23. /// <param name="teacherTypeID"></param>
  24. /// <param name="incumbencyState"></param>
  25. /// <param name="titleID"></param>
  26. /// <param name="isDualTeacher"></param>
  27. /// <param name="pageIndex"></param>
  28. /// <param name="pageSize"></param>
  29. /// <returns></returns>
  30. IGridResultSet<StaffView> GetStaffViewGrid(ConfiguretView configuretView, Guid? campusID, Guid? collegeID, Guid? departmentID, int? isPhoto, int? teacherTypeID,
  31. int? incumbencyState, int? titleID, int? isDualTeacher, int pageIndex, int pageSize);
  32. /// <summary>
  33. /// 查询教师信息List
  34. /// </summary>
  35. /// <param name="configuretView"></param>
  36. /// <param name="campusID"></param>
  37. /// <param name="collegeID"></param>
  38. /// <param name="departmentID"></param>
  39. /// <param name="isPhoto"></param>
  40. /// <param name="teacherTypeID"></param>
  41. /// <param name="incumbencyState"></param>
  42. /// <param name="titleID"></param>
  43. /// <param name="isDualTeacher"></param>
  44. /// <returns></returns>
  45. IList<StaffView> GetStaffViewList(ConfiguretView configuretView, Guid? campusID, Guid? collegeID, Guid? departmentID, int? isPhoto, int? teacherTypeID,
  46. int? incumbencyState, int? titleID, int? isDualTeacher);
  47. /// <summary>
  48. /// 查询教师信息View
  49. /// </summary>
  50. /// <param name="configuretView"></param>
  51. /// <param name="campusID"></param>
  52. /// <param name="collegeID"></param>
  53. /// <param name="loginID"></param>
  54. /// <param name="name"></param>
  55. /// <param name="pageIndex"></param>
  56. /// <param name="pageSize"></param>
  57. /// <returns></returns>
  58. IGridResultSet<StaffView> GetStaffViewGrid(ConfiguretView configuretView, Guid? campusID, Guid? collegeID, string loginID, string name, int pageIndex, int pageSize);
  59. /// <summary>
  60. /// 查询教师信息List
  61. /// </summary>
  62. /// <param name="configuretView"></param>
  63. /// <param name="campusID"></param>
  64. /// <param name="collegeID"></param>
  65. /// <param name="loginID"></param>
  66. /// <param name="name"></param>
  67. /// <returns></returns>
  68. IList<StaffView> GetStaffViewList(ConfiguretView configuretView, Guid? campusID, Guid? collegeID, string loginID, string name);
  69. /// <summary>
  70. /// 查询教师信息View(无数据范围)
  71. /// </summary>
  72. /// <param name="configuretView"></param>
  73. /// <param name="campusID"></param>
  74. /// <param name="collegeID"></param>
  75. /// <param name="departmentID"></param>
  76. /// <param name="isPhoto"></param>
  77. /// <param name="teacherTypeID"></param>
  78. /// <param name="incumbencyState"></param>
  79. /// <param name="titleID"></param>
  80. /// <param name="isDualTeacher"></param>
  81. /// <param name="pageIndex"></param>
  82. /// <param name="pageSize"></param>
  83. /// <returns></returns>
  84. IGridResultSet<StaffView> GetStaffViewGridWithNoDataRange(ConfiguretView configuretView, Guid? campusID, Guid? collegeID, Guid? departmentID, int? isPhoto,
  85. int? teacherTypeID, int? incumbencyState, int? titleID, int? isDualTeacher, int pageIndex, int pageSize);
  86. /// <summary>
  87. /// 查询教师信息List(无数据范围)
  88. /// </summary>
  89. /// <param name="configuretView"></param>
  90. /// <param name="campusID"></param>
  91. /// <param name="collegeID"></param>
  92. /// <param name="departmentID"></param>
  93. /// <param name="isPhoto"></param>
  94. /// <param name="teacherTypeID"></param>
  95. /// <param name="incumbencyState"></param>
  96. /// <param name="titleID"></param>
  97. /// <param name="isDualTeacher"></param>
  98. /// <returns></returns>
  99. IList<StaffView> GetStaffViewListWithNoDataRange(ConfiguretView configuretView, Guid? campusID, Guid? collegeID, Guid? departmentID, int? isPhoto,
  100. int? teacherTypeID, int? incumbencyState, int? titleID, int? isDualTeacher);
  101. /// <summary>
  102. /// 查询教师信息StaffView(全部)
  103. /// </summary>
  104. /// <param name="configuretView"></param>
  105. /// <param name="pageIndex"></param>
  106. /// <param name="pageSize"></param>
  107. /// <returns></returns>
  108. IGridResultSet<StaffView> GetAllStaffView(ConfiguretView configuretView, int pageIndex, int pageSize);
  109. /// <summary>
  110. /// 查询教师信息List(全部)
  111. /// </summary>
  112. /// <param name="configuretView"></param>
  113. /// <returns></returns>
  114. IList<StaffView> GetAllStaffList(ConfiguretView configuretView);
  115. /// <summary>
  116. /// 查询对应的教师信息StaffView(全部)
  117. /// </summary>
  118. /// <returns></returns>
  119. List<StaffView> GetListStaffView();
  120. /// <summary>
  121. /// 查询对应的教师信息CF_Staff(全部)
  122. /// </summary>
  123. /// <returns></returns>
  124. List<CF_Staff> GetStaffList();
  125. /// <summary>
  126. /// 查询对应的教师信息CF_Staff
  127. /// </summary>
  128. /// <param name="userID"></param>
  129. /// <returns></returns>
  130. CF_Staff GetStaff(Guid? userID);
  131. /// <summary>
  132. /// 查询对应的教师信息CF_StaffProfile
  133. /// </summary>
  134. /// <param name="userID"></param>
  135. /// <returns></returns>
  136. CF_StaffProfile GetStaffProfile(Guid? userID);
  137. /// <summary>
  138. /// 查询对应的教师信息CF_Staff
  139. /// </summary>
  140. /// <param name="exp"></param>
  141. /// <returns></returns>
  142. CF_Staff GetStaff(Expression<Func<CF_Staff, bool>> exp);
  143. /// <summary>
  144. /// 查询对应的教师信息StaffView
  145. /// </summary>
  146. /// <param name="userID"></param>
  147. /// <returns></returns>
  148. StaffView GetStaffView(Guid? userID);
  149. /// <summary>
  150. /// 查询对应的教师信息StaffView
  151. /// </summary>
  152. /// <param name="exp"></param>
  153. /// <returns></returns>
  154. StaffView GetStaffView(Expression<Func<CF_Staff, bool>> exp);
  155. /// <summary>
  156. /// 查询对应的教师信息List
  157. /// </summary>
  158. /// <param name="userID"></param>
  159. /// <returns></returns>
  160. List<StaffView> GetListStaffView(Guid? userID);
  161. /// <summary>
  162. /// 编辑(新增、修改,业务主键:教职工号或证件号码)
  163. /// </summary>
  164. /// <param name="staffView"></param>
  165. /// <param name="photoUrl"></param>
  166. void StaffEdit(StaffView staffView, string photoUrl);
  167. /// <summary>
  168. /// 删除
  169. /// </summary>
  170. /// <param name="userIDs"></param>
  171. /// <returns></returns>
  172. bool StaffDelete(List<Guid?> userIDs);
  173. /// <summary>
  174. /// 验证
  175. /// </summary>
  176. /// <param name="collegeID"></param>
  177. /// <param name="departmentID"></param>
  178. /// <returns></returns>
  179. bool GetVerification(Guid? collegeID, Guid? departmentID);
  180. /// <summary>
  181. /// 删除照片(单个删除)
  182. /// </summary>
  183. /// <param name="userID"></param>
  184. void DeletePhoto(Guid? userID);
  185. /// <summary>
  186. /// 删除照片(批量删除)
  187. /// </summary>
  188. /// <param name="userIDs"></param>
  189. /// <returns></returns>
  190. bool PicDelete(List<Guid?> userIDs);
  191. /// <summary>
  192. /// 查询教师对应的角色信息UserView
  193. /// </summary>
  194. /// <param name="configuretView"></param>
  195. /// <param name="userID"></param>
  196. /// <param name="roleID"></param>
  197. /// <param name="dataRange"></param>
  198. /// <param name="roleStatus"></param>
  199. /// <param name="pageIndex"></param>
  200. /// <param name="pageSize"></param>
  201. /// <returns></returns>
  202. IGridResultSet<UserView> GetRoleListViewGrid(ConfiguretView configuretView, Guid? userID, Guid? roleID, int? dataRange, int? roleStatus, int pageIndex, int pageSize);
  203. /// <summary>
  204. /// 查询教师对应的角色信息List
  205. /// </summary>
  206. /// <param name="configuretView"></param>
  207. /// <param name="userID"></param>
  208. /// <param name="roleID"></param>
  209. /// <param name="dataRange"></param>
  210. /// <param name="roleStatus"></param>
  211. /// <returns></returns>
  212. IList<UserView> GetRoleListViewList(ConfiguretView configuretView, Guid? userID, Guid? roleID, int? dataRange, int? roleStatus);
  213. /// <summary>
  214. /// 导入照片
  215. /// </summary>
  216. /// <param name="photoPaths"></param>
  217. /// <param name="importPicType"></param>
  218. void StaffPicImport(IList<string> photoPaths, string importPicType);
  219. /// <summary>
  220. /// Excel教师信息导入
  221. /// </summary>
  222. /// <param name="cellheader"></param>
  223. /// <param name="inCount"></param>
  224. /// <param name="upCount"></param>
  225. /// <param name="errdataList"></param>
  226. /// <param name="errCount"></param>
  227. /// <param name="sourcePhysicalPath"></param>
  228. void StaffImport(Dictionary<string, string> cellheader, out int? inCount, out int? upCount, out List<StaffView> errdataList, out int? errCount, string sourcePhysicalPath);
  229. }
  230. }