57 lines
1.7 KiB
C#
57 lines
1.7 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<>'恢复室' order by RoomOrder";
|
|
DataTable dt = HelperDB.DbHelperSQL.GetDataTable(strSql);
|
|
foreach (DataRow item in dt.Rows)
|
|
{
|
|
string room = item[0].ToString();
|
|
if (!list.Contains(room))
|
|
list.Add(item[0].ToString());
|
|
}
|
|
//判断角色权限有介入手术手术地点显示增加介入手术地点
|
|
//foreach (string item in AIMSExtension.PublicMethod.RoleName)
|
|
//{
|
|
// list.Add(item[0].ToString());
|
|
//}
|
|
return list;
|
|
}
|
|
}
|
|
}
|