AIMS/AIMSEntity/ObjectQuery/QualityControlRecordMap.cs
2022-08-23 21:12:59 +08:00

56 lines
1.9 KiB
C#

using System;
using System.Collections;
using System.Collections.Generic;
namespace AIMSObjectQuery
{
internal partial class QualityControlRecordMap:IMap
{
private Dictionary<string, string> dictionary = new Dictionary<string, string>();
public QualityControlRecordMap()
{
dictionary.Add("id", "Id");
dictionary.Add("qcid", "QCId");
dictionary.Add("recordtime", "RecordTime");
dictionary.Add("departmentid", "DepartmentId");
dictionary.Add("departmentname", "DepartmentName");
dictionary.Add("patientname", "PatientName");
dictionary.Add("inpatientnumber", "InPatientNumber");
dictionary.Add("pointdeduction", "PointDeduction");
dictionary.Add("personliable", "PersonLiable");
dictionary.Add("remark", "Remark");
dictionary.Add("description", "Description");
dictionary.Add("operatorid", "OperatorId");
dictionary.Add("operatortime", "OperatorTime");
dictionary.Add("patientid", "PatientId");
dictionary.Add("operationapplyid", "OperationApplyId");
dictionary.Add("operationrecordid", "OperationRecordId");
dictionary.Add("personliableid", "PersonLiableId");
dictionary.Add("personliable1", "PersonLiable1");
dictionary.Add("personliable1id", "PersonLiable1Id");
dictionary.Add("operationname", "OperationName");
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
}
}