60 lines
1.8 KiB
C#
60 lines
1.8 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
|
|
namespace AIMSObjectQuery
|
|
{
|
|
internal partial class PersonMap:IMap
|
|
{
|
|
private Dictionary<string, string> dictionary = new Dictionary<string, string>();
|
|
public PersonMap()
|
|
{
|
|
dictionary.Add("id", "Id");
|
|
dictionary.Add("no", "No");
|
|
dictionary.Add("name", "Name");
|
|
dictionary.Add("helpcode", "HelpCode");
|
|
dictionary.Add("sex", "Sex");
|
|
dictionary.Add("password", "PassWord");
|
|
dictionary.Add("depid", "DepId");
|
|
dictionary.Add("roleid", "RoleId");
|
|
dictionary.Add("birthday", "BirthDay");
|
|
dictionary.Add("timetowork", "TimeToWork");
|
|
dictionary.Add("diploma", "Diploma");
|
|
dictionary.Add("jobtitle", "JobTitle");
|
|
dictionary.Add("persontype", "PersonType");
|
|
dictionary.Add("personorder", "PersonOrder");
|
|
dictionary.Add("isvalid", "IsValid");
|
|
dictionary.Add("operatorno", "OperatorNo");
|
|
dictionary.Add("operatorname", "OperatorName");
|
|
dictionary.Add("operatedate", "OperateDate");
|
|
dictionary.Add("hisno", "HisNo");
|
|
dictionary.Add("signaturestr", "SignatureStr");
|
|
dictionary.Add("signatureindex", "SignatureIndex");
|
|
dictionary.Add("extend1", "Extend1");
|
|
dictionary.Add("extend2", "Extend2");
|
|
dictionary.Add("extend3", "Extend3");
|
|
dictionary.Add("extend4", "Extend4");
|
|
dictionary.Add("extend5", "Extend5");
|
|
}
|
|
|
|
#region IMap 成员
|
|
|
|
public string this[string propertyName]
|
|
{
|
|
get
|
|
{
|
|
try
|
|
{
|
|
return dictionary[propertyName.ToLower()];
|
|
}
|
|
catch (KeyNotFoundException)
|
|
{
|
|
throw new Exception(propertyName + "属性不存在");
|
|
}
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|