From b35818c4107265e4e3f9ed488bc24158576ae95f Mon Sep 17 00:00:00 2001
From: lixiaojun <1287241240@qq.com>
Date: 星期一, 12 八月 2024 23:11:16 +0800
Subject: [PATCH] 新增属性组件列表控件

---
 WinFrmUI/HStation.WinFrmUI.Organize.Core/01-EmployeeViewModel/EmployeeViewModel.cs |   90 +++++++++++++++++++++++++++++++++++---------
 1 files changed, 71 insertions(+), 19 deletions(-)

diff --git a/WinFrmUI/HStation.WinFrmUI.Organize.Core/01-EmployeeViewModel/EmployeeViewModel.cs b/WinFrmUI/HStation.WinFrmUI.Organize.Core/01-EmployeeViewModel/EmployeeViewModel.cs
index 332cecf..d8c0819 100644
--- a/WinFrmUI/HStation.WinFrmUI.Organize.Core/01-EmployeeViewModel/EmployeeViewModel.cs
+++ b/WinFrmUI/HStation.WinFrmUI.Organize.Core/01-EmployeeViewModel/EmployeeViewModel.cs
@@ -1,29 +1,81 @@
-锘縰sing HStation.Dto;
+锘縰sing HStation.Vmo;
 
 namespace HStation.WinFrmUI.Organize
 {
-    public class EmployeeViewModel : EmployeeMainDto
+    public class EmployeeViewModel 
     {
         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;
+         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; } 
+
     }
 }
\ No newline at end of file

--
Gitblit v1.9.3