2023-10-20
This commit is contained in:
@@ -128,12 +128,12 @@ namespace FineUIPro.Web.CQMS.ProcessControl
|
||||
inspectionManagement.InspectionId = SQLHelper.GetNewID(typeof(Model.ProcessControl_InspectionManagement));
|
||||
this.hdInspectionNoticeId.Text = inspectionManagement.InspectionId;
|
||||
}
|
||||
var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == inspectionManagement.InspectionId);
|
||||
/*var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == inspectionManagement.InspectionId);
|
||||
if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
|
||||
{
|
||||
Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}*/
|
||||
|
||||
BLL.InspectionManagementService.AddInspectionManagement(inspectionManagement);
|
||||
}
|
||||
@@ -152,11 +152,11 @@ namespace FineUIPro.Web.CQMS.ProcessControl
|
||||
inspectionManagement.AttachUrl2 = oldInspectionManagement.AttachUrl2;
|
||||
inspectionManagement.InspectionId = this.hdInspectionNoticeId.Text.Trim();
|
||||
var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == inspectionManagement.InspectionId);
|
||||
if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
|
||||
/*if (sour == null || string.IsNullOrEmpty(sour.AttachUrl))
|
||||
{
|
||||
Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}*/
|
||||
BLL.InspectionManagementService.UpdateInspectionManagement(inspectionManagement);
|
||||
BLL.InspectionManagementDetailService.DeleteAllInspectionDetail(inspectionManagement.InspectionId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user