From 41e293d58630d4f4ec22dff6b6e385e86242cd4c Mon Sep 17 00:00:00 2001
From: wendy <408182087@qq.com>
Date: Wed, 11 Mar 2026 17:28:38 +0800
Subject: [PATCH] =?UTF-8?q?20260311=20=E7=AE=A1=E9=81=93=E9=9D=99=E7=94=B5?=
=?UTF-8?q?=E6=8E=A5=E5=9C=B0=E6=B5=8B=E8=AF=95=E8=AE=B0=E5=BD=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../BLL/JGZL/ElectrostaticGroundingService.cs | 22 +
.../Fastreport/JGZL/管道静电接地测试记录.frx | 47 +-
.../JGZL/ElectrostaticGrounding.aspx | 97 +--
.../JGZL/ElectrostaticGrounding.aspx.cs | 556 ++++++++++++------
.../ElectrostaticGrounding.aspx.designer.cs | 139 +++--
.../JGZL/InsulationAcceptanceRecord.aspx | 9 +-
.../JGZL/InsulationAcceptanceRecord.aspx.cs | 16 +-
...nsulationAcceptanceRecord.aspx.designer.cs | 9 -
8 files changed, 601 insertions(+), 294 deletions(-)
diff --git a/HJGL_DS/BLL/JGZL/ElectrostaticGroundingService.cs b/HJGL_DS/BLL/JGZL/ElectrostaticGroundingService.cs
index 1700140..b72933a 100644
--- a/HJGL_DS/BLL/JGZL/ElectrostaticGroundingService.cs
+++ b/HJGL_DS/BLL/JGZL/ElectrostaticGroundingService.cs
@@ -4,6 +4,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
+using System.Web.UI.WebControls;
namespace BLL
{
@@ -22,6 +23,16 @@ namespace BLL
return Funs.DB.JGZL_ElectrostaticGrounding.FirstOrDefault(e => e.ElectrostaticGroundingId == electrostaticGroundingId);
}
+ ///
+ /// 获取管道静电接地测试记录列表记录
+ ///
+ ///
+ ///
+ public static List GetElectrostaticGroundingLists(string projectId)
+ {
+ return (from x in Funs.DB.JGZL_ElectrostaticGrounding where x.ProjectId == projectId select x).ToList();
+ }
+
///
/// 添加
///
@@ -84,5 +95,16 @@ namespace BLL
db.SubmitChanges();
}
}
+
+ public static void DeleteDeleteElectrostaticGroundingByProjectId(string projectId)
+ {
+ SGGLDB db = Funs.DB;
+ var report = (from x in db.JGZL_ElectrostaticGrounding where x.ProjectId == projectId select x).ToList();
+ if (report.Count > 0)
+ {
+ db.JGZL_ElectrostaticGrounding.DeleteAllOnSubmit(report);
+ db.SubmitChanges();
+ }
+ }
}
}
diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管道静电接地测试记录.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管道静电接地测试记录.frx
index 8cfd38a..11d2d80 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();
+ }
+ }
+ }
+}
+
-
+
@@ -84,7 +125,7 @@
-
+
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/ElectrostaticGrounding.aspx b/HJGL_DS/FineUIPro.Web/JGZL/ElectrostaticGrounding.aspx
index 0fbc327..4ce85a9 100644
--- a/HJGL_DS/FineUIPro.Web/JGZL/ElectrostaticGrounding.aspx
+++ b/HJGL_DS/FineUIPro.Web/JGZL/ElectrostaticGrounding.aspx
@@ -37,12 +37,14 @@
-
+ <%--
-
+ --%>
+
+
@@ -54,42 +56,75 @@
EnableColumnLines="true" ClicksToEdit="1" DataIDField="ElectrostaticGroundingId" AllowSorting="true"
SortField="CompileDate" 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="260px">
+
+
+
-
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
+
-
-
-
@@ -108,30 +143,14 @@
-
-
+ --%>
-
-