20260403 试压包资料
This commit is contained in:
parent
ea4b2e4d57
commit
4f2160ff91
|
|
@ -0,0 +1,66 @@
|
||||||
|
|
||||||
|
insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuModule)
|
||||||
|
values('12033BD1-4326-4841-8A2C-B173F4D963F8','桿箕관쇱꿴棺淃헌데','SYBData/FinalitemList.aspx',220,'3EAFF140-E5CA-4978-B83D-D2C9F36E0D52','3')
|
||||||
|
go
|
||||||
|
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
values('EB9543A2-D9D5-4935-95D3-B607F35D1849','12033BD1-4326-4841-8A2C-B173F4D963F8','藤속',1)
|
||||||
|
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
values('32C41FC2-715E-404B-8C16-73930EC7DB88','12033BD1-4326-4841-8A2C-B173F4D963F8','錦맣',2)
|
||||||
|
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
values('BC8F3EFE-C09F-4756-B010-3C0A1AD3B258','12033BD1-4326-4841-8A2C-B173F4D963F8','<EFBFBD>뇜',3)
|
||||||
|
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
values('C0EC20CC-B84C-419E-9BA0-F7BCD58845B1','12033BD1-4326-4841-8A2C-B173F4D963F8','괏닸',4)
|
||||||
|
go
|
||||||
|
|
||||||
|
|
||||||
|
CREATE TABLE [dbo].[SYBData_FinalitemList](
|
||||||
|
[FinalitemListId] [nvarchar](50) NOT NULL,
|
||||||
|
[ProjectId] [nvarchar](50) NULL,
|
||||||
|
[IndividualProject] [nvarchar](50) NULL,
|
||||||
|
[PipeSectionCode] [nvarchar](50) NULL,
|
||||||
|
[FinalItemContent] [nvarchar](200) NULL,
|
||||||
|
[SD_ConUnit] [nvarchar](50) NULL,
|
||||||
|
[SD_SupervisionUnit] [nvarchar](50) NULL,
|
||||||
|
[SD_OwnerUnit] [nvarchar](50) NULL,
|
||||||
|
CONSTRAINT [PK_SYBData_FinalitemList] PRIMARY KEY CLUSTERED
|
||||||
|
(
|
||||||
|
[FinalitemListId] 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_FinalitemList] WITH CHECK ADD CONSTRAINT [FK_SYBData_FinalitemList_Base_Project] FOREIGN KEY([ProjectId])
|
||||||
|
REFERENCES [dbo].[Base_Project] ([ProjectId])
|
||||||
|
GO
|
||||||
|
|
||||||
|
ALTER TABLE [dbo].[SYBData_FinalitemList] CHECK CONSTRAINT [FK_SYBData_FinalitemList_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_FinalitemList', @level2type=N'COLUMN',@level2name=N'FinalitemListId'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'淃커Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_FinalitemList', @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_FinalitemList', @level2type=N'COLUMN',@level2name=N'IndividualProject'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'桿箕관밗뙈뵀' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_FinalitemList', @level2type=N'COLUMN',@level2name=N'PipeSectionCode'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'棺淃코휭' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_FinalitemList', @level2type=N'COLUMN',@level2name=N'FinalItemContent'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'饋淃횅훰-嘉묏데貫' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_FinalitemList', @level2type=N'COLUMN',@level2name=N'SD_ConUnit'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'饋淃횅훰-솰잿데貫' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_FinalitemList', @level2type=N'COLUMN',@level2name=N'SD_SupervisionUnit'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'饋淃횅훰-撚寮데貫' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_FinalitemList', @level2type=N'COLUMN',@level2name=N'SD_OwnerUnit'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'밗돛溝固桿箕棺淃헌데' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_FinalitemList'
|
||||||
|
GO
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -302,6 +302,7 @@
|
||||||
<Compile Include="SYBData\ApplicationFormService.cs" />
|
<Compile Include="SYBData\ApplicationFormService.cs" />
|
||||||
<Compile Include="SYBData\BlindFlangeInstallationAndRemovalService.cs" />
|
<Compile Include="SYBData\BlindFlangeInstallationAndRemovalService.cs" />
|
||||||
<Compile Include="SYBData\CoverService.cs" />
|
<Compile Include="SYBData\CoverService.cs" />
|
||||||
|
<Compile Include="SYBData\FinalitemListService.cs" />
|
||||||
<Compile Include="SYBData\PressureTestPackageListService.cs" />
|
<Compile Include="SYBData\PressureTestPackageListService.cs" />
|
||||||
<Compile Include="SYBData\SlidingFixedService.cs" />
|
<Compile Include="SYBData\SlidingFixedService.cs" />
|
||||||
<Compile Include="SYBData\SpringSupportHangBracketService.cs" />
|
<Compile Include="SYBData\SpringSupportHangBracketService.cs" />
|
||||||
|
|
|
||||||
|
|
@ -1957,6 +1957,11 @@ namespace BLL
|
||||||
/// 滑动/固定管托安装检验记录
|
/// 滑动/固定管托安装检验记录
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public const string SYBData_SlidingFixedMenuId = "C6D77E52-89F0-4A2F-ABC5-5EB010A486B9";
|
public const string SYBData_SlidingFixedMenuId = "C6D77E52-89F0-4A2F-ABC5-5EB010A486B9";
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 试压包检查尾项清单
|
||||||
|
/// </summary>
|
||||||
|
public const string SYBData_FinalitemListMenuId = "12033BD1-4326-4841-8A2C-B173F4D963F8";
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region 报表对应ID
|
#region 报表对应ID
|
||||||
|
|
|
||||||
|
|
@ -291,15 +291,15 @@ namespace BLL
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取管线中管道等级
|
/// 获取管线中管道类别
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="projectId"></param>
|
/// <param name="projectId"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static List<string> GetPipelineLevelList(string projectId)
|
public static List<string> GetPipelineLevelList(string projectId)
|
||||||
{
|
{
|
||||||
var list = (from x in Funs.DB.HJGL_PW_IsoInfo
|
var list = (from x in Funs.DB.HJGL_PW_IsoInfo
|
||||||
join y in Funs.DB.HJGL_BS_IsoClass on x.ISC_ID equals y.ISC_ID
|
//join y in Funs.DB.HJGL_BS_IsoClass on x.ISC_ID equals y.ISC_ID
|
||||||
where x.ProjectId == projectId select y.ISC_IsoName).Distinct().ToList();
|
where x.ProjectId == projectId select x.PipeLineClass).Distinct().ToList();
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -308,12 +308,12 @@ namespace BLL
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="projectId"></param>
|
/// <param name="projectId"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static List<string> GetPipeLineLengthList(string projectId)
|
public static decimal? GetPipeLineLengthList(string projectId)
|
||||||
{
|
{
|
||||||
var list = (from x in Funs.DB.HJGL_PW_IsoInfo
|
decimal? PipeLineLength = (from x in Funs.DB.HJGL_PW_IsoInfo
|
||||||
where x.ProjectId == projectId
|
where x.ProjectId == projectId
|
||||||
select x.PipeLineLength.ToString()).Distinct().ToList();
|
select x.PipeLineLength).Sum();
|
||||||
return list;
|
return PipeLineLength;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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 FinalitemListService
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 根据项目Id获取管道系统试压尾项清单
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="projectId"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public static List<Model.SYBData_FinalitemList> GetListByProjectId(string projectId)
|
||||||
|
{
|
||||||
|
return (from x in Funs.DB.SYBData_FinalitemList where x.ProjectId == projectId select x).ToList();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 根据项目Id删除管道系统试压尾项清单
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="projectId"></param>
|
||||||
|
public static void DeleteFinalItemListByProjectId(string projectId)
|
||||||
|
{
|
||||||
|
SGGLDB db = Funs.DB;
|
||||||
|
var q = (from x in db.SYBData_FinalitemList where x.ProjectId == projectId select x).ToList();
|
||||||
|
if (q.Count > 0)
|
||||||
|
{
|
||||||
|
db.SYBData_FinalitemList.DeleteAllOnSubmit(q);
|
||||||
|
db.SubmitChanges();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="01/23/2026 17:12:17" ReportInfo.Modified="03/19/2026 10:06:07" ReportInfo.CreatorVersion="2017.1.16.0">
|
<Report ScriptLanguage="CSharp" ReportInfo.Created="01/23/2026 17:12:17" ReportInfo.Modified="04/03/2026 15:29:45" ReportInfo.CreatorVersion="2017.1.16.0">
|
||||||
<Dictionary>
|
<Dictionary>
|
||||||
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QFT31Mmr+DTjO0YgD/VVMzoA==">
|
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QFGCZuiNTXrd4153yusxYb8g==">
|
||||||
<TableDataSource Name="Data" DataType="System.Int32" PropName="Attach_Image" Enabled="true" TableName="Data">
|
<TableDataSource Name="Data" DataType="System.Int32" PropName="Attach_Image" Enabled="true" TableName="Data">
|
||||||
<Column Name="CertificateCode" DataType="System.String" PropName="attach_image_id"/>
|
<Column Name="CertificateCode" DataType="System.String" PropName="attach_image_id"/>
|
||||||
<Column Name="EngineeringName" DataType="System.String" PropName="image_series"/>
|
<Column Name="EngineeringName" DataType="System.String" PropName="image_series"/>
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,128 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Report ScriptLanguage="CSharp" ReportInfo.Created="03/31/2026 16:54:16" ReportInfo.Modified="04/03/2026 14:36:16" 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 Table2_ManualBuild(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
DataSourceBase rowData = Report.GetDataSource("Data");
|
||||||
|
// init the data source
|
||||||
|
rowData.Init();
|
||||||
|
|
||||||
|
// print the first table row - it is a header
|
||||||
|
|
||||||
|
// now enumerate the data source and print the table body
|
||||||
|
while (rowData.HasMoreRows)
|
||||||
|
{
|
||||||
|
// print the table body
|
||||||
|
Table2.PrintRow(0);
|
||||||
|
Table2.PrintColumns();
|
||||||
|
|
||||||
|
// go next data source row
|
||||||
|
rowData.Next();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</ScriptText>
|
||||||
|
<Dictionary>
|
||||||
|
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QFu+hCcwDgNI1hKwAEG/socw==">
|
||||||
|
<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="PipeSectionCode" DataType="System.String" PropName="Column"/>
|
||||||
|
<Column Name="FinalItemContent" DataType="System.String" PropName="Column"/>
|
||||||
|
<Column Name="SD_ConUnit" DataType="System.String" PropName="Column"/>
|
||||||
|
<Column Name="SD_SupervisionUnit" DataType="System.String" PropName="Column"/>
|
||||||
|
<Column Name="SD_OwnerUnit" DataType="System.String" PropName="Column"/>
|
||||||
|
</TableDataSource>
|
||||||
|
</MsSqlDataConnection>
|
||||||
|
<Parameter Name="IndividualProject" DataType="System.String"/>
|
||||||
|
</Dictionary>
|
||||||
|
<ReportPage Name="Page1" RawPaperSize="9" LeftMargin="22" TopMargin="13.3" RightMargin="17" BottomMargin="16.5" Guides="0,646.38,28.98,143.01,417.69,76.23,114.03,274.68,493.92,570.15,189,396.9,9.45,122.85,349.65,359.1,472.5,595.35">
|
||||||
|
<PageHeaderBand Name="PageHeader1" Width="646.38" Height="149.5" Guides="75.6,149.5,0,73.9,31.37,42.53,18.9,47.25">
|
||||||
|
<TableObject Name="Table1" Top="75.6" Width="646.38" Height="73.9">
|
||||||
|
<TableColumn Name="Column1" Width="28.98"/>
|
||||||
|
<TableColumn Name="Column2" Width="114.03"/>
|
||||||
|
<TableColumn Name="Column3" Width="274.68"/>
|
||||||
|
<TableColumn Name="Column4" Width="76.23"/>
|
||||||
|
<TableColumn Name="Column5" Width="76.23"/>
|
||||||
|
<TableColumn Name="Column6" Width="76.23"/>
|
||||||
|
<TableRow Name="Row1" Height="31.37">
|
||||||
|
<TableCell Name="Cell1" Border.Lines="All" Text="序号" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
|
||||||
|
<TableCell Name="Cell2" Border.Lines="All" Text="试压包管段号" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
|
||||||
|
<TableCell Name="Cell3" Border.Lines="All" Text="尾项内容" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
|
||||||
|
<TableCell Name="Cell4" Border.Lines="All" Text="销项确认" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="3"/>
|
||||||
|
<TableCell Name="Cell5" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
<TableCell Name="Cell26" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
</TableRow>
|
||||||
|
<TableRow Name="Row2" Height="42.53">
|
||||||
|
<TableCell Name="Cell6" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
<TableCell Name="Cell7" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
<TableCell Name="Cell8" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
<TableCell Name="Cell9" Border.Lines="All" Text="施工单位" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
<TableCell Name="Cell10" Border.Lines="All" Text="监理单位" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
<TableCell Name="Cell30" Border.Lines="All" Text="业主单位" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
</TableRow>
|
||||||
|
</TableObject>
|
||||||
|
<TextObject Name="Text1" Left="189" Width="207.9" Height="18.9" Text="管道系统试压尾项清单" Font="黑体, 14pt, style=Bold"/>
|
||||||
|
<TextObject Name="Text2" Left="9.45" Top="47.25" Width="113.4" Height="28.35" Text="单项工程名称:" HorzAlign="Right" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
<TextObject Name="Text3" Left="122.85" Top="47.25" Width="226.8" Height="28.35" Text="[IndividualProject]" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||||
|
<TextObject Name="Text4" Left="359.1" Top="47.25" Width="113.4" Height="28.35" Text="单位工程名称:" HorzAlign="Right" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
<TextObject Name="Text5" Left="472.5" Top="47.25" Width="122.85" Height="28.35" Text="管道安装工程" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||||
|
</PageHeaderBand>
|
||||||
|
<DataBand Name="Data1" Top="153.5" Width="646.38" Height="33.08" Guides="0,33.08">
|
||||||
|
<TableObject Name="Table2" Width="646.38" Height="33.08" ManualBuildEvent="Table2_ManualBuild">
|
||||||
|
<TableColumn Name="Column10" Width="28.98"/>
|
||||||
|
<TableColumn Name="Column11" Width="114.03"/>
|
||||||
|
<TableColumn Name="Column12" Width="274.68"/>
|
||||||
|
<TableColumn Name="Column13" Width="76.23"/>
|
||||||
|
<TableColumn Name="Column14" Width="76.23"/>
|
||||||
|
<TableColumn Name="Column15" Width="76.23"/>
|
||||||
|
<TableRow Name="Row4" Height="33.08">
|
||||||
|
<TableCell Name="Cell43" Border.Lines="All" Text="[Data.Num]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||||
|
<TableCell Name="Cell44" Border.Lines="All" Text="[Data.PipeSectionCode]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||||
|
<TableCell Name="Cell45" Border.Lines="All" Text="[Data.FinalItemContent]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||||
|
<TableCell Name="Cell46" Border.Lines="All" Text="[Data.SD_ConUnit]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||||
|
<TableCell Name="Cell47" Border.Lines="All" Text="[Data.SD_SupervisionUnit]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||||
|
<TableCell Name="Cell48" Border.Lines="All" Text="[Data.SD_OwnerUnit]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||||
|
</TableRow>
|
||||||
|
</TableObject>
|
||||||
|
</DataBand>
|
||||||
|
<ColumnFooterBand Name="ColumnFooter1" Top="227.66" Width="646.38">
|
||||||
|
<ChildBand Name="Child1" Top="190.58" Width="646.38" Height="33.08" Guides="0,33.08" FillUnusedSpace="true">
|
||||||
|
<TableObject Name="Table3" Width="646.38" Height="33.08">
|
||||||
|
<TableColumn Name="Column19" Width="28.98"/>
|
||||||
|
<TableColumn Name="Column20" Width="114.03"/>
|
||||||
|
<TableColumn Name="Column21" Width="274.68"/>
|
||||||
|
<TableColumn Name="Column22" Width="76.23"/>
|
||||||
|
<TableColumn Name="Column23" Width="76.23"/>
|
||||||
|
<TableColumn Name="Column24" Width="76.23"/>
|
||||||
|
<TableRow Name="Row5" Height="33.08">
|
||||||
|
<TableCell Name="Cell52" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
<TableCell Name="Cell53" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
<TableCell Name="Cell54" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
<TableCell Name="Cell55" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
<TableCell Name="Cell56" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
<TableCell Name="Cell57" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||||
|
</TableRow>
|
||||||
|
</TableObject>
|
||||||
|
</ChildBand>
|
||||||
|
</ColumnFooterBand>
|
||||||
|
</ReportPage>
|
||||||
|
</Report>
|
||||||
|
|
@ -1363,6 +1363,7 @@
|
||||||
<Content Include="Styles\sunny\images\ui-icons_ffe180_256x240.png" />
|
<Content Include="Styles\sunny\images\ui-icons_ffe180_256x240.png" />
|
||||||
<Content Include="Styles\sunny\jquery-ui-1.9.2.custom.css" />
|
<Content Include="Styles\sunny\jquery-ui-1.9.2.custom.css" />
|
||||||
<Content Include="Styles\sunny\jquery-ui-1.9.2.custom.min.css" />
|
<Content Include="Styles\sunny\jquery-ui-1.9.2.custom.min.css" />
|
||||||
|
<Content Include="SYBData\FinalitemList.aspx" />
|
||||||
<Content Include="SYBData\HeatTreatmentReport.aspx" />
|
<Content Include="SYBData\HeatTreatmentReport.aspx" />
|
||||||
<Content Include="SYBData\PressureTestPackageList.aspx" />
|
<Content Include="SYBData\PressureTestPackageList.aspx" />
|
||||||
<Content Include="SYBData\RTProportionConfirmation.aspx" />
|
<Content Include="SYBData\RTProportionConfirmation.aspx" />
|
||||||
|
|
@ -7258,6 +7259,13 @@
|
||||||
<Compile Include="RLSB\WelderTrain.aspx.designer.cs">
|
<Compile Include="RLSB\WelderTrain.aspx.designer.cs">
|
||||||
<DependentUpon>WelderTrain.aspx</DependentUpon>
|
<DependentUpon>WelderTrain.aspx</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="SYBData\FinalitemList.aspx.cs">
|
||||||
|
<DependentUpon>FinalitemList.aspx</DependentUpon>
|
||||||
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="SYBData\FinalitemList.aspx.designer.cs">
|
||||||
|
<DependentUpon>FinalitemList.aspx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="SYBData\HeatTreatmentReport.aspx.cs">
|
<Compile Include="SYBData\HeatTreatmentReport.aspx.cs">
|
||||||
<DependentUpon>HeatTreatmentReport.aspx</DependentUpon>
|
<DependentUpon>HeatTreatmentReport.aspx</DependentUpon>
|
||||||
<SubType>ASPXCodeBehind</SubType>
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
|
|
||||||
|
|
@ -74,16 +74,16 @@
|
||||||
</f:FormRow>
|
</f:FormRow>
|
||||||
<f:FormRow>
|
<f:FormRow>
|
||||||
<Items>
|
<Items>
|
||||||
<f:DatePicker ID="txtInstallStartDate" runat="server" Label="安装开工日期" LabelAlign="Right" LabelWidth="170px"></f:DatePicker>
|
<f:DatePicker ID="txtInstallStartDate" runat="server" Label="安装开工日期" LabelAlign="Right" LabelWidth="170px" DateFormatString="yyyy年MM月dd日"></f:DatePicker>
|
||||||
<f:DatePicker ID="txtInstallEndDate" runat="server" Label="安装竣工日期" LabelAlign="Right" LabelWidth="170px"></f:DatePicker>
|
<f:DatePicker ID="txtInstallEndDate" runat="server" Label="安装竣工日期" LabelAlign="Right" LabelWidth="170px" DateFormatString="yyyy年MM月dd日"></f:DatePicker>
|
||||||
</Items>
|
</Items>
|
||||||
</f:FormRow>
|
</f:FormRow>
|
||||||
<f:FormRow>
|
<f:FormRow>
|
||||||
<Items>
|
<Items>
|
||||||
<f:DropDownList ID="drpPipelineLevel" runat="server" Label="管道级别" LabelAlign="Right" LabelWidth="170px" EnableEdit="true"></f:DropDownList>
|
<f:DropDownList ID="drpPipelineLevel" runat="server" Label="管道级别" LabelAlign="Right" LabelWidth="170px" EnableEdit="true"></f:DropDownList>
|
||||||
<f:DropDownList ID="drpPipelineLength" runat="server" Label="管道长度" LabelAlign="Right" LabelWidth="170px" EnableEdit="true"></f:DropDownList>
|
<%--<f:DropDownList ID="drpPipelineLength" runat="server" Label="管道长度" LabelAlign="Right" LabelWidth="170px" EnableEdit="true"></f:DropDownList>--%>
|
||||||
<%--<f:TextBox ID="txtPipelineLevel" runat="server" Label="管道级别" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>--%>
|
<%--<f:TextBox ID="txtPipelineLevel" runat="server" Label="管道级别" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>--%>
|
||||||
<%--<f:TextBox ID="txtPipelineLength" runat="server" Label="管道长度" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>--%>
|
<f:TextBox ID="txtPipelineLength" runat="server" Label="管道长度" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
|
||||||
</Items>
|
</Items>
|
||||||
</f:FormRow>
|
</f:FormRow>
|
||||||
<%--<f:FormRow>
|
<%--<f:FormRow>
|
||||||
|
|
|
||||||
|
|
@ -53,16 +53,16 @@ namespace FineUIPro.Web.JGZL
|
||||||
this.InitTreeMenu();//加载树
|
this.InitTreeMenu();//加载树
|
||||||
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
|
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
|
||||||
|
|
||||||
//管道等级
|
//管道类别
|
||||||
this.drpPipelineLevel.DataTextField = "ISC_IsoName";
|
this.drpPipelineLevel.DataTextField = "ISC_IsoName";
|
||||||
this.drpPipelineLevel.DataValueField = "ISC_IsoName";
|
this.drpPipelineLevel.DataValueField = "ISC_IsoName";
|
||||||
this.drpPipelineLevel.DataSource = BLL.HJGL_PW_IsoInfoService.GetPipelineLevelList(this.drpProjectId.SelectedValue);
|
this.drpPipelineLevel.DataSource = BLL.HJGL_PW_IsoInfoService.GetPipelineLevelList(this.drpProjectId.SelectedValue);
|
||||||
this.drpPipelineLevel.DataBind();
|
this.drpPipelineLevel.DataBind();
|
||||||
//管道长度
|
//管道长度
|
||||||
this.drpPipelineLength.DataTextField = "PipeLineLength";
|
//this.drpPipelineLength.DataTextField = "PipeLineLength";
|
||||||
this.drpPipelineLength.DataValueField = "PipeLineLength";
|
//this.drpPipelineLength.DataValueField = "PipeLineLength";
|
||||||
this.drpPipelineLength.DataSource = BLL.HJGL_PW_IsoInfoService.GetPipeLineLengthList(this.drpProjectId.SelectedValue);
|
//this.drpPipelineLength.DataSource = BLL.HJGL_PW_IsoInfoService.GetPipeLineLengthList(this.drpProjectId.SelectedValue);
|
||||||
this.drpPipelineLength.DataBind();
|
//this.drpPipelineLength.DataBind();
|
||||||
//this.BindGrid();
|
//this.BindGrid();
|
||||||
PageData();
|
PageData();
|
||||||
}
|
}
|
||||||
|
|
@ -77,7 +77,8 @@ namespace FineUIPro.Web.JGZL
|
||||||
txtInstallStartDate.Text = string.Empty;
|
txtInstallStartDate.Text = string.Empty;
|
||||||
txtInstallEndDate.Text = string.Empty;
|
txtInstallEndDate.Text = string.Empty;
|
||||||
drpPipelineLevel.SelectedValue = BLL.Const._Null;
|
drpPipelineLevel.SelectedValue = BLL.Const._Null;
|
||||||
drpPipelineLength.SelectedValue = BLL.Const._Null;
|
//drpPipelineLength.SelectedValue = BLL.Const._Null;
|
||||||
|
this.txtPipelineLength.Text=string.Empty;
|
||||||
txtDesignUnit.Text = string.Empty;
|
txtDesignUnit.Text = string.Empty;
|
||||||
txtLosslessTestingAgency.Text = string.Empty;
|
txtLosslessTestingAgency.Text = string.Empty;
|
||||||
txtInstallationInspection.Text = string.Empty;
|
txtInstallationInspection.Text = string.Empty;
|
||||||
|
|
@ -112,18 +113,18 @@ namespace FineUIPro.Web.JGZL
|
||||||
//this.txtEngineeringCode.Text = report.EngineeringCode;
|
//this.txtEngineeringCode.Text = report.EngineeringCode;
|
||||||
this.txtDeliveryUnit.Text = report.DeliveryUnit;
|
this.txtDeliveryUnit.Text = report.DeliveryUnit;
|
||||||
this.txtDeliveryUnitCode.Text = report.DeliveryUnitCode;
|
this.txtDeliveryUnitCode.Text = report.DeliveryUnitCode;
|
||||||
this.txtInstallStartDate.Text = report.InstallStartDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.InstallStartDate) : "";
|
this.txtInstallStartDate.Text = report.InstallStartDate.HasValue ? string.Format("{0:yyyy年MM月dd日}", report.InstallStartDate) : "";
|
||||||
this.txtInstallEndDate.Text = report.InstallEndDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.InstallEndDate) : "";
|
this.txtInstallEndDate.Text = report.InstallEndDate.HasValue ? string.Format("{0:yyyy年MM月dd日}", report.InstallEndDate) : "";
|
||||||
if (!string.IsNullOrEmpty(report.PipelineLevel))
|
if (!string.IsNullOrEmpty(report.PipelineLevel))
|
||||||
{
|
{
|
||||||
this.drpPipelineLevel.SelectedValue = report.PipelineLevel;
|
this.drpPipelineLevel.SelectedValue = report.PipelineLevel;
|
||||||
}
|
}
|
||||||
if (!string.IsNullOrEmpty(report.PipelineLength))
|
//if (!string.IsNullOrEmpty(report.PipelineLength))
|
||||||
{
|
//{
|
||||||
this.drpPipelineLength.SelectedValue = report.PipelineLength;
|
// this.drpPipelineLength.SelectedValue = report.PipelineLength;
|
||||||
}
|
//}
|
||||||
//this.txtPipelineLevel.Text = report.PipelineLevel;
|
//this.txtPipelineLevel.Text = report.PipelineLevel;
|
||||||
//this.txtPipelineLength.Text = report.PipelineLength;
|
this.txtPipelineLength.Text = report.PipelineLength;
|
||||||
//this.txtDesignLicenseCode.Text = report.DesignLicenseCode;
|
//this.txtDesignLicenseCode.Text = report.DesignLicenseCode;
|
||||||
//this.txtQualificationCertificateCode.Text = report.QualificationCertificateCode;
|
//this.txtQualificationCertificateCode.Text = report.QualificationCertificateCode;
|
||||||
//this.txtInstitutionalApprovalCertificate.Text = report.InstitutionalApprovalCertificate;
|
//this.txtInstitutionalApprovalCertificate.Text = report.InstitutionalApprovalCertificate;
|
||||||
|
|
@ -162,6 +163,7 @@ namespace FineUIPro.Web.JGZL
|
||||||
this.txtConstructionUnit.Text = "浙江石油化工有限公司";
|
this.txtConstructionUnit.Text = "浙江石油化工有限公司";
|
||||||
this.txtSpecialEquipmentProductionLicenseCode.Text = "TS3833339-2028";
|
this.txtSpecialEquipmentProductionLicenseCode.Text = "TS3833339-2028";
|
||||||
this.txtRemark.Text = "GB50517-2023";
|
this.txtRemark.Text = "GB50517-2023";
|
||||||
|
this.txtPipelineLength.Text = BLL.HJGL_PW_IsoInfoService.GetPipeLineLengthList(this.tvControlItem.SelectedNodeID).Value.ToString(".##");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -359,9 +361,9 @@ namespace FineUIPro.Web.JGZL
|
||||||
newRow["EngineeringCode"] = BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectCode;
|
newRow["EngineeringCode"] = BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectCode;
|
||||||
newRow["DeliveryUnit"] = report.DeliveryUnit;
|
newRow["DeliveryUnit"] = report.DeliveryUnit;
|
||||||
newRow["DeliveryUnitCode"] = report.DeliveryUnitCode;
|
newRow["DeliveryUnitCode"] = report.DeliveryUnitCode;
|
||||||
string InstallStartDate = report.InstallStartDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.InstallStartDate) : "";
|
string InstallStartDate = report.InstallStartDate.HasValue ? string.Format("{0:yyyy年MM月dd日}", report.InstallStartDate) : "";
|
||||||
newRow["InstallStartDate"] = InstallStartDate;
|
newRow["InstallStartDate"] = InstallStartDate;
|
||||||
string InstallEndDate = report.InstallEndDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.InstallEndDate) : "";
|
string InstallEndDate = report.InstallEndDate.HasValue ? string.Format("{0:yyyy年MM月dd日}", report.InstallEndDate) : "";
|
||||||
newRow["InstallEndDate"] = InstallEndDate;
|
newRow["InstallEndDate"] = InstallEndDate;
|
||||||
newRow["PipelineLevel"] = report.PipelineLevel;
|
newRow["PipelineLevel"] = report.PipelineLevel;
|
||||||
newRow["PipelineLength"] = report.PipelineLength;
|
newRow["PipelineLength"] = report.PipelineLength;
|
||||||
|
|
@ -579,12 +581,12 @@ namespace FineUIPro.Web.JGZL
|
||||||
{
|
{
|
||||||
newReport.PipelineLevel = this.drpPipelineLevel.SelectedValue;
|
newReport.PipelineLevel = this.drpPipelineLevel.SelectedValue;
|
||||||
}
|
}
|
||||||
if (!string.IsNullOrEmpty(drpPipelineLength.SelectedValue))
|
//if (!string.IsNullOrEmpty(drpPipelineLength.SelectedValue))
|
||||||
{
|
//{
|
||||||
newReport.PipelineLength = this.drpPipelineLength.SelectedValue;
|
// newReport.PipelineLength = this.drpPipelineLength.SelectedValue;
|
||||||
}
|
//}
|
||||||
//newReport.PipelineLevel = this.txtPipelineLevel.Text.Trim();
|
//newReport.PipelineLevel = this.txtPipelineLevel.Text.Trim();
|
||||||
//newReport.PipelineLength = this.txtPipelineLength.Text.Trim();
|
newReport.PipelineLength = this.txtPipelineLength.Text.Trim();
|
||||||
newReport.DesignUnit = this.txtDesignUnit.Text.Trim();
|
newReport.DesignUnit = this.txtDesignUnit.Text.Trim();
|
||||||
newReport.LosslessTestingAgency = this.txtLosslessTestingAgency.Text.Trim();
|
newReport.LosslessTestingAgency = this.txtLosslessTestingAgency.Text.Trim();
|
||||||
//newReport.SupervisoryAndInspectionAgency = this.txtSupervisoryAndInspectionAgency.Text.Trim();
|
//newReport.SupervisoryAndInspectionAgency = this.txtSupervisoryAndInspectionAgency.Text.Trim();
|
||||||
|
|
|
||||||
|
|
@ -195,13 +195,13 @@ namespace FineUIPro.Web.JGZL
|
||||||
protected global::FineUIPro.DropDownList drpPipelineLevel;
|
protected global::FineUIPro.DropDownList drpPipelineLevel;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// drpPipelineLength 控件。
|
/// txtPipelineLength 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// 自动生成的字段。
|
/// 自动生成的字段。
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.DropDownList drpPipelineLength;
|
protected global::FineUIPro.TextBox txtPipelineLength;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// txtDesignUnit 控件。
|
/// txtDesignUnit 控件。
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,124 @@
|
||||||
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FinalitemList.aspx.cs" Inherits="FineUIPro.Web.SYBData.FinalitemList" %>
|
||||||
|
|
||||||
|
<!DOCTYPE html>
|
||||||
|
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head runat="server">
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
|
<title>管道系统试压尾项清单</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<form id="form1" runat="server">
|
||||||
|
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
|
||||||
|
<f:Panel ID="Panel1" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
|
||||||
|
<Items>
|
||||||
|
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true"
|
||||||
|
EnableCollapse="true" Width="220px" Title="管道系统试压尾项清单" ShowBorder="true" Layout="VBox"
|
||||||
|
ShowHeader="true" AutoScroll="true" BodyPadding="5px" IconFont="ArrowCircleLeft">
|
||||||
|
<Toolbars>
|
||||||
|
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Left">
|
||||||
|
<Items>
|
||||||
|
<f:DropDownList ID="drpProjectId" runat="server" Label="项目" LabelAlign="Right" AutoPostBack="true" EnableEdit="true"
|
||||||
|
OnSelectedIndexChanged="drpProjectId_SelectedIndexChanged" LabelWidth="50px">
|
||||||
|
</f:DropDownList>
|
||||||
|
</Items>
|
||||||
|
</f:Toolbar>
|
||||||
|
</Toolbars>
|
||||||
|
<Items>
|
||||||
|
<f:Tree ID="tvControlItem" ShowHeader="false" Title="管道系统试压尾项清单" OnNodeCommand="tvControlItem_NodeCommand"
|
||||||
|
runat="server" ShowBorder="false" EnableCollapse="true" EnableSingleClickExpand="true"
|
||||||
|
AutoLeafIdentification="true" EnableSingleExpand="true" EnableTextSelection="true">
|
||||||
|
</f:Tree>
|
||||||
|
</Items>
|
||||||
|
</f:Panel>
|
||||||
|
<f:Panel runat="server" ID="panelCenterRegion" RegionPosition="Center" ShowBorder="true"
|
||||||
|
Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" Title="管道系统试压尾项清单"
|
||||||
|
TitleToolTip="管道系统试压尾项清单" AutoScroll="true">
|
||||||
|
<Toolbars>
|
||||||
|
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Right">
|
||||||
|
<Items>
|
||||||
|
<f:TextBox ID="txtIndividualProject" runat="server" Label="单项工程名称" LabelAlign="Right"></f:TextBox>
|
||||||
|
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||||
|
</f:ToolbarFill>
|
||||||
|
<f:Button ID="btnAdd" runat="server" Icon="Add" Text="增加" OnClick="btnAdd_Click"></f:Button>
|
||||||
|
<f:Button ID="btnSave" Text="保存" ToolTip="保存" Icon="SystemSave" runat="server" OnClick="btnSave_Click"></f:Button>
|
||||||
|
<f:Button ID="btnPrint" Text="打印" Icon="Printer" runat="server" OnClick="btnPrint_Click">
|
||||||
|
</f:Button>
|
||||||
|
</Items>
|
||||||
|
</f:Toolbar>
|
||||||
|
</Toolbars>
|
||||||
|
<Items>
|
||||||
|
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="管道系统试压尾项清单" EnableCollapse="true"
|
||||||
|
runat="server" BoxFlex="1" DataKeyNames="FinalitemListId" AllowCellEditing="true"
|
||||||
|
EnableColumnLines="true" ClicksToEdit="1" DataIDField="FinalitemListId" AllowSorting="true"
|
||||||
|
SortField="PipeSectionCode" 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="PipeSectionCode" DataField="PipeSectionCode" SortField="PipeSectionCode"
|
||||||
|
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="150px">
|
||||||
|
<Editor>
|
||||||
|
<f:TextBox ID="txtPipeSectionCode" runat="server"></f:TextBox>
|
||||||
|
</Editor>
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField HeaderText="尾项内容" ColumnID="FinalItemContent" DataField="FinalItemContent" SortField="FinalItemContent"
|
||||||
|
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="150px" ExpandUnusedSpace="true">
|
||||||
|
<Editor>
|
||||||
|
<f:TextBox ID="txtFinalItemContent" runat="server"></f:TextBox>
|
||||||
|
</Editor>
|
||||||
|
</f:RenderField>
|
||||||
|
<f:GroupField HeaderText="销项确认" HeaderTextAlign="Center" TextAlign="Center">
|
||||||
|
<Columns>
|
||||||
|
<f:RenderField HeaderText="施工单位" ColumnID="SD_ConUnit" DataField="SD_ConUnit" SortField="SD_ConUnit"
|
||||||
|
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="120px">
|
||||||
|
<Editor>
|
||||||
|
<f:TextBox ID="txtSD_ConUnit" runat="server"></f:TextBox>
|
||||||
|
</Editor>
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField HeaderText="监理单位" ColumnID="SD_SupervisionUnit" DataField="SD_SupervisionUnit" SortField="SD_SupervisionUnit"
|
||||||
|
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="120px">
|
||||||
|
<Editor>
|
||||||
|
<f:TextBox ID="txtSD_SupervisionUnit" runat="server"></f:TextBox>
|
||||||
|
</Editor>
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField HeaderText="业主单位" ColumnID="SD_OwnerUnit" DataField="SD_OwnerUnit" SortField="SD_OwnerUnit"
|
||||||
|
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="120px">
|
||||||
|
<Editor>
|
||||||
|
<f:TextBox ID="txtSD_OwnerUnit" runat="server"></f:TextBox>
|
||||||
|
</Editor>
|
||||||
|
</f:RenderField>
|
||||||
|
</Columns>
|
||||||
|
</f:GroupField>
|
||||||
|
<f:LinkButtonField ColumnID="Delete3" Width="60px" EnablePostBack="false" Icon="Delete"
|
||||||
|
HeaderTextAlign="Center" HeaderText="删除" />
|
||||||
|
<f:RenderField HeaderText="主键" ColumnID="FinalitemListId" DataField="FinalitemListId" SortField="FinalitemListId"
|
||||||
|
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="140px" Hidden="true">
|
||||||
|
</f:RenderField>
|
||||||
|
</Columns>
|
||||||
|
<PageItems>
|
||||||
|
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
|
||||||
|
</f:ToolbarSeparator>
|
||||||
|
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
|
||||||
|
</f:ToolbarText>
|
||||||
|
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
|
||||||
|
OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
|
||||||
|
<f:ListItem Text="10" Value="10" />
|
||||||
|
<f:ListItem Text="15" Value="15" />
|
||||||
|
<f:ListItem Text="20" Value="20" />
|
||||||
|
<f:ListItem Text="25" Value="25" />
|
||||||
|
</f:DropDownList>
|
||||||
|
</PageItems>
|
||||||
|
</f:Grid>
|
||||||
|
</Items>
|
||||||
|
</f:Panel>
|
||||||
|
</Items>
|
||||||
|
</f:Panel>
|
||||||
|
<f:Window ID="WindowPrint" Title="打印管道系统试压尾项清单" Hidden="true" EnableIFrame="true" EnableMaximize="false"
|
||||||
|
Target="Top" EnableResize="true" runat="server" IsModal="true" Width="1024px"
|
||||||
|
Height="600px">
|
||||||
|
</f:Window>
|
||||||
|
</form>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
@ -0,0 +1,423 @@
|
||||||
|
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.UI.WebControls;
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.SYBData
|
||||||
|
{
|
||||||
|
public partial class FinalitemList : PageBase
|
||||||
|
{
|
||||||
|
#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.BindGrid();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#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.BindGrid();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 数据绑定
|
||||||
|
/// <summary>
|
||||||
|
/// 数据绑定
|
||||||
|
/// </summary>
|
||||||
|
private void BindGrid()
|
||||||
|
{
|
||||||
|
this.txtIndividualProject.Text = string.Empty;
|
||||||
|
string projectId = this.tvControlItem.SelectedNodeID;
|
||||||
|
string strSql = @"SELECT * from SYBData_FinalitemList 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.txtPipeSectionNumberS.Text))
|
||||||
|
//{
|
||||||
|
// strSql += " AND PipeSectionNumber like @PipeSectionNumber";
|
||||||
|
// listStr.Add(new SqlParameter("@PipeSectionNumber", "%" + this.txtPipeSectionNumberS.Text + "%"));
|
||||||
|
//}
|
||||||
|
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();
|
||||||
|
|
||||||
|
if (tb.Rows.Count > 0)
|
||||||
|
{
|
||||||
|
this.txtIndividualProject.Text = tb.Rows[0]["IndividualProject"].ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
#region 没有数据默认增加一行空白行
|
||||||
|
//if (tb.Rows.Count == 0)
|
||||||
|
//{
|
||||||
|
// 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
|
||||||
|
//{
|
||||||
|
// { "NDTPersonId", Guid.NewGuid() },
|
||||||
|
// { "ProjectId", projectId},
|
||||||
|
// { "PersonName", "" },
|
||||||
|
// { "CertificateNumber", "" },
|
||||||
|
// { "QualifiedProjectCode", "" },
|
||||||
|
// { "Levels", "" },
|
||||||
|
// { "ValidityDate", "" },
|
||||||
|
// {
|
||||||
|
// "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();
|
||||||
|
//}
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 分页排序
|
||||||
|
#region 页索引改变事件
|
||||||
|
/// <summary>
|
||||||
|
/// 页索引改变事件
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
|
||||||
|
{
|
||||||
|
BindGrid();
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 排序
|
||||||
|
/// <summary>
|
||||||
|
/// 排序
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void Grid1_Sort(object sender, GridSortEventArgs e)
|
||||||
|
{
|
||||||
|
BindGrid();
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 分页选择下拉改变事件
|
||||||
|
/// <summary>
|
||||||
|
/// 分页选择下拉改变事件
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
|
||||||
|
BindGrid();
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 查询
|
||||||
|
///<summary>
|
||||||
|
///查询
|
||||||
|
///</summary>
|
||||||
|
///<param name="sender"></param>
|
||||||
|
///<param name="e"></param>
|
||||||
|
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
|
||||||
|
this.InitTreeMenu();
|
||||||
|
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_FinalitemList where ProjectId = @ProjectId";
|
||||||
|
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||||
|
listStr.Add(new SqlParameter("@ProjectId", projectId));
|
||||||
|
//if (!string.IsNullOrEmpty(this.txtPipeSectionNumberS.Text))
|
||||||
|
//{
|
||||||
|
// strSql += " and PipeSectionNumber like @PipeSectionNumber";
|
||||||
|
// listStr.Add(new SqlParameter("@PipeSectionNumber", "%" + this.txtPipeSectionNumberS.Text + "%"));
|
||||||
|
//}
|
||||||
|
strSql += " order by PipeSectionCode desc";
|
||||||
|
SqlParameter[] parameter = listStr.ToArray();
|
||||||
|
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||||
|
|
||||||
|
if (tb.Rows.Count > 0)
|
||||||
|
{
|
||||||
|
DataTable dt = new DataTable();
|
||||||
|
dt.TableName = "Data";
|
||||||
|
dt.Columns.Add("Num");
|
||||||
|
dt.Columns.Add("PipeSectionCode");
|
||||||
|
dt.Columns.Add("FinalItemContent");
|
||||||
|
dt.Columns.Add("SD_ConUnit");
|
||||||
|
dt.Columns.Add("SD_SupervisionUnit");
|
||||||
|
dt.Columns.Add("SD_OwnerUnit");
|
||||||
|
|
||||||
|
DataRow[] rows = tb.DefaultView.ToTable().Select();
|
||||||
|
int i = 0;
|
||||||
|
foreach (var row in rows)
|
||||||
|
{
|
||||||
|
var newRow = dt.NewRow();
|
||||||
|
newRow["Num"] = (i + 1).ToString();
|
||||||
|
newRow["PipeSectionCode"] = row["PipeSectionCode"].ToString();
|
||||||
|
newRow["FinalItemContent"] = row["FinalItemContent"].ToString();
|
||||||
|
newRow["SD_ConUnit"] = row["SD_ConUnit"].ToString();
|
||||||
|
newRow["SD_SupervisionUnit"] = row["SD_SupervisionUnit"].ToString();
|
||||||
|
newRow["SD_OwnerUnit"] = row["SD_OwnerUnit"].ToString();
|
||||||
|
dt.Rows.Add(newRow);
|
||||||
|
i++;
|
||||||
|
}
|
||||||
|
BLL.Common.FastReportService.AddFastreportTable(dt);
|
||||||
|
|
||||||
|
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
|
||||||
|
keyValuePairs.Add("IndividualProject", txtIndividualProject.Text.Trim());
|
||||||
|
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
|
||||||
|
{
|
||||||
|
{ "FinalitemListId", Guid.NewGuid() },
|
||||||
|
{ "ProjectId", this.tvControlItem.SelectedNodeID },
|
||||||
|
{ "PipeSectionCode", "" },
|
||||||
|
{ "FinalItemContent", "" },
|
||||||
|
{ "SD_ConUnit", "" },
|
||||||
|
{ "SD_SupervisionUnit", "" },
|
||||||
|
{ "SD_OwnerUnit", "" },
|
||||||
|
{
|
||||||
|
"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 保存
|
||||||
|
protected void btnSave_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId,
|
||||||
|
Const.SYBData_FinalitemListMenuId, Const.BtnSave))
|
||||||
|
{
|
||||||
|
saveItem();
|
||||||
|
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
||||||
|
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void saveItem()
|
||||||
|
{
|
||||||
|
//FinalitemListService.DeleteFinalItemListByProjectId(this.tvControlItem.SelectedNodeID);
|
||||||
|
var q = (from x in Funs.DB.SYBData_FinalitemList where x.ProjectId == this.tvControlItem.SelectedNodeID select x).ToList();
|
||||||
|
if (q.Count > 0)
|
||||||
|
{
|
||||||
|
Funs.DB.SYBData_FinalitemList.DeleteAllOnSubmit(q);
|
||||||
|
Funs.DB.SubmitChanges();
|
||||||
|
}
|
||||||
|
List<Model.SYBData_FinalitemList> detailLists = new List<Model.SYBData_FinalitemList>();
|
||||||
|
JArray teamGroupData = Grid1.GetMergedData();
|
||||||
|
foreach (JObject teamGroupRow in teamGroupData)
|
||||||
|
{
|
||||||
|
JObject values = teamGroupRow.Value<JObject>("values");
|
||||||
|
int rowIndex = teamGroupRow.Value<int>("index");
|
||||||
|
Model.SYBData_FinalitemList newDetail = new Model.SYBData_FinalitemList
|
||||||
|
{
|
||||||
|
FinalitemListId = values.Value<string>("FinalitemListId"),
|
||||||
|
ProjectId = this.tvControlItem.SelectedNodeID,
|
||||||
|
IndividualProject = txtIndividualProject.Text.Trim(),
|
||||||
|
PipeSectionCode = values.Value<string>("PipeSectionCode"),
|
||||||
|
FinalItemContent = values.Value<string>("FinalItemContent"),
|
||||||
|
SD_ConUnit = values.Value<string>("SD_ConUnit"),
|
||||||
|
SD_SupervisionUnit = values.Value<string>("SD_SupervisionUnit"),
|
||||||
|
SD_OwnerUnit = values.Value<string>("SD_OwnerUnit"),
|
||||||
|
};
|
||||||
|
detailLists.Add(newDetail);
|
||||||
|
}
|
||||||
|
try
|
||||||
|
{
|
||||||
|
if (detailLists.Count > 0)
|
||||||
|
{
|
||||||
|
Funs.DB.SYBData_FinalitemList.InsertAllOnSubmit(detailLists);
|
||||||
|
}
|
||||||
|
Funs.DB.SubmitChanges();
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,233 @@
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <自动生成>
|
||||||
|
// 此代码由工具生成。
|
||||||
|
//
|
||||||
|
// 对此文件的更改可能导致不正确的行为,如果
|
||||||
|
// 重新生成代码,则所做更改将丢失。
|
||||||
|
// </自动生成>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.SYBData
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
public partial class FinalitemList
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <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>
|
||||||
|
/// txtIndividualProject 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtIndividualProject;
|
||||||
|
|
||||||
|
/// <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>
|
||||||
|
/// txtPipeSectionCode 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtPipeSectionCode;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtFinalItemContent 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtFinalItemContent;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtSD_ConUnit 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtSD_ConUnit;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtSD_SupervisionUnit 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtSD_SupervisionUnit;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtSD_OwnerUnit 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtSD_OwnerUnit;
|
||||||
|
|
||||||
|
/// <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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -608,6 +608,9 @@ namespace Model
|
||||||
partial void InsertSYBData_FileDirectory(SYBData_FileDirectory instance);
|
partial void InsertSYBData_FileDirectory(SYBData_FileDirectory instance);
|
||||||
partial void UpdateSYBData_FileDirectory(SYBData_FileDirectory instance);
|
partial void UpdateSYBData_FileDirectory(SYBData_FileDirectory instance);
|
||||||
partial void DeleteSYBData_FileDirectory(SYBData_FileDirectory instance);
|
partial void DeleteSYBData_FileDirectory(SYBData_FileDirectory instance);
|
||||||
|
partial void InsertSYBData_FinalitemList(SYBData_FinalitemList instance);
|
||||||
|
partial void UpdateSYBData_FinalitemList(SYBData_FinalitemList instance);
|
||||||
|
partial void DeleteSYBData_FinalitemList(SYBData_FinalitemList instance);
|
||||||
partial void InsertSYBData_PressureTestPackageList(SYBData_PressureTestPackageList instance);
|
partial void InsertSYBData_PressureTestPackageList(SYBData_PressureTestPackageList instance);
|
||||||
partial void UpdateSYBData_PressureTestPackageList(SYBData_PressureTestPackageList instance);
|
partial void UpdateSYBData_PressureTestPackageList(SYBData_PressureTestPackageList instance);
|
||||||
partial void DeleteSYBData_PressureTestPackageList(SYBData_PressureTestPackageList instance);
|
partial void DeleteSYBData_PressureTestPackageList(SYBData_PressureTestPackageList instance);
|
||||||
|
|
@ -2567,6 +2570,14 @@ namespace Model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public System.Data.Linq.Table<SYBData_FinalitemList> SYBData_FinalitemList
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this.GetTable<SYBData_FinalitemList>();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public System.Data.Linq.Table<SYBData_PressureTestPackageList> SYBData_PressureTestPackageList
|
public System.Data.Linq.Table<SYBData_PressureTestPackageList> SYBData_PressureTestPackageList
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
|
@ -4936,6 +4947,8 @@ namespace Model
|
||||||
|
|
||||||
private EntitySet<SYBData_FileDirectory> _SYBData_FileDirectory;
|
private EntitySet<SYBData_FileDirectory> _SYBData_FileDirectory;
|
||||||
|
|
||||||
|
private EntitySet<SYBData_FinalitemList> _SYBData_FinalitemList;
|
||||||
|
|
||||||
private EntitySet<SYBData_PressureTestPackageList> _SYBData_PressureTestPackageList;
|
private EntitySet<SYBData_PressureTestPackageList> _SYBData_PressureTestPackageList;
|
||||||
|
|
||||||
private EntitySet<SYBData_SlidingFixed> _SYBData_SlidingFixed;
|
private EntitySet<SYBData_SlidingFixed> _SYBData_SlidingFixed;
|
||||||
|
|
@ -5092,6 +5105,7 @@ namespace Model
|
||||||
this._SYBData_BlindFlangeInstallationAndRemoval = new EntitySet<SYBData_BlindFlangeInstallationAndRemoval>(new Action<SYBData_BlindFlangeInstallationAndRemoval>(this.attach_SYBData_BlindFlangeInstallationAndRemoval), new Action<SYBData_BlindFlangeInstallationAndRemoval>(this.detach_SYBData_BlindFlangeInstallationAndRemoval));
|
this._SYBData_BlindFlangeInstallationAndRemoval = new EntitySet<SYBData_BlindFlangeInstallationAndRemoval>(new Action<SYBData_BlindFlangeInstallationAndRemoval>(this.attach_SYBData_BlindFlangeInstallationAndRemoval), new Action<SYBData_BlindFlangeInstallationAndRemoval>(this.detach_SYBData_BlindFlangeInstallationAndRemoval));
|
||||||
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_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_FileDirectory = new EntitySet<SYBData_FileDirectory>(new Action<SYBData_FileDirectory>(this.attach_SYBData_FileDirectory), new Action<SYBData_FileDirectory>(this.detach_SYBData_FileDirectory));
|
||||||
|
this._SYBData_FinalitemList = new EntitySet<SYBData_FinalitemList>(new Action<SYBData_FinalitemList>(this.attach_SYBData_FinalitemList), new Action<SYBData_FinalitemList>(this.detach_SYBData_FinalitemList));
|
||||||
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_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_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._SYBData_SpringSupportHangBracket = new EntitySet<SYBData_SpringSupportHangBracket>(new Action<SYBData_SpringSupportHangBracket>(this.attach_SYBData_SpringSupportHangBracket), new Action<SYBData_SpringSupportHangBracket>(this.detach_SYBData_SpringSupportHangBracket));
|
||||||
|
|
@ -6750,6 +6764,19 @@ namespace Model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SYBData_FinalitemList_Base_Project", Storage="_SYBData_FinalitemList", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
|
||||||
|
public EntitySet<SYBData_FinalitemList> SYBData_FinalitemList
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._SYBData_FinalitemList;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
this._SYBData_FinalitemList.Assign(value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SYBData_PressureTestPackageList_Base_Project", Storage="_SYBData_PressureTestPackageList", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
|
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SYBData_PressureTestPackageList_Base_Project", Storage="_SYBData_PressureTestPackageList", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
|
||||||
public EntitySet<SYBData_PressureTestPackageList> SYBData_PressureTestPackageList
|
public EntitySet<SYBData_PressureTestPackageList> SYBData_PressureTestPackageList
|
||||||
{
|
{
|
||||||
|
|
@ -7869,6 +7896,18 @@ namespace Model
|
||||||
entity.Base_Project = null;
|
entity.Base_Project = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void attach_SYBData_FinalitemList(SYBData_FinalitemList entity)
|
||||||
|
{
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
entity.Base_Project = this;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void detach_SYBData_FinalitemList(SYBData_FinalitemList entity)
|
||||||
|
{
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
entity.Base_Project = null;
|
||||||
|
}
|
||||||
|
|
||||||
private void attach_SYBData_PressureTestPackageList(SYBData_PressureTestPackageList entity)
|
private void attach_SYBData_PressureTestPackageList(SYBData_PressureTestPackageList entity)
|
||||||
{
|
{
|
||||||
this.SendPropertyChanging();
|
this.SendPropertyChanging();
|
||||||
|
|
@ -118225,6 +118264,277 @@ namespace Model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.SYBData_FinalitemList")]
|
||||||
|
public partial class SYBData_FinalitemList : INotifyPropertyChanging, INotifyPropertyChanged
|
||||||
|
{
|
||||||
|
|
||||||
|
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
||||||
|
|
||||||
|
private string _FinalitemListId;
|
||||||
|
|
||||||
|
private string _ProjectId;
|
||||||
|
|
||||||
|
private string _IndividualProject;
|
||||||
|
|
||||||
|
private string _PipeSectionCode;
|
||||||
|
|
||||||
|
private string _FinalItemContent;
|
||||||
|
|
||||||
|
private string _SD_ConUnit;
|
||||||
|
|
||||||
|
private string _SD_SupervisionUnit;
|
||||||
|
|
||||||
|
private string _SD_OwnerUnit;
|
||||||
|
|
||||||
|
private EntityRef<Base_Project> _Base_Project;
|
||||||
|
|
||||||
|
#region 可扩展性方法定义
|
||||||
|
partial void OnLoaded();
|
||||||
|
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
||||||
|
partial void OnCreated();
|
||||||
|
partial void OnFinalitemListIdChanging(string value);
|
||||||
|
partial void OnFinalitemListIdChanged();
|
||||||
|
partial void OnProjectIdChanging(string value);
|
||||||
|
partial void OnProjectIdChanged();
|
||||||
|
partial void OnIndividualProjectChanging(string value);
|
||||||
|
partial void OnIndividualProjectChanged();
|
||||||
|
partial void OnPipeSectionCodeChanging(string value);
|
||||||
|
partial void OnPipeSectionCodeChanged();
|
||||||
|
partial void OnFinalItemContentChanging(string value);
|
||||||
|
partial void OnFinalItemContentChanged();
|
||||||
|
partial void OnSD_ConUnitChanging(string value);
|
||||||
|
partial void OnSD_ConUnitChanged();
|
||||||
|
partial void OnSD_SupervisionUnitChanging(string value);
|
||||||
|
partial void OnSD_SupervisionUnitChanged();
|
||||||
|
partial void OnSD_OwnerUnitChanging(string value);
|
||||||
|
partial void OnSD_OwnerUnitChanged();
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
public SYBData_FinalitemList()
|
||||||
|
{
|
||||||
|
this._Base_Project = default(EntityRef<Base_Project>);
|
||||||
|
OnCreated();
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FinalitemListId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
|
||||||
|
public string FinalitemListId
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._FinalitemListId;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._FinalitemListId != value))
|
||||||
|
{
|
||||||
|
this.OnFinalitemListIdChanging(value);
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
this._FinalitemListId = value;
|
||||||
|
this.SendPropertyChanged("FinalitemListId");
|
||||||
|
this.OnFinalitemListIdChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[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="_IndividualProject", DbType="NVarChar(50)")]
|
||||||
|
public string IndividualProject
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._IndividualProject;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._IndividualProject != value))
|
||||||
|
{
|
||||||
|
this.OnIndividualProjectChanging(value);
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
this._IndividualProject = value;
|
||||||
|
this.SendPropertyChanged("IndividualProject");
|
||||||
|
this.OnIndividualProjectChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipeSectionCode", DbType="NVarChar(50)")]
|
||||||
|
public string PipeSectionCode
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._PipeSectionCode;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._PipeSectionCode != value))
|
||||||
|
{
|
||||||
|
this.OnPipeSectionCodeChanging(value);
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
this._PipeSectionCode = value;
|
||||||
|
this.SendPropertyChanged("PipeSectionCode");
|
||||||
|
this.OnPipeSectionCodeChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FinalItemContent", DbType="NVarChar(200)")]
|
||||||
|
public string FinalItemContent
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._FinalItemContent;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._FinalItemContent != value))
|
||||||
|
{
|
||||||
|
this.OnFinalItemContentChanging(value);
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
this._FinalItemContent = value;
|
||||||
|
this.SendPropertyChanged("FinalItemContent");
|
||||||
|
this.OnFinalItemContentChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SD_ConUnit", DbType="NVarChar(50)")]
|
||||||
|
public string SD_ConUnit
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._SD_ConUnit;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._SD_ConUnit != value))
|
||||||
|
{
|
||||||
|
this.OnSD_ConUnitChanging(value);
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
this._SD_ConUnit = value;
|
||||||
|
this.SendPropertyChanged("SD_ConUnit");
|
||||||
|
this.OnSD_ConUnitChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SD_SupervisionUnit", DbType="NVarChar(50)")]
|
||||||
|
public string SD_SupervisionUnit
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._SD_SupervisionUnit;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._SD_SupervisionUnit != value))
|
||||||
|
{
|
||||||
|
this.OnSD_SupervisionUnitChanging(value);
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
this._SD_SupervisionUnit = value;
|
||||||
|
this.SendPropertyChanged("SD_SupervisionUnit");
|
||||||
|
this.OnSD_SupervisionUnitChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SD_OwnerUnit", DbType="NVarChar(50)")]
|
||||||
|
public string SD_OwnerUnit
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._SD_OwnerUnit;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._SD_OwnerUnit != value))
|
||||||
|
{
|
||||||
|
this.OnSD_OwnerUnitChanging(value);
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
this._SD_OwnerUnit = value;
|
||||||
|
this.SendPropertyChanged("SD_OwnerUnit");
|
||||||
|
this.OnSD_OwnerUnitChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SYBData_FinalitemList_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_FinalitemList.Remove(this);
|
||||||
|
}
|
||||||
|
this._Base_Project.Entity = value;
|
||||||
|
if ((value != null))
|
||||||
|
{
|
||||||
|
value.SYBData_FinalitemList.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_PressureTestPackageList")]
|
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.SYBData_PressureTestPackageList")]
|
||||||
public partial class SYBData_PressureTestPackageList : INotifyPropertyChanging, INotifyPropertyChanged
|
public partial class SYBData_PressureTestPackageList : INotifyPropertyChanging, INotifyPropertyChanged
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue