43 lines
1.0 KiB
C#
43 lines
1.0 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
|
|
namespace AIMSObjectQuery
|
|
{
|
|
internal partial class KBITEMMap:IMap
|
|
{
|
|
private Dictionary<string, string> dictionary = new Dictionary<string, string>();
|
|
public KBITEMMap()
|
|
{
|
|
dictionary.Add("itemseq", "ITEM_SEQ");
|
|
dictionary.Add("kbseq", "KB_SEQ");
|
|
dictionary.Add("itemtext", "ITEM_TEXT");
|
|
dictionary.Add("itemvalue", "ITEM_VALUE");
|
|
dictionary.Add("listindex", "LISTINDEX");
|
|
dictionary.Add("itemstyle", "ITEM_STYLE");
|
|
dictionary.Add("isvalid", "IsValid");
|
|
dictionary.Add("operatorno", "OperatorNo");
|
|
dictionary.Add("operatedate", "OperateDate");
|
|
}
|
|
|
|
#region IMap 成员
|
|
|
|
public string this[string propertyName]
|
|
{
|
|
get
|
|
{
|
|
try
|
|
{
|
|
return dictionary[propertyName.ToLower()];
|
|
}
|
|
catch (KeyNotFoundException)
|
|
{
|
|
throw new Exception(propertyName + "属性不存在");
|
|
}
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|