42 lines
981 B
C#
42 lines
981 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
|
|
namespace AIMSObjectQuery
|
|
{
|
|
internal partial class StockPileMap:IMap
|
|
{
|
|
private Dictionary<string, string> dictionary = new Dictionary<string, string>();
|
|
public StockPileMap()
|
|
{
|
|
dictionary.Add("id", "Id");
|
|
dictionary.Add("depid", "DepId");
|
|
dictionary.Add("itemid", "ItemId");
|
|
dictionary.Add("amount", "Amount");
|
|
dictionary.Add("barcode", "BarCode");
|
|
dictionary.Add("batchno", "BatchNo");
|
|
dictionary.Add("disabledate", "DisableDate");
|
|
dictionary.Add("isvalid", "IsValid");
|
|
}
|
|
|
|
#region IMap 成员
|
|
|
|
public string this[string propertyName]
|
|
{
|
|
get
|
|
{
|
|
try
|
|
{
|
|
return dictionary[propertyName.ToLower()];
|
|
}
|
|
catch (KeyNotFoundException)
|
|
{
|
|
throw new Exception(propertyName + "属性不存在");
|
|
}
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|