You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
1.6 KiB
Plaintext
63 lines
1.6 KiB
Plaintext
11 months ago
|
using System.Security.Cryptography;
|
||
|
using System;
|
||
|
using BP.En;
|
||
|
using BP.DA;
|
||
|
using System.Configuration;
|
||
|
using BP.Web;
|
||
|
|
||
|
namespace BP.Port
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// webUser 的副本
|
||
|
/// </summary>
|
||
|
public class WebUserCopy
|
||
|
{
|
||
|
#region 属性.
|
||
|
public string No = "";
|
||
|
public string Name = "";
|
||
|
public string DeptNo = "";
|
||
|
public string DeptName = "";
|
||
|
public string OrgNo = "";
|
||
|
public string OrgName = "";
|
||
|
#endregion 属性.
|
||
|
|
||
|
/// <summary>
|
||
|
/// webUser 的副本
|
||
|
/// </summary>
|
||
|
public WebUserCopy()
|
||
|
{
|
||
|
}
|
||
|
/// <summary>
|
||
|
/// 按人员初始化数据
|
||
|
/// </summary>
|
||
|
/// <param name="emp"></param>
|
||
|
public void LoadEmpEntity(Emp emp)
|
||
|
{
|
||
|
this.No = emp.No;
|
||
|
this.Name = emp.Name;
|
||
|
this.DeptNo = emp.FK_Dept;
|
||
|
this.DeptName = emp.FK_DeptText;
|
||
|
this.OrgNo = emp.OrgNo;
|
||
|
this.OrgName = emp.OrgNo;
|
||
|
}
|
||
|
public void LoadEmpNo(string empNo)
|
||
|
{
|
||
|
Emp emp = new Emp(empNo);
|
||
|
LoadEmpEntity(emp);
|
||
|
}
|
||
|
/// <summary>
|
||
|
/// 按webUser人员初始化数据
|
||
|
/// </summary>
|
||
|
/// <param name="emp"></param>
|
||
|
public void LoadWebUser()
|
||
|
{
|
||
|
this.No = WebUser.No;
|
||
|
this.Name = WebUser.Name;
|
||
|
this.DeptNo = WebUser.FK_Dept;
|
||
|
this.DeptName = WebUser.FK_DeptName;
|
||
|
this.OrgNo = WebUser.OrgNo;
|
||
|
this.OrgName = WebUser.OrgName;
|
||
|
}
|
||
|
}
|
||
|
}
|