yangyin
2024-08-06 8a05508cc6a890363a46a9bfc2ae924fdd556db8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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 ? "否" : "是";
 
 
            /// <summary>
            /// 0 男  1女
            /// </summary>
 
        }
        public string StaffStatusLabel { get; set; }
        public string RequirePasswordResetLabel { get; set; }
 
    }
}