yangyin
2024-08-12 2bc7800e9f02fed6652f6b0defe1d978f186e914
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
using HStation.Vmo;
 
namespace HStation.WinFrmUI.Organize
{
    public class EmployeeViewModel 
    {
        public EmployeeViewModel()
        { }
 
         public EmployeeViewModel(EmployeeMain rhs) 
         {
             this.ErpCode = rhs.ErpCode;//编号
             this.ProfilePhotoFilePath = rhs.ProfilePhotoFilePath;//头像
             this.PositonName = rhs.PositonName;//职位名
             this.FirstName = rhs.FirstName; //姓名(英文就是第一个名)
             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.RequirePasswordReset = rhs.RequirePasswordReset == 0 ? "否" : "是";
 
 
        }
 //public string StaffStatusLabel { get; set; }
 public string RequirePasswordResetLabel { get; set; }
 /// <summary>
 /// ID
 /// </summary>
 public long ID { get; set; }
 /// <summary>
 /// 编号
 /// </summary>
 public string ErpCode { get; set; }
 /// <summary>
 /// 头像
 /// </summary>
 public string ProfilePhotoFilePath { get; set; }
 /// <summary>
 /// 职位名
 /// </summary>
 public string PositonName { get; set; }
 /// <summary>
 /// 姓名(英文就是第一个名)
 /// </summary>
 public string FirstName { get; set; }
 /// <summary>
 /// 在职状态 1在职 0离职
 /// </summary>
 public eJobType StaffStatus  { get; set; }
 /// <summary>
 /// 手机号
 /// </summary>
 public string Telephone {  get; set; }
 /// <summary>
 /// 姓名(英文名,才会用到)
 /// </summary>
 public string LastName { get; set; }
 /// <summary>
 /// 登录时是否必须重置密码
 /// </summary>
 public string RequirePasswordReset { get; set; }
 /// <summary>
 /// 图纸上的签名
 /// </summary>
 public string DrawSignal { get; set; }
 /// <summary>
 /// 电子邮箱
 /// </summary>
 public string Email { get; set; }
 /// <summary>
 /// 登录用户
 /// </summary>
 public UserLoginAccount LoginAccount { get; set; } 
 
    }
}