41 lines
972 B
C#
41 lines
972 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
|
|
namespace AIMSObjectQuery
|
|
{
|
|
internal partial class QualityControlConfigMap:IMap
|
|
{
|
|
private Dictionary<string, string> dictionary = new Dictionary<string, string>();
|
|
public QualityControlConfigMap()
|
|
{
|
|
dictionary.Add("id", "Id");
|
|
dictionary.Add("qcid", "QCId");
|
|
dictionary.Add("qciid", "QCIId");
|
|
dictionary.Add("viewcolwidth", "ViewColWidth");
|
|
dictionary.Add("excelcolname", "ExcelColName");
|
|
dictionary.Add("morderby", "MOrderBy");
|
|
dictionary.Add("viewmodel", "ViewModel");
|
|
}
|
|
|
|
#region IMap 成员
|
|
|
|
public string this[string propertyName]
|
|
{
|
|
get
|
|
{
|
|
try
|
|
{
|
|
return dictionary[propertyName.ToLower()];
|
|
}
|
|
catch (KeyNotFoundException)
|
|
{
|
|
throw new Exception(propertyName + "属性不存在");
|
|
}
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|