50 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			50 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
| using System;
 | |
| using AIMSDAL;
 | |
| using AIMSModel;
 | |
| using AIMSObjectQuery;
 | |
| using System.Collections;
 | |
| using System.Collections.Generic;
 | |
| using System.Data;
 | |
| 
 | |
| namespace AIMSBLL
 | |
| {
 | |
|     public partial class BOperationRoom
 | |
|     {
 | |
|         public static void Add(OperationRoom OperationRoomObj)
 | |
|         {
 | |
|             DOperationRoom.Add(OperationRoomObj);
 | |
|         }
 | |
| 
 | |
| 
 | |
|         public static OperationRoom GetModel(int Id)
 | |
|         {
 | |
|             return DOperationRoom.GetModel(Id);
 | |
|         }
 | |
| 
 | |
|         public static DataTable GetDataTable(string strWhere)
 | |
|         {
 | |
|             return DOperationRoom.GetDataTable(strWhere);
 | |
|         }
 | |
|         public static List<OperationRoom> GetOperationRooms(string strWhere)
 | |
|         {
 | |
|             return DOperationRoom.GetOperationRooms(strWhere);
 | |
|         }
 | |
|         public static int GetOperationRoomIdByName(string Name)
 | |
|         {
 | |
|             return DOperationRoom.GetOperationRoomIdByName(Name);
 | |
|         }
 | |
|         public static List<string> GetOperationSite()
 | |
|         {
 | |
|             List<string> list = new List<string>();
 | |
|             list.Add("");
 | |
|             string strSql = "SELECT Site FROM OperationRoom where Site<>'恢复室' group by Site";
 | |
|             DataTable dt = HelperDB.DbHelperSQL.GetDataTable(strSql);
 | |
|             foreach (DataRow item in dt.Rows)
 | |
|             {
 | |
|                 list.Add(item[0].ToString());
 | |
|             }
 | |
|             return list;
 | |
|         }
 | |
|     }
 | |
| }
 |