28 lines
873 B
C#
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;
|
|
}
|
|
}
|
|
}
|
|
}
|