using HStation.Dto; namespace HStation.WinFrmUI.Organize { public class EmployeeViewModel : EmployeeMainDto { public EmployeeViewModel() { } public EmployeeViewModel(EmployeeMainDto rhs) { this.ID = rhs.ID; this.ErpCode = rhs.ErpCode;//编号 this.PositonName = rhs.PositonName;//职位名 this.FirstName = rhs.FirstName;//姓名(英文就是第一个名) this.LastName = rhs.LastName;//姓名(英文名,才会用到) this.StaffStatus = rhs.StaffStatus;//在职状态 1 在职 0 离职 this.Telephone = rhs.Telephone;//手机号 this.DrawSignal = rhs.DrawSignal;//签名 this.Email = rhs.Email;//电子邮箱 this.AddTime = rhs.AddTime;//添加时间 this.AddUser = rhs.AddUser; this.RequirePasswordReset = rhs.RequirePasswordReset;//登录时是否必须重置密码 this.LastModifyUser = rhs.LastModifyUser; this.LastModifyTime = rhs.LastModifyTime;//最后修改时间 this.Paras = rhs.Paras; this.StaffStatusLabel = this.StaffStatus == 0 ? "离职" : "在职"; this.RequirePasswordResetLabel = this.RequirePasswordReset == 0 ? "否" : "是"; /// /// 0 男 1女 /// } public string StaffStatusLabel { get; set; } public string RequirePasswordResetLabel { get; set; } } }