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()); } } }