提交代码

This commit is contained in:
2024-04-09 10:35:27 +08:00
parent fac653cd8d
commit bfb7065085
14 changed files with 168 additions and 168 deletions
@@ -208,12 +208,12 @@ namespace FineUIPro.Web.CQMS.Comprehensive
dataReceiving.DataReceivingId = SQLHelper.GetNewID(typeof(Model.Comprehensive_DataReceiving));
this.hdAttachUrl.Text = dataReceiving.DataReceivingId;
}
var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == dataReceiving.DataReceivingId);
if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
{
Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
return;
}
//var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == dataReceiving.DataReceivingId);
//if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
//{
// Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
// return;
//}
dataReceiving.CompileMan = this.CurrUser.UserId;
dataReceiving.CompileDate = DateTime.Now;
dataReceiving.Status = BLL.Const.Comprehensive_Audit;
@@ -222,12 +222,12 @@ namespace FineUIPro.Web.CQMS.Comprehensive
else
{
dataReceiving.DataReceivingId = this.DataReceivingId;
var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.DataReceivingId);
if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
{
Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
return;
}
//var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.DataReceivingId);
//if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
//{
// Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
// return;
//}
dataReceiving.Status = BLL.Const.Comprehensive_Audit;
var model = Funs.DB.Comprehensive_DataReceiving.Where(u => u.DataReceivingId == this.DataReceivingId).FirstOrDefault();