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; }
///
/// ID
///
public long ID { get; set; }
///
/// 编号
///
public string ErpCode { get; set; }
///
/// 头像
///
public string ProfilePhotoFilePath { get; set; }
///
/// 职位名
///
public string PositonName { get; set; }
///
/// 姓名(英文就是第一个名)
///
public string FirstName { get; set; }
///
/// 在职状态 1在职 0离职
///
public eJobType StaffStatus { get; set; }
///
/// 手机号
///
public string Telephone { get; set; }
///
/// 姓名(英文名,才会用到)
///
public string LastName { get; set; }
///
/// 登录时是否必须重置密码
///
public string RequirePasswordReset { get; set; }
///
/// 图纸上的签名
///
public string DrawSignal { get; set; }
///
/// 电子邮箱
///
public string Email { get; set; }
///
/// 登录用户
///
public UserLoginAccount LoginAccount { get; set; }
}
}