From 7b944d66c55b2e9233ef2bb6de6b3c756bc070b6 Mon Sep 17 00:00:00 2001 From: 10191 <506754232@qq.com> Date: Sat, 30 May 2026 10:09:22 +0800 Subject: [PATCH] 11 --- .../DataImport/DrawingRecognition.aspx.cs | 3 +- .../DrawingRecognitionContent.aspx.cs | 49 ++++++------- .../HJGL/DataImport/PipelineInEdit.aspx | 54 ++++++++++----- .../HJGL/DataImport/PipelineInEdit.aspx.cs | 68 ++++++++++--------- .../PipelineInEdit.aspx.designer.cs | 9 +++ .../HJGL/InfoQuery/PipelineQuery.aspx | 8 +++ .../HJGL/InfoQuery/PipelineQuery.aspx.cs | 22 ++++++ .../InfoQuery/PipelineQuery.aspx.designer.cs | 18 +++++ .../HJGL/JoinMarking/PDFMarking.aspx.cs | 1 + 9 files changed, 158 insertions(+), 74 deletions(-) diff --git a/SGGL/FineUIPro.Web/HJGL/DataImport/DrawingRecognition.aspx.cs b/SGGL/FineUIPro.Web/HJGL/DataImport/DrawingRecognition.aspx.cs index 151ce14e..f35de17a 100644 --- a/SGGL/FineUIPro.Web/HJGL/DataImport/DrawingRecognition.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/DataImport/DrawingRecognition.aspx.cs @@ -3,8 +3,7 @@ using BLL; using BLL.Common; using NPOI.SS.Formula.Functions; -using Spire.Pdf; -using Spire.Pdf.Utilities; + using System; using System.Collections.Generic; diff --git a/SGGL/FineUIPro.Web/HJGL/DataImport/DrawingRecognitionContent.aspx.cs b/SGGL/FineUIPro.Web/HJGL/DataImport/DrawingRecognitionContent.aspx.cs index fc0e7289..bc5d7733 100644 --- a/SGGL/FineUIPro.Web/HJGL/DataImport/DrawingRecognitionContent.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/DataImport/DrawingRecognitionContent.aspx.cs @@ -370,29 +370,7 @@ namespace FineUIPro.Web.HJGL.DataIn dtOther.Rows.Add(row); } - // 遍历并提取数据 - foreach (JObject item in jArray) - { - var row = dt.NewRow(); - row["id"] = item.Value("id"); - row["pipe_no"] = item.Value("pipe_no"); - row["drawing_number"] = item.Value("drawing_number"); - - row["code"] = item.Value("code"); - row["seq_no"] = item.Value("seq_no"); - row["category"] = item.Value("category"); - row["description"] = item.Value("description"); - row["spec"] = item.Value("spec"); - row["qty"] = item.Value("qty"); - row["page_no"] = item.Value("page_no"); - row["remark"] = item.Value("remark"); - if (string.IsNullOrEmpty(row["drawing_number"].ToString())) - { - var rowOther = dtOther.Select("page= " + row["page_no"].ToString()).FirstOrDefault(); - row["drawing_number"] = rowOther["text"]; - } - dt.Rows.Add(row); - } + foreach (JObject item in jArrayIsoInfo) @@ -417,6 +395,31 @@ namespace FineUIPro.Web.HJGL.DataIn row["radiographic_examination"] = item.Value("radiographic_examination"); dtIsoInfo.Rows.Add(row); } + + // 遍历并提取数据 + foreach (JObject item in jArray) + { + var row = dt.NewRow(); + row["id"] = item.Value("id"); + row["pipe_no"] = item.Value("pipe_no"); + row["drawing_number"] = item.Value("drawing_number"); + + row["code"] = item.Value("code"); + row["seq_no"] = item.Value("seq_no"); + row["category"] = item.Value("category"); + row["description"] = item.Value("description"); + row["spec"] = item.Value("spec"); + row["qty"] = item.Value("qty"); + row["page_no"] = item.Value("page_no"); + row["remark"] = item.Value("remark"); + if (string.IsNullOrEmpty(row["drawing_number"].ToString())) + { + var rowOther = dtOther.Select("page= " + row["page_no"].ToString()).FirstOrDefault(); + row["drawing_number"] = rowOther["text"]; + } + dt.Rows.Add(row); + } + BindGrid(); } } diff --git a/SGGL/FineUIPro.Web/HJGL/DataImport/PipelineInEdit.aspx b/SGGL/FineUIPro.Web/HJGL/DataImport/PipelineInEdit.aspx index 5fbd3d02..4eb639de 100644 --- a/SGGL/FineUIPro.Web/HJGL/DataImport/PipelineInEdit.aspx +++ b/SGGL/FineUIPro.Web/HJGL/DataImport/PipelineInEdit.aspx @@ -48,84 +48,104 @@ --%> + + + + + + - - + + + - - + + + - - + + + - - + + + - + + - + + - + + - + + - - + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HJGL/DataImport/PipelineInEdit.aspx.cs b/SGGL/FineUIPro.Web/HJGL/DataImport/PipelineInEdit.aspx.cs index 17ff14d9..a3addd22 100644 --- a/SGGL/FineUIPro.Web/HJGL/DataImport/PipelineInEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/DataImport/PipelineInEdit.aspx.cs @@ -94,6 +94,7 @@ namespace FineUIPro.Web.HJGL.DataIn Base_TestMediumService.InitMediumDropDownList(this.drpLeakMedium, "2", true); Base_PurgeMethodService.InitPurgeMethodDropDownList(this.drpPCMedium, true, "-请选择-"); BLL.Base_MaterialService.InitMaterialDropDownList(this.drpMaterial, true, "请选择");//材质1 + UnitWorkService.InitUnitWorkDownList(drpUnitWork, this.CurrUser.LoginProjectId, true); Model.Project_Sys_Set pressUnit = BLL.Project_SysSetService.GetSysSetBySetId("8", this.CurrUser.LoginProjectId); if (pressUnit != null && pressUnit.SetValue == "2") @@ -186,19 +187,13 @@ namespace FineUIPro.Web.HJGL.DataIn { drpMaterial.SelectedValue = pipeline.MaterialId; } - } - else - { - this.UnitWorkId = Request.Params["UnitWorkId"]; - Model.WBS_UnitWork workArea = BLL.UnitWorkService.getUnitWorkByUnitWorkId(this.UnitWorkId); - BLL.UnitService.InitUnitDropDownListByUnitIds(this.drpUnit, workArea.UnitId, false);//单位 - if (workArea != null) + if (!string.IsNullOrEmpty(pipeline.UnitWorkId)) { - this.ProjectId = workArea.ProjectId; - //this.InstallationId = workArea.InstallationId; - + drpUnitWork.SelectedValue = pipeline.UnitWorkId; } + } + } } #endregion @@ -223,7 +218,6 @@ namespace FineUIPro.Web.HJGL.DataIn { SaveData(true); // 关闭本窗体,然后回发父窗体 - PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); } } @@ -242,34 +236,44 @@ namespace FineUIPro.Web.HJGL.DataIn pipeline.UnitId = drpUnit.SelectedValue; pipeline.UnitWorkId = this.UnitWorkId; pipeline.PipelineCode = this.txtPipelineCode.Text.Trim(); - if (this.drpDetectionRate.SelectedValue != BLL.Const._Null) - { - pipeline.DetectionRateId = this.drpDetectionRate.SelectedValue; - } - else - { - Alert.ShowInTop("请选择探伤比例!"); - return; - } + //if (this.drpDetectionRate.SelectedValue != BLL.Const._Null) + //{ + // pipeline.DetectionRateId = this.drpDetectionRate.SelectedValue; + //} + //else + //{ + // Alert.ShowInTop("请选择探伤比例!"); + // return; + //} - if (this.drpMedium.SelectedValue != BLL.Const._Null) + //if (this.drpMedium.SelectedValue != BLL.Const._Null) + //{ + // pipeline.MediumId = this.drpMedium.SelectedValue; + //} + //else + //{ + // Alert.ShowInTop("请选择介质!"); + // return; + //} + if (this.drpUnitWork.SelectedValue != BLL.Const._Null) { - pipeline.MediumId = this.drpMedium.SelectedValue; + pipeline.UnitWorkId = this.drpUnitWork.SelectedValue; } else { - Alert.ShowInTop("请选择介质!"); - return; - } - if (this.drpPipingClass.SelectedValue != BLL.Const._Null) - { - pipeline.PipingClassId = this.drpPipingClass.SelectedValue; - } - else - { - Alert.ShowInTop("请选择管线等级!"); + Alert.ShowInTop("请选择单位工程!"); return; } + + //if (this.drpPipingClass.SelectedValue != BLL.Const._Null) + //{ + // pipeline.PipingClassId = this.drpPipingClass.SelectedValue; + //} + //else + //{ + // Alert.ShowInTop("请选择管线等级!"); + // return; + //} if (this.drpTestMedium.SelectedValue != BLL.Const._Null) { diff --git a/SGGL/FineUIPro.Web/HJGL/DataImport/PipelineInEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/DataImport/PipelineInEdit.aspx.designer.cs index 9b67ca35..e83bd1c8 100644 --- a/SGGL/FineUIPro.Web/HJGL/DataImport/PipelineInEdit.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/HJGL/DataImport/PipelineInEdit.aspx.designer.cs @@ -104,6 +104,15 @@ namespace FineUIPro.Web.HJGL.DataIn /// protected global::FineUIPro.DropDownList drpUnit; + /// + /// drpUnitWork 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpUnitWork; + /// /// txtSingleName 控件。 /// diff --git a/SGGL/FineUIPro.Web/HJGL/InfoQuery/PipelineQuery.aspx b/SGGL/FineUIPro.Web/HJGL/InfoQuery/PipelineQuery.aspx index cd5fb01b..5871be27 100644 --- a/SGGL/FineUIPro.Web/HJGL/InfoQuery/PipelineQuery.aspx +++ b/SGGL/FineUIPro.Web/HJGL/InfoQuery/PipelineQuery.aspx @@ -76,6 +76,9 @@ + + @@ -213,6 +216,7 @@ FieldType="String" HeaderText="备注" HeaderTextAlign="Center" TextAlign="Left"> + @@ -246,6 +250,10 @@ Target="Parent" EnableResize="true" runat="server" IsModal="false" EnableDrag="false" AutoScroll="true" Width="800px" Height="600px"> +