IUserServices.cs 3.0 KB

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