47 lines
1.3 KiB
C#
47 lines
1.3 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
|
|
namespace AIMSObjectQuery
|
|
{
|
|
internal partial class FactOutputLiquidsMap:IMap
|
|
{
|
|
private Dictionary<string, string> dictionary = new Dictionary<string, string>();
|
|
public FactOutputLiquidsMap()
|
|
{
|
|
dictionary.Add("id", "Id");
|
|
dictionary.Add("patientid", "PatientId");
|
|
dictionary.Add("outputliquidstypeid", "OutputLiquidsTypeId");
|
|
dictionary.Add("outputliquidsid", "OutputLiquidsId");
|
|
dictionary.Add("begintime", "BeginTime");
|
|
dictionary.Add("endtime", "EndTime");
|
|
dictionary.Add("dosage", "Dosage");
|
|
dictionary.Add("dosageunit", "DosageUnit");
|
|
dictionary.Add("iscontinue", "IsContinue");
|
|
dictionary.Add("remark", "Remark");
|
|
dictionary.Add("operatorno", "OperatorNo");
|
|
dictionary.Add("operatorname", "OperatorName");
|
|
dictionary.Add("operatedate", "OperateDate");
|
|
}
|
|
|
|
#region IMap 成员
|
|
|
|
public string this[string propertyName]
|
|
{
|
|
get
|
|
{
|
|
try
|
|
{
|
|
return dictionary[propertyName.ToLower()];
|
|
}
|
|
catch (KeyNotFoundException)
|
|
{
|
|
throw new Exception(propertyName + "属性不存在");
|
|
}
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|