2023-10-20
This commit is contained in:
@@ -60,7 +60,7 @@
|
||||
EnableMultiSelect="true">
|
||||
</f:DropDownList>
|
||||
<%-- <f:TextBox runat="server" ID="txtAcceptanceCheckMan" Label="检查人" LabelAlign="Right" LabelWidth="130px" ></f:TextBox>--%>
|
||||
<f:Label ID="Label1" runat="server" Label="上传附件" ShowRedStar="true"
|
||||
<f:Label ID="Label1" runat="server" Label="上传附件"
|
||||
LabelWidth="130px" LabelAlign="Right" >
|
||||
</f:Label>
|
||||
<f:Button ID="btnAttach" Icon="TableCell" EnablePostBack="true" Text="附件" runat="server" OnClick="btnAttach_Click" >
|
||||
|
||||
@@ -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