varitem=DAOHelp.GetDataBySQL<EnrollmentPatient>($@"SELECT * FROM Enrollment_Patient WHERE ID = {EId}");
if(item.Count!=0&&item[0].WeChatStatus!=0)
{
Global.Msg("info","微信预约体检者,不允许回撤!");
returnfalse;
}
varcheckCost=$@"UPDATE Enrollment_CheckCost SET SendTime = null, SenderCode = null, Sender = null WHERE EID = {EId} AND SendTime is not null AND DeleteTime is null AND WeChatCostTime is null";
varenrollmentPatient=$@"UPDATE Enrollment_Patient SET SignTime = null, SignerCode = null, Signer = null WHERE ID = {EId} AND SignTime is not null";
varenrollmentFeeItem=$@"UPDATE a SET a.IsSend = 0 FROM Enrollment_FeeItem a LEFT JOIN Enrollment_CheckCost b ON a.OrderNO = b.ID AND a.EID = b.EID WHERE b.SendTime IS NULL AND a.EID = {EId}";