using System; using System.Collections; using System.Collections.Generic; namespace AIMSObjectQuery { internal partial class QualityControlRecordMap:IMap { private Dictionary dictionary = new Dictionary(); 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 } }