yangyin
2024-08-14 5b3c122613f3b1574a0a8a8546f0a57dadb167d3
WinFrmUI/HStation.WinFrmUI.Organize.Core/01-EmployeeViewModel/EmployeeViewModel.cs
@@ -2,7 +2,7 @@
namespace HStation.WinFrmUI.Organize
{
    public class EmployeeViewModel
    public class EmployeeViewModel : EmployeeMain
    {
        public EmployeeViewModel()
        { }
@@ -16,18 +16,19 @@
             this.LastName = rhs.LastName;//姓名(英文就是最后的名)
             //this.StaffStatus = rhs.StaffStatus; //在职状态1在职 0离职
             this.Telephone = rhs.Telephone;//手机号
             //this.RequirePasswordReset = rhs.RequirePasswordReset;//登录时是否必须重置密码
             this.Email = rhs.Email;//电子邮箱
             this.DrawSignal = rhs.DrawSignal;//签名
             this.LoginAccount = rhs.LoginAccount;//登录用户
             this.StaffStatus = rhs.StaffStatus ;
             //this.StaffStatus = rhs.StaffStatus == 0 ? "离职" : "在职";
            this.User = rhs.User;//登录用户
            this.AddTime = rhs.AddTime;//添加时间
            this.AddUser = rhs.AddUser;//添加用户
            this.LastModifyTime = rhs.LastModifyTime;//最后修改时间
            this.LastModifyUser = rhs.LastModifyUser;//最后修改用户
            this.SortCode = rhs.SortCode;//排序码
            this.StaffStatus = rhs.StaffStatus == eJobType.exist ? "离职" : "在职";
             this.RequirePasswordReset = rhs.RequirePasswordReset == 0 ? "否" : "是";
        }
 //public string StaffStatusLabel { get; set; }
 public string RequirePasswordResetLabel { get; set; }
 /// <summary>
 /// ID
 /// </summary>
@@ -51,7 +52,7 @@
 /// <summary>
 /// 在职状态 1在职 0离职
 /// </summary>
 public eJobType StaffStatus  { get; set; }
         public string StaffStatus  { get; set; }
 /// <summary>
 /// 手机号
 /// </summary>
@@ -75,7 +76,35 @@
 /// <summary>
 /// 登录用户
 /// </summary>
 public UserLoginAccount LoginAccount { get; set; }
         public Yw.Vmo.User User { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime AddTime { get; set; }
        /// <summary>
        /// 添加用户
        /// </summary>
        public string AddUser { get; set; }
        /// <summary>
        /// 最后修改用户
        /// </summary>
        public string LastModifyUser { get; set; }
        /// <summary>
        /// 最后修改时间
        /// </summary>
        public string LastModifyTime { get; set; }
        /// <summary>
        /// 排序码
        /// </summary>
        public int SortCode { get; set; }
    }
}