44 lines
1.1 KiB
C#
44 lines
1.1 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
|
|
namespace AIMSObjectQuery
|
|
{
|
|
internal partial class MedicamentPriceMap:IMap
|
|
{
|
|
private Dictionary<string, string> dictionary = new Dictionary<string, string>();
|
|
public MedicamentPriceMap()
|
|
{
|
|
dictionary.Add("id", "Id");
|
|
dictionary.Add("drugmanufacturerid", "DrugManufacturerId");
|
|
dictionary.Add("medicalitemid", "MedicalItemId");
|
|
dictionary.Add("purchaseprice", "PurchasePrice");
|
|
dictionary.Add("tradeprice", "TradePrice");
|
|
dictionary.Add("retailprice", "RetailPrice");
|
|
dictionary.Add("isvalid", "IsValid");
|
|
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
|
|
}
|
|
}
|