create PmRole Completed

This commit is contained in:
SamSys
2025-12-13 18:25:19 +03:30
parent f2293934d4
commit c9d582877b
26 changed files with 2010 additions and 398 deletions

View File

@@ -25,11 +25,6 @@ namespace AccountManagement.Domain.AccountAgg
public string VerifyCode { get; set; }
public string IsActiveString { get; private set; }
/// <summary>
/// آیا کاربر در پروگرام منیجر فعالیت می کند
/// </summary>
public bool IsProgramManagerUser { get; private set; }
#region Mahan
public string PositionIsActive { get; private set; }
public long? PositionId { get; private set; }
@@ -40,7 +35,7 @@ namespace AccountManagement.Domain.AccountAgg
public List<CameraAccount> CameraAccounts { get; private set; }
public List<AccountLeftWork> AccountLeftWorkList { get; set; }
public Account(string fullname, string username, string password, string mobile,
long roleId, string profilePhoto, string roleName, string adminAreaPermission, string clientAriaPermission, bool isProgramManagerUser)
long roleId, string profilePhoto, string roleName, string adminAreaPermission, string clientAriaPermission)
{
Fullname = fullname;
Username = username;
@@ -55,7 +50,6 @@ namespace AccountManagement.Domain.AccountAgg
RoleName = roleName;
AdminAreaPermission = adminAreaPermission;
ClientAriaPermission = clientAriaPermission;
IsProgramManagerUser = isProgramManagerUser;
IsActiveString = "true";
}
@@ -76,20 +70,18 @@ namespace AccountManagement.Domain.AccountAgg
public Account()
{
ProfilePhoto = " ";
}
public void Edit(string fullname, string username, string mobile,
long roleId, string profilePhoto, string roleName, bool isProgramManagerUser)
long roleId, string profilePhoto, string roleName)
{
Fullname = fullname;
Username = username;
Mobile = mobile;
RoleId = roleId;
RoleName = roleName;
IsProgramManagerUser = isProgramManagerUser;
if (!string.IsNullOrWhiteSpace(profilePhoto))
ProfilePhoto = profilePhoto;
}