提交代码
This commit is contained in:
@@ -229,12 +229,6 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
this.hdAttachUrl.Text = inspectionMachone.InspectionMachineId;
|
||||
}
|
||||
|
||||
//var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == inspectionMachone.InspectionMachineId);
|
||||
//if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
|
||||
//{
|
||||
// Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
|
||||
// return;
|
||||
//}
|
||||
inspectionMachone.CompileMan = this.CurrUser.UserId;
|
||||
inspectionMachone.CompileDate = DateTime.Now;
|
||||
inspectionMachone.Status = BLL.Const.Comprehensive_Compile;
|
||||
@@ -243,12 +237,6 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
else
|
||||
{
|
||||
inspectionMachone.InspectionMachineId = this.InspectionMachineId;
|
||||
//var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.InspectionMachineId);
|
||||
//if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
|
||||
//{
|
||||
// Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
|
||||
// return;
|
||||
//}
|
||||
|
||||
var model = Funs.DB.Comprehensive_InspectionMachine.Where(u => u.InspectionMachineId == this.InspectionMachineId).FirstOrDefault();
|
||||
if (model != null)
|
||||
@@ -309,12 +297,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
this.hdAttachUrl.Text = inspectionMachone.InspectionMachineId;
|
||||
}
|
||||
|
||||
var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == inspectionMachone.InspectionMachineId);
|
||||
if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
|
||||
{
|
||||
Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
|
||||
inspectionMachone.CompileMan = this.CurrUser.UserId;
|
||||
inspectionMachone.CompileDate = DateTime.Now;
|
||||
inspectionMachone.Status = BLL.Const.Comprehensive_Audit;
|
||||
@@ -323,12 +306,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
else
|
||||
{
|
||||
inspectionMachone.InspectionMachineId = this.InspectionMachineId;
|
||||
var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.InspectionMachineId);
|
||||
if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
|
||||
{
|
||||
Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
|
||||
//BLL.InspectionMachineService.UpdateInspectionMachine(inspectionMachone);
|
||||
|
||||
var oldInspectionMachine = Funs.DB.Comprehensive_InspectionMachine.Where(u => u.InspectionMachineId == this.InspectionMachineId).FirstOrDefault();
|
||||
|
||||
Reference in New Issue
Block a user