From 518e3e71488c644b5207b1712fa3c09b99b6c4db Mon Sep 17 00:00:00 2001
From: wendy <408182087@qq.com>
Date: Thu, 12 Mar 2026 15:07:40 +0800
Subject: [PATCH] =?UTF-8?q?20260312=20=E9=98=80=E9=97=A8=E6=A3=80=E9=AA=8C?=
=?UTF-8?q?=E3=80=81=E8=AF=95=E9=AA=8C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../JGZL/ValveInspectionTestRecordService.cs | 14 +-
.../JGZL/ValveTestConfirmationFormService.cs | 15 +
.../File/Fastreport/JGZL/阀门检验试验记录.frx | 47 ++-
.../File/Fastreport/JGZL/阀门试验确认表.frx | 4 +-
.../JGZL/MeasuringInstruments.aspx.cs | 3 +-
.../JGZL/ValveInspectionTestRecord.aspx | 122 +++---
.../JGZL/ValveInspectionTestRecord.aspx.cs | 263 +++++++------
...ValveInspectionTestRecord.aspx.designer.cs | 180 +++++++--
.../JGZL/ValveTestConfirmationForm.aspx | 81 ++--
.../JGZL/ValveTestConfirmationForm.aspx.cs | 350 +++++++++++++-----
...ValveTestConfirmationForm.aspx.designer.cs | 144 +++++--
11 files changed, 853 insertions(+), 370 deletions(-)
diff --git a/HJGL_DS/BLL/JGZL/ValveInspectionTestRecordService.cs b/HJGL_DS/BLL/JGZL/ValveInspectionTestRecordService.cs
index 2362b2f..f9861e3 100644
--- a/HJGL_DS/BLL/JGZL/ValveInspectionTestRecordService.cs
+++ b/HJGL_DS/BLL/JGZL/ValveInspectionTestRecordService.cs
@@ -1,4 +1,5 @@
-using Model;
+using FastReport.DevComponents.DotNetBar;
+using Model;
using System.Linq;
namespace BLL
@@ -94,5 +95,16 @@ namespace BLL
db.SubmitChanges();
}
}
+
+ public static void DeleteListByProjectId(string projectId)
+ {
+ SGGLDB db = Funs.DB;
+ var q = (from x in db.JGZL_ValveInspectionTestRecord where x.ProjectId == projectId select x).ToList();
+ if (q.Count > 0)
+ {
+ db.JGZL_ValveInspectionTestRecord.DeleteAllOnSubmit(q);
+ db.SubmitChanges();
+ }
+ }
}
}
diff --git a/HJGL_DS/BLL/JGZL/ValveTestConfirmationFormService.cs b/HJGL_DS/BLL/JGZL/ValveTestConfirmationFormService.cs
index f198850..be3c234 100644
--- a/HJGL_DS/BLL/JGZL/ValveTestConfirmationFormService.cs
+++ b/HJGL_DS/BLL/JGZL/ValveTestConfirmationFormService.cs
@@ -86,5 +86,20 @@ namespace BLL
db.SubmitChanges();
}
}
+
+ ///
+ /// 根据项目Id删除阀门试验确认表
+ ///
+ ///
+ public static void DeleteListByProjectId(string projectId)
+ {
+ SGGLDB db = Funs.DB;
+ var q = (from x in db.JGZL_ValveTestConfirmationForm where x.ProjectId == projectId select x).ToList();
+ if (q.Count>0)
+ {
+ db.JGZL_ValveTestConfirmationForm.DeleteAllOnSubmit(q);
+ db.SubmitChanges();
+ }
+ }
}
}
diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/阀门检验试验记录.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/阀门检验试验记录.frx
index 977df20..79aa0b7 100644
--- a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/阀门检验试验记录.frx
+++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/阀门检验试验记录.frx
@@ -1,7 +1,48 @@
-
+
+ using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Windows.Forms;
+using System.Drawing;
+using System.Data;
+using FastReport;
+using FastReport.Data;
+using FastReport.Dialog;
+using FastReport.Barcode;
+using FastReport.Table;
+using FastReport.Utils;
+
+namespace FastReport
+{
+ public class ReportScript
+ {
+
+ private void Table3_ManualBuild(object sender, EventArgs e)
+ {
+ DataSourceBase rowData = Report.GetDataSource("Data");
+ // init the data source
+ rowData.Init();
+
+ // print the first table row - it is a header
+
+ // now enumerate the data source and print the table body
+ while (rowData.HasMoreRows)
+ {
+ // print the table body
+ Table3.PrintRow(0);
+ Table3.PrintColumns();
+
+ // go next data source row
+ rowData.Next();
+ }
+ }
+ }
+}
+
-
+
@@ -101,7 +142,7 @@
-
+
diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/阀门试验确认表.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/阀门试验确认表.frx
index 73bbd62..b039257 100644
--- a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/阀门试验确认表.frx
+++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/阀门试验确认表.frx
@@ -1,5 +1,5 @@
-
+
using System;
using System.Collections;
using System.Collections.Generic;
@@ -42,7 +42,7 @@ namespace FastReport
}
-
+
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/MeasuringInstruments.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/MeasuringInstruments.aspx.cs
index b3e037d..4f21b1a 100644
--- a/HJGL_DS/FineUIPro.Web/JGZL/MeasuringInstruments.aspx.cs
+++ b/HJGL_DS/FineUIPro.Web/JGZL/MeasuringInstruments.aspx.cs
@@ -200,8 +200,9 @@ namespace FineUIPro.Web.JGZL
///
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
{
- this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
+ this.ProjectId = this.drpProjectId.SelectedValue;
this.InitTreeMenu();
+ this.tvControlItem.SelectedNodeID = this.ProjectId;
BindGrid();
}
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/ValveInspectionTestRecord.aspx b/HJGL_DS/FineUIPro.Web/JGZL/ValveInspectionTestRecord.aspx
index d88f52e..6fffc6a 100644
--- a/HJGL_DS/FineUIPro.Web/JGZL/ValveInspectionTestRecord.aspx
+++ b/HJGL_DS/FineUIPro.Web/JGZL/ValveInspectionTestRecord.aspx
@@ -40,6 +40,7 @@
+
@@ -51,71 +52,118 @@
EnableColumnLines="true" ClicksToEdit="1" DataIDField="RecordId" AllowSorting="true"
SortField="Code" SortDirection="DESC" OnSort="Grid1_Sort" AllowPaging="true"
IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange"
- EnableTextSelection="True" AutoScroll="true" EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick">
+ EnableTextSelection="True" AutoScroll="true" OnPreDataBound="Grid1_PreDataBound">
-
-
+ FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
+
+
+
+ FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
+
+
+
+
+
+
+
+
+ FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="90px">
+
+
+
+ FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="90px">
+
+
+
-
+
+
+
+
-
+
+
+
+
+ FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="90px">
+
+
+
-
+
+
+
+
-
+
+
+
+
+ FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="90px">
+
+
+
-
+
+
+
+
-
+
+
+
+
+ FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
+
+
+
+ FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
+
+
+
+
+
+
-
-
-
@@ -134,30 +182,10 @@
-
-
-
-