using ERP.Core.Entities; using ERP.Core.Repositorys; namespace ERP.Core.Services { public class SysUserService { private SysUserRepository _sysUserRepository; public SysUserService(SysUserRepository SysUserRepository) { this._sysUserRepository = SysUserRepository; } private void CheckUserStatus(SysUser user) { //if (user.UserStatus == UserStatusEnum.Enable) //{ // return; //} //else if (user.UserStatus == UserStatusEnum.Disable) //{ // throw new RpcException(new Status(StatusCode.Unknown, string.Format(_localizer["User.Bloked"], user.LoginName))); //} //else if (user.UserStatus == UserStatusEnum.Effact) //{ // CheckEffective(user.EffectiveDate, user.LoginName); //} //else if (user.UserStatus == UserStatusEnum.Expiry) //{ // CheckExpiry(user.ExpiryDate, user.LoginName); //} //else if (user.UserStatus == UserStatusEnum.Temporary) //{ // CheckEffective(user.EffectiveDate, user.LoginName); // CheckExpiry(user.ExpiryDate, user.LoginName); //} } } }