SysUserService.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using ERP.Core.Entities;
  2. using ERP.Core.Repositorys;
  3. namespace ERP.Core.Services
  4. {
  5. public class SysUserService
  6. {
  7. private SysUserRepository _sysUserRepository;
  8. public SysUserService(SysUserRepository SysUserRepository)
  9. {
  10. this._sysUserRepository = SysUserRepository;
  11. }
  12. private void CheckUserStatus(SysUser user)
  13. {
  14. //if (user.UserStatus == UserStatusEnum.Enable)
  15. //{
  16. // return;
  17. //}
  18. //else if (user.UserStatus == UserStatusEnum.Disable)
  19. //{
  20. // throw new RpcException(new Status(StatusCode.Unknown, string.Format(_localizer["User.Bloked"], user.LoginName)));
  21. //}
  22. //else if (user.UserStatus == UserStatusEnum.Effact)
  23. //{
  24. // CheckEffective(user.EffectiveDate, user.LoginName);
  25. //}
  26. //else if (user.UserStatus == UserStatusEnum.Expiry)
  27. //{
  28. // CheckExpiry(user.ExpiryDate, user.LoginName);
  29. //}
  30. //else if (user.UserStatus == UserStatusEnum.Temporary)
  31. //{
  32. // CheckEffective(user.EffectiveDate, user.LoginName);
  33. // CheckExpiry(user.ExpiryDate, user.LoginName);
  34. //}
  35. }
  36. }
  37. }