AIMS/AIMSEntity/Extensions/BNotesRecords.cs
leomon 01fecc622d 速度改为范围填写
药品变成下 再点击变成空
择期急诊必填
2023-05-17 18:16:01 +08:00

36 lines
1.6 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Xml;
using AIMSModel;
using HelperDB;
using DrawGraph;
using AIMSExtension;
namespace AIMSBLL
{
public class BNotesRecords
{
public static DataTable GetMonthDayTable(string beginTime, string endTime)
{
string strSql = " select DATEADD(dd,number,'" + beginTime + "') [RecordTime] from master..spt_values where type='p' and DATEDIFF(dd,DATEADD(dd,number,'" + beginTime + "'),CONVERT(varchar(10),'" + endTime + "',120))>0";
return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
}
public static DataTable GetMonthDayTable2(string beginTime, string endTime)
{
string strSql = "SELECT distinct [OpeDAY] , [AnesthesiaDoctor] FROM [AIMSDB_DLSJZQZYYY].[dbo].[V_OperationRecordInfo] where RecoverId =1 and [State] in('手术结束','麻醉复苏结束') and AnesthesiaDoctor is not null and InRoomTime>='" + beginTime + "' and InRoomTime<'" + endTime + "' ";
return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
}
public static DataTable GetMonthDayTable3(string beginTime, string endTime)
{
string strSql = "SELECT distinct [OpeDAY] ,[AnesthesiaDoctor],operationroom FROM [AIMSDB_DLSJZQZYYY].[dbo].[V_OperationRecordInfo] where RecoverId =1 and [State] in('手术结束','麻醉复苏结束') and AnesthesiaDoctor is not null and InRoomTime>='" + beginTime + "' and InRoomTime<'" + endTime + "' ";
return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
}
}
}