20260924 焊条烘烤记录

This commit is contained in:
2026-09-24 14:00:51 +08:00
parent 2b3539cd85
commit e69276ce48
14 changed files with 2522 additions and 38 deletions
@@ -0,0 +1,126 @@
insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuModule)
values('BC7616E5-E6B2-4C32-A3C4-8B2877B73DD0','工业管道安装汇总表(舟山特检院要求表)','JGZL/IndustrialInstallationSummaryZhoushan.aspx',52,'2A84FA58-8B20-48ED-A621-3EC98CF4AD28','3')
go
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
values('7D9788EA-5015-4C75-9345-6413C5CE31B7','BC7616E5-E6B2-4C32-A3C4-8B2877B73DD0','增加',1)
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
values('4F1EFB19-F2B0-45FA-A23D-E099B0F349C6','BC7616E5-E6B2-4C32-A3C4-8B2877B73DD0','修改',2)
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
values('987AB25A-D7ED-4955-B871-21CD85B75282','BC7616E5-E6B2-4C32-A3C4-8B2877B73DD0','删除',3)
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
values('868F695F-2963-49AE-A479-4E6BCB90B061','BC7616E5-E6B2-4C32-A3C4-8B2877B73DD0','提交',4)
go
CREATE TABLE [dbo].[JGZL_IndustrialInstallationSummaryZhoushan](
[SummaryId] [nvarchar](50) NOT NULL,
[ProjectId] [nvarchar](50) NULL,
[InstallationName] [nvarchar](50) NULL,
[TestPackageCode] [nvarchar](50) NULL,
[PipelineName] [nvarchar](50) NULL,
[PipelineCode] [nvarchar](50) NULL,
[PipelineLevel] [nvarchar](50) NULL,
[Material] [nvarchar](50) NULL,
[Medium] [nvarchar](50) NULL,
[Diameter] [decimal](18, 2) NULL,
[WallThickness] [decimal](18, 2) NULL,
[PipelineLength] [decimal](18, 2) NULL,
[WeldJointsCount] [int] NULL,
[PipeFittings] [int] NULL,
[StartPoint] [nvarchar](50) NULL,
[EndPoint] [nvarchar](50) NULL,
[DesignTemperature] [decimal](18, 2) NULL,
[DesignPressure] [decimal](18, 2) NULL,
[OperatingTemperature] [decimal](18, 2) NULL,
[OperatingPressure] [decimal](18, 2) NULL,
[PressureTestMedium] [nvarchar](50) NULL,
[PressureTestPressure] [decimal](18, 2) NULL,
[TestDate] [datetime] NULL,
CONSTRAINT [PK_JGZL_IndustrialInstallationSummaryZhoushan] PRIMARY KEY CLUSTERED
(
[SummaryId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[JGZL_IndustrialInstallationSummaryZhoushan] WITH CHECK ADD CONSTRAINT [FK_JGZL_IndustrialInstallationSummaryZhoushan_Base_Project] FOREIGN KEY([ProjectId])
REFERENCES [dbo].[Base_Project] ([ProjectId])
GO
ALTER TABLE [dbo].[JGZL_IndustrialInstallationSummaryZhoushan] CHECK CONSTRAINT [FK_JGZL_IndustrialInstallationSummaryZhoushan_Base_Project]
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialInstallationSummaryZhoushan', @level2type=N'COLUMN',@level2name=N'SummaryId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialInstallationSummaryZhoushan', @level2type=N'COLUMN',@level2name=N'ProjectId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'装置(管道)名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialInstallationSummaryZhoushan', @level2type=N'COLUMN',@level2name=N'InstallationName'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'试压包编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialInstallationSummaryZhoushan', @level2type=N'COLUMN',@level2name=N'TestPackageCode'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'管道名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialInstallationSummaryZhoushan', @level2type=N'COLUMN',@level2name=N'PipelineName'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'管道编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialInstallationSummaryZhoushan', @level2type=N'COLUMN',@level2name=N'PipelineCode'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'管道级别' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialInstallationSummaryZhoushan', @level2type=N'COLUMN',@level2name=N'PipelineLevel'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'材质' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialInstallationSummaryZhoushan', @level2type=N'COLUMN',@level2name=N'Material'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'介质' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialInstallationSummaryZhoushan', @level2type=N'COLUMN',@level2name=N'Medium'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'公称直径(mm)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialInstallationSummaryZhoushan', @level2type=N'COLUMN',@level2name=N'Diameter'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'公称壁厚(mm)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialInstallationSummaryZhoushan', @level2type=N'COLUMN',@level2name=N'WallThickness'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'管道长度(m)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialInstallationSummaryZhoushan', @level2type=N'COLUMN',@level2name=N'PipelineLength'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'焊口总数(个)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialInstallationSummaryZhoushan', @level2type=N'COLUMN',@level2name=N'WeldJointsCount'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'管件数量(个)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialInstallationSummaryZhoushan', @level2type=N'COLUMN',@level2name=N'PipeFittings'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'起点' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialInstallationSummaryZhoushan', @level2type=N'COLUMN',@level2name=N'StartPoint'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'终点' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialInstallationSummaryZhoushan', @level2type=N'COLUMN',@level2name=N'EndPoint'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'设计温度(℃)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialInstallationSummaryZhoushan', @level2type=N'COLUMN',@level2name=N'DesignTemperature'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'设计压力(MPa)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialInstallationSummaryZhoushan', @level2type=N'COLUMN',@level2name=N'DesignPressure'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'操作温度℃' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialInstallationSummaryZhoushan', @level2type=N'COLUMN',@level2name=N'OperatingTemperature'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'操作压力Mpa' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialInstallationSummaryZhoushan', @level2type=N'COLUMN',@level2name=N'OperatingPressure'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'压力试验介质' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialInstallationSummaryZhoushan', @level2type=N'COLUMN',@level2name=N'PressureTestMedium'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'压力试验压力Mpa' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialInstallationSummaryZhoushan', @level2type=N'COLUMN',@level2name=N'PressureTestPressure'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'试压时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialInstallationSummaryZhoushan', @level2type=N'COLUMN',@level2name=N'TestDate'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'压力管道安装汇总表(舟山特检院要求表)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_IndustrialInstallationSummaryZhoushan'
GO
+1
View File
@@ -264,6 +264,7 @@
<Compile Include="JGZL\ArchivalTransferService.cs" />
<Compile Include="JGZL\DocumentDescriptionService.cs" />
<Compile Include="JGZL\FileDirectoryService.cs" />
<Compile Include="JGZL\IndustrialInstallationSummaryZhoushanService.cs" />
<Compile Include="JGZL\InsulationAcceptanceRecordItemService.cs" />
<Compile Include="JGZL\InsulationAcceptanceRecordService.cs" />
<Compile Include="JGZL\LeakageVacuumService.cs" />
@@ -0,0 +1,76 @@
using Model;
using Org.BouncyCastle.Bcpg.OpenPgp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BLL
{
/// <summary>
/// 压力管道安装汇总表(舟山特检院要求表)
/// </summary>
public class IndustrialInstallationSummaryZhoushanService
{
/// <summary>
/// 根据项目Id获取压力管道安装汇总表(舟山特检院要求表)
/// </summary>
/// <param name="projectId"></param>
/// <returns></returns>
public static List<Model.JGZL_IndustrialInstallationSummaryZhoushan> GetInstallationSummaryZhoushanByProjectId(string projectId)
{
return (from x in Funs.DB.JGZL_IndustrialInstallationSummaryZhoushan where x.ProjectId == projectId select x).ToList();
}
/// <summary>
/// 增加
/// </summary>
/// <param name="zs"></param>
public static void AddIndustrialInstallationSummaryZhoushan(Model.JGZL_IndustrialInstallationSummaryZhoushan zs)
{
SGGLDB db = Funs.DB;
Model.JGZL_IndustrialInstallationSummaryZhoushan newZS = new JGZL_IndustrialInstallationSummaryZhoushan();
newZS.SummaryId = zs.SummaryId;
newZS.ProjectId= zs.ProjectId;
newZS.InstallationName= zs.InstallationName;
newZS.TestPackageCode = zs.TestPackageCode;
newZS.PipelineName = zs.PipelineName;
newZS.PipelineCode = zs.PipelineCode;
newZS.PipelineLevel = zs.PipelineLevel;
newZS.Material = zs.Material;
newZS.Medium= zs.Medium;
newZS.Diameter= zs.Diameter;
newZS.WallThickness= zs.WallThickness;
newZS.PipelineLength = zs.PipelineLength;
newZS.WeldJointsCount= zs.WeldJointsCount;
newZS.PipeFittings= zs.PipeFittings;
newZS.StartPoint= zs.StartPoint;
newZS.EndPoint= zs.EndPoint;
newZS.DesignTemperature= zs.DesignTemperature;
newZS.DesignPressure= zs.DesignPressure;
newZS.OperatingTemperature= zs.OperatingTemperature;
newZS.OperatingPressure = zs.OperatingPressure;
newZS.PressureTestPressure= zs.PressureTestPressure;
newZS.PressureTestMedium = zs.PressureTestMedium;
newZS.TestDate= zs.TestDate;
db.JGZL_IndustrialInstallationSummaryZhoushan.InsertOnSubmit(newZS);
db.SubmitChanges();
}
/// <summary>
/// 根据项目Id删除压力管道安装汇总表(舟山特检院要求表)
/// </summary>
/// <param name="projectId"></param>
public static void DeleteIndustrialInstallationSummaryZhoushanByProjectId(string projectId)
{
SGGLDB db = Funs.DB;
var q = (from x in db.JGZL_IndustrialInstallationSummaryZhoushan where x.ProjectId == projectId select x).ToList();
if (q.Count>0)
{
db.JGZL_IndustrialInstallationSummaryZhoushan.DeleteAllOnSubmit(q);
db.SubmitChanges();
}
}
}
}
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReportInfo.Created="10/26/2024 15:04:43" ReportInfo.Modified="04/22/2026 23:04:05" ReportInfo.CreatorVersion="2017.1.16.0">
<Report ScriptLanguage="CSharp" ReportInfo.Created="10/26/2024 15:04:43" ReportInfo.Modified="09/24/2026 13:25:49" ReportInfo.CreatorVersion="2017.1.16.0">
<ScriptText>using System;
using System.Collections;
using System.Collections.Generic;
@@ -39,7 +39,7 @@ namespace FastReport
}
</ScriptText>
<Dictionary>
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QFjpTGEarsSxENa6kYDYyuhA==">
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QFXRA52hHA2Zz6d5lLvCYfUA==">
<TableDataSource Name="Data" DataType="System.Int32" PropName="HJGL_BakeRecords" Enabled="true" TableName="Data">
<Column Name="BakeDateMonth" DataType="System.String"/>
<Column Name="BakeDateDay" DataType="System.String" PropName="Column"/>
@@ -65,9 +65,9 @@ namespace FastReport
</MsSqlDataConnection>
<Parameter Name="ProjectName" DataType="System.String"/>
</Dictionary>
<ReportPage Name="Page1" Landscape="true" PaperWidth="297" PaperHeight="210" RawPaperSize="9" LeftMargin="16" TopMargin="22" RightMargin="13.2" BottomMargin="17" Guides="0,1011.67,330.2,33.91,100.06,52.81,729.89,81.16,43.36,822.17,744.9,778.81,788.26,812.72,856.08,899.44,933.35,77.27,177.33,277.39,383.01,464.17,507.53,618.71,797.71,575.35,662.07,78.32,541.44,695.98,763.8,9.45,1001.7,708.75,1011.51,43.38,77.31,177.39,277.47,383.13,52.83,464.31,507.69,541.62,575.55,618.93,662.31,696.24,730.17,764.1,798.03,821.9301,855.86,899.24,933.17,1011.63,515.05,33.89,100.04,52.79,62.24,71.69,3.84,43.34,63.18">
<PageHeaderBand Name="PageHeader1" Width="1012.28" Height="205.81" Guides="56.7,205.81,0,78.25,101.87,23.62,149.11,125.49,28.35,37.8">
<TableObject Name="Table1" Top="56.7" Width="1011.67" Height="149.11">
<ReportPage Name="Page1" Landscape="true" PaperWidth="297" PaperHeight="210" RawPaperSize="9" LeftMargin="16" TopMargin="22" RightMargin="13.2" BottomMargin="17" Guides="0,1011.67,330.2,33.91,100.06,52.81,729.89,81.16,43.36,822.17,24.46,78.32,77.27,177.33,277.39,383.01,464.17,507.53,618.71,797.71,899.44,933.35,575.35,662.07,856.08,541.44,695.98,763.8,1011.51,43.38,77.31,177.39,277.47,383.13,52.83,464.31,507.69,541.62,575.55,618.93,662.31,696.24,730.17,764.1,798.03,821.9301,855.86,899.24,933.17,1011.63,515.05,33.89,100.04,52.79,62.24,71.69,3.84,43.34,63.18">
<PageHeaderBand Name="PageHeader1" Width="1012.28" Height="149.11" Guides="0,149.11,78.25,101.87,23.62,125.49">
<TableObject Name="Table1" Width="1011.67" Height="149.11">
<TableColumn Name="Column1" Width="43.36"/>
<TableColumn Name="Column2" Width="33.91"/>
<TableColumn Name="Column3" Width="100.06"/>
@@ -182,10 +182,8 @@ namespace FastReport
<TableCell Name="Cell89" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
</TableObject>
<TextObject Name="Text1" Left="9.45" Width="992.25" Height="28.35" Text="浙 江 鼎 盛 石 化 工 程 有 限 公 司" HorzAlign="Center" VertAlign="Center" Font="思源宋体 CN, 16pt, style=Bold"/>
<TextObject Name="Text2" Left="708.75" Top="37.8" Width="292.95" Height="18.9" Text="ZDS-T6.37.075.A/1.2020" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
</PageHeaderBand>
<DataBand Name="Data1" Top="209.81" Width="1012.28" Height="33.07" Guides="0,33.07">
<DataBand Name="Data1" Top="153.11" Width="1012.28" Height="33.07" Guides="0,33.07">
<TableObject Name="Table2" Width="1011.51" Height="33.07" ManualBuildEvent="Table2_ManualBuild">
<TableColumn Name="Column22" Width="43.38"/>
<TableColumn Name="Column23" Width="33.93"/>
@@ -233,8 +231,8 @@ namespace FastReport
</TableRow>
</TableObject>
</DataBand>
<ColumnFooterBand Name="ColumnFooter1" Top="283.95" Width="1012.28">
<ChildBand Name="Child1" Top="246.88" Width="1012.28" Height="33.07" Guides="0,33.07" FillUnusedSpace="true">
<ColumnFooterBand Name="ColumnFooter1" Top="227.25" Width="1012.28">
<ChildBand Name="Child1" Top="190.18" Width="1012.28" Height="33.07" Guides="0,33.07" FillUnusedSpace="true">
<TableObject Name="Table3" Width="1011.67" Height="33.07">
<TableColumn Name="Column43" Width="43.36"/>
<TableColumn Name="Column44" Width="33.91"/>
@@ -283,7 +281,7 @@ namespace FastReport
</TableObject>
</ChildBand>
</ColumnFooterBand>
<PageFooterBand Name="PageFooter1" Top="287.95" Width="1012.28" Height="43.47" Guides="0,43.47">
<PageFooterBand Name="PageFooter1" Top="231.25" Width="1012.28" Height="43.47" Guides="0,43.47">
<TableObject Name="Table4" Width="1011.63" Height="43.47">
<TableColumn Name="Column64" Width="33.89"/>
<TableColumn Name="Column65" Width="33.89"/>
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReportInfo.Created="10/26/2024 15:04:43" ReportInfo.Modified="11/05/2024 15:06:25" ReportInfo.CreatorVersion="2017.1.16.0">
<Report ScriptLanguage="CSharp" ReportInfo.Created="10/26/2024 15:04:43" ReportInfo.Modified="09/24/2026 13:53:49" ReportInfo.CreatorVersion="2017.1.16.0">
<ScriptText>using System;
using System.Collections;
using System.Collections.Generic;
@@ -39,7 +39,7 @@ namespace FastReport
}
</ScriptText>
<Dictionary>
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqdP6ADbZQpLOMXx+Ivgq2SioFBJ7B1iEOuUxf7y1evrTM15NUOhfx6SD2+E9SReEWvg7u6EQdXpqQDDPj6WgkoKQIrTt5q9lJyuCu5B6Nl0MXJ6ZEae4ta6haGkhwICyq72I9X2dS6a3zf8gkFZpb6VtdwKlyFhTivyv2i8IjPiUXLimy5mJMh8U2rXyiDDAJIsLkZzjrsv+NOSh6uCq6Ug==">
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QFUQPsnPetCK/eKuGGko7kWA==">
<TableDataSource Name="Data" DataType="System.Int32" PropName="HJGL_BakeRecords" Enabled="true" TableName="Data">
<Column Name="BakeDateMonth" DataType="System.String"/>
<Column Name="BakeDateDay" DataType="System.String" PropName="Column"/>
@@ -1404,6 +1404,7 @@
<Content Include="JGZL\ElectrodeRecovery.aspx" />
<Content Include="JGZL\EWeldRHRecord.aspx" />
<Content Include="JGZL\FileDirectory.aspx" />
<Content Include="JGZL\IndustrialInstallationSummaryZhoushan.aspx" />
<Content Include="JGZL\IndustrialPipelineInstallationSummary2020.aspx" />
<Content Include="JGZL\IndustrialPipelineQualityCertificate2020.aspx" />
<Content Include="JGZL\InsulationAcceptanceRecord.aspx" />
@@ -7063,6 +7064,13 @@
<Compile Include="JGZL\FileDirectory.aspx.designer.cs">
<DependentUpon>FileDirectory.aspx</DependentUpon>
</Compile>
<Compile Include="JGZL\IndustrialInstallationSummaryZhoushan.aspx.cs">
<DependentUpon>IndustrialInstallationSummaryZhoushan.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="JGZL\IndustrialInstallationSummaryZhoushan.aspx.designer.cs">
<DependentUpon>IndustrialInstallationSummaryZhoushan.aspx</DependentUpon>
</Compile>
<Compile Include="JGZL\IndustrialPipelineInstallationSummary2020.aspx.cs">
<DependentUpon>IndustrialPipelineInstallationSummary2020.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
@@ -20,17 +20,19 @@
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" EnableCollapse="true" EnableCheckBoxSelect="true"
KeepCurrentSelection="true" runat="server" BoxFlex="1" DataKeyNames="BakeRecordsId"
DataIDField="BakeRecordsId" AllowSorting="true" SortField="BakeDate" SortDirection="DESC"
OnSort="Grid1_Sort" EnableTextSelection="True">
OnSort="Grid1_Sort" EnableTextSelection="True" AllowPaging="true" IsDatabasePaging="true" PageSize="50"
OnPageIndexChange="Grid1_PageIndexChange" >
<Toolbars>
<f:Toolbar ID="Toolbar3" Position="Top" ToolbarAlign="Right" runat="server">
<Items>
<f:DropDownList ID="drpProjectId" runat="server" Label="项目" LabelWidth="50px" Width="265px"
<f:DropDownList ID="drpProjectId" runat="server" Label="项目" LabelWidth="50px" Width="200px"
EnableEdit="true">
</f:DropDownList>
<f:DatePicker ID="txtStartDate" runat="server" Label="烘烤日期" EmptyText="开始时间" Width="220px" LabelAlign="Right"></f:DatePicker>
<f:Label ID="Label1" runat="server" Text="-"></f:Label>
<f:DatePicker ID="txtEndDate" runat="server" EmptyText="结束时间" Width="120px"></f:DatePicker>
<f:TextBox runat="server" Label="焊材牌号" ID="txtBrand" EmptyText="输入查询条件" Width="300px" LabelAlign="right"></f:TextBox>
<f:DropDownList ID="drpUnitStore" runat="server" Label="焊材库" LabelAlign="Right" Width="220px" LabelWidth="80px"></f:DropDownList>
<f:TextBox runat="server" Label="焊材牌号" ID="txtBrand" EmptyText="输入查询条件" Width="200px" LabelAlign="right"></f:TextBox>
<f:Button ID="btnSearch" runat="server" Text="查询" Icon="SystemSearch" OnClick="btnSearch_Click"></f:Button>
<f:ToolbarFill ID="ToolbarFill1" runat="server">
</f:ToolbarFill>
@@ -30,6 +30,8 @@ namespace FineUIPro.Web.HJGL.MaterialManage
this.drpProjectId.DataSource = BLL.Base_ProjectService.GetOnProjectList("1");
this.drpProjectId.DataBind();
Funs.FineUIPleaseSelect(this.drpProjectId);
BLL.UnitStoreService.InitUnitStoreDropDownList(drpUnitStore, null, true);
BindGrid();
}
}
@@ -82,13 +84,18 @@ namespace FineUIPro.Web.HJGL.MaterialManage
strSql += " AND BakeRecords.BakeDate <= @endDate";
listStr.Add(new SqlParameter("@endDate", this.txtEndDate.Text.Trim()));
}
if (this.drpUnitStore.SelectedValue != BLL.Const._Null && !string.IsNullOrEmpty(this.drpUnitStore.SelectedValue))
{
strSql += " AND BakeRecords.UnitStoreId = @UnitStoreId";
listStr.Add(new SqlParameter("@UnitStoreId", this.drpUnitStore.SelectedValue));
}
strSql += " order by BakeRecords.BakeDate desc";
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
Grid1.RecordCount = tb.Rows.Count;
//var table = this.GetPagedDataTable(Grid1, tb);
Grid1.DataSource = tb;
var table = this.GetPagedDataTable(Grid1, tb);
Grid1.DataSource = table;
Grid1.DataBind();
}
#endregion
@@ -107,6 +114,19 @@ namespace FineUIPro.Web.HJGL.MaterialManage
}
#endregion
#region 页索引改变事件
/// <summary>
/// 页索引改变事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
{
Grid1.PageIndex = e.NewPageIndex;
BindGrid();
}
#endregion
#region 提交
/// <summary>
/// 确定按钮
@@ -7,11 +7,13 @@
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.HJGL.MaterialManage {
public partial class ElectrodeBakeRecordNewSelect {
namespace FineUIPro.Web.HJGL.MaterialManage
{
public partial class ElectrodeBakeRecordNewSelect
{
/// <summary>
/// form1 控件。
/// </summary>
@@ -20,7 +22,7 @@ namespace FineUIPro.Web.HJGL.MaterialManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// PageManager1 控件。
/// </summary>
@@ -29,7 +31,7 @@ namespace FineUIPro.Web.HJGL.MaterialManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.PageManager PageManager1;
/// <summary>
/// Panel1 控件。
/// </summary>
@@ -38,7 +40,7 @@ namespace FineUIPro.Web.HJGL.MaterialManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel Panel1;
/// <summary>
/// panelCenterRegion 控件。
/// </summary>
@@ -47,7 +49,7 @@ namespace FineUIPro.Web.HJGL.MaterialManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel panelCenterRegion;
/// <summary>
/// Grid1 控件。
/// </summary>
@@ -56,7 +58,7 @@ namespace FineUIPro.Web.HJGL.MaterialManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Grid Grid1;
/// <summary>
/// Toolbar3 控件。
/// </summary>
@@ -65,7 +67,7 @@ namespace FineUIPro.Web.HJGL.MaterialManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar3;
/// <summary>
/// drpProjectId 控件。
/// </summary>
@@ -74,7 +76,7 @@ namespace FineUIPro.Web.HJGL.MaterialManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpProjectId;
/// <summary>
/// txtStartDate 控件。
/// </summary>
@@ -83,7 +85,7 @@ namespace FineUIPro.Web.HJGL.MaterialManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DatePicker txtStartDate;
/// <summary>
/// Label1 控件。
/// </summary>
@@ -92,7 +94,7 @@ namespace FineUIPro.Web.HJGL.MaterialManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label Label1;
/// <summary>
/// txtEndDate 控件。
/// </summary>
@@ -101,7 +103,16 @@ namespace FineUIPro.Web.HJGL.MaterialManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DatePicker txtEndDate;
/// <summary>
/// drpUnitStore 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpUnitStore;
/// <summary>
/// txtBrand 控件。
/// </summary>
@@ -110,7 +121,7 @@ namespace FineUIPro.Web.HJGL.MaterialManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtBrand;
/// <summary>
/// btnSearch 控件。
/// </summary>
@@ -119,7 +130,7 @@ namespace FineUIPro.Web.HJGL.MaterialManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnSearch;
/// <summary>
/// ToolbarFill1 控件。
/// </summary>
@@ -128,7 +139,7 @@ namespace FineUIPro.Web.HJGL.MaterialManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarFill ToolbarFill1;
/// <summary>
/// btnSure 控件。
/// </summary>
@@ -137,7 +148,7 @@ namespace FineUIPro.Web.HJGL.MaterialManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnSure;
/// <summary>
/// Window2 控件。
/// </summary>
@@ -0,0 +1,279 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="IndustrialInstallationSummaryZhoushan.aspx.cs" Inherits="FineUIPro.Web.JGZL.IndustrialInstallationSummaryZhoushan" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>压力管道安装汇总表(舟山特检院要求表)</title>
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
<f:Panel ID="Panel1" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
<Items>
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true"
EnableCollapse="true" Width="220px" Title="压力管道安装汇总表(舟山特检院要求表)" ShowBorder="true" Layout="VBox"
ShowHeader="true" AutoScroll="true" BodyPadding="5px" IconFont="ArrowCircleLeft">
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Left">
<Items>
<f:DropDownList ID="drpProjectId" runat="server" Label="项目" LabelAlign="Right" AutoPostBack="true" EnableEdit="true"
OnSelectedIndexChanged="drpProjectId_SelectedIndexChanged" LabelWidth="50px">
</f:DropDownList>
</Items>
</f:Toolbar>
</Toolbars>
<Items>
<f:Tree ID="tvControlItem" ShowHeader="false" Title="压力管道安装汇总表(舟山特检院要求表)" OnNodeCommand="tvControlItem_NodeCommand"
runat="server" ShowBorder="false" EnableCollapse="true" EnableSingleClickExpand="true"
AutoLeafIdentification="true" EnableSingleExpand="true" EnableTextSelection="true">
</f:Tree>
</Items>
</f:Panel>
<f:Panel runat="server" ID="panelCenterRegion" RegionPosition="Center" ShowBorder="true"
Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" Title="压力管道安装汇总表(舟山特检院要求表)"
TitleToolTip="压力管道安装汇总表(舟山特检院要求表)" AutoScroll="true">
<Toolbars>
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Right">
<Items>
<f:TextBox ID="txtIsoNoS" runat="server" Label="管道编号" LabelAlign="Right" AutoPostBack="true" OnTextChanged="TextBox_TextChanged" EmptyText="输入查询条件"></f:TextBox>
<f:ToolbarFill ID="ToolbarFill1" runat="server">
</f:ToolbarFill>
<f:Button ID="btnAdd" runat="server" Icon="Add" Text="增加" OnClick="btnAdd_Click"></f:Button>
<f:Button ID="btnSave" Text="保存" ToolTip="保存" Icon="SystemSave" runat="server" OnClick="btnSave_Click"></f:Button>
<f:Button ID="btnPrint" Text="打印" Icon="Printer" runat="server" OnClick="btnPrint_Click">
</f:Button>
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" Text="导出" ToolTip="导出Word" Icon="FolderUp"
EnableAjax="false" DisableControlBeforePostBack="false">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="压力管道安装汇总表(舟山特检院要求表)" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="SummaryId" EnableColumnLines="true"
AllowCellEditing="true" ClicksToEdit="1" DataIDField="SummaryId" AllowSorting="true"
SortDirection="ASC" OnSort="Grid1_Sort" OnPreDataBound="Grid1_PreDataBound"
AllowPaging="false" IsDatabasePaging="true" PageSize="10000"
EnableTextSelection="True" AutoScroll="true">
<Toolbars>
<f:Toolbar ID="Toolbar3" Position="Top" runat="server" ToolbarAlign="Left">
<Items>
<f:TextBox ID="txtInstallationName" runat="server" Label="装置(管道)名称" LabelAlign="Right"></f:TextBox>
<f:TextBox ID="txtTestPackageCode" runat="server" Label="试压包编号" LabelAlign="Right"></f:TextBox>
<f:ToolbarFill ID="ToolbarFill2" runat="server"></f:ToolbarFill>
</Items>
</f:Toolbar>
</Toolbars>
<Columns>
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center"
TextAlign="Center" />
<f:RenderField HeaderText="管道名称" ColumnID="PipelineName" DataField="PipelineName" SortField="PipelineName"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="140px">
<Editor>
<f:TextBox ID="txtPipelineName" runat="server"></f:TextBox>
</Editor>
</f:RenderField>
<f:RenderField HeaderText="管道编号" ColumnID="PipelineCode" DataField="PipelineCode" SortField="PipelineCode"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="140px">
<Editor>
<f:TextBox ID="txtPipelineCode" runat="server"></f:TextBox>
</Editor>
</f:RenderField>
<f:RenderField HeaderText="管道级别" ColumnID="PipelineLevel" DataField="PipelineLevel" SortField="PipelineLevel"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="90px">
<Editor>
<f:TextBox ID="txtPipelineLevel" runat="server"></f:TextBox>
</Editor>
</f:RenderField>
<f:RenderField HeaderText="材质" ColumnID="Material" DataField="Material" SortField="Material"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="90px">
<Editor>
<f:TextBox ID="txtMaterial" runat="server"></f:TextBox>
</Editor>
</f:RenderField>
<f:RenderField HeaderText="介质" ColumnID="Medium" DataField="Medium" SortField="Medium"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="90px">
<Editor>
<f:TextBox ID="txtMedium" runat="server"></f:TextBox>
</Editor>
</f:RenderField>
<f:GroupField HeaderText="管道规格" runat="server" TextAlign="Center" HeaderTextAlign="Center">
<Columns>
<f:RenderField HeaderText="公称直径(mm)" ColumnID="Diameter" DataField="Diameter" SortField="Diameter"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="80px">
<Editor>
<f:NumberBox ID="txtDiameter" runat="server" NoNegative="true" DecimalPrecision="2"></f:NumberBox>
</Editor>
</f:RenderField>
<f:RenderField HeaderText="公称壁厚(mm)" ColumnID="WallThickness" DataField="WallThickness" SortField="WallThickness"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="80px">
<Editor>
<f:NumberBox ID="txtWallThickness" runat="server" NoNegative="true" DecimalPrecision="2"></f:NumberBox>
</Editor>
</f:RenderField>
<f:RenderField HeaderText="管道长度(m)" ColumnID="PipelineLength" DataField="PipelineLength" SortField="PipelineLength"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="80px">
<Editor>
<f:NumberBox ID="txtPipelineLength" runat="server" NoNegative="true" DecimalPrecision="2"></f:NumberBox>
</Editor>
</f:RenderField>
</Columns>
</f:GroupField>
<f:RenderField HeaderText="焊工总数(个)" ColumnID="WeldJointsCount" DataField="WeldJointsCount" SortField="WeldJointsCount"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="80px">
<Editor>
<f:NumberBox ID="txtWeldJointsCount" runat="server" NoNegative="true" NoDecimal="true"></f:NumberBox>
</Editor>
</f:RenderField>
<f:GroupField HeaderText="起止点" runat="server" TextAlign="Center" HeaderTextAlign="Center">
<Columns>
<f:RenderField HeaderText="起点" ColumnID="PipelineStartPoint" DataField="PipelineStartPoint" SortField="PipelineStartPoint"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="80px">
<Editor>
<f:TextBox ID="txtPipelineStartPoint" runat="server"></f:TextBox>
</Editor>
</f:RenderField>
<f:RenderField HeaderText="终点" ColumnID="PipelineEndPoint" DataField="PipelineEndPoint" SortField="PipelineEndPoint"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="80px">
<Editor>
<f:TextBox ID="txtPipelineEndPoint" runat="server"></f:TextBox>
</Editor>
</f:RenderField>
</Columns>
</f:GroupField>
<f:RenderField HeaderText="设计压力(MPa)" ColumnID="DesignPressure" DataField="DesignPressure" SortField="DesignPressure"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
<Editor>
<f:TextBox ID="txtDesignPressure" runat="server">
</f:TextBox>
</Editor>
</f:RenderField>
<f:RenderField HeaderText="设计温度(℃)" ColumnID="DesignTemperature" DataField="DesignTemperature" SortField="DesignTemperature"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
<Editor>
<f:TextBox ID="txtDesignTemperature" runat="server"></f:TextBox>
</Editor>
</f:RenderField>
<f:RenderField HeaderText="介质" ColumnID="Medium" DataField="Medium" SortField="Medium"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
<Editor>
<f:TextBox ID="txtMedium" runat="server"></f:TextBox>
</Editor>
</f:RenderField>
<f:RenderField HeaderText="材质" ColumnID="Material" DataField="Material" SortField="Material"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
<Editor>
<f:TextBox ID="txtMaterial" runat="server"></f:TextBox>
</Editor>
</f:RenderField>
<f:RenderField HeaderText="规格(mm)" ColumnID="Specifications" DataField="Specifications" SortField="Specifications"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
<Editor>
<f:TextBox ID="txtSpecifications" runat="server"></f:TextBox>
</Editor>
</f:RenderField>
<f:RenderField HeaderText="长度(m)" ColumnID="Length" DataField="Length" SortField="Length"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
<Editor>
<f:TextBox ID="txtLength" runat="server"></f:TextBox>
</Editor>
</f:RenderField>
<f:RenderField HeaderText="铺设方式" ColumnID="LayingMethod" DataField="LayingMethod" SortField="LayingMethod"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
<Editor>
<f:TextBox ID="txtLayingMethod" runat="server"></f:TextBox>
</Editor>
</f:RenderField>
<f:RenderField HeaderText="焊口数量" ColumnID="WeldsNum" DataField="WeldsNum" SortField="WeldsNum"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
<Editor>
<f:TextBox ID="txtWeldsNum" runat="server"></f:TextBox>
</Editor>
</f:RenderField>
<f:RenderField HeaderText="无损检测方法/比例(%)" ColumnID="LosslessRatio" DataField="LosslessRatio" SortField="LosslessRatio"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
<Editor>
<f:TextBox ID="txtLosslessRatio" runat="server"></f:TextBox>
</Editor>
</f:RenderField>
<f:RenderField HeaderText="耐压试验方法" ColumnID="VoltageResistantTestMethod" DataField="VoltageResistantTestMethod" SortField="VoltageResistantTestMethod"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
<Editor>
<f:TextBox ID="txtVoltageResistantTestMethod" runat="server"></f:TextBox>
</Editor>
</f:RenderField>
<f:RenderField HeaderText="耐压试验介质" ColumnID="VoltageResistantTestMedium" DataField="VoltageResistantTestMedium" SortField="VoltageResistantTestMedium"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
<Editor>
<f:TextBox ID="txtVoltageResistantTestMedium" runat="server"></f:TextBox>
</Editor>
</f:RenderField>
<f:RenderField HeaderText="耐压试验压力(MPa)" ColumnID="VoltageResistantTestPressure" DataField="VoltageResistantTestPressure" SortField="VoltageResistantTestPressure"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
<Editor>
<f:TextBox ID="txtVoltageResistantTestPressure" runat="server"></f:TextBox>
</Editor>
</f:RenderField>
<f:RenderField HeaderText="泄漏试验介质" ColumnID="LeakageTestMedium" DataField="LeakageTestMedium" SortField="LeakageTestMedium"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
<Editor>
<f:TextBox ID="txtLeakageTestMedium" runat="server"></f:TextBox>
</Editor>
</f:RenderField>
<f:RenderField HeaderText="泄漏试验压力(MPa)" ColumnID="LeakageTestPressure" DataField="LeakageTestPressure" SortField="LeakageTestPressure"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
<Editor>
<f:TextBox ID="txtLeakageTestPressure" runat="server"></f:TextBox>
</Editor>
</f:RenderField>
<f:RenderField HeaderText="吹扫、清洗方法" ColumnID="CleaningMethod" DataField="CleaningMethod" SortField="CleaningMethod"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
<Editor>
<f:TextBox ID="txtCleaningMethod" runat="server"></f:TextBox>
</Editor>
</f:RenderField>
<f:RenderField HeaderText="腐蚀控制方式" ColumnID="CorrosionControlMethod" DataField="CorrosionControlMethod" SortField="CorrosionControlMethod"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
<Editor>
<f:TextBox ID="txtCorrosionControlMethod" runat="server"></f:TextBox>
</Editor>
</f:RenderField>
<f:RenderField HeaderText="保温(绝热)方式" ColumnID="InsulationMethod" DataField="InsulationMethod" SortField="InsulationMethod"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
<Editor>
<f:TextBox ID="txtInsulationMethod" runat="server"></f:TextBox>
</Editor>
</f:RenderField>
<f:LinkButtonField ColumnID="Delete3" Width="60px" EnablePostBack="false" Icon="Delete"
HeaderTextAlign="Center" HeaderText="删除" />
<f:RenderField HeaderText="主键" ColumnID="SummaryId" DataField="SummaryId" SortField="SummaryId"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="140px" Hidden="true">
</f:RenderField>
</Columns>
<PageItems>
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
</f:ToolbarSeparator>
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
</f:ToolbarText>
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
<f:ListItem Text="10" Value="10" />
<f:ListItem Text="15" Value="15" />
<f:ListItem Text="20" Value="20" />
<f:ListItem Text="25" Value="25" />
</f:DropDownList>
</PageItems>
</f:Grid>
</Items>
</f:Panel>
</Items>
</f:Panel>
<f:Window ID="WindowPrint" Title="打印压力管道安装汇总表(舟山特检院要求表)" Hidden="true" EnableIFrame="true" EnableMaximize="false"
Target="Top" EnableResize="true" runat="server" IsModal="true" Width="1024px"
Height="600px">
</f:Window>
</form>
</body>
</html>
@@ -0,0 +1,826 @@
using Aspose.Words;
using Aspose.Words.Tables;
using BLL;
using Model;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace FineUIPro.Web.JGZL
{
public partial class IndustrialInstallationSummaryZhoushan : PageBase
{
#region 定义项
/// <summary>
/// 主键
/// </summary>
private string SummaryId
{
get
{
return (string)ViewState["SummaryId"];
}
set
{
ViewState["SummaryId"] = value;
}
}
/// <summary>
/// 项目Id
/// </summary>
private string ProjectId
{
get
{
return (string)ViewState["ProjectId"];
}
set
{
ViewState["ProjectId"] = value;
}
}
/// <summary>
/// 外键—CertificateId
/// </summary>
public string CertificateId
{
get
{
return (string)ViewState["CertificateId"];
}
set
{
ViewState["CertificateId"] = value;
}
}
#endregion
#region 加载页面
/// <summary>
/// 加载页面
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString();
this.drpProjectId.DataTextField = "ProjectCode";
this.drpProjectId.DataValueField = "ProjectId";
this.drpProjectId.DataSource = BLL.Base_ProjectService.GetOnProjectListByUserId(this.CurrUser.UserId, "1");
this.drpProjectId.DataBind();
Funs.FineUIPleaseSelect(this.drpProjectId);
this.drpProjectId.SelectedValue = this.CurrUser.LoginProjectId;
this.InitTreeMenu();//加载树
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
////获取下拉选择项本项目下所有工业管道安装质量证明书信息
//IndustrialPipelineInstallationQualityCertificateService.InitIndustrialPipelineInstallationQualityCertificateDownList(this.drpCertificateCode, this.tvControlItem.SelectedNodeID, "1", false);
//if (!string.IsNullOrEmpty(this.drpCertificateCode.SelectedValue) && this.drpCertificateCode.SelectedValue != BLL.Const._Null)
//{
// this.CertificateId = this.drpCertificateCode.SelectedValue;
// var certificate = BLL.IndustrialPipelineInstallationQualityCertificateService.GetIndustrialPipelineInstallationQualityCertificateById(this.CertificateId);
// if (certificate != null)
// {
// this.txtDeliveryUnit.Text = certificate.DeliveryUnit;
// this.txtDeliveryUnitCode.Text = certificate.DeliveryUnitCode;
// }
//}
DataIsoInfo();
BindGrid();
}
}
#endregion
private void DataIsoInfo()
{
var isoInfo = BLL.HJGL_PW_IsoInfoService.GetIsoInfoByProjectId(this.tvControlItem.SelectedNodeID);
if (isoInfo.Count > 0)
{
}
}
#region 加载树项目
/// <summary>
/// 加载树
/// </summary>
private void InitTreeMenu()
{
this.tvControlItem.Nodes.Clear();
TreeNode rootNode = new TreeNode();
rootNode.Text = "项目";
rootNode.ToolTip = "项目";
rootNode.NodeID = "0";
rootNode.Expanded = true;
this.tvControlItem.Nodes.Add(rootNode);
List<Model.Base_Project> projects = BLL.Base_ProjectService.GetOnProjectListByUserId(this.CurrUser.UserId, "1");
if (this.drpProjectId.SelectedValue != BLL.Const._Null)
{
projects = projects.Where(e => e.ProjectId == this.drpProjectId.SelectedValue).ToList();
}
foreach (var item in projects)
{
TreeNode rootProjectNode = new TreeNode();//定义根节点
rootProjectNode.Text = item.ProjectCode;
rootProjectNode.NodeID = item.ProjectId;
rootProjectNode.EnableClickEvent = true;
rootProjectNode.Expanded = true;
rootProjectNode.ToolTip = item.ProjectName;
rootProjectNode.CommandName = "项目名称";
rootNode.Nodes.Add(rootProjectNode);
}
}
#endregion
#region 点击TreeView
/// <summary>
/// 点击TreeView
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void tvControlItem_NodeCommand(object sender, TreeCommandEventArgs e)
{
if (this.tvControlItem.SelectedNodeID != "0")
{
DataIsoInfo();
this.BindGrid();
}
}
#endregion
#region 数据绑定
/// <summary>
/// 数据绑定
/// </summary>
private void BindGrid()
{
string strSql = @"select SummaryId, CertificateId, ProjectId, PipelineCode, PipelineLevel, PipelineStartPoint, PipelineEndPoint,
CASE WHEN ISNUMERIC(DesignPressure)=1 THEN FORMAT(CAST(DesignPressure AS DECIMAL(18,6)), 'G29')
ELSE DesignPressure
END AS DesignPressure,
CASE WHEN ISNUMERIC(DesignTemperature)=1 THEN FORMAT(CAST(DesignTemperature AS DECIMAL(18,6)), 'G29')
ELSE DesignTemperature
END AS DesignTemperature,
Medium, Material, Specifications,
CASE WHEN ISNUMERIC(Length)=1 THEN FORMAT(CAST(Length AS DECIMAL(18,6)), 'G29')
ELSE Length
END AS Length,
LayingMethod, WeldsNum, LosslessRatio,
VoltageResistantTestMethod, VoltageResistantTestMedium, VoltageResistantTestPressure,
LeakageTestMedium, LeakageTestPressure, CleaningMethod, CorrosionControlMethod, InsulationMethod,
Remark, CompileMan, CompileDate, Reviewer, RevieweDate, OperatingTemperature, VoltageResistantTestDate,
LeakageTestDate,FromType from JGZL_IndustrialPipelineInstallationSummary
WHERE FromType='1' ";
List<SqlParameter> listStr = new List<SqlParameter>();
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
{
strSql += " AND ProjectId = @ProjectId";
listStr.Add(new SqlParameter("@ProjectId", this.tvControlItem.SelectedNodeID));
}
if (!string.IsNullOrEmpty(this.txtIsoNoS.Text))
{
strSql += " AND PipelineCode like @PipelineCode";
listStr.Add(new SqlParameter("@PipelineCode", "%" + this.txtIsoNoS.Text + "%"));
}
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
// 2.获取当前分页数据
Grid1.RecordCount = tb.Rows.Count;
var table = this.GetPagedDataTable(Grid1, tb);
Grid1.DataSource = table;
Grid1.DataBind();
}
#endregion
#region 分页排序
#region 页索引改变事件
/// <summary>
/// 页索引改变事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
{
BindGrid();
}
#endregion
#region 排序
/// <summary>
/// 排序
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Grid1_Sort(object sender, GridSortEventArgs e)
{
BindGrid();
}
#endregion
#region 分页选择下拉改变事件
/// <summary>
/// 分页选择下拉改变事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
{
Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
BindGrid();
}
#endregion
#endregion
#region 查询
///<summary>
///查询
///</summary>
///<param name="sender"></param>
///<param name="e"></param>
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
{
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
this.InitTreeMenu();
DataIsoInfo();
BindGrid();
}
/// <summary>
/// 查询
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void TextBox_TextChanged(object sender, EventArgs e)
{
this.BindGrid();
}
#endregion
#region 打印
/// <summary>
/// 打印
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnPrint_Click(object sender, EventArgs e)
{
string projectId = this.tvControlItem.SelectedNodeID;
if (projectId != null)
{
string initTemplatePath = "";
string rootPath = Server.MapPath("~/");
BLL.Common.FastReportService.ResetData();
string strSql = @"SELECT * from JGZL_IndustrialPipelineInstallationSummary where ProjectId = @ProjectId and FromType='1'";
List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@ProjectId", projectId));
if (!string.IsNullOrEmpty(this.txtIsoNoS.Text))
{
strSql += " And PipelineCode like @pipeLineCode";
listStr.Add(new SqlParameter("@pipeLineCode", "%" + this.txtIsoNoS.Text + "%"));
}
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
if (tb.Rows.Count > 0)
{
DataTable dt = new DataTable();
dt.TableName = "Data";
dt.Columns.Add("Num");
dt.Columns.Add("PipelineCode");
dt.Columns.Add("PipelineLevel");
dt.Columns.Add("DesignPressure");
dt.Columns.Add("DesignTemperature");
dt.Columns.Add("OperatingTemperature");
dt.Columns.Add("Medium");
dt.Columns.Add("Material");
dt.Columns.Add("Specifications");
dt.Columns.Add("Length");
dt.Columns.Add("LayingMethod");
dt.Columns.Add("WeldsNum");
dt.Columns.Add("LosslessRatio");
dt.Columns.Add("VoltageResistantTestMedium");
dt.Columns.Add("VoltageResistantTestPressure");
dt.Columns.Add("VoltageResistantTestDate");
dt.Columns.Add("LeakageTestMedium");
dt.Columns.Add("LeakageTestPressure");
dt.Columns.Add("LeakageTestDate");
dt.Columns.Add("CleaningMethod");
dt.Columns.Add("CorrosionControlMethod");
dt.Columns.Add("InsulationMethod");
dt.Columns.Add("PipelineStartPoint");
dt.Columns.Add("PipelineEndPoint");
dt.Columns.Add("Remark");
DataRow[] rows = tb.DefaultView.ToTable().Select();
int i = 0;
foreach (var row in rows)
{
var newRow = dt.NewRow();
newRow["Num"] = (i + 1).ToString();
newRow["PipelineCode"] = row["PipelineCode"].ToString();
newRow["PipelineLevel"] = row["PipelineLevel"].ToString();
newRow["DesignPressure"] = row["DesignPressure"].ToString();
newRow["DesignTemperature"] = row["DesignTemperature"].ToString();
newRow["OperatingTemperature"] = row["OperatingTemperature"].ToString();
newRow["Medium"] = row["Medium"].ToString();
newRow["Material"] = row["Material"].ToString();
newRow["Specifications"] = row["Specifications"].ToString();
newRow["Length"] = row["Length"].ToString();
newRow["LayingMethod"] = row["LayingMethod"].ToString();
newRow["WeldsNum"] = row["WeldsNum"].ToString();
newRow["LosslessRatio"] = row["LosslessRatio"].ToString();
newRow["VoltageResistantTestMedium"] = row["VoltageResistantTestMedium"].ToString();
newRow["VoltageResistantTestPressure"] = row["VoltageResistantTestPressure"].ToString();
string VoltageResistantTestDate = string.Format("{0:yyyy.MM.dd}", row["VoltageResistantTestDate"]);
newRow["VoltageResistantTestDate"] = VoltageResistantTestDate;
newRow["LeakageTestMedium"] = row["LeakageTestMedium"].ToString();
newRow["LeakageTestPressure"] = row["LeakageTestPressure"].ToString();
string LeakageTestDate = string.Format("{0:yyyy.MM.dd}", row["LeakageTestDate"]);
newRow["LeakageTestDate"] = LeakageTestDate;
newRow["CleaningMethod"] = row["CleaningMethod"].ToString();
newRow["CorrosionControlMethod"] = row["CorrosionControlMethod"].ToString();
newRow["InsulationMethod"] = row["InsulationMethod"].ToString();
newRow["PipelineStartPoint"] = row["PipelineStartPoint"].ToString();
newRow["PipelineEndPoint"] = row["PipelineEndPoint"].ToString();
newRow["Remark"] = row["Remark"].ToString();
dt.Rows.Add(newRow);
i++;
}
BLL.Common.FastReportService.AddFastreportTable(dt);
string certificateCode = string.Empty;
string deliveryUnit = string.Empty;
string deliveryUnitCode = string.Empty;
string certificateId = rows[0]["CertificateId"].ToString();
var certificate = BLL.IndustrialPipelineInstallationQualityCertificateService.GetIndustrialPipelineInstallationQualityCertificateById(certificateId);
if (certificate != null)
{
certificateCode = certificate.CertificateCode;
deliveryUnit = certificate.DeliveryUnit;
deliveryUnitCode = certificate.DeliveryUnitCode;
}
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
keyValuePairs.Add("CertificateCode", certificateCode);
keyValuePairs.Add("DeliveryUnit", deliveryUnit);
keyValuePairs.Add("DeliveryUnitCode", deliveryUnitCode);
BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs);
initTemplatePath = "File\\Fastreport\\JGZL\\压力管道安装汇总表.frx";
if (File.Exists(rootPath + initTemplatePath))
{
PageContext.RegisterStartupScript(WindowPrint.GetShowReference(String.Format("../common/ReportPrint/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath)));
}
}
else
{
Alert.ShowInTop("没有要打印的数据!", MessageBoxIcon.Warning);
return;
}
}
else
{
Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
return;
}
}
#endregion
#region 维护
/// <summary>
/// 增加
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnAdd_Click(object sender, EventArgs e)
{
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
{
JArray teamGroupData = Grid1.GetMergedData();
List<JObject> list = new List<JObject>();
foreach (JObject teamGroupRow in teamGroupData)
{
JObject values = teamGroupRow.Value<JObject>("values");
list.Add(values);
}
JObject defaultObj = new JObject
{
{ "SummaryId", Guid.NewGuid() },
//{ "CertificateId", this.drpCertificateCode.SelectedValue },
{ "ProjectId", this.tvControlItem.SelectedNodeID },
{ "PipelineCode", "" },
{ "PipelineLevel", "" },
{ "PipelineStartPoint", "" },
{ "PipelineEndPoint", "" },
{ "DesignPressure", "" },
{ "DesignTemperature", "" },
{ "Medium", "" },
{ "Material", "" },
{ "Specifications", "" },
{ "Length", "" },
{ "LayingMethod", "" },
{ "WeldsNum", "" },
{ "LosslessRatio", "" },
{ "VoltageResistantTestMedium", "" },
{ "VoltageResistantTestPressure", "" },
{ "LeakageTestMedium", "" },
{ "LeakageTestPressure", "" },
{ "CleaningMethod", "" },
{ "CorrosionControlMethod", "" },
{ "InsulationMethod", "" },
{ "OperatingTemperature", "" },
{ "VoltageResistantTestDate", "" },
{ "LeakageTestDate", "" },
{ "Remark", "" },
{ "FromType", "1" },
{
"Delete3",
String.Format("<a href=\"javascript:;\" onclick=\"{0}\"><img src=\"{1}\"/></a>",
GetDeleteScriptGrid1(), IconHelper.GetResolvedIconUrl(Icon.Delete))
}
};
list.Add(defaultObj);
Grid1.DataSource = list;
Grid1.DataBind();
//PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("IndustrialPipelineInstallationSummaryEdit.aspx?projectId={0}", this.tvControlItem.SelectedNodeID, "新增 - ")));
}
else
{
Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
return;
}
}
protected void Grid1_PreDataBound(object sender, EventArgs e)
{
// 设置LinkButtonField的点击客户端事件
LinkButtonField deleteField = Grid1.FindColumn("Delete3") as LinkButtonField;
deleteField.OnClientClick = GetDeleteScriptGrid1();
}
/// <summary>
/// 删除提示
/// </summary>
/// <returns></returns>
private string GetDeleteScriptGrid1()
{
return Confirm.GetShowReference("删除选中行?", String.Empty, MessageBoxIcon.Question,
Grid1.GetDeleteSelectedRowsReference(), String.Empty);
}
#endregion
#region 选择质量证明书编号
/// <summary>
/// 选择质量证明书编号
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void drpCertificateCode_SelectedIndexChanged(object sender, EventArgs e)
{
//this.txtDeliveryUnit.Text = string.Empty;
//this.txtDeliveryUnitCode.Text = string.Empty;
//if (!string.IsNullOrWhiteSpace(this.drpCertificateCode.SelectedValue))
//{
// //this.CertificateId = this.drpCertificateCode.SelectedValue;
// #region 质量证明书
// var certificate = BLL.IndustrialPipelineInstallationQualityCertificateService.GetIndustrialPipelineInstallationQualityCertificateById(this.drpCertificateCode.SelectedValue);
// if (certificate != null)
// {
// this.txtDeliveryUnit.Text = certificate.DeliveryUnit;
// this.txtDeliveryUnitCode.Text = certificate.DeliveryUnitCode;
// }
// #endregion
//}
}
#endregion
#region 保存
/// <summary>
/// 保存按钮
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnSave_Click(object sender, EventArgs e)
{
if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId,
Const.JGZL_IndustrialPipelineInstallationSummaryMenuId, Const.BtnSave))
{
//if (string.IsNullOrEmpty(this.drpCertificateCode.SelectedValue))
//{
// Alert.ShowInTop("请选择质量证明书编号!", MessageBoxIcon.Warning);
// return;
//}
saveItem();
ShowNotify("保存成功!", MessageBoxIcon.Success);
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
}
else
{
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
return;
}
}
void saveItem()
{
BLL.IndustrialPipelineInstallationSummaryService.DeleteIndustrialPipelineInstallationSummaryByProjectId(this.tvControlItem.SelectedNodeID, "1");
List<Model.JGZL_IndustrialPipelineInstallationSummary> detailLists = new List<Model.JGZL_IndustrialPipelineInstallationSummary>();
JArray teamGroupData = Grid1.GetMergedData();
foreach (JObject teamGroupRow in teamGroupData)
{
JObject values = teamGroupRow.Value<JObject>("values");
int rowIndex = teamGroupRow.Value<int>("index");
Model.JGZL_IndustrialPipelineInstallationSummary newDetail = new Model.JGZL_IndustrialPipelineInstallationSummary
{
SummaryId = values.Value<string>("SummaryId"),
ProjectId = this.tvControlItem.SelectedNodeID,
//CertificateId = this.drpCertificateCode.SelectedValue,
PipelineCode = values.Value<string>("PipelineCode"),
PipelineLevel = values.Value<string>("PipelineLevel"),
PipelineStartPoint = values.Value<string>("PipelineStartPoint"),
PipelineEndPoint = values.Value<string>("PipelineEndPoint"),
DesignPressure = values.Value<string>("DesignPressure"),
DesignTemperature = values.Value<string>("DesignTemperature"),
Medium = values.Value<string>("Medium"),
Material = values.Value<string>("Material"),
Specifications = values.Value<string>("Specifications"),
Length = values.Value<string>("Length"),
LayingMethod = values.Value<string>("LayingMethod"),
WeldsNum = values.Value<string>("WeldsNum"),
LosslessRatio = values.Value<string>("LosslessRatio"),
VoltageResistantTestMethod = values.Value<string>("VoltageResistantTestMethod"),
VoltageResistantTestMedium = values.Value<string>("VoltageResistantTestMedium"),
VoltageResistantTestPressure = values.Value<string>("VoltageResistantTestPressure"),
LeakageTestMedium = values.Value<string>("LeakageTestMedium"),
LeakageTestPressure = values.Value<string>("LeakageTestPressure"),
CleaningMethod = values.Value<string>("CleaningMethod"),
CorrosionControlMethod = values.Value<string>("CorrosionControlMethod"),
InsulationMethod = values.Value<string>("InsulationMethod"),
FromType = "1"
};
detailLists.Add(newDetail);
}
try
{
if (detailLists.Count > 0)
{
Funs.DB.JGZL_IndustrialPipelineInstallationSummary.InsertAllOnSubmit(detailLists);
}
Funs.DB.SubmitChanges();
}
catch (Exception)
{
return;
}
}
#endregion
#region 导出按钮
/// 导出按钮
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnOut_Click(object sender, EventArgs e)
{
string rootPath = Server.MapPath("~/");
string initTemplatePath = string.Empty;
string uploadfilepath = string.Empty;
string newUrl = string.Empty;
string filePath = string.Empty;
//每页显示的固定数据行数
int rowsPerPage = 4;
string projectId = this.tvControlItem.SelectedNodeID;
if (!string.IsNullOrEmpty(projectId))
{
string strSql = @"SELECT * from JGZL_IndustrialPipelineInstallationSummary where ProjectId = @ProjectId and FromType='1'";
List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@ProjectId", projectId));
if (!string.IsNullOrEmpty(this.txtIsoNoS.Text))
{
strSql += " And PipelineCode like @pipeLineCode";
listStr.Add(new SqlParameter("@pipeLineCode", "%" + this.txtIsoNoS.Text + "%"));
}
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
if (tb.Rows.Count > 0)
{
initTemplatePath = Const.JGZL_IndustrialPipelineInstallationSummaryUrl;
uploadfilepath = rootPath + initTemplatePath;
newUrl = uploadfilepath.Replace("工业管道安装汇总表导出模板", "工业管道安装汇总表(安装)");
if (File.Exists(newUrl))
{
File.Delete(newUrl);
}
File.Copy(uploadfilepath, newUrl);
//更新书签内容
Document doc = new Aspose.Words.Document(newUrl);
DocumentBuilder builder = new DocumentBuilder(doc);
Aspose.Words.Tables.Table table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, 0, true);
string certificateCode = string.Empty;
string deliveryUnit = string.Empty;
string deliveryUnitCode = string.Empty;
string certificateId = tb.Rows[0]["CertificateId"].ToString();
var certificate = BLL.IndustrialPipelineInstallationQualityCertificateService.GetIndustrialPipelineInstallationQualityCertificateById(certificateId);
if (certificate != null)
{
certificateCode = certificate.CertificateCode;
deliveryUnit = certificate.DeliveryUnit;
deliveryUnitCode = certificate.DeliveryUnitCode;
}
Bookmark bookmark1 = doc.Range.Bookmarks["certificateCode"];
if (bookmark1 != null)
{
bookmark1.Text = certificateCode;
}
Bookmark bookmark2 = doc.Range.Bookmarks["deliveryUnit"];
if (bookmark2 != null)
{
bookmark2.Text = deliveryUnit;
}
Bookmark bookmark3 = doc.Range.Bookmarks["deliveryUnitCode"];
if (bookmark3 != null)
{
bookmark3.Text = deliveryUnitCode;
}
// 设置表头行重复显示
table.Rows[0].RowFormat.HeadingFormat = true;
table.Rows[1].RowFormat.HeadingFormat = true;
table.Rows[2].RowFormat.HeadingFormat = true;
// 先记录页尾行,并从表格中移除
//Row footerRow = table.Rows[table.Rows.Count - 1];
//table.Rows.RemoveAt(table.Rows.Count - 1);
for (int i = 0; i < tb.Rows.Count; i++)
{
//创建行
Aspose.Words.Tables.Row row = new Aspose.Words.Tables.Row(doc);
row.Cells.Add(CreateCell(tb.Rows[i]["PipelineCode"].ToString(), doc, 32.3, "", ""));
row.Cells.Add(CreateCell(tb.Rows[i]["PipelineLevel"].ToString(), doc, 33.7, "", ""));
row.Cells.Add(CreateCell(tb.Rows[i]["PipelineStartPoint"].ToString(), doc, 31.75, "", ""));
row.Cells.Add(CreateCell(tb.Rows[i]["PipelineEndPoint"].ToString(), doc, 32, "", ""));
row.Cells.Add(CreateCell(tb.Rows[i]["DesignPressure"].ToString(), doc, 40, "", ""));
row.Cells.Add(CreateCell(tb.Rows[i]["DesignTemperature"].ToString(), doc, 36, "", ""));
row.Cells.Add(CreateCell(tb.Rows[i]["Medium"].ToString(), doc, 30.6, "", ""));
row.Cells.Add(CreateCell(tb.Rows[i]["Material"].ToString(), doc, 31.47, "", ""));
row.Cells.Add(CreateCell(tb.Rows[i]["Specifications"].ToString(), doc, 32.3, "", ""));
row.Cells.Add(CreateCell(tb.Rows[i]["Length"].ToString(), doc, 30, "", ""));
row.Cells.Add(CreateCell(tb.Rows[i]["LayingMethod"].ToString(), doc, 31.49, "", ""));
row.Cells.Add(CreateCell(tb.Rows[i]["WeldsNum"].ToString(), doc, 30, "", ""));
row.Cells.Add(CreateCell(tb.Rows[i]["LosslessRatio"].ToString(), doc, 39, "", ""));
row.Cells.Add(CreateCell(tb.Rows[i]["VoltageResistantTestMethod"].ToString(), doc, 32.3, "", ""));
row.Cells.Add(CreateCell(tb.Rows[i]["VoltageResistantTestMedium"].ToString(), doc, 28.6, "", ""));
row.Cells.Add(CreateCell(tb.Rows[i]["VoltageResistantTestPressure"].ToString(), doc, 38, "", ""));
row.Cells.Add(CreateCell(tb.Rows[i]["LeakageTestMedium"].ToString(), doc, 37.4, "", ""));
row.Cells.Add(CreateCell(tb.Rows[i]["LeakageTestPressure"].ToString(), doc, 41.67, "", ""));
row.Cells.Add(CreateCell(tb.Rows[i]["CleaningMethod"].ToString(), doc, 34.3, "", ""));
row.Cells.Add(CreateCell(tb.Rows[i]["CorrosionControlMethod"].ToString(), doc, 31.2, "", ""));
row.Cells.Add(CreateCell(tb.Rows[i]["InsulationMethod"].ToString(), doc, 43.9, "", ""));
table.Rows.Insert(i + 3, row);
}
// 计算并插入空白行,填满整页
// 计算总数据行数
int totalDataRows = tb.Rows.Count;
// 计算需要补充的空白行数量
int remainder = totalDataRows % rowsPerPage;
int needBlankRows = remainder == 0 ? 0 : rowsPerPage - remainder;
// 插入空白行(和数据行格式保持一致,仅内容为空)
for (int i = 0; i < needBlankRows - 1; i++)
{
Aspose.Words.Tables.Row blankRow = new Aspose.Words.Tables.Row(doc);
// 空白行的单元格宽度和数据行保持一致
blankRow.Cells.Add(CreateCell("", doc, 32.3, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 33.7, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 31.75, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 32, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 40, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 36, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 30.6, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 31.47, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 32.3, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 30, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 31.49, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 30, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 39, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 32.3, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 28.6, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 38, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 37.4, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 41.67, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 34.3, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 31.2, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 43.9, "", ""));
// 插入到表格最后一行
table.Rows.Add(blankRow);
}
//把页尾行重新加回表格最后
//table.Rows.Add(footerRow);
//自动设置表格样式
table.AutoFit(AutoFitBehavior.FixedColumnWidths);
table.Alignment = TableAlignment.Center;
doc.Save(newUrl);
string fileName = Path.GetFileName(newUrl);
FileInfo info = new FileInfo(newUrl);
long fileSize = info.Length;
Response.Clear();
Response.ContentType = "application/x-zip-compressed";
Response.AddHeader("Content-Disposition", "attachment;filename=" + System.Web.HttpUtility.UrlEncode(fileName, System.Text.Encoding.UTF8));
Response.AddHeader("Content-Length", fileSize.ToString());
Response.TransmitFile(newUrl, 0, fileSize);
Response.Flush();
Response.Close();
File.Delete(newUrl);
}
else
{
Alert.ShowInTop("没有要导出的数据!", MessageBoxIcon.Warning);
return;
}
}
else
{
Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
return;
}
}
public static Cell CreateCell(String value, Document doc, double cellWidth, string cellMerge = "", string CenterPage = "", string cellUnitLeft = "")
{
Cell cell = new Cell(doc);
Paragraph p = new Paragraph(doc);
if (!string.IsNullOrEmpty(cellMerge))
{
if (cellMerge == "0")
{
cell.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.First;//竖直方向合并的第一个单元格
}
else
{
cell.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.Previous;//竖直方向合并的第一个单元格
}
}
else
{
cell.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
}
if (!string.IsNullOrEmpty(CenterPage))
{
//序号
value = " " + value;
}
if (!string.IsNullOrEmpty(cellUnitLeft))
{
p.ParagraphFormat.Alignment = ParagraphAlignment.Left;//表格中字体居左
}
else
{
p.ParagraphFormat.Alignment = ParagraphAlignment.Center;//表格中字体居中
}
p.AppendChild(new Run(doc, value));
cell.CellFormat.Width = cellWidth;
cell.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;
cell.CellFormat.Borders.LineWidth = 0.75;
cell.AppendChild(p);
return cell;
}
#endregion
}
}
@@ -0,0 +1,467 @@
//------------------------------------------------------------------------------
// <自动生成>
// 此代码由工具生成。
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.JGZL
{
public partial class IndustrialInstallationSummaryZhoushan
{
/// <summary>
/// form1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// PageManager1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.PageManager PageManager1;
/// <summary>
/// Panel1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel Panel1;
/// <summary>
/// panelLeftRegion 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel panelLeftRegion;
/// <summary>
/// Toolbar1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar1;
/// <summary>
/// drpProjectId 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpProjectId;
/// <summary>
/// tvControlItem 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Tree tvControlItem;
/// <summary>
/// panelCenterRegion 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel panelCenterRegion;
/// <summary>
/// Toolbar2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar2;
/// <summary>
/// txtIsoNoS 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtIsoNoS;
/// <summary>
/// ToolbarFill1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarFill ToolbarFill1;
/// <summary>
/// btnAdd 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnAdd;
/// <summary>
/// btnSave 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnSave;
/// <summary>
/// btnPrint 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnPrint;
/// <summary>
/// btnOut 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnOut;
/// <summary>
/// Grid1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Grid Grid1;
/// <summary>
/// Toolbar3 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar3;
/// <summary>
/// txtInstallationName 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtInstallationName;
/// <summary>
/// txtTestPackageCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtTestPackageCode;
/// <summary>
/// ToolbarFill2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarFill ToolbarFill2;
/// <summary>
/// txtPipelineName 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtPipelineName;
/// <summary>
/// txtPipelineCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtPipelineCode;
/// <summary>
/// txtPipelineLevel 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtPipelineLevel;
/// <summary>
/// txtMaterial 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtMaterial;
/// <summary>
/// txtMedium 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtMedium;
/// <summary>
/// txtDiameter 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtDiameter;
/// <summary>
/// txtWallThickness 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtWallThickness;
/// <summary>
/// txtPipelineLength 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtPipelineLength;
/// <summary>
/// txtWeldJointsCount 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtWeldJointsCount;
/// <summary>
/// txtPipelineStartPoint 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtPipelineStartPoint;
/// <summary>
/// txtPipelineEndPoint 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtPipelineEndPoint;
/// <summary>
/// txtDesignPressure 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtDesignPressure;
/// <summary>
/// txtDesignTemperature 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtDesignTemperature;
/// <summary>
/// txtSpecifications 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtSpecifications;
/// <summary>
/// txtLength 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtLength;
/// <summary>
/// txtLayingMethod 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtLayingMethod;
/// <summary>
/// txtWeldsNum 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtWeldsNum;
/// <summary>
/// txtLosslessRatio 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtLosslessRatio;
/// <summary>
/// txtVoltageResistantTestMethod 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtVoltageResistantTestMethod;
/// <summary>
/// txtVoltageResistantTestMedium 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtVoltageResistantTestMedium;
/// <summary>
/// txtVoltageResistantTestPressure 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtVoltageResistantTestPressure;
/// <summary>
/// txtLeakageTestMedium 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtLeakageTestMedium;
/// <summary>
/// txtLeakageTestPressure 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtLeakageTestPressure;
/// <summary>
/// txtCleaningMethod 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtCleaningMethod;
/// <summary>
/// txtCorrosionControlMethod 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtCorrosionControlMethod;
/// <summary>
/// txtInsulationMethod 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtInsulationMethod;
/// <summary>
/// ToolbarSeparator1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
/// <summary>
/// ToolbarText1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarText ToolbarText1;
/// <summary>
/// ddlPageSize 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList ddlPageSize;
/// <summary>
/// WindowPrint 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Window WindowPrint;
}
}
@@ -229,7 +229,7 @@ namespace FineUIPro.Web.JGZL
BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs);
BLL.Common.FastReportService.AddFastreportTable(dt);
initTemplatePath = "File\\Fastreport\\JGZL\\焊条烘烤记录.frx";
initTemplatePath = "File\\Fastreport\\焊条烘烤记录.frx";
if (File.Exists(rootPath + initTemplatePath))
{
+670
View File
@@ -419,6 +419,9 @@ namespace Model
partial void InsertJGZL_HandoverCertificate(JGZL_HandoverCertificate instance);
partial void UpdateJGZL_HandoverCertificate(JGZL_HandoverCertificate instance);
partial void DeleteJGZL_HandoverCertificate(JGZL_HandoverCertificate instance);
partial void InsertJGZL_IndustrialInstallationSummaryZhoushan(JGZL_IndustrialInstallationSummaryZhoushan instance);
partial void UpdateJGZL_IndustrialInstallationSummaryZhoushan(JGZL_IndustrialInstallationSummaryZhoushan instance);
partial void DeleteJGZL_IndustrialInstallationSummaryZhoushan(JGZL_IndustrialInstallationSummaryZhoushan instance);
partial void InsertJGZL_IndustrialPipelineInstallationQualityCertificate(JGZL_IndustrialPipelineInstallationQualityCertificate instance);
partial void UpdateJGZL_IndustrialPipelineInstallationQualityCertificate(JGZL_IndustrialPipelineInstallationQualityCertificate instance);
partial void DeleteJGZL_IndustrialPipelineInstallationQualityCertificate(JGZL_IndustrialPipelineInstallationQualityCertificate instance);
@@ -2058,6 +2061,14 @@ namespace Model
}
}
public System.Data.Linq.Table<JGZL_IndustrialInstallationSummaryZhoushan> JGZL_IndustrialInstallationSummaryZhoushan
{
get
{
return this.GetTable<JGZL_IndustrialInstallationSummaryZhoushan>();
}
}
public System.Data.Linq.Table<JGZL_IndustrialPipelineInstallationQualityCertificate> JGZL_IndustrialPipelineInstallationQualityCertificate
{
get
@@ -5027,6 +5038,8 @@ namespace Model
private EntitySet<JGZL_HandoverCertificate> _JGZL_HandoverCertificate;
private EntitySet<JGZL_IndustrialInstallationSummaryZhoushan> _JGZL_IndustrialInstallationSummaryZhoushan;
private EntitySet<JGZL_IndustrialPipelineInstallationQualityCertificate> _JGZL_IndustrialPipelineInstallationQualityCertificate;
private EntitySet<JGZL_IndustrialPipelineInstallationSummary> _JGZL_IndustrialPipelineInstallationSummary;
@@ -5231,6 +5244,7 @@ namespace Model
this._JGZL_ElectrostaticGrounding = new EntitySet<JGZL_ElectrostaticGrounding>(new Action<JGZL_ElectrostaticGrounding>(this.attach_JGZL_ElectrostaticGrounding), new Action<JGZL_ElectrostaticGrounding>(this.detach_JGZL_ElectrostaticGrounding));
this._JGZL_FileDirectory = new EntitySet<JGZL_FileDirectory>(new Action<JGZL_FileDirectory>(this.attach_JGZL_FileDirectory), new Action<JGZL_FileDirectory>(this.detach_JGZL_FileDirectory));
this._JGZL_HandoverCertificate = new EntitySet<JGZL_HandoverCertificate>(new Action<JGZL_HandoverCertificate>(this.attach_JGZL_HandoverCertificate), new Action<JGZL_HandoverCertificate>(this.detach_JGZL_HandoverCertificate));
this._JGZL_IndustrialInstallationSummaryZhoushan = new EntitySet<JGZL_IndustrialInstallationSummaryZhoushan>(new Action<JGZL_IndustrialInstallationSummaryZhoushan>(this.attach_JGZL_IndustrialInstallationSummaryZhoushan), new Action<JGZL_IndustrialInstallationSummaryZhoushan>(this.detach_JGZL_IndustrialInstallationSummaryZhoushan));
this._JGZL_IndustrialPipelineInstallationQualityCertificate = new EntitySet<JGZL_IndustrialPipelineInstallationQualityCertificate>(new Action<JGZL_IndustrialPipelineInstallationQualityCertificate>(this.attach_JGZL_IndustrialPipelineInstallationQualityCertificate), new Action<JGZL_IndustrialPipelineInstallationQualityCertificate>(this.detach_JGZL_IndustrialPipelineInstallationQualityCertificate));
this._JGZL_IndustrialPipelineInstallationSummary = new EntitySet<JGZL_IndustrialPipelineInstallationSummary>(new Action<JGZL_IndustrialPipelineInstallationSummary>(this.attach_JGZL_IndustrialPipelineInstallationSummary), new Action<JGZL_IndustrialPipelineInstallationSummary>(this.detach_JGZL_IndustrialPipelineInstallationSummary));
this._JGZL_InsulationAcceptanceRecord = new EntitySet<JGZL_InsulationAcceptanceRecord>(new Action<JGZL_InsulationAcceptanceRecord>(this.attach_JGZL_InsulationAcceptanceRecord), new Action<JGZL_InsulationAcceptanceRecord>(this.detach_JGZL_InsulationAcceptanceRecord));
@@ -6526,6 +6540,19 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_IndustrialInstallationSummaryZhoushan_Base_Project", Storage="_JGZL_IndustrialInstallationSummaryZhoushan", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
public EntitySet<JGZL_IndustrialInstallationSummaryZhoushan> JGZL_IndustrialInstallationSummaryZhoushan
{
get
{
return this._JGZL_IndustrialInstallationSummaryZhoushan;
}
set
{
this._JGZL_IndustrialInstallationSummaryZhoushan.Assign(value);
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_IndustrialPipelineInstallationQualityCertificate_Base_Project", Storage="_JGZL_IndustrialPipelineInstallationQualityCertificate", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
public EntitySet<JGZL_IndustrialPipelineInstallationQualityCertificate> JGZL_IndustrialPipelineInstallationQualityCertificate
{
@@ -7744,6 +7771,18 @@ namespace Model
entity.Base_Project = null;
}
private void attach_JGZL_IndustrialInstallationSummaryZhoushan(JGZL_IndustrialInstallationSummaryZhoushan entity)
{
this.SendPropertyChanging();
entity.Base_Project = this;
}
private void detach_JGZL_IndustrialInstallationSummaryZhoushan(JGZL_IndustrialInstallationSummaryZhoushan entity)
{
this.SendPropertyChanging();
entity.Base_Project = null;
}
private void attach_JGZL_IndustrialPipelineInstallationQualityCertificate(JGZL_IndustrialPipelineInstallationQualityCertificate entity)
{
this.SendPropertyChanging();
@@ -88788,6 +88827,637 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.JGZL_IndustrialInstallationSummaryZhoushan")]
public partial class JGZL_IndustrialInstallationSummaryZhoushan : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private string _SummaryId;
private string _ProjectId;
private string _InstallationName;
private string _TestPackageCode;
private string _PipelineName;
private string _PipelineCode;
private string _PipelineLevel;
private string _Material;
private string _Medium;
private System.Nullable<decimal> _Diameter;
private System.Nullable<decimal> _WallThickness;
private System.Nullable<decimal> _PipelineLength;
private System.Nullable<int> _WeldJointsCount;
private System.Nullable<int> _PipeFittings;
private string _StartPoint;
private string _EndPoint;
private System.Nullable<decimal> _DesignTemperature;
private System.Nullable<decimal> _DesignPressure;
private System.Nullable<decimal> _OperatingTemperature;
private System.Nullable<decimal> _OperatingPressure;
private string _PressureTestMedium;
private System.Nullable<decimal> _PressureTestPressure;
private System.Nullable<System.DateTime> _TestDate;
private EntityRef<Base_Project> _Base_Project;
#region 可扩展性方法定义
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnSummaryIdChanging(string value);
partial void OnSummaryIdChanged();
partial void OnProjectIdChanging(string value);
partial void OnProjectIdChanged();
partial void OnInstallationNameChanging(string value);
partial void OnInstallationNameChanged();
partial void OnTestPackageCodeChanging(string value);
partial void OnTestPackageCodeChanged();
partial void OnPipelineNameChanging(string value);
partial void OnPipelineNameChanged();
partial void OnPipelineCodeChanging(string value);
partial void OnPipelineCodeChanged();
partial void OnPipelineLevelChanging(string value);
partial void OnPipelineLevelChanged();
partial void OnMaterialChanging(string value);
partial void OnMaterialChanged();
partial void OnMediumChanging(string value);
partial void OnMediumChanged();
partial void OnDiameterChanging(System.Nullable<decimal> value);
partial void OnDiameterChanged();
partial void OnWallThicknessChanging(System.Nullable<decimal> value);
partial void OnWallThicknessChanged();
partial void OnPipelineLengthChanging(System.Nullable<decimal> value);
partial void OnPipelineLengthChanged();
partial void OnWeldJointsCountChanging(System.Nullable<int> value);
partial void OnWeldJointsCountChanged();
partial void OnPipeFittingsChanging(System.Nullable<int> value);
partial void OnPipeFittingsChanged();
partial void OnStartPointChanging(string value);
partial void OnStartPointChanged();
partial void OnEndPointChanging(string value);
partial void OnEndPointChanged();
partial void OnDesignTemperatureChanging(System.Nullable<decimal> value);
partial void OnDesignTemperatureChanged();
partial void OnDesignPressureChanging(System.Nullable<decimal> value);
partial void OnDesignPressureChanged();
partial void OnOperatingTemperatureChanging(System.Nullable<decimal> value);
partial void OnOperatingTemperatureChanged();
partial void OnOperatingPressureChanging(System.Nullable<decimal> value);
partial void OnOperatingPressureChanged();
partial void OnPressureTestMediumChanging(string value);
partial void OnPressureTestMediumChanged();
partial void OnPressureTestPressureChanging(System.Nullable<decimal> value);
partial void OnPressureTestPressureChanged();
partial void OnTestDateChanging(System.Nullable<System.DateTime> value);
partial void OnTestDateChanged();
#endregion
public JGZL_IndustrialInstallationSummaryZhoushan()
{
this._Base_Project = default(EntityRef<Base_Project>);
OnCreated();
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SummaryId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
public string SummaryId
{
get
{
return this._SummaryId;
}
set
{
if ((this._SummaryId != value))
{
this.OnSummaryIdChanging(value);
this.SendPropertyChanging();
this._SummaryId = value;
this.SendPropertyChanged("SummaryId");
this.OnSummaryIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")]
public string ProjectId
{
get
{
return this._ProjectId;
}
set
{
if ((this._ProjectId != value))
{
if (this._Base_Project.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnProjectIdChanging(value);
this.SendPropertyChanging();
this._ProjectId = value;
this.SendPropertyChanged("ProjectId");
this.OnProjectIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InstallationName", DbType="NVarChar(50)")]
public string InstallationName
{
get
{
return this._InstallationName;
}
set
{
if ((this._InstallationName != value))
{
this.OnInstallationNameChanging(value);
this.SendPropertyChanging();
this._InstallationName = value;
this.SendPropertyChanged("InstallationName");
this.OnInstallationNameChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TestPackageCode", DbType="NVarChar(50)")]
public string TestPackageCode
{
get
{
return this._TestPackageCode;
}
set
{
if ((this._TestPackageCode != value))
{
this.OnTestPackageCodeChanging(value);
this.SendPropertyChanging();
this._TestPackageCode = value;
this.SendPropertyChanged("TestPackageCode");
this.OnTestPackageCodeChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineName", DbType="NVarChar(50)")]
public string PipelineName
{
get
{
return this._PipelineName;
}
set
{
if ((this._PipelineName != value))
{
this.OnPipelineNameChanging(value);
this.SendPropertyChanging();
this._PipelineName = value;
this.SendPropertyChanged("PipelineName");
this.OnPipelineNameChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineCode", DbType="NVarChar(50)")]
public string PipelineCode
{
get
{
return this._PipelineCode;
}
set
{
if ((this._PipelineCode != value))
{
this.OnPipelineCodeChanging(value);
this.SendPropertyChanging();
this._PipelineCode = value;
this.SendPropertyChanged("PipelineCode");
this.OnPipelineCodeChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineLevel", DbType="NVarChar(50)")]
public string PipelineLevel
{
get
{
return this._PipelineLevel;
}
set
{
if ((this._PipelineLevel != value))
{
this.OnPipelineLevelChanging(value);
this.SendPropertyChanging();
this._PipelineLevel = value;
this.SendPropertyChanged("PipelineLevel");
this.OnPipelineLevelChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Material", DbType="NVarChar(50)")]
public string Material
{
get
{
return this._Material;
}
set
{
if ((this._Material != value))
{
this.OnMaterialChanging(value);
this.SendPropertyChanging();
this._Material = value;
this.SendPropertyChanged("Material");
this.OnMaterialChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Medium", DbType="NVarChar(50)")]
public string Medium
{
get
{
return this._Medium;
}
set
{
if ((this._Medium != value))
{
this.OnMediumChanging(value);
this.SendPropertyChanging();
this._Medium = value;
this.SendPropertyChanged("Medium");
this.OnMediumChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Diameter", DbType="Decimal(18,2)")]
public System.Nullable<decimal> Diameter
{
get
{
return this._Diameter;
}
set
{
if ((this._Diameter != value))
{
this.OnDiameterChanging(value);
this.SendPropertyChanging();
this._Diameter = value;
this.SendPropertyChanged("Diameter");
this.OnDiameterChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WallThickness", DbType="Decimal(18,2)")]
public System.Nullable<decimal> WallThickness
{
get
{
return this._WallThickness;
}
set
{
if ((this._WallThickness != value))
{
this.OnWallThicknessChanging(value);
this.SendPropertyChanging();
this._WallThickness = value;
this.SendPropertyChanged("WallThickness");
this.OnWallThicknessChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineLength", DbType="Decimal(18,2)")]
public System.Nullable<decimal> PipelineLength
{
get
{
return this._PipelineLength;
}
set
{
if ((this._PipelineLength != value))
{
this.OnPipelineLengthChanging(value);
this.SendPropertyChanging();
this._PipelineLength = value;
this.SendPropertyChanged("PipelineLength");
this.OnPipelineLengthChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WeldJointsCount", DbType="Int")]
public System.Nullable<int> WeldJointsCount
{
get
{
return this._WeldJointsCount;
}
set
{
if ((this._WeldJointsCount != value))
{
this.OnWeldJointsCountChanging(value);
this.SendPropertyChanging();
this._WeldJointsCount = value;
this.SendPropertyChanged("WeldJointsCount");
this.OnWeldJointsCountChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipeFittings", DbType="Int")]
public System.Nullable<int> PipeFittings
{
get
{
return this._PipeFittings;
}
set
{
if ((this._PipeFittings != value))
{
this.OnPipeFittingsChanging(value);
this.SendPropertyChanging();
this._PipeFittings = value;
this.SendPropertyChanged("PipeFittings");
this.OnPipeFittingsChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StartPoint", DbType="NVarChar(50)")]
public string StartPoint
{
get
{
return this._StartPoint;
}
set
{
if ((this._StartPoint != value))
{
this.OnStartPointChanging(value);
this.SendPropertyChanging();
this._StartPoint = value;
this.SendPropertyChanged("StartPoint");
this.OnStartPointChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EndPoint", DbType="NVarChar(50)")]
public string EndPoint
{
get
{
return this._EndPoint;
}
set
{
if ((this._EndPoint != value))
{
this.OnEndPointChanging(value);
this.SendPropertyChanging();
this._EndPoint = value;
this.SendPropertyChanged("EndPoint");
this.OnEndPointChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DesignTemperature", DbType="Decimal(18,2)")]
public System.Nullable<decimal> DesignTemperature
{
get
{
return this._DesignTemperature;
}
set
{
if ((this._DesignTemperature != value))
{
this.OnDesignTemperatureChanging(value);
this.SendPropertyChanging();
this._DesignTemperature = value;
this.SendPropertyChanged("DesignTemperature");
this.OnDesignTemperatureChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DesignPressure", DbType="Decimal(18,2)")]
public System.Nullable<decimal> DesignPressure
{
get
{
return this._DesignPressure;
}
set
{
if ((this._DesignPressure != value))
{
this.OnDesignPressureChanging(value);
this.SendPropertyChanging();
this._DesignPressure = value;
this.SendPropertyChanged("DesignPressure");
this.OnDesignPressureChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OperatingTemperature", DbType="Decimal(18,2)")]
public System.Nullable<decimal> OperatingTemperature
{
get
{
return this._OperatingTemperature;
}
set
{
if ((this._OperatingTemperature != value))
{
this.OnOperatingTemperatureChanging(value);
this.SendPropertyChanging();
this._OperatingTemperature = value;
this.SendPropertyChanged("OperatingTemperature");
this.OnOperatingTemperatureChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OperatingPressure", DbType="Decimal(18,2)")]
public System.Nullable<decimal> OperatingPressure
{
get
{
return this._OperatingPressure;
}
set
{
if ((this._OperatingPressure != value))
{
this.OnOperatingPressureChanging(value);
this.SendPropertyChanging();
this._OperatingPressure = value;
this.SendPropertyChanged("OperatingPressure");
this.OnOperatingPressureChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PressureTestMedium", DbType="NVarChar(50)")]
public string PressureTestMedium
{
get
{
return this._PressureTestMedium;
}
set
{
if ((this._PressureTestMedium != value))
{
this.OnPressureTestMediumChanging(value);
this.SendPropertyChanging();
this._PressureTestMedium = value;
this.SendPropertyChanged("PressureTestMedium");
this.OnPressureTestMediumChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PressureTestPressure", DbType="Decimal(18,2)")]
public System.Nullable<decimal> PressureTestPressure
{
get
{
return this._PressureTestPressure;
}
set
{
if ((this._PressureTestPressure != value))
{
this.OnPressureTestPressureChanging(value);
this.SendPropertyChanging();
this._PressureTestPressure = value;
this.SendPropertyChanged("PressureTestPressure");
this.OnPressureTestPressureChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TestDate", DbType="DateTime")]
public System.Nullable<System.DateTime> TestDate
{
get
{
return this._TestDate;
}
set
{
if ((this._TestDate != value))
{
this.OnTestDateChanging(value);
this.SendPropertyChanging();
this._TestDate = value;
this.SendPropertyChanged("TestDate");
this.OnTestDateChanged();
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_IndustrialInstallationSummaryZhoushan_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)]
public Base_Project Base_Project
{
get
{
return this._Base_Project.Entity;
}
set
{
Base_Project previousValue = this._Base_Project.Entity;
if (((previousValue != value)
|| (this._Base_Project.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._Base_Project.Entity = null;
previousValue.JGZL_IndustrialInstallationSummaryZhoushan.Remove(this);
}
this._Base_Project.Entity = value;
if ((value != null))
{
value.JGZL_IndustrialInstallationSummaryZhoushan.Add(this);
this._ProjectId = value.ProjectId;
}
else
{
this._ProjectId = default(string);
}
this.SendPropertyChanged("Base_Project");
}
}
}
public event PropertyChangingEventHandler PropertyChanging;
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void SendPropertyChanging()
{
if ((this.PropertyChanging != null))
{
this.PropertyChanging(this, emptyChangingEventArgs);
}
}
protected virtual void SendPropertyChanged(String propertyName)
{
if ((this.PropertyChanged != null))
{
this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
}
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.JGZL_IndustrialPipelineInstallationQualityCertificate")]
public partial class JGZL_IndustrialPipelineInstallationQualityCertificate : INotifyPropertyChanging, INotifyPropertyChanged
{