AIMS/AIMSEntity/ObjectQuery/PrintDocumentUPMap.cs
2023-05-24 17:52:55 +08:00

47 lines
1.2 KiB
C#

using System;
using System.Collections;
using System.Collections.Generic;
namespace AIMSObjectQuery
{
internal partial class PrintDocumentUPMap:IMap
{
private Dictionary<string, string> dictionary = new Dictionary<string, string>();
public PrintDocumentUPMap()
{
dictionary.Add("id", "Id");
dictionary.Add("patientid", "PatientId");
dictionary.Add("applyid", "ApplyId");
dictionary.Add("recorid", "RecorId");
dictionary.Add("recoverid", "RecoverId");
dictionary.Add("documentid", "DocumentId");
dictionary.Add("documentname", "DocumentName");
dictionary.Add("isupload", "IsUpload");
dictionary.Add("operatorid", "OperatorId");
dictionary.Add("operatortime", "OperatorTime");
dictionary.Add("remark", "Remark");
dictionary.Add("remark2", "Remark2");
dictionary.Add("remark3", "Remark3");
}
#region IMap
public string this[string propertyName]
{
get
{
try
{
return dictionary[propertyName.ToLower()];
}
catch (KeyNotFoundException)
{
throw new Exception(propertyName + "属性不存在");
}
}
}
#endregion
}
}