提交代码
This commit is contained in:
@@ -208,12 +208,6 @@ 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;
|
||||
//}
|
||||
dataReceiving.CompileMan = this.CurrUser.UserId;
|
||||
dataReceiving.CompileDate = DateTime.Now;
|
||||
dataReceiving.Status = BLL.Const.Comprehensive_Audit;
|
||||
@@ -222,12 +216,6 @@ 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;
|
||||
//}
|
||||
|
||||
dataReceiving.Status = BLL.Const.Comprehensive_Audit;
|
||||
var model = Funs.DB.Comprehensive_DataReceiving.Where(u => u.DataReceivingId == this.DataReceivingId).FirstOrDefault();
|
||||
@@ -366,12 +354,6 @@ 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;
|
||||
}
|
||||
dataReceiving.CompileMan = this.CurrUser.UserId;
|
||||
dataReceiving.CompileDate = DateTime.Now;
|
||||
dataReceiving.Status = Const.Comprehensive_Compile;
|
||||
@@ -385,12 +367,6 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
{
|
||||
dataReceiving.Status = model.Status;
|
||||
}
|
||||
var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.DataReceivingId);
|
||||
if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
|
||||
{
|
||||
Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
BLL.DataReceivingService.UpdateDataReceiving(dataReceiving);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user