IUserServices.cs 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using EMIS.Entities;
  6. using EMIS.ViewModel;
  7. using System.ServiceModel;
  8. using System.ServiceModel.Web;
  9. using EMIS.ViewModel.SystemView;
  10. using EMIS.ViewModel.SystemManage.UserManage;
  11. namespace EMIS.CommonLogic.SystemServices
  12. {
  13. public interface IUserServices
  14. {
  15. bool Login(string loginID, string password);
  16. string SSOLogin();
  17. Sys_User GetUserByLoginID(string loginID, bool isNeedEnable = true);
  18. List<Sys_User> GetUserListByLoginID(IList<string> loginIDList, bool isNeedEnable = true);
  19. UserView GetUserViewByID(Guid userID);
  20. Bowin.Common.Linq.Entity.IGridResultSet<UserView> GetUserViewList(ConfiguretView configuretView, Guid? campusID,
  21. Guid? collegeID, Guid? departmentID, Guid? roleID, int? dataRangeID, int? stauts, int pageIndex, int pageSize);
  22. IList<UserView> GetUserViewList(ConfiguretView configuretView, Guid? campusID,
  23. Guid? collegeID, Guid? departmentID, Guid? roleID, int? dataRangeID);
  24. Bowin.Common.Linq.Entity.IGridResultSet<StudentUserView> GetStudentUserViewList(ViewModel.ConfiguretView configuretView,
  25. Guid? campusID, Guid? collegeID, int? educationID, int? schoolYearID, int? standardID, int? learnFormID,
  26. Guid? classMajorID,string LearnSystem, int pageIndex, int pageSize);
  27. IList<ViewModel.SystemView.StudentUserView> GetStudentUserViewList(ViewModel.ConfiguretView configuretView,
  28. Guid? campusID, Guid? collegeID, int? educationID, int? schoolYearID, int? standardID, int? learnFormID,
  29. Guid? classMajorID, string LearnSystem);
  30. void BatchInitPassword(IList<Guid?> userID, bool isChange,string pwd);
  31. void UnUsable(IList<Guid?> userID);
  32. void Usable(IList<Guid?> userID);
  33. void SaveUserRoles(Guid userID, IList<Guid?> roleID);
  34. IList<CF_Campus> GetUserInchargeCampus(Guid userID);
  35. IList<CF_College> GetUserInchargeCollege(Guid userID);
  36. IList<CF_Department> GetUserInchargeDepartment(Guid userID);
  37. IList<Sys_Role> GetUserRoles(Guid userID);
  38. /// <summary>
  39. /// 获取用户权限最多的角色(主要用于登录时自动获取角色)
  40. /// </summary>
  41. /// <param name="userID"></param>
  42. /// <returns></returns>
  43. Sys_Role GetMaxPrivilegeRoleByUserID(Guid userID);
  44. IList<RoleView> GetUserRolesView(Guid userID);
  45. void SaveUserCampus(Guid userID, IList<Guid?> campusID);
  46. void SaveUserCollege(Guid userID, IList<Guid?> collegeID);
  47. void SaveUserDepartment(Guid userID, IList<Guid?> departmentID);
  48. string GetUserEmail(Guid userID);
  49. void ChangePassword(ChangePasswordView password, Guid userID);
  50. Sys_User GetUserByID(Guid userID);
  51. void SynHRServices();
  52. }
  53. }