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 @@
-
-
+ --%>
-
-