using System; using System.Collections; using System.Collections.Generic; namespace AIMSObjectQuery { internal partial class OperationGoodsBillRecordMap:IMap { private Dictionary dictionary = new Dictionary(); public OperationGoodsBillRecordMap() { dictionary.Add("id", "Id"); dictionary.Add("operationrecordid", "OperationRecordId"); dictionary.Add("applianceusetype", "ApplianceUseType"); dictionary.Add("bloodtype", "BloodType"); dictionary.Add("erythrocyte", "Erythrocyte"); dictionary.Add("platelet", "Platelet"); dictionary.Add("plateletunit", "PlateletUnit"); dictionary.Add("plasma", "Plasma"); dictionary.Add("other", "Other"); dictionary.Add("autoblood", "Autoblood"); dictionary.Add("infusionlocation", "InfusionLocation"); dictionary.Add("liquid", "Liquid"); dictionary.Add("tourniquetbegintime", "TourniquetBeginTime"); dictionary.Add("tourniquetendtime", "TourniquetEndTime"); dictionary.Add("tourniquetlocation", "TourniquetLocation"); dictionary.Add("specimen", "Specimen"); dictionary.Add("specimennumber", "SpecimenNumber"); dictionary.Add("tofreeze", "ToFreeze"); dictionary.Add("topathology", "ToPathology"); dictionary.Add("toroom", "ToRoom"); dictionary.Add("nottotest", "NotToTest"); dictionary.Add("negativeplatelocation", "NegativePlateLocation"); dictionary.Add("doctorsign", "DoctorSign"); dictionary.Add("remark", "Remark"); dictionary.Add("invasivescreening", "InvasiveScreening"); dictionary.Add("scrubnurse", "ScrubNurse"); dictionary.Add("scrubnursesucceed", "ScrubNurseSucceed"); dictionary.Add("scrubsucceedtime", "ScrubSucceedTime"); dictionary.Add("tournurse", "TourNurse"); dictionary.Add("tournursesucceed", "TourNurseSucceed"); dictionary.Add("toursucceedtime", "TourSucceedTime"); dictionary.Add("colddeposit", "ColdDeposit"); } #region IMap 成员 public string this[string propertyName] { get { try { return dictionary[propertyName.ToLower()]; } catch (KeyNotFoundException) { throw new Exception(propertyName + "属性不存在"); } } } #endregion } }