AIMS/AIMSEntity/DAL/Extension/DOperationApply.cs
2022-08-23 21:12:59 +08:00

28 lines
873 B
C#

using System;
using System.Data;
using System.Data.SqlClient;
using System.Collections;
using System.Collections.Generic;
using AIMSModel;
using AIMSObjectQuery;
using HelperDB;
namespace AIMSDAL
{
internal partial class DOperationApply
{
public static int SaveDoctorByRommTime(string DoctorNuresName, DateTime SearchTime, int CurrentRoom)
{
try
{
string sql = string.Format(@"update OperationApply set {0} where state in(1,2,3) and PlanOperationTime<'" + SearchTime.ToString("yyyy-MM-dd 23:59:59") + "' and PlanOperationTime>'" + SearchTime.ToString("yyyy-MM-dd 00:00:00") + "' and OperationRoomId =" + CurrentRoom, DoctorNuresName);
return DBHelper.ExecNonQuery(sql);
}
catch (Exception)
{
return 0;
}
}
}
}