20260402 试压包资料

This commit is contained in:
毕文静 2026-04-02 15:57:48 +08:00
parent f9d9e1c39c
commit ea4b2e4d57
22 changed files with 3261 additions and 56 deletions

View File

@ -0,0 +1,166 @@
insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuModule)
values('98D86451-156A-46D2-B76B-48DA617EBCB6','弹簧支/吊架安装检验记录','SYBData/SpringSupportHangBracket.aspx',180,'3EAFF140-E5CA-4978-B83D-D2C9F36E0D52','3')
go
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
values('12048A6D-4974-4896-B076-248E9B08ED52','98D86451-156A-46D2-B76B-48DA617EBCB6','增加',1)
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
values('C504891F-93AF-4015-B61F-B39E4DB9EB6E','98D86451-156A-46D2-B76B-48DA617EBCB6','修改',2)
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
values('2EA4861B-7D5F-46ED-B029-7E864D1AF244','98D86451-156A-46D2-B76B-48DA617EBCB6','删除',3)
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
values('A08E01FD-A765-4A31-93C0-070FFCC9FCF1','98D86451-156A-46D2-B76B-48DA617EBCB6','保存',4)
go
CREATE TABLE [dbo].[SYBData_SpringSupportHangBracket](
[SpringSupportHangBracketId] [nvarchar](50) NOT NULL,
[ProjectId] [nvarchar](50) NULL,
[PipelineCode] [nvarchar](50) NULL,
[PositionNum] [nvarchar](50) NULL,
[StructuralType] [nvarchar](50) NULL,
[DirectionOfDisplacement] [nvarchar](50) NULL,
[DesignLoadValue] [nvarchar](50) NULL,
[InstallationLoadValue] [nvarchar](50) NULL,
[CheckResults] [nvarchar](50) NULL,
[CompileMan] [nvarchar](50) NULL,
[CompileDate] [datetime] NULL,
CONSTRAINT [PK_SYBData_SpringSupportHangBracket] PRIMARY KEY CLUSTERED
(
[SpringSupportHangBracketId] 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].[SYBData_SpringSupportHangBracket] WITH CHECK ADD CONSTRAINT [FK_SYBData_SpringSupportHangBracket_Base_Project] FOREIGN KEY([ProjectId])
REFERENCES [dbo].[Base_Project] ([ProjectId])
GO
ALTER TABLE [dbo].[SYBData_SpringSupportHangBracket] CHECK CONSTRAINT [FK_SYBData_SpringSupportHangBracket_Base_Project]
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_SpringSupportHangBracket', @level2type=N'COLUMN',@level2name=N'SpringSupportHangBracketId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_SpringSupportHangBracket', @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'SYBData_SpringSupportHangBracket', @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'SYBData_SpringSupportHangBracket', @level2type=N'COLUMN',@level2name=N'PositionNum'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'结构型式' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_SpringSupportHangBracket', @level2type=N'COLUMN',@level2name=N'StructuralType'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'位移方向' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_SpringSupportHangBracket', @level2type=N'COLUMN',@level2name=N'DirectionOfDisplacement'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'设计冷态负荷值' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_SpringSupportHangBracket', @level2type=N'COLUMN',@level2name=N'DesignLoadValue'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'安装冷态负荷值' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_SpringSupportHangBracket', @level2type=N'COLUMN',@level2name=N'InstallationLoadValue'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'检查结果' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_SpringSupportHangBracket', @level2type=N'COLUMN',@level2name=N'CheckResults'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_SpringSupportHangBracket', @level2type=N'COLUMN',@level2name=N'CompileMan'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'弹簧支/吊架安装检验记录' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_SpringSupportHangBracket'
GO
insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuModule)
values('C6D77E52-89F0-4A2F-ABC5-5EB010A486B9','滑动/固定管托安装检验记录','SYBData/SlidingFixed.aspx',190,'3EAFF140-E5CA-4978-B83D-D2C9F36E0D52','3')
go
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
values('02923C43-AA04-4B46-9AE4-5428A1C6A101','C6D77E52-89F0-4A2F-ABC5-5EB010A486B9','增加',1)
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
values('66D11CC8-C004-474D-BCB7-981008BACD80','C6D77E52-89F0-4A2F-ABC5-5EB010A486B9','修改',2)
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
values('05D2EAA4-6666-4B03-BBDB-DD529EC676BF','C6D77E52-89F0-4A2F-ABC5-5EB010A486B9','删除',3)
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
values('78F25AD6-162C-4CB8-B6EF-A10333A1CB18','C6D77E52-89F0-4A2F-ABC5-5EB010A486B9','保存',4)
go
CREATE TABLE [dbo].[SYBData_SlidingFixed](
[SlidingFixedId] [nvarchar](50) NOT NULL,
[ProjectId] [nvarchar](50) NULL,
[PipelineCode] [nvarchar](50) NULL,
[PipeSupportCode] [nvarchar](50) NULL,
[Types] [nvarchar](50) NULL,
[DirectionOfDisplacement] [nvarchar](50) NULL,
[DesignDisplacement] [nvarchar](50) NULL,
[InstallationDisplacement] [nvarchar](50) NULL,
[CheckResult] [nvarchar](50) NULL,
[CompileMan] [nvarchar](50) NULL,
[CompileDate] [datetime] NULL,
CONSTRAINT [PK_SYBData_SlidingFixed] PRIMARY KEY CLUSTERED
(
[SlidingFixedId] 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].[SYBData_SlidingFixed] WITH CHECK ADD CONSTRAINT [FK_SYBData_SlidingFixed_Base_Project] FOREIGN KEY([ProjectId])
REFERENCES [dbo].[Base_Project] ([ProjectId])
GO
ALTER TABLE [dbo].[SYBData_SlidingFixed] CHECK CONSTRAINT [FK_SYBData_SlidingFixed_Base_Project]
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_SlidingFixed', @level2type=N'COLUMN',@level2name=N'SlidingFixedId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_SlidingFixed', @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'SYBData_SlidingFixed', @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'SYBData_SlidingFixed', @level2type=N'COLUMN',@level2name=N'PipeSupportCode'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'型式' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_SlidingFixed', @level2type=N'COLUMN',@level2name=N'Types'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'位移方向' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_SlidingFixed', @level2type=N'COLUMN',@level2name=N'DirectionOfDisplacement'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'设计位移量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_SlidingFixed', @level2type=N'COLUMN',@level2name=N'DesignDisplacement'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'安装位移量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_SlidingFixed', @level2type=N'COLUMN',@level2name=N'InstallationDisplacement'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'检验结果' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_SlidingFixed', @level2type=N'COLUMN',@level2name=N'CheckResult'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_SlidingFixed', @level2type=N'COLUMN',@level2name=N'CompileMan'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_SlidingFixed', @level2type=N'COLUMN',@level2name=N'CompileDate'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'滑动/固定管托安装检验记录' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_SlidingFixed'
GO
insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuModule)
values('51877524-A99F-4FCB-BDD8-D5A4A4E670DA','管道静电接地检查记录','JGZL/ElectrostaticGrounding.aspx',210,'3EAFF140-E5CA-4978-B83D-D2C9F36E0D52','3')
go
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
values('BD134D94-A1BA-45FA-B1F9-57C7775982A7','51877524-A99F-4FCB-BDD8-D5A4A4E670DA','增加',1)
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
values('4A28BAF2-ECB9-4A2F-B6EC-9F2110DDC469','51877524-A99F-4FCB-BDD8-D5A4A4E670DA','修改',2)
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
values('13FEFCA3-C7D0-44A2-A436-EE81AD32639E','51877524-A99F-4FCB-BDD8-D5A4A4E670DA','删除',3)
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
values('555F3662-25FF-4D46-A3A8-39B43834D174','51877524-A99F-4FCB-BDD8-D5A4A4E670DA','保存',4)
go

View File

@ -303,6 +303,8 @@
<Compile Include="SYBData\BlindFlangeInstallationAndRemovalService.cs" />
<Compile Include="SYBData\CoverService.cs" />
<Compile Include="SYBData\PressureTestPackageListService.cs" />
<Compile Include="SYBData\SlidingFixedService.cs" />
<Compile Include="SYBData\SpringSupportHangBracketService.cs" />
<Compile Include="SYBData\SYBData_FileDirectoryService.cs" />
<Compile Include="WeldMat\BaseInfo\SpecificationsService.cs" />
<Compile Include="WeldMat\BaseInfo\StoremanInfoService.cs" />

View File

@ -1947,6 +1947,16 @@ namespace BLL
/// 管道系统试压临时盲板安装、拆除记录
/// </summary>
public const string SYBData_BlindFlangeInstallationAndRemovalMenuId = "9C0906E0-8619-4571-A0A6-020CAA4B55AF";
/// <summary>
/// 弹簧支/吊架安装检验记录
/// </summary>
public const string SYBData_SpringSupportHangBracketMenuId = "98D86451-156A-46D2-B76B-48DA617EBCB6";
/// <summary>
/// 滑动/固定管托安装检验记录
/// </summary>
public const string SYBData_SlidingFixedMenuId = "C6D77E52-89F0-4A2F-ABC5-5EB010A486B9";
#endregion
#region ID

View File

@ -0,0 +1,40 @@
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BLL
{
/// <summary>
/// 滑动/固定管托安装检验记录
/// </summary>
public class SlidingFixedService
{
/// <summary>
/// 根据项目id获取滑动/固定管托安装检验记录
/// </summary>
/// <param name="projectId"></param>
/// <returns></returns>
public static List<Model.SYBData_SlidingFixed> GetListsByProjectId(string projectId)
{
return (from x in Funs.DB.SYBData_SlidingFixed where x.ProjectId == projectId select x).ToList();
}
/// <summary>
/// 根据项目id删除滑动/固定管托安装检验记录
/// </summary>
/// <param name="projectId"></param>
public static void DeleteSlidingFixedByProjectId(string projectId)
{
SGGLDB db = Funs.DB;
var q = (from x in db.SYBData_SlidingFixed where x.ProjectId == projectId select x).ToList();
if (q.Count > 0)
{
db.SYBData_SlidingFixed.DeleteAllOnSubmit(q);
db.SubmitChanges();
}
}
}
}

View File

@ -0,0 +1,63 @@
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BLL
{
/// <summary>
/// 弹簧支/吊架安装检验记录
/// </summary>
public class SpringSupportHangBracketService
{
/// <summary>
/// 根据项目Id获取弹簧支/吊架安装检验记录
/// </summary>
/// <param name="projectId"></param>
/// <returns></returns>
public static List<Model.SYBData_SpringSupportHangBracket> GetListByProjectId(string projectId)
{
return (from x in Funs.DB.SYBData_SpringSupportHangBracket where x.ProjectId == projectId select x).ToList();
}
/// <summary>
/// 添加弹簧支/吊架安装检验记录
/// </summary>
/// <param name="data"></param>
public static void AddSpringSupportHangBracket(Model.SYBData_SpringSupportHangBracket data)
{
SGGLDB db = Funs.DB;
Model.SYBData_SpringSupportHangBracket newData = new SYBData_SpringSupportHangBracket();
newData.SpringSupportHangBracketId = data.SpringSupportHangBracketId;
newData.ProjectId = data.ProjectId;
newData.PipelineCode = data.PipelineCode;
newData.PositionNum = data.PositionNum;
newData.StructuralType = data.StructuralType;
newData.DirectionOfDisplacement = data.DirectionOfDisplacement;
newData.DesignLoadValue = data.DesignLoadValue;
newData.InstallationLoadValue = data.InstallationLoadValue;
newData.CheckResults = data.CheckResults;
newData.CompileMan = data.CompileMan;
newData.CompileDate = data.CompileDate;
db.SYBData_SpringSupportHangBracket.InsertOnSubmit(newData);
db.SubmitChanges();
}
/// <summary>
/// 根据项目Id删除弹簧支/吊架安装检验记录
/// </summary>
/// <param name="projectId"></param>
public static void DeleteSpringSupportHangBracketByProjectId(string projectId)
{
SGGLDB db = Funs.DB;
var q = (from x in db.SYBData_SpringSupportHangBracket where x.ProjectId == projectId select x).ToList();
if (q.Count > 0)
{
db.SYBData_SpringSupportHangBracket.DeleteAllOnSubmit(q);
db.SubmitChanges();
}
}
}
}

View File

@ -0,0 +1,178 @@
<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReportInfo.Created="04/01/2026 14:21:27" ReportInfo.Modified="04/01/2026 14:46:55" ReportInfo.CreatorVersion="2017.1.16.0">
<ScriptText>using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Windows.Forms;
using System.Drawing;
using System.Data;
using FastReport;
using FastReport.Data;
using FastReport.Dialog;
using FastReport.Barcode;
using FastReport.Table;
using FastReport.Utils;
namespace FastReport
{
public class ReportScript
{
private void Table3_ManualBuild(object sender, EventArgs e)
{
DataSourceBase rowData = Report.GetDataSource(&quot;Data&quot;);
// init the data source
rowData.Init();
// print the first table row - it is a header
// now enumerate the data source and print the table body
while (rowData.HasMoreRows)
{
// print the table body
Table3.PrintRow(0);
Table3.PrintColumns();
// go next data source row
rowData.Next();
}
}
}
}
</ScriptText>
<Dictionary>
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QFTMfW2RuqdVwibFML3uCXMA==">
<TableDataSource Name="Data" DataType="System.Int32" PropName="Attach_Image" Enabled="true" TableName="Data">
<Column Name="PipelineCode" DataType="System.String" PropName="attach_image_id"/>
<Column Name="PositionNum" DataType="System.String" PropName="image_series"/>
<Column Name="StructuralType" DataType="System.String" PropName="file_name"/>
<Column Name="DirectionOfDisplacement" DataType="System.String" PropName="file_size"/>
<Column Name="DesignLoadValue" DataType="System.String" PropName="file_type"/>
<Column Name="InstallationLoadValue" DataType="System.String" PropName="created_date"/>
<Column Name="CheckResults" DataType="System.String" PropName="Column"/>
</TableDataSource>
</MsSqlDataConnection>
<Parameter Name="ProjectName" DataType="System.String"/>
</Dictionary>
<ReportPage Name="Page1" RawPaperSize="9" LeftMargin="22" TopMargin="13.3" RightMargin="17" BottomMargin="16.5" Guides="0,646.38,158.76,440.37,525.42,281.61,553.77,158.49,250.83,333.72,416.61,490.05,563.49,215.46,430.92">
<PageHeaderBand Name="PageHeader1" Width="646.38" Height="132.3" Guides="0,94.52,66.16,9.45,28.35,28.36,94.5,132.3,37.8">
<TableObject Name="Table1" Width="646.38" Height="94.52" Border.Lines="Bottom">
<TableColumn Name="Column1" Width="158.76"/>
<TableColumn Name="Column2" Width="281.61"/>
<TableColumn Name="Column3" Width="206.01"/>
<TableRow Name="Row1" Height="66.16">
<TableCell Name="Cell1" Border.Lines="All" Text="SH/T 3503—J403" HorzAlign="Center" VertAlign="Center" Font="隶书, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell2" Border.Lines="All" Text="弹簧支/吊架安装检验记录" HorzAlign="Center" VertAlign="Center" Font="思源宋体 CN, 16pt, style=Bold" RowSpan="2"/>
<TableCell Name="Cell3" Border.Lines="Left, Right, Top" Text=" [ProjectName]" Padding="10, 10, 2, 1" Font="楷体, 10.5pt">
<TextObject Name="Text1" Top="9.45" Width="85.05" Height="18.9" Text="工程名称:" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableCell>
</TableRow>
<TableRow Name="Row2" Height="28.36">
<TableCell Name="Cell6" Border.Lines="All"/>
<TableCell Name="Cell7" Border.Lines="All"/>
<TableCell Name="Cell8" Border.Lines="Left, Right, Bottom" Text=" 管道安装工程" VertAlign="Center" Font="楷体, 10.5pt">
<TextObject Name="Text2" Width="113.4" Height="28.35" Text="单位工程名称:" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableCell>
</TableRow>
</TableObject>
<TableObject Name="Table2" Top="94.5" Width="646.38" Height="37.8">
<TableColumn Name="Column4" Width="158.49"/>
<TableColumn Name="Column5" Width="92.34"/>
<TableColumn Name="Column6" Width="82.89"/>
<TableColumn Name="Column7" Width="82.89"/>
<TableColumn Name="Column8" Width="73.44"/>
<TableColumn Name="Column9" Width="73.44"/>
<TableColumn Name="Column10" Width="82.89"/>
<TableRow Name="Row3" Height="37.8">
<TableCell Name="Cell9" Border.Lines="Left, Right, Bottom" Text="管道编号/单线号" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell10" Border.Lines="Left, Right, Bottom" Text="支/吊架位号" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell11" Border.Lines="Left, Right, Bottom" Text="结构型式" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell12" Border.Lines="Left, Right, Bottom" Text="位移方向" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell13" Border.Lines="Left, Right, Bottom" Text="设计冷态负荷值" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell34" Border.Lines="Left, Right, Bottom" Text="安装冷态负荷值" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell35" Border.Lines="Left, Right, Bottom" Text="检查结果" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
</TableObject>
</PageHeaderBand>
<DataBand Name="Data1" Top="136.3" Width="646.38" Height="32.13" Guides="0,32.13">
<TableObject Name="Table3" Width="646.38" Height="32.13" ManualBuildEvent="Table3_ManualBuild">
<TableColumn Name="Column11" Width="158.49"/>
<TableColumn Name="Column12" Width="92.34"/>
<TableColumn Name="Column13" Width="82.89"/>
<TableColumn Name="Column14" Width="82.89"/>
<TableColumn Name="Column15" Width="73.44"/>
<TableColumn Name="Column16" Width="73.44"/>
<TableColumn Name="Column17" Width="82.89"/>
<TableRow Name="Row4" Height="32.13">
<TableCell Name="Cell36" Border.Lines="All" Text="[Data.PipelineCode]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell37" Border.Lines="All" Text="[Data.PositionNum]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell38" Border.Lines="All" Text="[Data.StructuralType]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell39" Border.Lines="All" Text="[Data.DirectionOfDisplacement]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell40" Border.Lines="All" Text="[Data.DesignLoadValue]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell41" Border.Lines="All" Text="[Data.InstallationLoadValue]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell42" Border.Lines="All" Text="[Data.CheckResults]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
</TableRow>
</TableObject>
</DataBand>
<ColumnFooterBand Name="ColumnFooter1" Top="208.56" Width="646.38">
<ChildBand Name="Child1" Top="172.43" Width="646.38" Height="32.13" Guides="0,32.13" FillUnusedSpace="true">
<TableObject Name="Table4" Width="646.38" Height="32.13">
<TableColumn Name="Column18" Width="158.49"/>
<TableColumn Name="Column19" Width="92.34"/>
<TableColumn Name="Column20" Width="82.89"/>
<TableColumn Name="Column21" Width="82.89"/>
<TableColumn Name="Column22" Width="73.44"/>
<TableColumn Name="Column23" Width="73.44"/>
<TableColumn Name="Column24" Width="82.89"/>
<TableRow Name="Row5" Height="32.13">
<TableCell Name="Cell43" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell44" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell45" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell46" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell47" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell48" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell49" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
</TableObject>
</ChildBand>
</ColumnFooterBand>
<PageFooterBand Name="PageFooter1" Top="212.56" Width="646.38" Height="266.86" Guides="0,266.86,85.81,122.02,158.23,194.44,240.1">
<TableObject Name="Table5" Width="646.38" Height="266.86" Border.Lines="All">
<TableColumn Name="Column25" Width="215.46"/>
<TableColumn Name="Column26" Width="215.46"/>
<TableColumn Name="Column27" Width="215.46"/>
<TableRow Name="Row6" Height="85.81">
<TableCell Name="Cell50" Border.Lines="All" Text="备注:" Font="宋体, 10.5pt" ColSpan="3"/>
<TableCell Name="Cell51" Font="宋体, 10.5pt"/>
<TableCell Name="Cell52" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row7" Height="36.21">
<TableCell Name="Cell55" Border.Lines="All" Text="建设/监理单位" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell56" Border.Lines="All" Text="总 承 包 单 位" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell57" Border.Lines="All" Text="施 工 单 位" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row8" Height="36.21">
<TableCell Name="Cell60" Text="专业工程师:" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell61" Border.Lines="Left, Right" Text="专业工程师:" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell62" Text="施工班组长:" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row9" Height="36.21">
<TableCell Name="Cell65" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell66" Border.Lines="Left, Right" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell67" Text="质量检查员:" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row10" Height="45.66">
<TableCell Name="Cell70" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell71" Border.Lines="Left, Right" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell72" Text="专业工程师:" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row11" Height="26.76">
<TableCell Name="Cell73" Text="日期: 年 月 日" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell74" Border.Lines="Left, Right" Text="日期: 年 月 日" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell75" Text="日期: 年 月 日" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
</TableObject>
</PageFooterBand>
</ReportPage>
</Report>

View File

@ -0,0 +1,183 @@
<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReportInfo.Created="04/01/2026 14:21:27" ReportInfo.Modified="04/01/2026 16:05:27" ReportInfo.CreatorVersion="2017.1.16.0">
<ScriptText>using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Windows.Forms;
using System.Drawing;
using System.Data;
using FastReport;
using FastReport.Data;
using FastReport.Dialog;
using FastReport.Barcode;
using FastReport.Table;
using FastReport.Utils;
namespace FastReport
{
public class ReportScript
{
private void Table3_ManualBuild(object sender, EventArgs e)
{
DataSourceBase rowData = Report.GetDataSource(&quot;Data&quot;);
// init the data source
rowData.Init();
// print the first table row - it is a header
// now enumerate the data source and print the table body
while (rowData.HasMoreRows)
{
// print the table body
Table3.PrintRow(0);
Table3.PrintColumns();
// go next data source row
rowData.Next();
}
}
}
}
</ScriptText>
<Dictionary>
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QFjORJ/7AZWL6xVmftOQvHFg==">
<TableDataSource Name="Data" DataType="System.Int32" PropName="Attach_Image" Enabled="true" TableName="Data">
<Column Name="PipelineCode" DataType="System.String" PropName="attach_image_id"/>
<Column Name="PipeSupportCode" DataType="System.String" PropName="image_series"/>
<Column Name="Types" DataType="System.String" PropName="file_name"/>
<Column Name="DirectionOfDisplacement" DataType="System.String" PropName="file_size"/>
<Column Name="DesignDisplacement" DataType="System.String" PropName="file_type"/>
<Column Name="InstallationDisplacement" DataType="System.String" PropName="created_date"/>
<Column Name="CheckResult" DataType="System.String" PropName="Column"/>
</TableDataSource>
</MsSqlDataConnection>
<Parameter Name="ProjectName" DataType="System.String"/>
</Dictionary>
<ReportPage Name="Page1" RawPaperSize="9" LeftMargin="22" TopMargin="13.3" RightMargin="17" BottomMargin="16.5" Guides="0,646.38,158.76,440.37,525.42,281.61,553.77,158.49,250.83,333.72,416.61,490.05,563.49,215.46,430.92">
<PageHeaderBand Name="PageHeader1" Width="646.38" Height="132.3" Guides="0,94.52,66.16,9.45,28.35,28.36,94.5,132.3,37.8">
<TableObject Name="Table1" Width="646.38" Height="94.52" Border.Lines="Bottom">
<TableColumn Name="Column1" Width="158.76"/>
<TableColumn Name="Column2" Width="281.61"/>
<TableColumn Name="Column3" Width="206.01"/>
<TableRow Name="Row1" Height="66.16">
<TableCell Name="Cell1" Border.Lines="All" Text="SH/T 3503—J404" HorzAlign="Center" VertAlign="Center" Font="隶书, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell2" Border.Lines="All" Text="滑动/固定管托安装检验&#13;&#10;记 录" HorzAlign="Center" VertAlign="Center" Font="思源宋体 CN, 16pt, style=Bold" RowSpan="2"/>
<TableCell Name="Cell3" Border.Lines="Left, Right, Top" Text=" [ProjectName]" Padding="10, 10, 2, 1" Font="楷体, 10.5pt">
<TextObject Name="Text1" Top="9.45" Width="85.05" Height="18.9" Text="工程名称:" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableCell>
</TableRow>
<TableRow Name="Row2" Height="28.36">
<TableCell Name="Cell6" Border.Lines="All"/>
<TableCell Name="Cell7" Border.Lines="All"/>
<TableCell Name="Cell8" Border.Lines="Left, Right, Bottom" Text=" 管道安装工程" VertAlign="Center" Font="楷体, 10.5pt">
<TextObject Name="Text2" Width="113.4" Height="28.35" Text="单位工程名称:" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableCell>
</TableRow>
</TableObject>
<TableObject Name="Table2" Top="94.5" Width="646.38" Height="37.8">
<TableColumn Name="Column4" Width="158.49"/>
<TableColumn Name="Column5" Width="92.34"/>
<TableColumn Name="Column6" Width="82.89"/>
<TableColumn Name="Column7" Width="82.89"/>
<TableColumn Name="Column8" Width="73.44"/>
<TableColumn Name="Column9" Width="73.44"/>
<TableColumn Name="Column10" Width="82.89"/>
<TableRow Name="Row3" Height="37.8">
<TableCell Name="Cell9" Border.Lines="Left, Right, Bottom" Text="管道编号/单线号" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell10" Border.Lines="Left, Right, Bottom" Text="管托编号" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell11" Border.Lines="Left, Right, Bottom" Text="型 式" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell12" Border.Lines="Left, Right, Bottom" Text="位移方向" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell13" Border.Lines="Left, Right, Bottom" Text="设计位移量" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell34" Border.Lines="Left, Right, Bottom" Text="安装位移量" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell35" Border.Lines="Left, Right, Bottom" Text="检验结果" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
</TableObject>
</PageHeaderBand>
<DataBand Name="Data1" Top="136.3" Width="646.38" Height="32.13" Guides="0,32.13">
<TableObject Name="Table3" Width="646.38" Height="32.13" ManualBuildEvent="Table3_ManualBuild">
<TableColumn Name="Column11" Width="158.49"/>
<TableColumn Name="Column12" Width="92.34"/>
<TableColumn Name="Column13" Width="82.89"/>
<TableColumn Name="Column14" Width="82.89"/>
<TableColumn Name="Column15" Width="73.44"/>
<TableColumn Name="Column16" Width="73.44"/>
<TableColumn Name="Column17" Width="82.89"/>
<TableRow Name="Row4" Height="32.13">
<TableCell Name="Cell36" Border.Lines="All" Text="[Data.PipelineCode]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell37" Border.Lines="All" Text="[Data.PipeSupportCode]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell38" Border.Lines="All" Text="[Data.Types]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell39" Border.Lines="All" Text="[Data.DirectionOfDisplacement]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell40" Border.Lines="All" Text="[Data.DesignDisplacement]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell41" Border.Lines="All" Text="[Data.InstallationDisplacement]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell42" Border.Lines="All" Text="[Data.CheckResult]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
</TableRow>
</TableObject>
</DataBand>
<ColumnFooterBand Name="ColumnFooter1" Top="208.56" Width="646.38">
<ChildBand Name="Child1" Top="172.43" Width="646.38" Height="32.13" Guides="0,32.13" FillUnusedSpace="true">
<TableObject Name="Table4" Width="646.38" Height="32.13">
<TableColumn Name="Column18" Width="158.49"/>
<TableColumn Name="Column19" Width="92.34"/>
<TableColumn Name="Column20" Width="82.89"/>
<TableColumn Name="Column21" Width="82.89"/>
<TableColumn Name="Column22" Width="73.44"/>
<TableColumn Name="Column23" Width="73.44"/>
<TableColumn Name="Column24" Width="82.89"/>
<TableRow Name="Row5" Height="32.13">
<TableCell Name="Cell43" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell44" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell45" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell46" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell47" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell48" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell49" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
</TableObject>
</ChildBand>
</ColumnFooterBand>
<PageFooterBand Name="PageFooter1" Top="212.56" Width="646.38" Height="298.99" Guides="0,298.99,47.25,127.39,80.14,163.6,199.81,236.02,272.23">
<TableObject Name="Table5" Width="646.38" Height="298.99" Border.Lines="All">
<TableColumn Name="Column25" Width="215.46"/>
<TableColumn Name="Column26" Width="215.46"/>
<TableColumn Name="Column27" Width="215.46"/>
<TableRow Name="Row12" Height="47.25">
<TableCell Name="Cell76" Text=" 注:本表用于设计温度&gt;350℃管道和低于-29℃管道中管托有位移要求的滑动和固定管托的安装检验。" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="3"/>
<TableCell Name="Cell77" Font="宋体, 10.5pt"/>
<TableCell Name="Cell78" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row6" Height="80.14">
<TableCell Name="Cell50" Border.Lines="All" Text="备注:" Font="宋体, 10.5pt" ColSpan="3"/>
<TableCell Name="Cell51" Font="宋体, 10.5pt"/>
<TableCell Name="Cell52" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row7" Height="36.21">
<TableCell Name="Cell55" Border.Lines="All" Text="建设/监理单位" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell56" Border.Lines="All" Text="总 承 包 单 位" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell57" Border.Lines="All" Text="施 工 单 位" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row8" Height="36.21">
<TableCell Name="Cell60" Text="专业工程师:" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell61" Border.Lines="Left, Right" Text="专业工程师:" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell62" Text="施工班组长:" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row9" Height="36.21">
<TableCell Name="Cell65" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell66" Border.Lines="Left, Right" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell67" Text="质量检查员:" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row10" Height="36.21">
<TableCell Name="Cell70" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell71" Border.Lines="Left, Right" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell72" Text="专业工程师:" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row11" Height="26.76">
<TableCell Name="Cell73" Text="日期: 年 月 日" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell74" Border.Lines="Left, Right" Text="日期: 年 月 日" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell75" Text="日期: 年 月 日" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
</TableObject>
</PageFooterBand>
</ReportPage>
</Report>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReportInfo.Created="03/31/2026 16:54:16" ReportInfo.Modified="03/31/2026 17:19:37" ReportInfo.CreatorVersion="2017.1.16.0">
<Report ScriptLanguage="CSharp" ReportInfo.Created="03/31/2026 16:54:16" ReportInfo.Modified="04/02/2026 11:22:08" ReportInfo.CreatorVersion="2017.1.16.0">
<ScriptText>using System;
using System.Collections;
using System.Collections.Generic;
@ -42,7 +42,7 @@ namespace FastReport
}
</ScriptText>
<Dictionary>
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqM3/HbiZANEYP3Y6oNtE7mqsCE0NW5tkXiWL0RJsdm/BnXhHrIFd8DaTyqYvkCZwzaaQipsiBeb+lBhzIDpDvfvxDsovr3/ckbYEBSCcpPFiH7Npcn4kPkDoxtl7XrCt1j63ma3mCLcLPN9o74aBqqd1WZsaEs7MLRtSWt4L/IDLoaEYKi0euV49rY12ECZLm">
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QF7XByLvmWvnEvSc/ok9zRCQ==">
<TableDataSource Name="Data" DataType="System.Int32" PropName="Attach_Image" Enabled="true" TableName="Data">
<Column Name="Num" DataType="System.String" PropName="attach_image_id"/>
<Column Name="PipeSectionNumber" DataType="System.String" PropName="image_series"/>
@ -53,7 +53,6 @@ namespace FastReport
<Column Name="DemolitionWorkers" DataType="System.String" PropName="created_by"/>
<Column Name="DemolitionGeneral" DataType="System.String" PropName="series_desc"/>
<Column Name="DemolitionSupervision" DataType="System.String" PropName="file_path"/>
<Column Name="series_timestamp" Enabled="false" DataType="System.String"/>
</TableDataSource>
</MsSqlDataConnection>
<Parameter Name="IndividualProject" DataType="System.String"/>

View File

@ -1366,6 +1366,8 @@
<Content Include="SYBData\HeatTreatmentReport.aspx" />
<Content Include="SYBData\PressureTestPackageList.aspx" />
<Content Include="SYBData\RTProportionConfirmation.aspx" />
<Content Include="SYBData\SlidingFixed.aspx" />
<Content Include="SYBData\SpringSupportHangBracket.aspx" />
<Content Include="SYBData\SYBDataList.aspx" />
<Content Include="WebService1.asmx" />
<Content Include="Welder\FilmInfoQuery.aspx" />
@ -7277,6 +7279,20 @@
<Compile Include="SYBData\RTProportionConfirmation.aspx.designer.cs">
<DependentUpon>RTProportionConfirmation.aspx</DependentUpon>
</Compile>
<Compile Include="SYBData\SlidingFixed.aspx.cs">
<DependentUpon>SlidingFixed.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="SYBData\SlidingFixed.aspx.designer.cs">
<DependentUpon>SlidingFixed.aspx</DependentUpon>
</Compile>
<Compile Include="SYBData\SpringSupportHangBracket.aspx.cs">
<DependentUpon>SpringSupportHangBracket.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="SYBData\SpringSupportHangBracket.aspx.designer.cs">
<DependentUpon>SpringSupportHangBracket.aspx</DependentUpon>
</Compile>
<Compile Include="SYBData\SYBDataList.aspx.cs">
<DependentUpon>SYBDataList.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>

View File

@ -2,7 +2,7 @@
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<UseIISExpress>true</UseIISExpress>
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
<Use64BitIISExpress />
<IISExpressSSLPort />
<IISExpressAnonymousAuthentication />

View File

@ -159,13 +159,13 @@
EnableColumnLines="true" ClicksToEdit="2" DataIDField="JOT_ID" AllowSorting="true"
SortField="JOTY_Group,Sort1,Sort2,Sort3,Sort4,Sort5" SortDirection="ASC" OnSort="Grid1_Sort" AllowPaging="true"
IsDatabasePaging="true" PageSize="15" OnPageIndexChange="Grid1_PageIndexChange" OnRowCommand="Grid1_RowCommand"
EnableTextSelection="True" AutoScroll="true" EnableRowDoubleClickEvent="true" EnableCheckBoxSelect="true" KeepCurrentSelection="true"
EnableTextSelection="True" AutoScroll="true" EnableRowDoubleClickEvent="true"
OnRowDoubleClick="Grid1_RowDoubleClick" OnRowDataBound="Grid1_RowDataBound" >
<Columns>
<%--<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="60px" HeaderTextAlign="Center"
TextAlign="Center" />--%>
<%--<f:CheckBoxField ColumnID="ckbIsSelected" Width="60px" RenderAsStaticField="false"
AutoPostBack="true" CommandName="IsSelected" HeaderText="选择" HeaderTextAlign="Center" />--%>
<f:CheckBoxField ColumnID="ckbIsSelected" Width="80px" RenderAsStaticField="false" TextAlign="Center"
AutoPostBack="true" CommandName="IsSelected" DataField="JOT_ID" HeaderText="选择删除" HeaderTextAlign="Center" Locked="true"/>
<f:WindowField ColumnID="JOT_JointNo" HeaderTextAlign="Center" TextAlign="Left" Width="100px"
WindowID="Window1" HeaderText="焊口代号" DataTextField="JOT_JointNo" DataIFrameUrlFields="JOT_ID"
DataIFrameUrlFormatString="JointInfoEdit.aspx?JOT_ID={0}" Title="焊口代号" ToolTip="着色表示该焊口已热处理或所在批已封,不能删除和修改!"

View File

@ -42,6 +42,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
{
this.GetShowColumn(c.Columns);
}
this.Grid1.Columns[0].Hidden = true;
}
}
@ -53,7 +54,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
{
if (!string.IsNullOrEmpty(column))
{
this.Grid1.Columns[1].Hidden = true;
//this.Grid1.Columns[1].Hidden = true;
this.Grid1.Columns[2].Hidden = true;
this.Grid1.Columns[3].Hidden = true;
this.Grid1.Columns[4].Hidden = true;
@ -89,6 +90,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
this.Grid1.Columns[34].Hidden = true;
this.Grid1.Columns[35].Hidden = true;
this.Grid1.Columns[36].Hidden = true;
this.Grid1.Columns[37].Hidden = true;
List<string> columns = column.Split(',').ToList();
foreach (var item in columns)
@ -1319,7 +1321,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
#endregion
/// <summary>
/// 批量增加焊口信息
/// 批量删除焊口信息
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
@ -1327,21 +1329,27 @@ namespace FineUIPro.Web.HJGL.WeldingManage
{
if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_JointInfoMenuId, Const.BtnDelete))
{
if (Grid1.SelectedRowIndexArray.Length == 0)
// 第一次点击:只打开复选框
if (this.Grid1.Columns[0].Hidden)
{
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
this.Grid1.Columns[0].Hidden = false;
this.BindGrid();
return;
}
if (list.Count == 0)
{
Alert.ShowInTop("请勾选一条记录!", MessageBoxIcon.Warning);
return;
}
bool isShow = true;
if (Grid1.SelectedRowIndexArray.Length > 1)
if (list.Count > 1)
{
isShow = false;
}
string err = string.Empty;
foreach (int rowIndex in Grid1.SelectedRowIndexArray)
for (int i = 0; i < list.Count; i++)
{
string rowID = Grid1.DataKeys[rowIndex][0].ToString();
string rowID = list[i];
string content = judgementDelete(rowID, isShow);
if (string.IsNullOrEmpty(content))
{
@ -1371,6 +1379,54 @@ namespace FineUIPro.Web.HJGL.WeldingManage
err += content;
}
}
//if (Grid1.SelectedRowIndexArray.Length == 0)
//{
// Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
// return;
//}
//bool isShow = true;
//if (Grid1.SelectedRowIndexArray.Length > 1)
//{
// isShow = false;
//}
//string err = string.Empty;
//foreach (int rowIndex in Grid1.SelectedRowIndexArray)
//{
// string rowID = Grid1.DataKeys[rowIndex][0].ToString();
// string content = judgementDelete(rowID, isShow);
// if (string.IsNullOrEmpty(content))
// {
// Model.SGGLDB db = Funs.DB;
// var hotProessTrustItem = db.HJGL_CH_HotProessTrustItem.FirstOrDefault(x => x.JOT_ID == rowID);
// if (hotProessTrustItem != null)
// {
// db.HJGL_CH_HotProessTrustItem.DeleteOnSubmit(hotProessTrustItem);
// }
// var hotProessItem = db.HJGL_HotProessItem.FirstOrDefault(x => x.JOT_ID == rowID);
// if (hotProessItem != null)
// {
// db.HJGL_HotProessItem.DeleteOnSubmit(hotProessItem);
// }
// var hotProessResult = db.HJGL_CH_HotProessResult.FirstOrDefault(x => x.JOT_ID == rowID);
// if (hotProessResult != null)
// {
// db.HJGL_CH_HotProessResult.DeleteOnSubmit(hotProessResult);
// }
// db.SubmitChanges();
// BLL.HJGL_BO_BatchDetailService.DeleteBatchDetail(rowID); //删除批明细
// BLL.HJGL_PW_JointInfoService.DeleteJointInfo(rowID);
// BLL.Sys_LogService.AddLog(BLL.Const.System_3, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "删除焊口信息");
// }
// else
// {
// err += content;
// }
//}
// 删除完成后,恢复按钮状态
this.Grid1.Columns[0].Hidden = true;
list.Clear();
if (string.IsNullOrEmpty(err))
{
Alert.ShowInTop("删除成功!", MessageBoxIcon.Success);
@ -1379,6 +1435,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
{
Alert.ShowInTop(err, MessageBoxIcon.Warning);
}
this.BindGrid();
}
else

View File

@ -17,44 +17,44 @@ namespace FineUIPro.Web.HJGL.WeldingManage
if (!IsPostBack)
{
ListItem[] list = new ListItem[36];
list[0] = new ListItem("焊口属性", "1");
list[1] = new ListItem("是否焊接", "2");
list[2] = new ListItem("材质", "3");
list[3] = new ListItem("焊口规格", "4");
list[4] = new ListItem("焊缝类型", "5");
list[5] = new ListItem("坡口类型", "6");
list[6] = new ListItem("焊接方法", "7");
list[7] = new ListItem("焊丝代号", "8");
list[8] = new ListItem("焊条代号", "9");
list[9] = new ListItem("是否热处理", "10");
list[10] = new ListItem("热处理类型", "11");
list[11] = new ListItem("焊口状态", "12");
list[12] = new ListItem("焊接日期", "13");
list[13] = new ListItem("焊接日报号", "14");
list[14] = new ListItem("盖面焊工", "15");
list[15] = new ListItem("打底焊工", "16");
list[16] = new ListItem("组件1号", "17");
list[17] = new ListItem("组件2号", "18");
list[18] = new ListItem("外径", "19");
list[19] = new ListItem("尺寸", "20");
list[20] = new ListItem("壁厚", "21");
list[21] = new ListItem("焊接区域", "22");
list[22] = new ListItem("完成寸径", "23");
list[23] = new ListItem("点口日期", "24");
list[24] = new ListItem("热处理日期", "25");
list[25] = new ListItem("批次号", "26");
list[0] = new ListItem("焊口属性", "2");
list[1] = new ListItem("是否焊接", "3");
list[2] = new ListItem("材质", "4");
list[3] = new ListItem("焊口规格", "5");
list[4] = new ListItem("焊缝类型", "6");
list[5] = new ListItem("坡口类型", "7");
list[6] = new ListItem("焊接方法", "8");
list[7] = new ListItem("焊丝代号", "9");
list[8] = new ListItem("焊条代号", "10");
list[9] = new ListItem("是否热处理", "11");
list[10] = new ListItem("热处理类型", "12");
list[11] = new ListItem("焊口状态", "13");
list[12] = new ListItem("焊接日期", "14");
list[13] = new ListItem("焊接日报号", "15");
list[14] = new ListItem("盖面焊工", "16");
list[15] = new ListItem("打底焊工", "17");
list[16] = new ListItem("组件1号", "18");
list[17] = new ListItem("组件2号", "19");
list[18] = new ListItem("外径", "20");
list[19] = new ListItem("尺寸", "21");
list[20] = new ListItem("壁厚", "22");
list[21] = new ListItem("焊接区域", "23");
list[22] = new ListItem("完成寸径", "24");
list[23] = new ListItem("点口日期", "25");
list[24] = new ListItem("热处理日期", "26");
list[25] = new ListItem("批次号", "27");
list[26] = new ListItem("预热温度", "27");
list[27] = new ListItem("层间温度", "28");
list[28] = new ListItem("后热温度", "29");
list[29] = new ListItem("备注", "30");
list[26] = new ListItem("预热温度", "28");
list[27] = new ListItem("层间温度", "29");
list[28] = new ListItem("后热温度", "30");
list[29] = new ListItem("备注", "31");
list[30] = new ListItem("外检日期", "31");
list[31] = new ListItem("外检结果", "32");
list[32] = new ListItem("外检人员", "33");
list[33] = new ListItem("焊接电流", "34");
list[34] = new ListItem("焊接电压", "35");
list[35] = new ListItem("是否特殊", "36");
list[30] = new ListItem("外检日期", "32");
list[31] = new ListItem("外检结果", "33");
list[32] = new ListItem("外检人员", "34");
list[33] = new ListItem("焊接电流", "35");
list[34] = new ListItem("焊接电压", "36");
list[35] = new ListItem("是否特殊", "37");
this.cblColumn.DataSource = list;
this.cblColumn.DataBind();

View File

@ -0,0 +1,132 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SlidingFixed.aspx.cs" Inherits="FineUIPro.Web.SYBData.SlidingFixed" %>
<!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:DropDownList ID="drpIsoNoS" runat="server" Label="管道编号/单线号" LabelAlign="Right" AutoPostBack="true" OnSelectedIndexChanged="drpIsoNoS_SelectedIndexChanged" EnableEdit="true" AutoSelectFirstItem="false" LabelWidth="120px"></f:DropDownList>
<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>
</Items>
</f:Toolbar>
</Toolbars>
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="滑动/固定管托安装检验记录" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="SlidingFixedId" AllowCellEditing="true"
EnableColumnLines="true" ClicksToEdit="1" DataIDField="SlidingFixedId" AllowSorting="true"
SortField="PipelineCode" SortDirection="ASC" OnSort="Grid1_Sort" AllowPaging="true"
IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange"
EnableTextSelection="True" AutoScroll="true" OnPreDataBound="Grid1_PreDataBound">
<Columns>
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center"
TextAlign="Center" />
<f:RenderField HeaderText="管道编号/单线号" ColumnID="PipelineCode" DataField="PipelineCode" SortField="PipelineCode"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px" ExpandUnusedSpace="true">
<Editor>
<f:TextBox ID="txtPipelineCode" runat="server"></f:TextBox>
</Editor>
</f:RenderField>
<f:RenderField HeaderText="管托编号" ColumnID="PipeSupportCode" DataField="PipeSupportCode" SortField="PipeSupportCode"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="150px">
<Editor>
<f:TextBox ID="txtPipeSupportCode" runat="server"></f:TextBox>
</Editor>
</f:RenderField>
<f:RenderField HeaderText="型 式" ColumnID="Types" DataField="Types" SortField="Types"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="150px">
<Editor>
<f:TextBox ID="txtTypes" runat="server"></f:TextBox>
</Editor>
</f:RenderField>
<f:RenderField HeaderText="位移方向" ColumnID="DirectionOfDisplacement" DataField="DirectionOfDisplacement" SortField="DirectionOfDisplacement"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="150px">
<Editor>
<f:TextBox ID="txtDirectionOfDisplacement" runat="server"></f:TextBox>
</Editor>
</f:RenderField>
<f:RenderField HeaderText="设计位移量" ColumnID="DesignDisplacement" DataField="DesignDisplacement" SortField="DesignDisplacement"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="150px">
<Editor>
<f:TextBox ID="txtDesignDisplacement" runat="server"></f:TextBox>
</Editor>
</f:RenderField>
<f:RenderField HeaderText="安装位移量" ColumnID="InstallationDisplacement" DataField="InstallationDisplacement" SortField="InstallationDisplacement"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="150px">
<Editor>
<f:TextBox ID="txtInstallationDisplacement" runat="server"></f:TextBox>
</Editor>
</f:RenderField>
<f:RenderField HeaderText="检验结果" ColumnID="CheckResult" DataField="CheckResult" SortField="CheckResult"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="150px">
<Editor>
<f:TextBox ID="txtCheckResult" runat="server"></f:TextBox>
</Editor>
</f:RenderField>
<f:LinkButtonField ColumnID="Delete3" Width="60px" EnablePostBack="false" Icon="Delete"
HeaderTextAlign="Center" HeaderText="删除" />
<f:RenderField HeaderText="主键" ColumnID="SlidingFixedId" DataField="SlidingFixedId" SortField="SlidingFixedId"
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>

View File

@ -0,0 +1,480 @@
using BLL;
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.SYBData
{
public partial class SlidingFixed : PageBase
{
/// <summary>
/// 主键
/// </summary>
private string SlidingFixedId
{
get { return (string)ViewState["SlidingFixedId"]; }
set { ViewState["SlidingFixedId"] = value; }
}
/// <summary>
/// 项目Id
/// </summary>
private string ProjectId
{
get { return (string)ViewState["ProjectId"]; }
set { ViewState["ProjectId"] = value; }
}
/// <summary>
/// 定义集合
/// </summary>
private static List<Model.SYBData_SlidingFixed> items = new List<Model.SYBData_SlidingFixed>();
#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;
this.ProjectId = this.tvControlItem.SelectedNodeID;
//管线
this.drpIsoNoS.DataTextField = "ISO_IsoNo";
this.drpIsoNoS.DataValueField = "ISO_IsoNo";
this.drpIsoNoS.DataSource = BLL.HJGL_PW_IsoInfoService.GetIsoInfoByProjectId(this.ProjectId);
this.drpIsoNoS.DataBind();
DataIsoInfo();
}
}
private void DataIsoInfo()
{
items.Clear();
if (!string.IsNullOrEmpty(this.ProjectId))
{
var reportLists = BLL.SlidingFixedService.GetListsByProjectId(this.ProjectId);
if (reportLists.Count > 0)
{
var isoLists = BLL.HJGL_PW_IsoInfoService.GetIsoInfoByProjectId(this.ProjectId);
foreach (var item in isoLists)
{
var iso = (from x in Funs.DB.SYBData_SlidingFixed where x.ProjectId == this.ProjectId && x.PipelineCode == item.ISO_IsoNo select x).FirstOrDefault();
if (iso == null)
{
Model.SYBData_SlidingFixed newReport = new Model.SYBData_SlidingFixed();
newReport.SlidingFixedId = SQLHelper.GetNewID();
newReport.ProjectId = this.ProjectId;
newReport.PipelineCode = item.ISO_IsoNo;
reportLists.Add(newReport);
}
}
if (!string.IsNullOrEmpty(this.drpIsoNoS.SelectedValue) && this.drpIsoNoS.SelectedValue != BLL.Const._Null)
{
reportLists = reportLists.Where(x => x.PipelineCode.Contains(this.drpIsoNoS.SelectedValue)).ToList();
}
this.Grid1.DataSource = reportLists;
this.Grid1.DataBind();
}
else
{
var isoLists = BLL.HJGL_PW_IsoInfoService.GetIsoInfoByProjectId(this.ProjectId);
foreach (var iso in isoLists)
{
Model.SYBData_SlidingFixed newReport = new Model.SYBData_SlidingFixed();
newReport.SlidingFixedId = SQLHelper.GetNewID();
newReport.ProjectId = this.ProjectId;
newReport.PipelineCode = iso.ISO_IsoNo;
items.Add(newReport);
}
if (!string.IsNullOrEmpty(this.drpIsoNoS.SelectedValue) && this.drpIsoNoS.SelectedValue != BLL.Const._Null)
{
items = items.Where(x => x.PipelineCode.Contains(this.drpIsoNoS.SelectedValue)).ToList();
}
this.Grid1.DataSource = items;
this.Grid1.DataBind();
}
}
}
#endregion
#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")
{
this.ProjectId = this.tvControlItem.SelectedNodeID;
this.BindGrid();
}
}
#endregion
#region
/// <summary>
/// 数据绑定
/// </summary>
private void BindGrid()
{
string projectId = this.tvControlItem.SelectedNodeID;
string strSql = @"SELECT * from SYBData_SlidingFixed where 1=1";
List<SqlParameter> listStr = new List<SqlParameter>();
if (!string.IsNullOrEmpty(projectId))
{
strSql += " AND ProjectId = @ProjectId";
listStr.Add(new SqlParameter("@ProjectId", projectId));
}
if (!string.IsNullOrEmpty(this.drpIsoNoS.SelectedValue))
{
strSql += " AND PipelineCode like @PipelineCode";
listStr.Add(new SqlParameter("@PipelineCode", "%" + this.drpIsoNoS.SelectedValue + "%"));
}
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
// 2.获取当前分页数据
Grid1.RecordCount = tb.Rows.Count;
//tb = GetFilteredTable(Grid1.FilteredData, tb);
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.ProjectId = this.tvControlItem.SelectedNodeID;
this.InitTreeMenu();
BindGrid();
}
/// <summary>
/// 查询
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void txtPipeSectionNumberS_TextChanged(object sender, EventArgs e)
{
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 SYBData_SlidingFixed where ProjectId = @ProjectId";
List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@ProjectId", projectId));
if (!string.IsNullOrEmpty(this.drpIsoNoS.SelectedValue))
{
strSql += " and PipelineCode like @PipelineCode";
listStr.Add(new SqlParameter("@PipelineCode", "%" + this.drpIsoNoS.SelectedValue + "%"));
}
strSql += " order by PipelineCode asc";
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("PipelineCode");
dt.Columns.Add("PipeSupportCode");
dt.Columns.Add("Types");
dt.Columns.Add("DirectionOfDisplacement");
dt.Columns.Add("DesignDisplacement");
dt.Columns.Add("InstallationDisplacement");
dt.Columns.Add("CheckResult");
DataRow[] rows = tb.DefaultView.ToTable().Select();
foreach (var row in rows)
{
var newRow = dt.NewRow();
newRow["PipelineCode"] = row["PipelineCode"].ToString();
newRow["PipeSupportCode"] = row["PipeSupportCode"].ToString();
newRow["Types"] = row["Types"].ToString();
newRow["DirectionOfDisplacement"] = row["DirectionOfDisplacement"].ToString();
newRow["DesignDisplacement"] = row["DesignDisplacement"].ToString();
newRow["InstallationDisplacement"] = row["InstallationDisplacement"].ToString();
newRow["CheckResult"] = row["CheckResult"].ToString();
dt.Rows.Add(newRow);
}
BLL.Common.FastReportService.AddFastreportTable(dt);
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName);
BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs);
initTemplatePath = "File\\Fastreport\\SYBData\\滑动固定管托安装检验记录.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))
{
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
{
{ "SlidingFixedId", Guid.NewGuid() },
{ "ProjectId", this.tvControlItem.SelectedNodeID },
{ "PipelineCode", "" },
{ "PipeSupportCode", "" },
{ "Types", "" },
{ "DirectionOfDisplacement", "" },
{ "DesignDisplacement", "" },
{ "InstallationDisplacement", "" },
{ "CheckResult", "" },
{
"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();
}
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 drpIsoNoS_SelectedIndexChanged(object sender, EventArgs e)
{
DataIsoInfo();
}
#endregion;
#region
protected void btnSave_Click(object sender, EventArgs e)
{
if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId,
Const.SYBData_SlidingFixedMenuId, Const.BtnSave))
{
saveItem();
ShowNotify("保存成功!", MessageBoxIcon.Success);
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
}
else
{
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
return;
}
}
void saveItem()
{
BLL.SlidingFixedService.DeleteSlidingFixedByProjectId(this.tvControlItem.SelectedNodeID);
List<Model.SYBData_SlidingFixed> detailLists = new List<Model.SYBData_SlidingFixed>();
JArray teamGroupData = Grid1.GetMergedData();
foreach (JObject teamGroupRow in teamGroupData)
{
JObject values = teamGroupRow.Value<JObject>("values");
int rowIndex = teamGroupRow.Value<int>("index");
Model.SYBData_SlidingFixed newDetail = new Model.SYBData_SlidingFixed
{
SlidingFixedId = values.Value<string>("SlidingFixedId"),
ProjectId = this.tvControlItem.SelectedNodeID,
PipelineCode = values.Value<string>("PipelineCode"),
PipeSupportCode = values.Value<string>("PipeSupportCode"),
Types = values.Value<string>("Types"),
DirectionOfDisplacement = values.Value<string>("DirectionOfDisplacement"),
DesignDisplacement = values.Value<string>("DesignDisplacement"),
InstallationDisplacement = values.Value<string>("InstallationDisplacement"),
CheckResult = values.Value<string>("CheckResult"),
CompileMan = this.CurrUser.UserId,
CompileDate = DateTime.Now
};
detailLists.Add(newDetail);
}
try
{
if (detailLists.Count > 0)
{
Funs.DB.SYBData_SlidingFixed.InsertAllOnSubmit(detailLists);
}
Funs.DB.SubmitChanges();
}
catch (Exception)
{
return;
}
}
#endregion
}
}

View File

@ -0,0 +1,251 @@
//------------------------------------------------------------------------------
// <自动生成>
// 此代码由工具生成。
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.SYBData
{
public partial class SlidingFixed
{
/// <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>
/// drpIsoNoS 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpIsoNoS;
/// <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>
/// Grid1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Grid Grid1;
/// <summary>
/// txtPipelineCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtPipelineCode;
/// <summary>
/// txtPipeSupportCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtPipeSupportCode;
/// <summary>
/// txtTypes 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtTypes;
/// <summary>
/// txtDirectionOfDisplacement 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtDirectionOfDisplacement;
/// <summary>
/// txtDesignDisplacement 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtDesignDisplacement;
/// <summary>
/// txtInstallationDisplacement 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtInstallationDisplacement;
/// <summary>
/// txtCheckResult 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtCheckResult;
/// <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;
}
}

View File

@ -0,0 +1,132 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SpringSupportHangBracket.aspx.cs" Inherits="FineUIPro.Web.SYBData.SpringSupportHangBracket" %>
<!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:DropDownList ID="drpIsoNoS" runat="server" Label="管道编号/单线号" LabelAlign="Right" AutoPostBack="true" OnSelectedIndexChanged="drpIsoNoS_SelectedIndexChanged" EnableEdit="true" AutoSelectFirstItem="false" LabelWidth="120px"></f:DropDownList>
<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>
</Items>
</f:Toolbar>
</Toolbars>
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="弹簧支/吊架安装检验记录" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="SpringSupportHangBracketId" AllowCellEditing="true"
EnableColumnLines="true" ClicksToEdit="1" DataIDField="SpringSupportHangBracketId" AllowSorting="true"
SortField="PipelineCode" SortDirection="ASC" OnSort="Grid1_Sort" AllowPaging="true"
IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange"
EnableTextSelection="True" AutoScroll="true" OnPreDataBound="Grid1_PreDataBound">
<Columns>
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center"
TextAlign="Center" />
<f:RenderField HeaderText="管道编号/单线号" ColumnID="PipelineCode" DataField="PipelineCode" SortField="PipelineCode"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px" ExpandUnusedSpace="true">
<Editor>
<f:TextBox ID="txtPipelineCode" runat="server"></f:TextBox>
</Editor>
</f:RenderField>
<f:RenderField HeaderText="支/吊架位号" ColumnID="PositionNum" DataField="PositionNum" SortField="PositionNum"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="150px">
<Editor>
<f:TextBox ID="txtPositionNum" runat="server"></f:TextBox>
</Editor>
</f:RenderField>
<f:RenderField HeaderText="结构型式" ColumnID="StructuralType" DataField="StructuralType" SortField="StructuralType"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="150px">
<Editor>
<f:TextBox ID="txtStructuralType" runat="server"></f:TextBox>
</Editor>
</f:RenderField>
<f:RenderField HeaderText="位移方向" ColumnID="DirectionOfDisplacement" DataField="DirectionOfDisplacement" SortField="DirectionOfDisplacement"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="150px">
<Editor>
<f:TextBox ID="txtDirectionOfDisplacement" runat="server"></f:TextBox>
</Editor>
</f:RenderField>
<f:RenderField HeaderText="设计冷态负荷值" ColumnID="DesignLoadValue" DataField="DesignLoadValue" SortField="DesignLoadValue"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="150px">
<Editor>
<f:TextBox ID="txtDesignLoadValue" runat="server"></f:TextBox>
</Editor>
</f:RenderField>
<f:RenderField HeaderText="安装冷态负荷值" ColumnID="InstallationLoadValue" DataField="InstallationLoadValue" SortField="InstallationLoadValue"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="150px">
<Editor>
<f:TextBox ID="txtInstallationLoadValue" runat="server"></f:TextBox>
</Editor>
</f:RenderField>
<f:RenderField HeaderText="检查结果" ColumnID="CheckResults" DataField="CheckResults" SortField="CheckResults"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="150px">
<Editor>
<f:TextBox ID="txtCheckResults" runat="server"></f:TextBox>
</Editor>
</f:RenderField>
<f:LinkButtonField ColumnID="Delete3" Width="60px" EnablePostBack="false" Icon="Delete"
HeaderTextAlign="Center" HeaderText="删除" />
<f:RenderField HeaderText="主键" ColumnID="SpringSupportHangBracketId" DataField="SpringSupportHangBracketId" SortField="SpringSupportHangBracketId"
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>

View File

@ -0,0 +1,481 @@
using BLL;
using Newtonsoft.Json.Linq;
using NPOI.HSSF.Record.Chart;
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.SYBData
{
public partial class SpringSupportHangBracket : PageBase
{
/// <summary>
/// 主键
/// </summary>
private string SpringSupportHangBracketId
{
get { return (string)ViewState["SpringSupportHangBracketId"]; }
set { ViewState["SpringSupportHangBracketId"] = value; }
}
/// <summary>
/// 项目Id
/// </summary>
private string ProjectId
{
get { return (string)ViewState["ProjectId"]; }
set { ViewState["ProjectId"] = value; }
}
/// <summary>
/// 定义集合
/// </summary>
private static List<Model.SYBData_SpringSupportHangBracket> items = new List<Model.SYBData_SpringSupportHangBracket>();
#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;
this.ProjectId = this.tvControlItem.SelectedNodeID;
//管线
this.drpIsoNoS.DataTextField = "ISO_IsoNo";
this.drpIsoNoS.DataValueField = "ISO_IsoNo";
this.drpIsoNoS.DataSource = BLL.HJGL_PW_IsoInfoService.GetIsoInfoByProjectId(this.ProjectId);
this.drpIsoNoS.DataBind();
DataIsoInfo();
}
}
private void DataIsoInfo()
{
items.Clear();
if (!string.IsNullOrEmpty(this.ProjectId))
{
var reportLists = BLL.SpringSupportHangBracketService.GetListByProjectId(this.ProjectId);
if (reportLists.Count > 0)
{
var isoLists = BLL.HJGL_PW_IsoInfoService.GetIsoInfoByProjectId(this.ProjectId);
foreach (var item in isoLists)
{
var iso = (from x in Funs.DB.SYBData_SpringSupportHangBracket where x.ProjectId == this.ProjectId && x.PipelineCode == item.ISO_IsoNo select x).FirstOrDefault();
if (iso == null)
{
Model.SYBData_SpringSupportHangBracket newReport = new Model.SYBData_SpringSupportHangBracket();
newReport.SpringSupportHangBracketId = SQLHelper.GetNewID();
newReport.ProjectId = this.ProjectId;
newReport.PipelineCode = item.ISO_IsoNo;
reportLists.Add(newReport);
}
}
if (!string.IsNullOrEmpty(this.drpIsoNoS.SelectedValue) && this.drpIsoNoS.SelectedValue != BLL.Const._Null)
{
reportLists = reportLists.Where(x => x.PipelineCode.Contains(this.drpIsoNoS.SelectedValue)).ToList();
}
this.Grid1.DataSource = reportLists;
this.Grid1.DataBind();
}
else
{
var isoLists = BLL.HJGL_PW_IsoInfoService.GetIsoInfoByProjectId(this.ProjectId);
foreach (var iso in isoLists)
{
Model.SYBData_SpringSupportHangBracket newReport = new Model.SYBData_SpringSupportHangBracket();
newReport.SpringSupportHangBracketId = SQLHelper.GetNewID();
newReport.ProjectId = this.ProjectId;
newReport.PipelineCode = iso.ISO_IsoNo;
items.Add(newReport);
}
if (!string.IsNullOrEmpty(this.drpIsoNoS.SelectedValue) && this.drpIsoNoS.SelectedValue != BLL.Const._Null)
{
items = items.Where(x => x.PipelineCode.Contains(this.drpIsoNoS.SelectedValue)).ToList();
}
this.Grid1.DataSource = items;
this.Grid1.DataBind();
}
}
}
#endregion
#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")
{
this.ProjectId = this.tvControlItem.SelectedNodeID;
this.BindGrid();
}
}
#endregion
#region
/// <summary>
/// 数据绑定
/// </summary>
private void BindGrid()
{
string projectId = this.tvControlItem.SelectedNodeID;
string strSql = @"SELECT * from SYBData_SpringSupportHangBracket where 1=1";
List<SqlParameter> listStr = new List<SqlParameter>();
if (!string.IsNullOrEmpty(projectId))
{
strSql += " AND ProjectId = @ProjectId";
listStr.Add(new SqlParameter("@ProjectId", projectId));
}
if (!string.IsNullOrEmpty(this.drpIsoNoS.SelectedValue))
{
strSql += " AND PipelineCode like @PipelineCode";
listStr.Add(new SqlParameter("@PipelineCode", "%" + this.drpIsoNoS.SelectedValue + "%"));
}
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
// 2.获取当前分页数据
Grid1.RecordCount = tb.Rows.Count;
//tb = GetFilteredTable(Grid1.FilteredData, tb);
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.ProjectId = this.tvControlItem.SelectedNodeID;
this.InitTreeMenu();
BindGrid();
}
/// <summary>
/// 查询
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void txtPipeSectionNumberS_TextChanged(object sender, EventArgs e)
{
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 SYBData_SpringSupportHangBracket where ProjectId = @ProjectId";
List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@ProjectId", projectId));
if (!string.IsNullOrEmpty(this.drpIsoNoS.SelectedValue))
{
strSql += " and PipelineCode like @PipelineCode";
listStr.Add(new SqlParameter("@PipelineCode", "%" + this.drpIsoNoS.SelectedValue + "%"));
}
strSql += " order by PipelineCode asc";
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("PipelineCode");
dt.Columns.Add("PositionNum");
dt.Columns.Add("StructuralType");
dt.Columns.Add("DirectionOfDisplacement");
dt.Columns.Add("DesignLoadValue");
dt.Columns.Add("InstallationLoadValue");
dt.Columns.Add("CheckResults");
DataRow[] rows = tb.DefaultView.ToTable().Select();
foreach (var row in rows)
{
var newRow = dt.NewRow();
newRow["PipelineCode"] = row["PipelineCode"].ToString();
newRow["PositionNum"] = row["PositionNum"].ToString();
newRow["StructuralType"] = row["StructuralType"].ToString();
newRow["DirectionOfDisplacement"] = row["DirectionOfDisplacement"].ToString();
newRow["DesignLoadValue"] = row["DesignLoadValue"].ToString();
newRow["InstallationLoadValue"] = row["InstallationLoadValue"].ToString();
newRow["CheckResults"] = row["CheckResults"].ToString();
dt.Rows.Add(newRow);
}
BLL.Common.FastReportService.AddFastreportTable(dt);
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName);
BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs);
initTemplatePath = "File\\Fastreport\\SYBData\\弹簧支吊架安装检验记录.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))
{
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
{
{ "SpringSupportHangBracketId", Guid.NewGuid() },
{ "ProjectId", this.tvControlItem.SelectedNodeID },
{ "PipelineCode", "" },
{ "PositionNum", "" },
{ "StructuralType", "" },
{ "DirectionOfDisplacement", "" },
{ "DesignLoadValue", "" },
{ "InstallationLoadValue", "" },
{ "CheckResults", "" },
{
"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();
}
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 drpIsoNoS_SelectedIndexChanged(object sender, EventArgs e)
{
DataIsoInfo();
}
#endregion;
#region
protected void btnSave_Click(object sender, EventArgs e)
{
if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId,
Const.SYBData_SpringSupportHangBracketMenuId, Const.BtnSave))
{
saveItem();
ShowNotify("保存成功!", MessageBoxIcon.Success);
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
}
else
{
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
return;
}
}
void saveItem()
{
BLL.SpringSupportHangBracketService.DeleteSpringSupportHangBracketByProjectId(this.tvControlItem.SelectedNodeID);
List<Model.SYBData_SpringSupportHangBracket> detailLists = new List<Model.SYBData_SpringSupportHangBracket>();
JArray teamGroupData = Grid1.GetMergedData();
foreach (JObject teamGroupRow in teamGroupData)
{
JObject values = teamGroupRow.Value<JObject>("values");
int rowIndex = teamGroupRow.Value<int>("index");
Model.SYBData_SpringSupportHangBracket newDetail = new Model.SYBData_SpringSupportHangBracket
{
SpringSupportHangBracketId = values.Value<string>("SpringSupportHangBracketId"),
ProjectId = this.tvControlItem.SelectedNodeID,
PipelineCode = values.Value<string>("PipelineCode"),
PositionNum = values.Value<string>("PositionNum"),
StructuralType = values.Value<string>("StructuralType"),
DirectionOfDisplacement = values.Value<string>("DirectionOfDisplacement"),
DesignLoadValue = values.Value<string>("DesignLoadValue"),
InstallationLoadValue = values.Value<string>("InstallationLoadValue"),
CheckResults = values.Value<string>("CheckResults"),
CompileMan =this.CurrUser.UserId,
CompileDate=DateTime.Now
};
detailLists.Add(newDetail);
}
try
{
if (detailLists.Count > 0)
{
Funs.DB.SYBData_SpringSupportHangBracket.InsertAllOnSubmit(detailLists);
}
Funs.DB.SubmitChanges();
}
catch (Exception)
{
return;
}
}
#endregion
}
}

View File

@ -0,0 +1,251 @@
//------------------------------------------------------------------------------
// <自动生成>
// 此代码由工具生成。
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.SYBData
{
public partial class SpringSupportHangBracket
{
/// <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>
/// drpIsoNoS 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpIsoNoS;
/// <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>
/// Grid1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Grid Grid1;
/// <summary>
/// txtPipelineCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtPipelineCode;
/// <summary>
/// txtPositionNum 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtPositionNum;
/// <summary>
/// txtStructuralType 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtStructuralType;
/// <summary>
/// txtDirectionOfDisplacement 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtDirectionOfDisplacement;
/// <summary>
/// txtDesignLoadValue 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtDesignLoadValue;
/// <summary>
/// txtInstallationLoadValue 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtInstallationLoadValue;
/// <summary>
/// txtCheckResults 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtCheckResults;
/// <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;
}
}

View File

@ -67,7 +67,7 @@
<add path="ChartImg.axd" verb="GET,POST,HEAD" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
<add path="FastReport.Export.axd" verb="*" type="FastReport.Web.Handlers.WebExport"/>
</httpHandlers>
<compilation debug="true" targetFramework="4.6.1">
<compilation debug="false" targetFramework="4.6.1">
<assemblies>
<add assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</assemblies>

View File

@ -611,6 +611,12 @@ namespace Model
partial void InsertSYBData_PressureTestPackageList(SYBData_PressureTestPackageList instance);
partial void UpdateSYBData_PressureTestPackageList(SYBData_PressureTestPackageList instance);
partial void DeleteSYBData_PressureTestPackageList(SYBData_PressureTestPackageList instance);
partial void InsertSYBData_SlidingFixed(SYBData_SlidingFixed instance);
partial void UpdateSYBData_SlidingFixed(SYBData_SlidingFixed instance);
partial void DeleteSYBData_SlidingFixed(SYBData_SlidingFixed instance);
partial void InsertSYBData_SpringSupportHangBracket(SYBData_SpringSupportHangBracket instance);
partial void UpdateSYBData_SpringSupportHangBracket(SYBData_SpringSupportHangBracket instance);
partial void DeleteSYBData_SpringSupportHangBracket(SYBData_SpringSupportHangBracket instance);
partial void InsertSys_ButtonPower(Sys_ButtonPower instance);
partial void UpdateSys_ButtonPower(Sys_ButtonPower instance);
partial void DeleteSys_ButtonPower(Sys_ButtonPower instance);
@ -2569,6 +2575,22 @@ namespace Model
}
}
public System.Data.Linq.Table<SYBData_SlidingFixed> SYBData_SlidingFixed
{
get
{
return this.GetTable<SYBData_SlidingFixed>();
}
}
public System.Data.Linq.Table<SYBData_SpringSupportHangBracket> SYBData_SpringSupportHangBracket
{
get
{
return this.GetTable<SYBData_SpringSupportHangBracket>();
}
}
public System.Data.Linq.Table<Sys_ButtonPower> Sys_ButtonPower
{
get
@ -4916,6 +4938,10 @@ namespace Model
private EntitySet<SYBData_PressureTestPackageList> _SYBData_PressureTestPackageList;
private EntitySet<SYBData_SlidingFixed> _SYBData_SlidingFixed;
private EntitySet<SYBData_SpringSupportHangBracket> _SYBData_SpringSupportHangBracket;
private EntitySet<Weld_ProjectPlan> _Weld_ProjectPlan;
private EntitySet<Weld_RecycleMat> _Weld_RecycleMat;
@ -5067,6 +5093,8 @@ namespace Model
this._SYBData_Cover = new EntitySet<SYBData_Cover>(new Action<SYBData_Cover>(this.attach_SYBData_Cover), new Action<SYBData_Cover>(this.detach_SYBData_Cover));
this._SYBData_FileDirectory = new EntitySet<SYBData_FileDirectory>(new Action<SYBData_FileDirectory>(this.attach_SYBData_FileDirectory), new Action<SYBData_FileDirectory>(this.detach_SYBData_FileDirectory));
this._SYBData_PressureTestPackageList = new EntitySet<SYBData_PressureTestPackageList>(new Action<SYBData_PressureTestPackageList>(this.attach_SYBData_PressureTestPackageList), new Action<SYBData_PressureTestPackageList>(this.detach_SYBData_PressureTestPackageList));
this._SYBData_SlidingFixed = new EntitySet<SYBData_SlidingFixed>(new Action<SYBData_SlidingFixed>(this.attach_SYBData_SlidingFixed), new Action<SYBData_SlidingFixed>(this.detach_SYBData_SlidingFixed));
this._SYBData_SpringSupportHangBracket = new EntitySet<SYBData_SpringSupportHangBracket>(new Action<SYBData_SpringSupportHangBracket>(this.attach_SYBData_SpringSupportHangBracket), new Action<SYBData_SpringSupportHangBracket>(this.detach_SYBData_SpringSupportHangBracket));
this._Weld_ProjectPlan = new EntitySet<Weld_ProjectPlan>(new Action<Weld_ProjectPlan>(this.attach_Weld_ProjectPlan), new Action<Weld_ProjectPlan>(this.detach_Weld_ProjectPlan));
this._Weld_RecycleMat = new EntitySet<Weld_RecycleMat>(new Action<Weld_RecycleMat>(this.attach_Weld_RecycleMat), new Action<Weld_RecycleMat>(this.detach_Weld_RecycleMat));
this._Weld_RecycleMatTop = new EntitySet<Weld_RecycleMatTop>(new Action<Weld_RecycleMatTop>(this.attach_Weld_RecycleMatTop), new Action<Weld_RecycleMatTop>(this.detach_Weld_RecycleMatTop));
@ -6735,6 +6763,32 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SYBData_SlidingFixed_Base_Project", Storage="_SYBData_SlidingFixed", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
public EntitySet<SYBData_SlidingFixed> SYBData_SlidingFixed
{
get
{
return this._SYBData_SlidingFixed;
}
set
{
this._SYBData_SlidingFixed.Assign(value);
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SYBData_SpringSupportHangBracket_Base_Project", Storage="_SYBData_SpringSupportHangBracket", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
public EntitySet<SYBData_SpringSupportHangBracket> SYBData_SpringSupportHangBracket
{
get
{
return this._SYBData_SpringSupportHangBracket;
}
set
{
this._SYBData_SpringSupportHangBracket.Assign(value);
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Weld_ProjectPlan_Base_Project", Storage="_Weld_ProjectPlan", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
public EntitySet<Weld_ProjectPlan> Weld_ProjectPlan
{
@ -7827,6 +7881,30 @@ namespace Model
entity.Base_Project = null;
}
private void attach_SYBData_SlidingFixed(SYBData_SlidingFixed entity)
{
this.SendPropertyChanging();
entity.Base_Project = this;
}
private void detach_SYBData_SlidingFixed(SYBData_SlidingFixed entity)
{
this.SendPropertyChanging();
entity.Base_Project = null;
}
private void attach_SYBData_SpringSupportHangBracket(SYBData_SpringSupportHangBracket entity)
{
this.SendPropertyChanging();
entity.Base_Project = this;
}
private void detach_SYBData_SpringSupportHangBracket(SYBData_SpringSupportHangBracket entity)
{
this.SendPropertyChanging();
entity.Base_Project = null;
}
private void attach_Weld_ProjectPlan(Weld_ProjectPlan entity)
{
this.SendPropertyChanging();
@ -118418,6 +118496,692 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.SYBData_SlidingFixed")]
public partial class SYBData_SlidingFixed : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private string _SlidingFixedId;
private string _ProjectId;
private string _PipelineCode;
private string _PipeSupportCode;
private string _Types;
private string _DirectionOfDisplacement;
private string _DesignDisplacement;
private string _InstallationDisplacement;
private string _CheckResult;
private string _CompileMan;
private System.Nullable<System.DateTime> _CompileDate;
private EntityRef<Base_Project> _Base_Project;
#region
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnSlidingFixedIdChanging(string value);
partial void OnSlidingFixedIdChanged();
partial void OnProjectIdChanging(string value);
partial void OnProjectIdChanged();
partial void OnPipelineCodeChanging(string value);
partial void OnPipelineCodeChanged();
partial void OnPipeSupportCodeChanging(string value);
partial void OnPipeSupportCodeChanged();
partial void OnTypesChanging(string value);
partial void OnTypesChanged();
partial void OnDirectionOfDisplacementChanging(string value);
partial void OnDirectionOfDisplacementChanged();
partial void OnDesignDisplacementChanging(string value);
partial void OnDesignDisplacementChanged();
partial void OnInstallationDisplacementChanging(string value);
partial void OnInstallationDisplacementChanged();
partial void OnCheckResultChanging(string value);
partial void OnCheckResultChanged();
partial void OnCompileManChanging(string value);
partial void OnCompileManChanged();
partial void OnCompileDateChanging(System.Nullable<System.DateTime> value);
partial void OnCompileDateChanged();
#endregion
public SYBData_SlidingFixed()
{
this._Base_Project = default(EntityRef<Base_Project>);
OnCreated();
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SlidingFixedId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
public string SlidingFixedId
{
get
{
return this._SlidingFixedId;
}
set
{
if ((this._SlidingFixedId != value))
{
this.OnSlidingFixedIdChanging(value);
this.SendPropertyChanging();
this._SlidingFixedId = value;
this.SendPropertyChanged("SlidingFixedId");
this.OnSlidingFixedIdChanged();
}
}
}
[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="_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="_PipeSupportCode", DbType="NVarChar(50)")]
public string PipeSupportCode
{
get
{
return this._PipeSupportCode;
}
set
{
if ((this._PipeSupportCode != value))
{
this.OnPipeSupportCodeChanging(value);
this.SendPropertyChanging();
this._PipeSupportCode = value;
this.SendPropertyChanged("PipeSupportCode");
this.OnPipeSupportCodeChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Types", DbType="NVarChar(50)")]
public string Types
{
get
{
return this._Types;
}
set
{
if ((this._Types != value))
{
this.OnTypesChanging(value);
this.SendPropertyChanging();
this._Types = value;
this.SendPropertyChanged("Types");
this.OnTypesChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DirectionOfDisplacement", DbType="NVarChar(50)")]
public string DirectionOfDisplacement
{
get
{
return this._DirectionOfDisplacement;
}
set
{
if ((this._DirectionOfDisplacement != value))
{
this.OnDirectionOfDisplacementChanging(value);
this.SendPropertyChanging();
this._DirectionOfDisplacement = value;
this.SendPropertyChanged("DirectionOfDisplacement");
this.OnDirectionOfDisplacementChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DesignDisplacement", DbType="NVarChar(50)")]
public string DesignDisplacement
{
get
{
return this._DesignDisplacement;
}
set
{
if ((this._DesignDisplacement != value))
{
this.OnDesignDisplacementChanging(value);
this.SendPropertyChanging();
this._DesignDisplacement = value;
this.SendPropertyChanged("DesignDisplacement");
this.OnDesignDisplacementChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InstallationDisplacement", DbType="NVarChar(50)")]
public string InstallationDisplacement
{
get
{
return this._InstallationDisplacement;
}
set
{
if ((this._InstallationDisplacement != value))
{
this.OnInstallationDisplacementChanging(value);
this.SendPropertyChanging();
this._InstallationDisplacement = value;
this.SendPropertyChanged("InstallationDisplacement");
this.OnInstallationDisplacementChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheckResult", DbType="NVarChar(50)")]
public string CheckResult
{
get
{
return this._CheckResult;
}
set
{
if ((this._CheckResult != value))
{
this.OnCheckResultChanging(value);
this.SendPropertyChanging();
this._CheckResult = value;
this.SendPropertyChanged("CheckResult");
this.OnCheckResultChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileMan", DbType="NVarChar(50)")]
public string CompileMan
{
get
{
return this._CompileMan;
}
set
{
if ((this._CompileMan != value))
{
this.OnCompileManChanging(value);
this.SendPropertyChanging();
this._CompileMan = value;
this.SendPropertyChanged("CompileMan");
this.OnCompileManChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileDate", DbType="DateTime")]
public System.Nullable<System.DateTime> CompileDate
{
get
{
return this._CompileDate;
}
set
{
if ((this._CompileDate != value))
{
this.OnCompileDateChanging(value);
this.SendPropertyChanging();
this._CompileDate = value;
this.SendPropertyChanged("CompileDate");
this.OnCompileDateChanged();
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SYBData_SlidingFixed_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.SYBData_SlidingFixed.Remove(this);
}
this._Base_Project.Entity = value;
if ((value != null))
{
value.SYBData_SlidingFixed.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.SYBData_SpringSupportHangBracket")]
public partial class SYBData_SpringSupportHangBracket : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private string _SpringSupportHangBracketId;
private string _ProjectId;
private string _PipelineCode;
private string _PositionNum;
private string _StructuralType;
private string _DirectionOfDisplacement;
private string _DesignLoadValue;
private string _InstallationLoadValue;
private string _CheckResults;
private string _CompileMan;
private System.Nullable<System.DateTime> _CompileDate;
private EntityRef<Base_Project> _Base_Project;
#region
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnSpringSupportHangBracketIdChanging(string value);
partial void OnSpringSupportHangBracketIdChanged();
partial void OnProjectIdChanging(string value);
partial void OnProjectIdChanged();
partial void OnPipelineCodeChanging(string value);
partial void OnPipelineCodeChanged();
partial void OnPositionNumChanging(string value);
partial void OnPositionNumChanged();
partial void OnStructuralTypeChanging(string value);
partial void OnStructuralTypeChanged();
partial void OnDirectionOfDisplacementChanging(string value);
partial void OnDirectionOfDisplacementChanged();
partial void OnDesignLoadValueChanging(string value);
partial void OnDesignLoadValueChanged();
partial void OnInstallationLoadValueChanging(string value);
partial void OnInstallationLoadValueChanged();
partial void OnCheckResultsChanging(string value);
partial void OnCheckResultsChanged();
partial void OnCompileManChanging(string value);
partial void OnCompileManChanged();
partial void OnCompileDateChanging(System.Nullable<System.DateTime> value);
partial void OnCompileDateChanged();
#endregion
public SYBData_SpringSupportHangBracket()
{
this._Base_Project = default(EntityRef<Base_Project>);
OnCreated();
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpringSupportHangBracketId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
public string SpringSupportHangBracketId
{
get
{
return this._SpringSupportHangBracketId;
}
set
{
if ((this._SpringSupportHangBracketId != value))
{
this.OnSpringSupportHangBracketIdChanging(value);
this.SendPropertyChanging();
this._SpringSupportHangBracketId = value;
this.SendPropertyChanged("SpringSupportHangBracketId");
this.OnSpringSupportHangBracketIdChanged();
}
}
}
[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="_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="_PositionNum", DbType="NVarChar(50)")]
public string PositionNum
{
get
{
return this._PositionNum;
}
set
{
if ((this._PositionNum != value))
{
this.OnPositionNumChanging(value);
this.SendPropertyChanging();
this._PositionNum = value;
this.SendPropertyChanged("PositionNum");
this.OnPositionNumChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StructuralType", DbType="NVarChar(50)")]
public string StructuralType
{
get
{
return this._StructuralType;
}
set
{
if ((this._StructuralType != value))
{
this.OnStructuralTypeChanging(value);
this.SendPropertyChanging();
this._StructuralType = value;
this.SendPropertyChanged("StructuralType");
this.OnStructuralTypeChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DirectionOfDisplacement", DbType="NVarChar(50)")]
public string DirectionOfDisplacement
{
get
{
return this._DirectionOfDisplacement;
}
set
{
if ((this._DirectionOfDisplacement != value))
{
this.OnDirectionOfDisplacementChanging(value);
this.SendPropertyChanging();
this._DirectionOfDisplacement = value;
this.SendPropertyChanged("DirectionOfDisplacement");
this.OnDirectionOfDisplacementChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DesignLoadValue", DbType="NVarChar(50)")]
public string DesignLoadValue
{
get
{
return this._DesignLoadValue;
}
set
{
if ((this._DesignLoadValue != value))
{
this.OnDesignLoadValueChanging(value);
this.SendPropertyChanging();
this._DesignLoadValue = value;
this.SendPropertyChanged("DesignLoadValue");
this.OnDesignLoadValueChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InstallationLoadValue", DbType="NVarChar(50)")]
public string InstallationLoadValue
{
get
{
return this._InstallationLoadValue;
}
set
{
if ((this._InstallationLoadValue != value))
{
this.OnInstallationLoadValueChanging(value);
this.SendPropertyChanging();
this._InstallationLoadValue = value;
this.SendPropertyChanged("InstallationLoadValue");
this.OnInstallationLoadValueChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheckResults", DbType="NVarChar(50)")]
public string CheckResults
{
get
{
return this._CheckResults;
}
set
{
if ((this._CheckResults != value))
{
this.OnCheckResultsChanging(value);
this.SendPropertyChanging();
this._CheckResults = value;
this.SendPropertyChanged("CheckResults");
this.OnCheckResultsChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileMan", DbType="NVarChar(50)")]
public string CompileMan
{
get
{
return this._CompileMan;
}
set
{
if ((this._CompileMan != value))
{
this.OnCompileManChanging(value);
this.SendPropertyChanging();
this._CompileMan = value;
this.SendPropertyChanged("CompileMan");
this.OnCompileManChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileDate", DbType="DateTime")]
public System.Nullable<System.DateTime> CompileDate
{
get
{
return this._CompileDate;
}
set
{
if ((this._CompileDate != value))
{
this.OnCompileDateChanging(value);
this.SendPropertyChanging();
this._CompileDate = value;
this.SendPropertyChanged("CompileDate");
this.OnCompileDateChanged();
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SYBData_SpringSupportHangBracket_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.SYBData_SpringSupportHangBracket.Remove(this);
}
this._Base_Project.Entity = value;
if ((value != null))
{
value.SYBData_SpringSupportHangBracket.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.Sys_ButtonPower")]
public partial class Sys_ButtonPower : INotifyPropertyChanging, INotifyPropertyChanged
{

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
<NameOfLastUsedPublishProfile>FolderProfile</NameOfLastUsedPublishProfile>
<UseIISExpress>true</UseIISExpress>
<Use64BitIISExpress />