68 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			68 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
| using System;
 | |
| using System.Collections;
 | |
| using System.Collections.Generic;
 | |
| 
 | |
| namespace AIMSObjectQuery
 | |
| {
 | |
|     internal partial class OperationApplyMap:IMap
 | |
| 	{
 | |
| 	    private Dictionary<string, string> dictionary = new Dictionary<string, string>();
 | |
|         public OperationApplyMap()
 | |
|         {
 | |
|         	dictionary.Add("id", "Id");
 | |
|         	dictionary.Add("orispatientid", "Oris_PatientId");
 | |
|         	dictionary.Add("applydepid", "ApplyDepId");
 | |
|         	dictionary.Add("operationtype", "OperationType");
 | |
|         	dictionary.Add("orderoperationtime", "OrderOperationTime");
 | |
|         	dictionary.Add("operationtimeleight", "OperationTimeLeight");
 | |
|         	dictionary.Add("isreturnoperation", "IsReturnOperation");
 | |
|         	dictionary.Add("isplanreturnoperation", "IsPlanReturnOperation");
 | |
|         	dictionary.Add("isnotplanreturnoperation", "IsNotPlanReturnOperation");
 | |
|         	dictionary.Add("diagnoseremark", "DiagnoseRemark");
 | |
|         	dictionary.Add("operationremark", "OperationRemark");
 | |
|         	dictionary.Add("operationlevelid", "OperationLevelId");
 | |
|         	dictionary.Add("contagion", "Contagion");
 | |
|         	dictionary.Add("intern", "Intern");
 | |
|         	dictionary.Add("other", "Other");
 | |
|         	dictionary.Add("applytime", "ApplyTime");
 | |
|         	dictionary.Add("applyoperatorno", "ApplyOperatorNo");
 | |
|         	dictionary.Add("verifytime", "VerifyTime");
 | |
|         	dictionary.Add("verifyoperatorno", "VerifyOperatorNo");
 | |
|         	dictionary.Add("planoperationtime", "PlanOperationTime");
 | |
|         	dictionary.Add("planorder", "PlanOrder");
 | |
|         	dictionary.Add("operationroomid", "OperationRoomId");
 | |
|         	dictionary.Add("state", "State");
 | |
|         	dictionary.Add("asa", "ASA");
 | |
|         	dictionary.Add("heartfunctionlevel", "HeartFunctionLevel");
 | |
|         	dictionary.Add("isfasting", "IsFasting");
 | |
|         	dictionary.Add("remark", "Remark");
 | |
|         	dictionary.Add("operatorno", "OperatorNo");
 | |
|         	dictionary.Add("operatorname", "OperatorName");
 | |
|         	dictionary.Add("operatedate", "OperateDate");
 | |
|         	dictionary.Add("operationsite", "OperationSite");
 | |
|         	dictionary.Add("orderno", "OrderNo");
 | |
|         	dictionary.Add("medicalrecord", "MedicalRecord");
 | |
|         	dictionary.Add("medicalrecordtime", "MedicalRecordTime");
 | |
|         }
 | |
| 
 | |
|         #region IMap 成员
 | |
| 
 | |
|         public string this[string propertyName]
 | |
|         {
 | |
|             get
 | |
| 			{ 
 | |
| 				try
 | |
| 				{
 | |
| 					return dictionary[propertyName.ToLower()]; 
 | |
| 				}
 | |
| 				catch (KeyNotFoundException)
 | |
| 				{
 | |
| 					throw new Exception(propertyName + "属性不存在");
 | |
| 				}
 | |
| 			}
 | |
|         }
 | |
| 
 | |
|         #endregion
 | |
| 	}
 | |
| }
 |