提交代码
This commit is contained in:
@@ -274,12 +274,12 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
dataReceivingDoc.DataReceivingDocId = SQLHelper.GetNewID(typeof(Model.Comprehensive_DataReceivingDoc));
|
||||
this.hdAttachUrl.Text = dataReceivingDoc.DataReceivingDocId;
|
||||
}
|
||||
var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == dataReceivingDoc.DataReceivingDocId);
|
||||
if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
|
||||
{
|
||||
Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
//var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == dataReceivingDoc.DataReceivingDocId);
|
||||
//if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
|
||||
//{
|
||||
// Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
|
||||
// return;
|
||||
//}
|
||||
dataReceivingDoc.CompileMan = this.CurrUser.UserId;
|
||||
dataReceivingDoc.CompileDate = DateTime.Now;
|
||||
dataReceivingDoc.Status = BLL.Const.Comprehensive_Compile;
|
||||
@@ -298,12 +298,12 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
{
|
||||
dataReceivingDoc.Status = BLL.Const.Comprehensive_Compile;
|
||||
}
|
||||
var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.DataReceivingDocId);
|
||||
if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
|
||||
{
|
||||
Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
//var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.DataReceivingDocId);
|
||||
//if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
|
||||
//{
|
||||
// Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
|
||||
// return;
|
||||
//}
|
||||
BLL.DataReceivingDocService.UpdateDataReceivingDoc(dataReceivingDoc);
|
||||
}
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
|
||||
Reference in New Issue
Block a user