20260311 防腐工程质量验收记录
This commit is contained in:
parent
b9d1517070
commit
04b42f1813
|
|
@ -0,0 +1,40 @@
|
|||
|
||||
CREATE TABLE [dbo].[JGZL_AnticorrosionEngineeringInspectionRecordCheckItems](
|
||||
[CheckItemsId] [nvarchar](50) NOT NULL,
|
||||
[AnticorrosionId] [nvarchar](50) NOT NULL,
|
||||
[CheckItem] [nvarchar](150) NULL,
|
||||
[CheckResult] [nvarchar](50) NULL,
|
||||
[Sort] [int] NULL,
|
||||
CONSTRAINT [PK_JGZL_AnticorrosionEngineeringInspectionRecordCheckItems] PRIMARY KEY CLUSTERED
|
||||
(
|
||||
[CheckItemsId] ASC
|
||||
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
|
||||
) ON [PRIMARY]
|
||||
GO
|
||||
|
||||
ALTER TABLE [dbo].[JGZL_AnticorrosionEngineeringInspectionRecordCheckItems] WITH CHECK ADD CONSTRAINT [FK_JGZL_AnticorrosionEngineeringInspectionRecordCheckItems_JGZL_AnticorrosionEngineeringInspectionRecord] FOREIGN KEY([AnticorrosionId])
|
||||
REFERENCES [dbo].[JGZL_AnticorrosionEngineeringInspectionRecord] ([AnticorrosionId])
|
||||
GO
|
||||
|
||||
ALTER TABLE [dbo].[JGZL_AnticorrosionEngineeringInspectionRecordCheckItems] CHECK CONSTRAINT [FK_JGZL_AnticorrosionEngineeringInspectionRecordCheckItems_JGZL_AnticorrosionEngineeringInspectionRecord]
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_AnticorrosionEngineeringInspectionRecordCheckItems', @level2type=N'COLUMN',@level2name=N'CheckItemsId'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主表Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_AnticorrosionEngineeringInspectionRecordCheckItems', @level2type=N'COLUMN',@level2name=N'AnticorrosionId'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'检查项目与要求' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_AnticorrosionEngineeringInspectionRecordCheckItems', @level2type=N'COLUMN',@level2name=N'CheckItem'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'检查结果' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_AnticorrosionEngineeringInspectionRecordCheckItems', @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'JGZL_AnticorrosionEngineeringInspectionRecordCheckItems', @level2type=N'COLUMN',@level2name=N'Sort'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'防腐工程质量验收记录检查项目' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_AnticorrosionEngineeringInspectionRecordCheckItems'
|
||||
GO
|
||||
|
||||
|
||||
|
|
@ -17,6 +17,17 @@ namespace BLL
|
|||
e.AnticorrosionId == anticorrosionId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据项目Id获取防腐工程质量验收记录
|
||||
/// </summary>
|
||||
/// <param name="projectId"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.JGZL_AnticorrosionEngineeringInspectionRecord GetAnticorrosionReportByProjectId(string projectId)
|
||||
{
|
||||
return Funs.DB.JGZL_AnticorrosionEngineeringInspectionRecord.FirstOrDefault(e =>
|
||||
e.ProjectId == projectId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加防腐工程质量验收记录
|
||||
/// </summary>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="01/27/2026 15:44:50" ReportInfo.Modified="02/24/2026 10:43:30" ReportInfo.CreatorVersion="2017.1.16.0">
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="01/27/2026 15:44:50" ReportInfo.Modified="03/11/2026 11:05:03" 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="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QFAsihKmn61tn9eAkKNKyhIQ==">
|
||||
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QFDjka4VrHzT3w+XpvQHBlbQ==">
|
||||
<TableDataSource Name="Data" DataType="System.Int32" PropName="Attach_Image" Enabled="true" TableName="Data">
|
||||
<Column Name="Part" DataType="System.String" PropName="attach_image_id"/>
|
||||
<Column Name="MaterialName" DataType="System.String" PropName="image_series"/>
|
||||
|
|
@ -57,6 +57,14 @@ namespace FastReport
|
|||
<Parameter Name="AnticorrosionPart" DataType="System.String"/>
|
||||
<Parameter Name="AnticorrosionRequire" DataType="System.String"/>
|
||||
<Parameter Name="InspectionConclusion" DataType="System.String"/>
|
||||
<Parameter Name="CheckResult1" DataType="System.String"/>
|
||||
<Parameter Name="CheckResult2" DataType="System.String"/>
|
||||
<Parameter Name="CheckResult3" DataType="System.String"/>
|
||||
<Parameter Name="CheckResult4" DataType="System.String"/>
|
||||
<Parameter Name="CheckResult5" DataType="System.String"/>
|
||||
<Parameter Name="CheckResult6" DataType="System.String"/>
|
||||
<Parameter Name="CheckResult7" DataType="System.String"/>
|
||||
<Parameter Name="CheckResult8" DataType="System.String"/>
|
||||
</Dictionary>
|
||||
<ReportPage Name="Page1" RawPaperSize="9" LeftMargin="22" TopMargin="13.3" RightMargin="17" BottomMargin="16.5" Guides="0,646.35,134.18,79.37,13.22,421.46,408.23,502.73,107.72,41.59,287.28,538.63,120.96,117.17,646.38,529.21,164.48,69.92,177.64,257.01,421.49,215.46,430.92">
|
||||
<PageHeaderBand Name="PageHeader1" Width="646.38" Height="334.53" Guides="0,334.53,85.05,56.7,9.45,28.35,113.4,213.57,100.17,120.96">
|
||||
|
|
@ -132,7 +140,7 @@ namespace FastReport
|
|||
<TableCell Name="Cell38" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell39" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell40" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell57" Border.Lines="All" Text="合格" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
<TableCell Name="Cell57" Border.Lines="All" Text="[CheckResult1]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row8" Height="28.35">
|
||||
<TableCell Name="Cell41" Border.Lines="All" Text="设备、管道按规定进行了压力试验,具有工序交接记录" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="5"/>
|
||||
|
|
@ -140,7 +148,7 @@ namespace FastReport
|
|||
<TableCell Name="Cell43" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell44" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell45" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell58" Border.Lines="All" Text="合格" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
<TableCell Name="Cell58" Border.Lines="All" Text="[CheckResult2]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row9" Height="28.35">
|
||||
<TableCell Name="Cell46" Border.Lines="All" Text="基层表面处理方法正确,处理结果符合设计等级要求" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="5"/>
|
||||
|
|
@ -148,7 +156,7 @@ namespace FastReport
|
|||
<TableCell Name="Cell48" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell49" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell50" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell59" Border.Lines="All" Text="合格" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
<TableCell Name="Cell59" Border.Lines="All" Text="[CheckResult3]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row10" Height="28.35">
|
||||
<TableCell Name="Cell51" Border.Lines="All" Text="隔离层材料使用正确,层数或厚度符合规范规定" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="5"/>
|
||||
|
|
@ -156,7 +164,7 @@ namespace FastReport
|
|||
<TableCell Name="Cell53" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell54" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell55" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell60" Border.Lines="All" Text="合格" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
<TableCell Name="Cell60" Border.Lines="All" Text="[CheckResult4]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row11" Height="28.35">
|
||||
<TableCell Name="Cell61" Border.Lines="All" Text="防腐层材料的配比、试验符合有关规范规定,报告齐全" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="5"/>
|
||||
|
|
@ -164,7 +172,7 @@ namespace FastReport
|
|||
<TableCell Name="Cell63" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell64" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell65" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell66" Border.Lines="All" Text="合格" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
<TableCell Name="Cell66" Border.Lines="All" Text="[CheckResult5]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row12" Height="28.35">
|
||||
<TableCell Name="Cell67" Border.Lines="All" Text="防腐底层材料使用正确,层数、厚度符合规范规定" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="5"/>
|
||||
|
|
@ -172,7 +180,7 @@ namespace FastReport
|
|||
<TableCell Name="Cell69" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell70" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell71" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell72" Border.Lines="All" Text="合格" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
<TableCell Name="Cell72" Border.Lines="All" Text="[CheckResult6]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row13" Height="28.35">
|
||||
<TableCell Name="Cell73" Border.Lines="All" Text="防腐中间层材料使用正确,层数、厚度符合规范规定" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="5"/>
|
||||
|
|
@ -180,7 +188,7 @@ namespace FastReport
|
|||
<TableCell Name="Cell75" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell76" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell77" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell78" Border.Lines="All" Text="合格" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
<TableCell Name="Cell78" Border.Lines="All" Text="[CheckResult7]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row14" Height="28.35">
|
||||
<TableCell Name="Cell79" Border.Lines="All" Text="防腐面层材料使用正确,层数、厚度符合规范规定" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="5"/>
|
||||
|
|
@ -188,7 +196,7 @@ namespace FastReport
|
|||
<TableCell Name="Cell81" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell82" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell83" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
<TableCell Name="Cell84" Border.Lines="All" Text="合格" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
<TableCell Name="Cell84" Border.Lines="All" Text="[CheckResult8]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
||||
</TableRow>
|
||||
<TableRow Name="Row15" Height="37.8">
|
||||
<TableCell Name="Cell85" Border.Lines="All" Text="部位" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
||||
|
|
|
|||
|
|
@ -33,20 +33,140 @@
|
|||
</f:Panel>
|
||||
<f:Panel runat="server" ID="panelCenterRegion" RegionPosition="Center" ShowBorder="true"
|
||||
Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" Title="防腐工程质量验收记录"
|
||||
TitleToolTip="防腐工程质量验收记录" AutoScroll="true">
|
||||
TitleToolTip="防腐工程质量验收记录">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Right">
|
||||
<Items>
|
||||
<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="btnAdd" runat="server" Icon="Add" Text="增加" OnClick="btnAdd_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"
|
||||
<f:Form ID="SimpleForm1" ShowBorder="true" ShowHeader="false" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtAnticorrosionCurrentStatus" runat="server" Label="防腐前表面状态" LabelAlign="Right" LabelWidth="110px" MaxLength="100"></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtAnticorrosionPart" runat="server" Label="防腐部位" LabelAlign="Right" LabelWidth="110px" MaxLength="2000" Height="50px" ></f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtAnticorrosionRequire" runat="server" Label="防腐层结构要求" LabelAlign="Right" LabelWidth="110px" MaxLength="1000" Height="50px"></f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<%--<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtInspectionConclusion" runat="server" Label="验收结论" LabelAlign="Right" LabelWidth="110px" MaxLength="1000"></f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>--%>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
</Items>
|
||||
<Items>
|
||||
<f:Grid ID="Grid2" ShowBorder="true" ShowHeader="false" Title="检查项目与要求"
|
||||
runat="server" BoxFlex="1" DataKeyNames="CheckItemsId" EnableColumnLines="true"
|
||||
AllowCellEditing="true" ClicksToEdit="1" DataIDField="CheckItemsId" AllowSorting="true"
|
||||
SortDirection="ASC" SortField="Sort"
|
||||
EnableTextSelection="True" Height="500px">
|
||||
<Columns>
|
||||
<f:RenderField ColumnID="CheckItemsId" DataField="CheckItemsId" Hidden="True"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="Id">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="Sort" DataField="Sort" Hidden="True"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="Sort">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="CheckItem" DataField="CheckItem"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="检查项目与要求" ExpandUnusedSpace="true">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="检查结果" ColumnID="CheckResult" DataField="CheckResult" SortField="CheckResult"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="300px">
|
||||
<Editor>
|
||||
<f:DropDownList ID="drpCheckResult" runat="server">
|
||||
<f:ListItem Value="合格" Text="合格" Selected="true" />
|
||||
<f:ListItem Value="不合格" Text="不合格" />
|
||||
<f:ListItem Value="/" Text="/" />
|
||||
</f:DropDownList>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="防腐工程质量验收记录"
|
||||
runat="server" BoxFlex="1" DataKeyNames="AnticorrosionItemId" EnableColumnLines="true"
|
||||
AllowCellEditing="true" ClicksToEdit="1" DataIDField="AnticorrosionItemId" AllowSorting="true"
|
||||
SortDirection="ASC" EnableTextSelection="True" Height="100px">
|
||||
<%--<Toolbars>
|
||||
<f:Toolbar ID="Toolbar3" Position="Top" runat="server" ToolbarAlign="Right">
|
||||
<Items>
|
||||
<f:Button ID="Button3" Icon="Add" runat="server" ToolTip="新增" Text="新增" OnClick="btnAddGrid1_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>--%>
|
||||
<Columns>
|
||||
<%--<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center"
|
||||
TextAlign="Center" />--%>
|
||||
<f:RenderField ColumnID="AnticorrosionItemId" DataField="AnticorrosionItemId" Hidden="True"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="Id">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="部位" ColumnID="Part" DataField="Part" SortField="Part"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="150px">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtPart" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="材料名称" ColumnID="MaterialName" DataField="MaterialName" SortField="MaterialName"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="200px">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtMaterialName" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="牌号" ColumnID="Grade" DataField="Grade" SortField="Grade"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="150px">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtGrade" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="生产厂家" ColumnID="Manufacturer" DataField="Manufacturer" SortField="Manufacturer"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="200px">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtManufacturer" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="设计漆膜厚度um" ColumnID="PlanFilmThickness" DataField="PlanFilmThickness" SortField="PlanFilmThickness"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="150px">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtPlanFilmThickness" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="实测漆膜厚度um" ColumnID="ActualFilmThickness" DataField="ActualFilmThickness" SortField="ActualFilmThickness"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="150px" ExpandUnusedSpace="true">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtActualFilmThickness" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
|
||||
<%--<f:LinkButtonField ColumnID="Delete3" Width="60px" EnablePostBack="false" Icon="Delete"
|
||||
HeaderTextAlign="Center" HeaderText="删除" />--%>
|
||||
</Columns>
|
||||
<%--<Listeners>
|
||||
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
|
||||
</Listeners>--%>
|
||||
</f:Grid>
|
||||
<%--<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="防腐工程质量验收记录" EnableCollapse="true"
|
||||
runat="server" BoxFlex="1" DataKeyNames="AnticorrosionId" AllowCellEditing="true"
|
||||
EnableColumnLines="true" ClicksToEdit="1" DataIDField="AnticorrosionId" AllowSorting="true"
|
||||
SortField="CompileDate" SortDirection="DESC" OnSort="Grid1_Sort" AllowPaging="true"
|
||||
|
|
@ -84,35 +204,44 @@
|
|||
<f:ListItem Text="25" Value="25"/>
|
||||
</f:DropDownList>
|
||||
</PageItems>
|
||||
</f:Grid>
|
||||
</f:Grid>--%>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Window ID="Window1" Title="防腐工程质量验收记录" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
<%--<f:Window ID="Window1" Title="防腐工程质量验收记录" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="top" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true"
|
||||
Width="1100px" Height="800px">
|
||||
</f:Window>
|
||||
</f:Window>--%>
|
||||
<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>
|
||||
<f:Menu ID="Menu1" runat="server">
|
||||
<%--<f:Menu ID="Menu1" runat="server">
|
||||
<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" EnablePostBack="true"
|
||||
runat="server" Text="编辑" Icon="TableEdit">
|
||||
</f:MenuButton>
|
||||
<f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true"
|
||||
ConfirmText="删除选中行?" ConfirmTarget="Top" runat="server" Text="删除" Icon="Delete">
|
||||
</f:MenuButton>
|
||||
</f:Menu>
|
||||
</f:Menu>--%>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
<%--<script type="text/javascript">
|
||||
var menuID = '<%= Menu1.ClientID %>';
|
||||
// 返回false,来阻止浏览器右键菜单
|
||||
function onRowContextMenu(event, rowId) {
|
||||
F(menuID).show(); //showAt(event.pageX, event.pageY);
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
</script>--%>
|
||||
|
||||
|
||||
<%--<script type="text/javascript">
|
||||
// 返回false,来阻止浏览器右键菜单
|
||||
function onRowContextMenu(event, rowId) {
|
||||
F(menuID).show();
|
||||
return false;
|
||||
}
|
||||
</script>--%>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,15 +1,48 @@
|
|||
using BLL;
|
||||
using FastReport;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data.SqlClient;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Data.SqlClient;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
|
||||
namespace FineUIPro.Web.JGZL
|
||||
{
|
||||
public partial class AnticorrosionEngineeringInspectionRecord : PageBase
|
||||
{
|
||||
#region 定义项
|
||||
|
||||
/// <summary>
|
||||
/// 主键
|
||||
/// </summary>
|
||||
private string AnticorrosionId
|
||||
{
|
||||
get { return (string)ViewState["AnticorrosionId"]; }
|
||||
set { ViewState["AnticorrosionId"] = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 项目Id
|
||||
/// </summary>
|
||||
private string ProjectId
|
||||
{
|
||||
get { return (string)ViewState["ProjectId"]; }
|
||||
set { ViewState["ProjectId"] = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 明细集合
|
||||
/// </summary>
|
||||
private static List<Model.JGZL_AnticorrosionEngineeringInspectionRecordItem> recordItems = new List<Model.JGZL_AnticorrosionEngineeringInspectionRecordItem>();
|
||||
|
||||
/// <summary>
|
||||
/// 检查项目集合
|
||||
/// </summary>
|
||||
private static List<Model.JGZL_AnticorrosionEngineeringInspectionRecordCheckItems> checkItems = new List<Model.JGZL_AnticorrosionEngineeringInspectionRecordCheckItems>();
|
||||
#endregion
|
||||
|
||||
#region 加载页面
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
|
|
@ -20,20 +53,129 @@ namespace FineUIPro.Web.JGZL
|
|||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString();
|
||||
//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);
|
||||
// 默认显示选中的项目
|
||||
if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
|
||||
{
|
||||
this.drpProjectId.SelectedValue = this.CurrUser.LoginProjectId;
|
||||
this.InitTreeMenu();//加载树
|
||||
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
|
||||
this.ProjectId = this.tvControlItem.SelectedNodeID;
|
||||
|
||||
DataInfo();
|
||||
}
|
||||
}
|
||||
|
||||
this.InitTreeMenu();//加载树
|
||||
private void DataInfo()
|
||||
{
|
||||
recordItems.Clear();
|
||||
checkItems.Clear();
|
||||
this.AnticorrosionId = string.Empty;
|
||||
this.txtAnticorrosionCurrentStatus.Text = string.Empty;
|
||||
this.txtAnticorrosionPart.Text = string.Empty;
|
||||
this.txtAnticorrosionRequire.Text = string.Empty;
|
||||
//this.txtInspectionConclusion.Text = string.Empty;
|
||||
if (!string.IsNullOrEmpty(this.ProjectId))
|
||||
{
|
||||
var report = BLL.AnticorrosionEngineeringInspectionRecordService.GetAnticorrosionReportByProjectId(this.ProjectId);
|
||||
if (report != null)
|
||||
{
|
||||
this.AnticorrosionId = report.AnticorrosionId;
|
||||
this.txtAnticorrosionCurrentStatus.Text = report.AnticorrosionCurrentStatus;
|
||||
this.txtAnticorrosionPart.Text = report.AnticorrosionPart;
|
||||
this.txtAnticorrosionRequire.Text = report.AnticorrosionRequire;
|
||||
//this.txtInspectionConclusion.Text = report.InspectionConclusion;
|
||||
|
||||
recordItems = BLL.AnticorrosionEngineeringInspectionRecordItemService.GetAnticorrosionReportItemByAnticorrosionId(this.AnticorrosionId);
|
||||
this.Grid1.DataSource = recordItems;
|
||||
this.Grid1.DataBind();
|
||||
|
||||
checkItems = (from x in Funs.DB.JGZL_AnticorrosionEngineeringInspectionRecordCheckItems where x.AnticorrosionId == AnticorrosionId orderby x.Sort ascending select x).ToList();
|
||||
this.Grid2.DataSource = checkItems;
|
||||
this.Grid2.DataBind();
|
||||
}
|
||||
else
|
||||
{
|
||||
Model.JGZL_AnticorrosionEngineeringInspectionRecordCheckItems checkItem1 = new Model.JGZL_AnticorrosionEngineeringInspectionRecordCheckItems();
|
||||
checkItem1.CheckItemsId = SQLHelper.GetNewID();
|
||||
checkItem1.Sort = 1;
|
||||
checkItem1.CheckItem = "原材料符合设计要求及有关规范规定,具有出厂质量合格证明文件及复验报告";
|
||||
checkItem1.CheckResult = "合格";
|
||||
checkItems.Add(checkItem1);
|
||||
|
||||
Model.JGZL_AnticorrosionEngineeringInspectionRecordCheckItems checkItem2 = new Model.JGZL_AnticorrosionEngineeringInspectionRecordCheckItems();
|
||||
checkItem2.CheckItemsId = SQLHelper.GetNewID();
|
||||
checkItem2.Sort = 2;
|
||||
checkItem2.CheckItem = "设备、管道按规定进行了压力试验,具有工序交接记录";
|
||||
checkItem2.CheckResult = "合格";
|
||||
checkItems.Add(checkItem2);
|
||||
|
||||
Model.JGZL_AnticorrosionEngineeringInspectionRecordCheckItems checkItem3 = new Model.JGZL_AnticorrosionEngineeringInspectionRecordCheckItems();
|
||||
checkItem3.CheckItemsId = SQLHelper.GetNewID();
|
||||
checkItem3.Sort = 3;
|
||||
checkItem3.CheckItem = "基层表面处理方法正确,处理结果符合设计等级要求";
|
||||
checkItem3.CheckResult = "合格";
|
||||
checkItems.Add(checkItem3);
|
||||
|
||||
Model.JGZL_AnticorrosionEngineeringInspectionRecordCheckItems checkItem4 = new Model.JGZL_AnticorrosionEngineeringInspectionRecordCheckItems();
|
||||
checkItem4.CheckItemsId = SQLHelper.GetNewID();
|
||||
checkItem4.Sort = 4;
|
||||
checkItem4.CheckItem = "隔离层材料使用正确,层数或厚度符合规范规定";
|
||||
checkItem4.CheckResult = "合格";
|
||||
checkItems.Add(checkItem4);
|
||||
|
||||
Model.JGZL_AnticorrosionEngineeringInspectionRecordCheckItems checkItem5 = new Model.JGZL_AnticorrosionEngineeringInspectionRecordCheckItems();
|
||||
checkItem5.CheckItemsId = SQLHelper.GetNewID();
|
||||
checkItem5.Sort = 5;
|
||||
checkItem5.CheckItem = "防腐层材料的配比、试验符合有关规范规定,报告齐全";
|
||||
checkItem5.CheckResult = "合格";
|
||||
checkItems.Add(checkItem5);
|
||||
|
||||
Model.JGZL_AnticorrosionEngineeringInspectionRecordCheckItems checkItem6 = new Model.JGZL_AnticorrosionEngineeringInspectionRecordCheckItems();
|
||||
checkItem6.CheckItemsId = SQLHelper.GetNewID();
|
||||
checkItem6.Sort = 6;
|
||||
checkItem6.CheckItem = "防腐底层材料使用正确,层数、厚度符合规范规定";
|
||||
checkItem6.CheckResult = "合格";
|
||||
checkItems.Add(checkItem6);
|
||||
|
||||
Model.JGZL_AnticorrosionEngineeringInspectionRecordCheckItems checkItem7 = new Model.JGZL_AnticorrosionEngineeringInspectionRecordCheckItems();
|
||||
checkItem7.CheckItemsId = SQLHelper.GetNewID();
|
||||
checkItem7.Sort = 7;
|
||||
checkItem7.CheckItem = "防腐中间层材料使用正确,层数、厚度符合规范规定";
|
||||
checkItem7.CheckResult = "合格";
|
||||
checkItems.Add(checkItem7);
|
||||
|
||||
Model.JGZL_AnticorrosionEngineeringInspectionRecordCheckItems checkItem8 = new Model.JGZL_AnticorrosionEngineeringInspectionRecordCheckItems();
|
||||
checkItem8.CheckItemsId = SQLHelper.GetNewID();
|
||||
checkItem8.Sort = 8;
|
||||
checkItem8.CheckItem = "防腐面层材料使用正确,层数、厚度符合规范规定";
|
||||
checkItem8.CheckResult = "合格";
|
||||
checkItems.Add(checkItem8);
|
||||
|
||||
this.Grid2.DataSource = checkItems;
|
||||
this.Grid2.DataBind();
|
||||
|
||||
Model.JGZL_AnticorrosionEngineeringInspectionRecordItem item1 = new Model.JGZL_AnticorrosionEngineeringInspectionRecordItem();
|
||||
item1.AnticorrosionItemId = SQLHelper.GetNewID();
|
||||
item1.Part = "底层";
|
||||
recordItems.Add(item1);
|
||||
|
||||
Model.JGZL_AnticorrosionEngineeringInspectionRecordItem item2 = new Model.JGZL_AnticorrosionEngineeringInspectionRecordItem();
|
||||
item2.AnticorrosionItemId = SQLHelper.GetNewID();
|
||||
item2.Part = "中间层";
|
||||
recordItems.Add(item2);
|
||||
|
||||
Model.JGZL_AnticorrosionEngineeringInspectionRecordItem item3 = new Model.JGZL_AnticorrosionEngineeringInspectionRecordItem();
|
||||
item3.AnticorrosionItemId = SQLHelper.GetNewID();
|
||||
item3.Part = "面层";
|
||||
recordItems.Add(item3);
|
||||
|
||||
this.Grid1.DataSource = recordItems;
|
||||
this.Grid1.DataBind();
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
|
@ -83,10 +225,10 @@ namespace FineUIPro.Web.JGZL
|
|||
rootNode.Nodes.Add(rootProjectNode);
|
||||
}
|
||||
|
||||
if (this.tvControlItem.SelectedNodeID != "0")
|
||||
{
|
||||
this.BindGrid();
|
||||
}
|
||||
//if (this.tvControlItem.SelectedNodeID != "0")
|
||||
//{
|
||||
//this.BindGrid();
|
||||
//}
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
|
@ -100,7 +242,9 @@ namespace FineUIPro.Web.JGZL
|
|||
{
|
||||
if (this.tvControlItem.SelectedNodeID != "0")
|
||||
{
|
||||
this.BindGrid();
|
||||
//this.BindGrid();
|
||||
this.ProjectId = this.tvControlItem.SelectedNodeID;
|
||||
this.DataInfo();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
|
@ -109,23 +253,23 @@ namespace FineUIPro.Web.JGZL
|
|||
/// <summary>
|
||||
/// 数据绑定
|
||||
/// </summary>
|
||||
private void BindGrid()
|
||||
{
|
||||
string strSql = @"SELECT * from JGZL_AnticorrosionEngineeringInspectionRecord where 1=1";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
||||
{
|
||||
strSql += " AND ProjectId = @ProjectId";
|
||||
listStr.Add(new SqlParameter("@ProjectId", this.tvControlItem.SelectedNodeID));
|
||||
}
|
||||
//private void BindGrid()
|
||||
//{
|
||||
// string strSql = @"SELECT * from JGZL_AnticorrosionEngineeringInspectionRecord where 1=1";
|
||||
// List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
// if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
||||
// {
|
||||
// strSql += " AND ProjectId = @ProjectId";
|
||||
// listStr.Add(new SqlParameter("@ProjectId", this.tvControlItem.SelectedNodeID));
|
||||
// }
|
||||
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
Grid1.RecordCount = tb.Rows.Count;
|
||||
var table = this.GetPagedDataTable(Grid1, tb);
|
||||
Grid1.DataSource = table;
|
||||
Grid1.DataBind();
|
||||
}
|
||||
// SqlParameter[] parameter = listStr.ToArray();
|
||||
// DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
// Grid1.RecordCount = tb.Rows.Count;
|
||||
// var table = this.GetPagedDataTable(Grid1, tb);
|
||||
// Grid1.DataSource = table;
|
||||
// Grid1.DataBind();
|
||||
//}
|
||||
#endregion
|
||||
|
||||
#region 分页排序
|
||||
|
|
@ -135,10 +279,10 @@ namespace FineUIPro.Web.JGZL
|
|||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
//protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
|
||||
//{
|
||||
// BindGrid();
|
||||
//}
|
||||
#endregion
|
||||
|
||||
#region 排序
|
||||
|
|
@ -147,10 +291,10 @@ namespace FineUIPro.Web.JGZL
|
|||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_Sort(object sender, GridSortEventArgs e)
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
//protected void Grid1_Sort(object sender, GridSortEventArgs e)
|
||||
//{
|
||||
// BindGrid();
|
||||
//}
|
||||
#endregion
|
||||
|
||||
#region 分页选择下拉改变事件
|
||||
|
|
@ -159,11 +303,11 @@ namespace FineUIPro.Web.JGZL
|
|||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
|
||||
BindGrid();
|
||||
}
|
||||
//protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
|
||||
//{
|
||||
// Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
|
||||
// BindGrid();
|
||||
//}
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
|
|
@ -175,9 +319,11 @@ namespace FineUIPro.Web.JGZL
|
|||
///<param name="e"></param>
|
||||
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
|
||||
this.ProjectId = this.drpProjectId.SelectedValue;
|
||||
this.InitTreeMenu();
|
||||
BindGrid();
|
||||
this.tvControlItem.SelectedNodeID = this.ProjectId;
|
||||
DataInfo();
|
||||
//BindGrid();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -187,7 +333,7 @@ namespace FineUIPro.Web.JGZL
|
|||
/// <param name="e"></param>
|
||||
protected void TextBox_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.BindGrid();
|
||||
//this.BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
|
@ -203,18 +349,40 @@ namespace FineUIPro.Web.JGZL
|
|||
|
||||
if (projectId != null)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
|
||||
{
|
||||
//if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
|
||||
//{
|
||||
string initTemplatePath = "";
|
||||
string rootPath = Server.MapPath("~/");
|
||||
BLL.Common.FastReportService.ResetData();
|
||||
|
||||
var report = BLL.AnticorrosionEngineeringInspectionRecordService.GetAnticorrosionReportById(this.Grid1.SelectedRowID);
|
||||
var report = BLL.AnticorrosionEngineeringInspectionRecordService.GetAnticorrosionReportById(this.AnticorrosionId);
|
||||
if (report != null)
|
||||
{
|
||||
//string strSql1 = @"SELECT * from JGZL_AnticorrosionEngineeringInspectionRecordCheckItems where AnticorrosionId = @anticorrosionId order by Sort";
|
||||
//List<SqlParameter> listStr1 = new List<SqlParameter>();
|
||||
//listStr1.Add(new SqlParameter("@anticorrosionId", this.AnticorrosionId));
|
||||
//SqlParameter[] parameter1 = listStr1.ToArray();
|
||||
//DataTable checkItems = SQLHelper.GetDataTableRunText(strSql1, parameter1);
|
||||
|
||||
//DataTable dt1 = new DataTable();
|
||||
//dt1.TableName = "CheckItemData";
|
||||
//dt1.Columns.Add("CheckItem");
|
||||
//dt1.Columns.Add("CheckResult");
|
||||
|
||||
//DataRow[] checkItemrows = checkItems.DefaultView.ToTable().Select();
|
||||
//foreach (var row in checkItemrows)
|
||||
//{
|
||||
// var newRow = dt1.NewRow();
|
||||
// newRow["CheckItem"] = row["CheckItem"].ToString();
|
||||
// newRow["CheckResult"] = row["CheckResult"].ToString();
|
||||
// dt1.Rows.Add(newRow);
|
||||
//}
|
||||
//BLL.Common.FastReportService.AddFastreportTable(dt1);
|
||||
|
||||
|
||||
string strSql = @"SELECT * from JGZL_AnticorrosionEngineeringInspectionRecordItem where AnticorrosionId = @anticorrosionId ";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
listStr.Add(new SqlParameter("@anticorrosionId", this.Grid1.SelectedRowID));
|
||||
listStr.Add(new SqlParameter("@anticorrosionId", this.AnticorrosionId));
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
|
||||
|
|
@ -241,25 +409,47 @@ namespace FineUIPro.Web.JGZL
|
|||
}
|
||||
BLL.Common.FastReportService.AddFastreportTable(dt);
|
||||
|
||||
var checkItem1 = (from x in Funs.DB.JGZL_AnticorrosionEngineeringInspectionRecordCheckItems where x.AnticorrosionId == AnticorrosionId && x.Sort==1 select x).FirstOrDefault();
|
||||
var checkItem2 = (from x in Funs.DB.JGZL_AnticorrosionEngineeringInspectionRecordCheckItems where x.AnticorrosionId == AnticorrosionId && x.Sort == 2 select x).FirstOrDefault();
|
||||
var checkItem3 = (from x in Funs.DB.JGZL_AnticorrosionEngineeringInspectionRecordCheckItems where x.AnticorrosionId == AnticorrosionId && x.Sort == 3 select x).FirstOrDefault();
|
||||
var checkItem4 = (from x in Funs.DB.JGZL_AnticorrosionEngineeringInspectionRecordCheckItems where x.AnticorrosionId == AnticorrosionId && x.Sort == 4 select x).FirstOrDefault();
|
||||
var checkItem5 = (from x in Funs.DB.JGZL_AnticorrosionEngineeringInspectionRecordCheckItems where x.AnticorrosionId == AnticorrosionId && x.Sort == 5 select x).FirstOrDefault();
|
||||
var checkItem6 = (from x in Funs.DB.JGZL_AnticorrosionEngineeringInspectionRecordCheckItems where x.AnticorrosionId == AnticorrosionId && x.Sort == 6 select x).FirstOrDefault();
|
||||
var checkItem7 = (from x in Funs.DB.JGZL_AnticorrosionEngineeringInspectionRecordCheckItems where x.AnticorrosionId == AnticorrosionId && x.Sort == 7 select x).FirstOrDefault();
|
||||
var checkItem8 = (from x in Funs.DB.JGZL_AnticorrosionEngineeringInspectionRecordCheckItems where x.AnticorrosionId == AnticorrosionId && x.Sort == 8 select x).FirstOrDefault();
|
||||
|
||||
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
|
||||
keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName);
|
||||
keyValuePairs.Add("AnticorrosionCurrentStatus", report.AnticorrosionCurrentStatus);
|
||||
keyValuePairs.Add("AnticorrosionPart", report.AnticorrosionPart);
|
||||
keyValuePairs.Add("AnticorrosionRequire", report.AnticorrosionRequire);
|
||||
keyValuePairs.Add("InspectionConclusion", report.InspectionConclusion);
|
||||
keyValuePairs.Add("CheckResult1", checkItem1.CheckResult);
|
||||
keyValuePairs.Add("CheckResult2", checkItem2.CheckResult);
|
||||
keyValuePairs.Add("CheckResult3", checkItem3.CheckResult);
|
||||
keyValuePairs.Add("CheckResult4", checkItem4.CheckResult);
|
||||
keyValuePairs.Add("CheckResult5", checkItem5.CheckResult);
|
||||
keyValuePairs.Add("CheckResult6", checkItem6.CheckResult);
|
||||
keyValuePairs.Add("CheckResult7", checkItem7.CheckResult);
|
||||
keyValuePairs.Add("CheckResult8", checkItem8.CheckResult);
|
||||
BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs);
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowAlert("请先保存数据!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
initTemplatePath = "File\\Fastreport\\JGZL\\防腐工程质量验收记录.frx";
|
||||
if (File.Exists(rootPath + initTemplatePath))
|
||||
{
|
||||
PageContext.RegisterStartupScript(WindowPrint.GetShowReference(String.Format("../common/ReportPrint/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath)));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
|
||||
// return;
|
||||
//}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -275,140 +465,140 @@ namespace FineUIPro.Web.JGZL
|
|||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnAdd_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("AnticorrosionEngineeringInspectionRecordEdit.aspx?projectId={0}", this.tvControlItem.SelectedNodeID, "新增 - ")));
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
//protected void btnAdd_Click(object sender, EventArgs e)
|
||||
//{
|
||||
// if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
||||
// {
|
||||
// PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("AnticorrosionEngineeringInspectionRecordEdit.aspx?projectId={0}", this.tvControlItem.SelectedNodeID, "新增 - ")));
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
|
||||
// return;
|
||||
// }
|
||||
//}
|
||||
|
||||
/// <summary>
|
||||
/// 双击编辑
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
|
||||
{
|
||||
if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.JGZL_AnticorrosionEngineeringInspectionRecordMenuId, BLL.Const.BtnModify))
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("AnticorrosionEngineeringInspectionRecordEdit.aspx?anticorrosionId={0}", this.Grid1.SelectedRowID, "编辑 - ")));
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
//protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
|
||||
//{
|
||||
// if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.JGZL_AnticorrosionEngineeringInspectionRecordMenuId, BLL.Const.BtnModify))
|
||||
// {
|
||||
// if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
||||
// {
|
||||
// if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
|
||||
// {
|
||||
// PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("AnticorrosionEngineeringInspectionRecordEdit.aspx?anticorrosionId={0}", this.Grid1.SelectedRowID, "编辑 - ")));
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
|
||||
// return;
|
||||
// }
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
|
||||
// return;
|
||||
// }
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||
// }
|
||||
//}
|
||||
|
||||
/// <summary>
|
||||
/// 右键编辑
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnMenuEdit_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.JGZL_AnticorrosionEngineeringInspectionRecordMenuId, BLL.Const.BtnModify))
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||
{
|
||||
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("AnticorrosionEngineeringInspectionRecordEdit.aspx?anticorrosionId={0}", Grid1.SelectedRowID, "维护 - ")));
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
//protected void btnMenuEdit_Click(object sender, EventArgs e)
|
||||
//{
|
||||
// if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.JGZL_AnticorrosionEngineeringInspectionRecordMenuId, BLL.Const.BtnModify))
|
||||
// {
|
||||
// if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||
// {
|
||||
// Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
|
||||
// return;
|
||||
// }
|
||||
// PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("AnticorrosionEngineeringInspectionRecordEdit.aspx?anticorrosionId={0}", Grid1.SelectedRowID, "维护 - ")));
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||
// }
|
||||
//}
|
||||
|
||||
/// <summary>
|
||||
/// 右键删除
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnMenuDelete_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.JGZL_AnticorrosionEngineeringInspectionRecordMenuId, Const.BtnDelete))
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||
{
|
||||
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
//protected void btnMenuDelete_Click(object sender, EventArgs e)
|
||||
//{
|
||||
// if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.JGZL_AnticorrosionEngineeringInspectionRecordMenuId, Const.BtnDelete))
|
||||
// {
|
||||
// if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||
// {
|
||||
// Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
|
||||
// return;
|
||||
// }
|
||||
|
||||
bool isShow = true;
|
||||
if (Grid1.SelectedRowIndexArray.Length > 1)
|
||||
{
|
||||
isShow = false;
|
||||
}
|
||||
bool isDelete = false;
|
||||
foreach (int rowIndex in Grid1.SelectedRowIndexArray)
|
||||
{
|
||||
string rowID = Grid1.DataKeys[rowIndex][0].ToString();
|
||||
if (judgementDelete(rowID, isShow))
|
||||
{
|
||||
isDelete = true;
|
||||
BLL.AnticorrosionEngineeringInspectionRecordItemService.DeleteAnticorrosionReportItemByAnticorrosionId(rowID);
|
||||
BLL.AnticorrosionEngineeringInspectionRecordService.DeleteAnticorrosionReportById(rowID);
|
||||
BLL.Sys_LogService.AddLog(BLL.Const.System_3, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "删除防腐工程质量验收记录");
|
||||
}
|
||||
}
|
||||
if (isDelete)
|
||||
{
|
||||
ShowNotify("删除成功!", MessageBoxIcon.Success);
|
||||
}
|
||||
this.BindGrid();
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
// bool isShow = true;
|
||||
// if (Grid1.SelectedRowIndexArray.Length > 1)
|
||||
// {
|
||||
// isShow = false;
|
||||
// }
|
||||
// bool isDelete = false;
|
||||
// foreach (int rowIndex in Grid1.SelectedRowIndexArray)
|
||||
// {
|
||||
// string rowID = Grid1.DataKeys[rowIndex][0].ToString();
|
||||
// if (judgementDelete(rowID, isShow))
|
||||
// {
|
||||
// isDelete = true;
|
||||
// BLL.AnticorrosionEngineeringInspectionRecordItemService.DeleteAnticorrosionReportItemByAnticorrosionId(rowID);
|
||||
// BLL.AnticorrosionEngineeringInspectionRecordService.DeleteAnticorrosionReportById(rowID);
|
||||
// BLL.Sys_LogService.AddLog(BLL.Const.System_3, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "删除防腐工程质量验收记录");
|
||||
// }
|
||||
// }
|
||||
// if (isDelete)
|
||||
// {
|
||||
// ShowNotify("删除成功!", MessageBoxIcon.Success);
|
||||
// }
|
||||
// this.BindGrid();
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||
// }
|
||||
//}
|
||||
|
||||
#region 判断是否可删除
|
||||
/// <summary>
|
||||
/// 判断是否可以删除
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
private bool judgementDelete(string id, bool isShow)
|
||||
{
|
||||
string content = string.Empty;
|
||||
//private bool judgementDelete(string id, bool isShow)
|
||||
//{
|
||||
// string content = string.Empty;
|
||||
|
||||
if (string.IsNullOrEmpty(content))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (isShow)
|
||||
{
|
||||
Alert.ShowInTop(content, MessageBoxIcon.Error);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
// if (string.IsNullOrEmpty(content))
|
||||
// {
|
||||
// return true;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// if (isShow)
|
||||
// {
|
||||
// Alert.ShowInTop(content, MessageBoxIcon.Error);
|
||||
// }
|
||||
// return false;
|
||||
// }
|
||||
//}
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
|
|
@ -418,11 +608,189 @@ namespace FineUIPro.Web.JGZL
|
|||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Window1_Close(object sender, WindowCloseEventArgs e)
|
||||
//protected void Window1_Close(object sender, WindowCloseEventArgs e)
|
||||
//{
|
||||
// this.InitTreeMenu();//加载树
|
||||
// this.BindGrid();
|
||||
//}
|
||||
#endregion
|
||||
|
||||
#region 数据行
|
||||
|
||||
protected void btnAddGrid1_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.InitTreeMenu();//加载树
|
||||
this.BindGrid();
|
||||
Grid1.Hidden = false;
|
||||
|
||||
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
|
||||
{
|
||||
{ "AnticorrosionItemId", Guid.NewGuid() },
|
||||
{ "AnticorrosionId", AnticorrosionId },
|
||||
{ "Part", "" },
|
||||
{ "MaterialName", "" },
|
||||
{ "Grade", "" },
|
||||
{ "Manufacturer", "" },
|
||||
{ "PlanFilmThickness", "" },
|
||||
{ "ActualFilmThickness", "" },
|
||||
{
|
||||
"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();
|
||||
}
|
||||
|
||||
protected void Grid3_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 获取Grid数据
|
||||
|
||||
|
||||
void saveItem()
|
||||
{
|
||||
List<Model.JGZL_AnticorrosionEngineeringInspectionRecordItem> detailLists = new List<Model.JGZL_AnticorrosionEngineeringInspectionRecordItem>();
|
||||
JArray teamGroupData = Grid1.GetMergedData();
|
||||
foreach (JObject teamGroupRow in teamGroupData)
|
||||
{
|
||||
JObject values = teamGroupRow.Value<JObject>("values");
|
||||
int rowIndex = teamGroupRow.Value<int>("index");
|
||||
Model.JGZL_AnticorrosionEngineeringInspectionRecordItem newDetail = new Model.JGZL_AnticorrosionEngineeringInspectionRecordItem
|
||||
{
|
||||
AnticorrosionItemId = values.Value<string>("AnticorrosionItemId"),
|
||||
AnticorrosionId = AnticorrosionId,
|
||||
Part = values.Value<string>("Part"),
|
||||
MaterialName = values.Value<string>("MaterialName"),
|
||||
Grade = values.Value<string>("Grade"),
|
||||
Manufacturer = values.Value<string>("Manufacturer"),
|
||||
PlanFilmThickness = values.Value<string>("PlanFilmThickness"),
|
||||
ActualFilmThickness = values.Value<string>("ActualFilmThickness"),
|
||||
};
|
||||
detailLists.Add(newDetail);
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
var result = Funs.DB.JGZL_AnticorrosionEngineeringInspectionRecordItem.Where(a => a.AnticorrosionId == AnticorrosionId);
|
||||
Funs.DB.JGZL_AnticorrosionEngineeringInspectionRecordItem.DeleteAllOnSubmit(result);
|
||||
if (detailLists.Count > 0)
|
||||
{
|
||||
Funs.DB.JGZL_AnticorrosionEngineeringInspectionRecordItem.InsertAllOnSubmit(detailLists);
|
||||
}
|
||||
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
void saveCheckItem()
|
||||
{
|
||||
checkItems.Clear();
|
||||
JArray teamGroupData = Grid2.GetMergedData();
|
||||
foreach (JObject teamGroupRow in teamGroupData)
|
||||
{
|
||||
JObject values = teamGroupRow.Value<JObject>("values");
|
||||
int rowIndex = teamGroupRow.Value<int>("index");
|
||||
Model.JGZL_AnticorrosionEngineeringInspectionRecordCheckItems newCheckItem = new Model.JGZL_AnticorrosionEngineeringInspectionRecordCheckItems
|
||||
{
|
||||
CheckItemsId = values.Value<string>("CheckItemsId"),
|
||||
AnticorrosionId = AnticorrosionId,
|
||||
CheckItem = values.Value<string>("CheckItem"),
|
||||
CheckResult = values.Value<string>("CheckResult"),
|
||||
Sort = Funs.GetNewInt(values.Value<string>("Sort"))
|
||||
};
|
||||
checkItems.Add(newCheckItem);
|
||||
}
|
||||
try
|
||||
{
|
||||
var result = Funs.DB.JGZL_AnticorrosionEngineeringInspectionRecordCheckItems.Where(a => a.AnticorrosionId == AnticorrosionId);
|
||||
Funs.DB.JGZL_AnticorrosionEngineeringInspectionRecordCheckItems.DeleteAllOnSubmit(result);
|
||||
if (checkItems.Count > 0)
|
||||
{
|
||||
Funs.DB.JGZL_AnticorrosionEngineeringInspectionRecordCheckItems.InsertAllOnSubmit(checkItems);
|
||||
}
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 提交按钮
|
||||
|
||||
/// <summary>
|
||||
/// 提交按钮
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId,
|
||||
Const.JGZL_AnticorrosionEngineeringInspectionRecordMenuId, Const.BtnSave))
|
||||
{
|
||||
Model.JGZL_AnticorrosionEngineeringInspectionRecord newReport = new Model.JGZL_AnticorrosionEngineeringInspectionRecord();
|
||||
newReport.AnticorrosionCurrentStatus = this.txtAnticorrosionCurrentStatus.Text.Trim();
|
||||
newReport.AnticorrosionPart = this.txtAnticorrosionPart.Text.Trim();
|
||||
newReport.AnticorrosionRequire = this.txtAnticorrosionRequire.Text;
|
||||
//newReport.InspectionConclusion = this.txtInspectionConclusion.Text;
|
||||
if (!string.IsNullOrEmpty(this.AnticorrosionId))
|
||||
{
|
||||
newReport.AnticorrosionId = this.AnticorrosionId;
|
||||
BLL.AnticorrosionEngineeringInspectionRecordService.UpdateAnticorrosionReport(newReport);
|
||||
}
|
||||
else
|
||||
{
|
||||
newReport.ProjectId = this.ProjectId;
|
||||
newReport.CompileMan = this.CurrUser.UserId;
|
||||
newReport.CompileDate = DateTime.Now;
|
||||
newReport.AnticorrosionId = SQLHelper.GetNewID(typeof(Model.JGZL_AnticorrosionEngineeringInspectionRecord));
|
||||
this.AnticorrosionId = newReport.AnticorrosionId;
|
||||
BLL.AnticorrosionEngineeringInspectionRecordService.AddAnticorrosionReport(newReport);
|
||||
}
|
||||
//保存明细
|
||||
saveCheckItem();
|
||||
saveItem();
|
||||
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
||||
//PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
|
@ -105,13 +105,13 @@ namespace FineUIPro.Web.JGZL
|
|||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
/// <summary>
|
||||
/// btnAdd 控件。
|
||||
/// btnSave 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnAdd;
|
||||
protected global::FineUIPro.Button btnSave;
|
||||
|
||||
/// <summary>
|
||||
/// btnPrint 控件。
|
||||
|
|
@ -122,6 +122,60 @@ namespace FineUIPro.Web.JGZL
|
|||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnPrint;
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form SimpleForm1;
|
||||
|
||||
/// <summary>
|
||||
/// txtAnticorrosionCurrentStatus 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtAnticorrosionCurrentStatus;
|
||||
|
||||
/// <summary>
|
||||
/// txtAnticorrosionPart 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtAnticorrosionPart;
|
||||
|
||||
/// <summary>
|
||||
/// txtAnticorrosionRequire 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtAnticorrosionRequire;
|
||||
|
||||
/// <summary>
|
||||
/// Grid2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid2;
|
||||
|
||||
/// <summary>
|
||||
/// drpCheckResult 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpCheckResult;
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
|
|
@ -132,40 +186,58 @@ namespace FineUIPro.Web.JGZL
|
|||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarSeparator1 控件。
|
||||
/// txtPart 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
|
||||
protected global::FineUIPro.TextBox txtPart;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarText1 控件。
|
||||
/// txtMaterialName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarText ToolbarText1;
|
||||
protected global::FineUIPro.TextBox txtMaterialName;
|
||||
|
||||
/// <summary>
|
||||
/// ddlPageSize 控件。
|
||||
/// txtGrade 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList ddlPageSize;
|
||||
protected global::FineUIPro.TextBox txtGrade;
|
||||
|
||||
/// <summary>
|
||||
/// Window1 控件。
|
||||
/// txtManufacturer 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window1;
|
||||
protected global::FineUIPro.TextBox txtManufacturer;
|
||||
|
||||
/// <summary>
|
||||
/// txtPlanFilmThickness 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtPlanFilmThickness;
|
||||
|
||||
/// <summary>
|
||||
/// txtActualFilmThickness 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtActualFilmThickness;
|
||||
|
||||
/// <summary>
|
||||
/// WindowPrint 控件。
|
||||
|
|
@ -175,32 +247,5 @@ namespace FineUIPro.Web.JGZL
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window WindowPrint;
|
||||
|
||||
/// <summary>
|
||||
/// Menu1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Menu Menu1;
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuEdit 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuEdit;
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuDelete 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuDelete;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -95,7 +95,8 @@ namespace FineUIPro.Web.JGZL
|
|||
{
|
||||
this.RecordId = string.Empty;
|
||||
this.txtProfessionalEngineering.Text = "管道安装工程";
|
||||
//this.txtDrawingNumber.Text = BLL.Base_ProjectService.GetProjectCode(this.ProjectId);
|
||||
this.txtDrawingNumber.Text = "/";
|
||||
this.txtInspectionItems.Text = "经检查," + BLL.Base_ProjectService.GetProjectByProjectId(this.ProjectId).ProjectName + "管道安装施工质量符合 SH/T 3501-2021《石油化工有毒、可燃介质钢制管道工程施工及验收规范》及 GB 50517-2010《石油化工金属管道工程施工质量验收规范》的相关规定。管道组成件的材质、规格、型号均符合设计文件要求,管道支吊架的安装位置、间距、固定方式及紧固情况均满足施工及规范要求;管道安装坡度、标高、坐标位置准确,连接牢固可靠,整体安装质量合格。本项目管道组成件及管道支撑件安装符合设计及规范规定,满足工程验收要求。";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -377,6 +377,9 @@ namespace Model
|
|||
partial void InsertJGZL_AnticorrosionEngineeringInspectionRecord(JGZL_AnticorrosionEngineeringInspectionRecord instance);
|
||||
partial void UpdateJGZL_AnticorrosionEngineeringInspectionRecord(JGZL_AnticorrosionEngineeringInspectionRecord instance);
|
||||
partial void DeleteJGZL_AnticorrosionEngineeringInspectionRecord(JGZL_AnticorrosionEngineeringInspectionRecord instance);
|
||||
partial void InsertJGZL_AnticorrosionEngineeringInspectionRecordCheckItems(JGZL_AnticorrosionEngineeringInspectionRecordCheckItems instance);
|
||||
partial void UpdateJGZL_AnticorrosionEngineeringInspectionRecordCheckItems(JGZL_AnticorrosionEngineeringInspectionRecordCheckItems instance);
|
||||
partial void DeleteJGZL_AnticorrosionEngineeringInspectionRecordCheckItems(JGZL_AnticorrosionEngineeringInspectionRecordCheckItems instance);
|
||||
partial void InsertJGZL_AnticorrosionEngineeringInspectionRecordItem(JGZL_AnticorrosionEngineeringInspectionRecordItem instance);
|
||||
partial void UpdateJGZL_AnticorrosionEngineeringInspectionRecordItem(JGZL_AnticorrosionEngineeringInspectionRecordItem instance);
|
||||
partial void DeleteJGZL_AnticorrosionEngineeringInspectionRecordItem(JGZL_AnticorrosionEngineeringInspectionRecordItem instance);
|
||||
|
|
@ -1863,6 +1866,14 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
public System.Data.Linq.Table<JGZL_AnticorrosionEngineeringInspectionRecordCheckItems> JGZL_AnticorrosionEngineeringInspectionRecordCheckItems
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.GetTable<JGZL_AnticorrosionEngineeringInspectionRecordCheckItems>();
|
||||
}
|
||||
}
|
||||
|
||||
public System.Data.Linq.Table<JGZL_AnticorrosionEngineeringInspectionRecordItem> JGZL_AnticorrosionEngineeringInspectionRecordItem
|
||||
{
|
||||
get
|
||||
|
|
@ -27499,7 +27510,7 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialType", DbType="NVarChar(50)")]
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialType", DbType="NVarChar(200)")]
|
||||
public string MaterialType
|
||||
{
|
||||
get
|
||||
|
|
@ -80901,6 +80912,8 @@ namespace Model
|
|||
|
||||
private EntityRef<Sys_User> _Sys_User;
|
||||
|
||||
private EntitySet<JGZL_AnticorrosionEngineeringInspectionRecordCheckItems> _JGZL_AnticorrosionEngineeringInspectionRecordCheckItems;
|
||||
|
||||
#region 可扩展性方法定义
|
||||
partial void OnLoaded();
|
||||
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
||||
|
|
@ -80928,6 +80941,7 @@ namespace Model
|
|||
this._Base_Project = default(EntityRef<Base_Project>);
|
||||
this._JGZL_AnticorrosionEngineeringInspectionRecordItem = new EntitySet<JGZL_AnticorrosionEngineeringInspectionRecordItem>(new Action<JGZL_AnticorrosionEngineeringInspectionRecordItem>(this.attach_JGZL_AnticorrosionEngineeringInspectionRecordItem), new Action<JGZL_AnticorrosionEngineeringInspectionRecordItem>(this.detach_JGZL_AnticorrosionEngineeringInspectionRecordItem));
|
||||
this._Sys_User = default(EntityRef<Sys_User>);
|
||||
this._JGZL_AnticorrosionEngineeringInspectionRecordCheckItems = new EntitySet<JGZL_AnticorrosionEngineeringInspectionRecordCheckItems>(new Action<JGZL_AnticorrosionEngineeringInspectionRecordCheckItems>(this.attach_JGZL_AnticorrosionEngineeringInspectionRecordCheckItems), new Action<JGZL_AnticorrosionEngineeringInspectionRecordCheckItems>(this.detach_JGZL_AnticorrosionEngineeringInspectionRecordCheckItems));
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
|
|
@ -81181,6 +81195,20 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_AnticorrosionEngineeringInspectionRecordCheckItems_JGZL_AnticorrosionEngi" +
|
||||
"neeringInspectionRecord", Storage="_JGZL_AnticorrosionEngineeringInspectionRecordCheckItems", ThisKey="AnticorrosionId", OtherKey="AnticorrosionId", DeleteRule="NO ACTION")]
|
||||
public EntitySet<JGZL_AnticorrosionEngineeringInspectionRecordCheckItems> JGZL_AnticorrosionEngineeringInspectionRecordCheckItems
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._JGZL_AnticorrosionEngineeringInspectionRecordCheckItems;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._JGZL_AnticorrosionEngineeringInspectionRecordCheckItems.Assign(value);
|
||||
}
|
||||
}
|
||||
|
||||
public event PropertyChangingEventHandler PropertyChanging;
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
|
@ -81212,6 +81240,218 @@ namespace Model
|
|||
this.SendPropertyChanging();
|
||||
entity.JGZL_AnticorrosionEngineeringInspectionRecord = null;
|
||||
}
|
||||
|
||||
private void attach_JGZL_AnticorrosionEngineeringInspectionRecordCheckItems(JGZL_AnticorrosionEngineeringInspectionRecordCheckItems entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.JGZL_AnticorrosionEngineeringInspectionRecord = this;
|
||||
}
|
||||
|
||||
private void detach_JGZL_AnticorrosionEngineeringInspectionRecordCheckItems(JGZL_AnticorrosionEngineeringInspectionRecordCheckItems entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.JGZL_AnticorrosionEngineeringInspectionRecord = null;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.JGZL_AnticorrosionEngineeringInspectionRecordCheckItems")]
|
||||
public partial class JGZL_AnticorrosionEngineeringInspectionRecordCheckItems : INotifyPropertyChanging, INotifyPropertyChanged
|
||||
{
|
||||
|
||||
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
||||
|
||||
private string _CheckItemsId;
|
||||
|
||||
private string _AnticorrosionId;
|
||||
|
||||
private string _CheckItem;
|
||||
|
||||
private string _CheckResult;
|
||||
|
||||
private System.Nullable<int> _Sort;
|
||||
|
||||
private EntityRef<JGZL_AnticorrosionEngineeringInspectionRecord> _JGZL_AnticorrosionEngineeringInspectionRecord;
|
||||
|
||||
#region 可扩展性方法定义
|
||||
partial void OnLoaded();
|
||||
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
||||
partial void OnCreated();
|
||||
partial void OnCheckItemsIdChanging(string value);
|
||||
partial void OnCheckItemsIdChanged();
|
||||
partial void OnAnticorrosionIdChanging(string value);
|
||||
partial void OnAnticorrosionIdChanged();
|
||||
partial void OnCheckItemChanging(string value);
|
||||
partial void OnCheckItemChanged();
|
||||
partial void OnCheckResultChanging(string value);
|
||||
partial void OnCheckResultChanged();
|
||||
partial void OnSortChanging(System.Nullable<int> value);
|
||||
partial void OnSortChanged();
|
||||
#endregion
|
||||
|
||||
public JGZL_AnticorrosionEngineeringInspectionRecordCheckItems()
|
||||
{
|
||||
this._JGZL_AnticorrosionEngineeringInspectionRecord = default(EntityRef<JGZL_AnticorrosionEngineeringInspectionRecord>);
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheckItemsId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
|
||||
public string CheckItemsId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._CheckItemsId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._CheckItemsId != value))
|
||||
{
|
||||
this.OnCheckItemsIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._CheckItemsId = value;
|
||||
this.SendPropertyChanged("CheckItemsId");
|
||||
this.OnCheckItemsIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AnticorrosionId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
|
||||
public string AnticorrosionId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._AnticorrosionId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._AnticorrosionId != value))
|
||||
{
|
||||
if (this._JGZL_AnticorrosionEngineeringInspectionRecord.HasLoadedOrAssignedValue)
|
||||
{
|
||||
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
|
||||
}
|
||||
this.OnAnticorrosionIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._AnticorrosionId = value;
|
||||
this.SendPropertyChanged("AnticorrosionId");
|
||||
this.OnAnticorrosionIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheckItem", DbType="NVarChar(150)")]
|
||||
public string CheckItem
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._CheckItem;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._CheckItem != value))
|
||||
{
|
||||
this.OnCheckItemChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._CheckItem = value;
|
||||
this.SendPropertyChanged("CheckItem");
|
||||
this.OnCheckItemChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[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="_Sort", DbType="Int")]
|
||||
public System.Nullable<int> Sort
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Sort;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Sort != value))
|
||||
{
|
||||
this.OnSortChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Sort = value;
|
||||
this.SendPropertyChanged("Sort");
|
||||
this.OnSortChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_AnticorrosionEngineeringInspectionRecordCheckItems_JGZL_AnticorrosionEngi" +
|
||||
"neeringInspectionRecord", Storage="_JGZL_AnticorrosionEngineeringInspectionRecord", ThisKey="AnticorrosionId", OtherKey="AnticorrosionId", IsForeignKey=true)]
|
||||
public JGZL_AnticorrosionEngineeringInspectionRecord JGZL_AnticorrosionEngineeringInspectionRecord
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._JGZL_AnticorrosionEngineeringInspectionRecord.Entity;
|
||||
}
|
||||
set
|
||||
{
|
||||
JGZL_AnticorrosionEngineeringInspectionRecord previousValue = this._JGZL_AnticorrosionEngineeringInspectionRecord.Entity;
|
||||
if (((previousValue != value)
|
||||
|| (this._JGZL_AnticorrosionEngineeringInspectionRecord.HasLoadedOrAssignedValue == false)))
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
if ((previousValue != null))
|
||||
{
|
||||
this._JGZL_AnticorrosionEngineeringInspectionRecord.Entity = null;
|
||||
previousValue.JGZL_AnticorrosionEngineeringInspectionRecordCheckItems.Remove(this);
|
||||
}
|
||||
this._JGZL_AnticorrosionEngineeringInspectionRecord.Entity = value;
|
||||
if ((value != null))
|
||||
{
|
||||
value.JGZL_AnticorrosionEngineeringInspectionRecordCheckItems.Add(this);
|
||||
this._AnticorrosionId = value.AnticorrosionId;
|
||||
}
|
||||
else
|
||||
{
|
||||
this._AnticorrosionId = default(string);
|
||||
}
|
||||
this.SendPropertyChanged("JGZL_AnticorrosionEngineeringInspectionRecord");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public event PropertyChangingEventHandler PropertyChanging;
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
||||
protected virtual void SendPropertyChanging()
|
||||
{
|
||||
if ((this.PropertyChanging != null))
|
||||
{
|
||||
this.PropertyChanging(this, emptyChangingEventArgs);
|
||||
}
|
||||
}
|
||||
|
||||
protected virtual void SendPropertyChanged(String propertyName)
|
||||
{
|
||||
if ((this.PropertyChanged != null))
|
||||
{
|
||||
this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.JGZL_AnticorrosionEngineeringInspectionRecordItem")]
|
||||
|
|
|
|||
Loading…
Reference in New Issue