48 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			48 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
| using System;
 | |
| using System.Collections;
 | |
| using System.Collections.Generic;
 | |
| 
 | |
| namespace AIMSObjectQuery
 | |
| {
 | |
|     internal partial class BloodGasAnalysisDictMap:IMap
 | |
| 	{
 | |
| 	    private Dictionary<string, string> dictionary = new Dictionary<string, string>();
 | |
|         public BloodGasAnalysisDictMap()
 | |
|         {
 | |
|         	dictionary.Add("id", "Id");
 | |
|         	dictionary.Add("name", "Name");
 | |
|         	dictionary.Add("ename", "EName");
 | |
|         	dictionary.Add("showname", "ShowName");
 | |
|         	dictionary.Add("tagname", "TagName");
 | |
|         	dictionary.Add("code", "Code");
 | |
|         	dictionary.Add("hcode", "HCode");
 | |
|         	dictionary.Add("highlimit", "HighLimit");
 | |
|         	dictionary.Add("lowlimit", "LowLimit");
 | |
|         	dictionary.Add("isshow", "IsShow");
 | |
|         	dictionary.Add("iswarning", "IsWarning");
 | |
|         	dictionary.Add("isvalid", "IsValid");
 | |
|         	dictionary.Add("orderby", "OrderBy");
 | |
|         	dictionary.Add("remark", "Remark");
 | |
|         }
 | |
| 
 | |
|         #region IMap 成员
 | |
| 
 | |
|         public string this[string propertyName]
 | |
|         {
 | |
|             get
 | |
| 			{ 
 | |
| 				try
 | |
| 				{
 | |
| 					return dictionary[propertyName.ToLower()]; 
 | |
| 				}
 | |
| 				catch (KeyNotFoundException)
 | |
| 				{
 | |
| 					throw new Exception(propertyName + "属性不存在");
 | |
| 				}
 | |
| 			}
 | |
|         }
 | |
| 
 | |
|         #endregion
 | |
| 	}
 | |
| }
 |