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