20260210 工业管道安装汇总表
This commit is contained in:
parent
b518c2f850
commit
9c93de0cc6
|
|
@ -1,4 +1,5 @@
|
|||
using Model;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace BLL
|
||||
|
|
@ -18,6 +19,11 @@ namespace BLL
|
|||
return Funs.DB.JGZL_IndustrialPipelineInstallationSummary.FirstOrDefault(e => e.SummaryId == Id);
|
||||
}
|
||||
|
||||
public static List<Model.JGZL_IndustrialPipelineInstallationSummary> GetIndustrialPipelineInstallationSummaryByProjectId(string projectId)
|
||||
{
|
||||
return (from x in Funs.DB.JGZL_IndustrialPipelineInstallationSummary where x.ProjectId == projectId select x).ToList();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加工业管道安装汇总表
|
||||
/// </summary>
|
||||
|
|
@ -103,16 +109,16 @@ namespace BLL
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除工业管道安装汇总表
|
||||
/// 根据项目Id删除工业管道安装汇总表
|
||||
/// </summary>
|
||||
/// <param name="Id"></param>
|
||||
public static void DeleteIndustrialPipelineInstallationSummaryById(string Id)
|
||||
public static void DeleteIndustrialPipelineInstallationSummaryByProjectId(string projectId)
|
||||
{
|
||||
SGGLDB db = Funs.DB;
|
||||
Model.JGZL_IndustrialPipelineInstallationSummary model = db.JGZL_IndustrialPipelineInstallationSummary.FirstOrDefault(e => e.SummaryId == Id);
|
||||
if (model != null)
|
||||
var q = (from x in db.JGZL_IndustrialPipelineInstallationSummary where x.ProjectId == projectId select x).ToList();
|
||||
if (q.Count>0)
|
||||
{
|
||||
db.JGZL_IndustrialPipelineInstallationSummary.DeleteOnSubmit(model);
|
||||
db.JGZL_IndustrialPipelineInstallationSummary.DeleteAllOnSubmit(q);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="01/26/2026 11:18:50" ReportInfo.Modified="02/09/2026 15:30:59" ReportInfo.CreatorVersion="2017.1.16.0">
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="01/26/2026 11:18:50" ReportInfo.Modified="02/10/2026 14:44:10" ReportInfo.CreatorVersion="2017.1.16.0">
|
||||
<ScriptText>using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
|
@ -75,7 +75,7 @@ namespace FastReport
|
|||
<Parameter Name="DeliveryUnit" DataType="System.String"/>
|
||||
<Parameter Name="DeliveryUnitCode" DataType="System.String"/>
|
||||
</Dictionary>
|
||||
<ReportPage Name="Page1" Landscape="true" PaperWidth="297" PaperHeight="210" RawPaperSize="9" LeftMargin="16.5" TopMargin="22" RightMargin="13.3" BottomMargin="17" Guides="718.2,1001.7,311.85,670.95,0,141.75,132.3,463.05,1009.26,151.2,85.05,103.95,113.4,538.65,179.55,207.9,264.6,349.65,406.35,472.5,510.3,669.0601,54.81,47.25,56.7,18.9,9.45,236.25,567,621.81,716.31,773.01,820.26,867.51,914.76,962.01,37.8,66.15,28.35,593.46,640.71,631.26,678.51,725.76,763.56,810.81,94.5,274.05,368.55,803.25,897.75,633.15,359.1,642.6">
|
||||
<ReportPage Name="Page1" Landscape="true" PaperWidth="297" PaperHeight="210" RawPaperSize="9" LeftMargin="16.5" TopMargin="22" RightMargin="13.3" BottomMargin="17" Guides="718.2,1001.7,311.85,670.95,0,141.75,132.3,463.05,1009.26,151.2,85.05,9.45,37.8,538.65,28.35,56.7,47.25,66.15,669.0601,54.81,113.4,207.9,264.6,349.65,406.35,472.5,510.3,567,621.81,716.31,773.01,820.26,867.51,914.76,962.01,18.9,179.55,75.6,103.95,274.05,368.55,803.25,897.75,633.15,359.1,642.6">
|
||||
<PageHeaderBand Name="PageHeader1" Width="1010.02" Height="236.25" Guides="0,18.9,56.7,85.05,236.25,37.8,151.2,94.5">
|
||||
<TextObject Name="Text1" Left="718.2" Width="283.5" Height="18.9" Text="ZDS-T6.38.047.A/1.2025" HorzAlign="Center" VertAlign="Center" Font="宋体, 14pt"/>
|
||||
<TextObject Name="Text2" Left="311.85" Top="18.9" Width="359.1" Height="37.8" Text="工业管道安装汇总表" HorzAlign="Center" VertAlign="Center" Font="思源宋体 CN, 16pt, style=Bold"/>
|
||||
|
|
@ -212,8 +212,8 @@ namespace FastReport
|
|||
<TableCell Name="Cell127" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell128" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell129" Border.Lines="All" Text="[Data.PipelineLevel]" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell179" Border.Lines="All" Text="[Data.PipelineStartPoint]"/>
|
||||
<TableCell Name="Cell178" Border.Lines="All" Text="[Data.PipelineEndPoint]"/>
|
||||
<TableCell Name="Cell179" Border.Lines="All" Text="[Data.PipelineStartPoint]" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell178" Border.Lines="All" Text="[Data.PipelineEndPoint]" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell130" Border.Lines="All" Text="[Data.DesignPressure]" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell131" Border.Lines="All" Text="[Data.DesignTemperature]" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TableCell Name="Cell133" Border.Lines="All" Text="[Data.Medium]" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="01/23/2026 17:12:17" ReportInfo.Modified="02/09/2026 16:30:12" ReportInfo.CreatorVersion="2017.1.16.0">
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="01/23/2026 17:12:17" ReportInfo.Modified="02/10/2026 10:22:53" ReportInfo.CreatorVersion="2017.1.16.0">
|
||||
<Dictionary>
|
||||
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QF/J8npSDfMOcIjOtlqBsCmQ==">
|
||||
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QFO1XyJKOqNpCSM+qdDrd3FQ==">
|
||||
<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="EngineeringName" DataType="System.String" PropName="image_series"/>
|
||||
|
|
@ -21,6 +21,7 @@
|
|||
<Column Name="InstallationInspection" DataType="System.String" PropName="Column"/>
|
||||
<Column Name="ConstructionUnit" DataType="System.String" PropName="Column"/>
|
||||
<Column Name="SpecialEquipmentProductionLicenseCode" DataType="System.String" PropName="Column"/>
|
||||
<Column Name="Remark" DataType="System.String" PropName="Column"/>
|
||||
</TableDataSource>
|
||||
</MsSqlDataConnection>
|
||||
</Dictionary>
|
||||
|
|
@ -96,7 +97,7 @@
|
|||
<TableRow Name="Row10" Height="97.44">
|
||||
<TableCell Name="Cell46" Border.Lines="Left, Right" VertAlign="Center" Font="宋体, 12pt" ColSpan="5">
|
||||
<TextObject Name="Text3" Left="47.25" Top="9.45" Width="595.35" Height="28.35" Text="本工业管道的安装经质量检验,符合《工业管道安全技术规程》(TSG 31-2025)、" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TextObject Name="Text6" Left="103.95" Top="47.25" Width="160.65" Height="28.35" Border.Lines="Bottom" Font="楷体, 12pt"/>
|
||||
<TextObject Name="Text6" Left="103.95" Top="47.25" Width="160.65" Height="28.35" Border.Lines="Bottom" Text="[Data.Remark]" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
<TextObject Name="Text7" Left="274.05" Top="47.25" Width="94.5" Height="28.35" Text="的要求。" Font="宋体, 12pt"/>
|
||||
<TextObject Name="Text5" Left="9.45" Top="47.25" Width="94.5" Height="28.35" Text="设计文件和" VertAlign="Center" Font="宋体, 12pt"/>
|
||||
</TableCell>
|
||||
|
|
|
|||
|
|
@ -118,10 +118,24 @@ namespace FineUIPro.Web.JGZL
|
|||
}
|
||||
#endregion
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 清空文本
|
||||
/// </summary>
|
||||
private void EmptyText()
|
||||
{
|
||||
txtProjectOverview.Text = string.Empty;
|
||||
txtCompilationBasis.Text = string.Empty;
|
||||
txtConstructionUnit.Text = string.Empty;
|
||||
txtDesigningUnit.Text = string.Empty;
|
||||
txtTestingUnit.Text = string.Empty;
|
||||
txtConstructionCompany.Text = string.Empty;
|
||||
txtMainContent.Text = string.Empty;
|
||||
txtCopiesNum.Text = string.Empty;
|
||||
}
|
||||
|
||||
private void PageData()
|
||||
{
|
||||
EmptyText();
|
||||
string projectId = this.tvControlItem.SelectedNodeID;
|
||||
if (!string.IsNullOrEmpty(projectId))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -108,6 +108,13 @@
|
|||
<f:TextBox ID="txtConstructionUnit" runat="server" Label="建设单位(使用单位)" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow ColumnWidths="47% 15% 38%">
|
||||
<Items>
|
||||
<f:Label ID="lblRemark" runat="server" Text="本工业管道的安装经质量检验,符合《工业管道安全技术规程》(TSG 31-2025)、设计文件和"></f:Label>
|
||||
<f:TextBox ID="txtRemark" runat="server" ></f:TextBox>
|
||||
<f:Label ID="lbld" runat="server" Text="的要求。"></f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtSpecialEquipmentProductionLicenseCode" runat="server" Label="特种设备安装许可证编号" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
|
||||
|
|
|
|||
|
|
@ -82,6 +82,7 @@ namespace FineUIPro.Web.JGZL
|
|||
txtInstallationInspection.Text = string.Empty;
|
||||
txtConstructionUnit.Text = string.Empty;
|
||||
txtSpecialEquipmentProductionLicenseCode.Text = string.Empty;
|
||||
txtRemark.Text = string.Empty;
|
||||
}
|
||||
|
||||
private void PageData()
|
||||
|
|
@ -144,12 +145,21 @@ namespace FineUIPro.Web.JGZL
|
|||
{
|
||||
this.txtConstructionUnit.Text = "浙江石油化工有限公司";
|
||||
}
|
||||
if (!string.IsNullOrEmpty(report.Remark))
|
||||
{
|
||||
this.txtRemark.Text = report.Remark;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.txtRemark.Text = "GB50517-2023";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.txtInstallationInspection.Text = "浙江省特种设备研究院";
|
||||
this.txtConstructionUnit.Text = "浙江石油化工有限公司";
|
||||
this.txtSpecialEquipmentProductionLicenseCode.Text = "TS3833339-2028";
|
||||
this.txtRemark.Text = "GB50517-2023";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -339,6 +349,7 @@ namespace FineUIPro.Web.JGZL
|
|||
dt.Columns.Add("InstallationInspection");
|
||||
dt.Columns.Add("ConstructionUnit");
|
||||
dt.Columns.Add("SpecialEquipmentProductionLicenseCode");
|
||||
dt.Columns.Add("Remark");
|
||||
|
||||
var newRow = dt.NewRow();
|
||||
newRow["CertificateCode"] = report.CertificateCode;
|
||||
|
|
@ -361,6 +372,7 @@ namespace FineUIPro.Web.JGZL
|
|||
newRow["InstallationInspection"] = report.InstallationInspection;
|
||||
newRow["ConstructionUnit"] = report.ConstructionUnit;
|
||||
newRow["SpecialEquipmentProductionLicenseCode"] = report.SpecialEquipmentProductionLicenseCode;
|
||||
newRow["Remark"] = report.Remark;
|
||||
dt.Rows.Add(newRow);
|
||||
|
||||
BLL.Common.FastReportService.AddFastreportTable(dt);
|
||||
|
|
@ -575,7 +587,7 @@ namespace FineUIPro.Web.JGZL
|
|||
newReport.LosslessTestingAgency = this.txtLosslessTestingAgency.Text.Trim();
|
||||
//newReport.SupervisoryAndInspectionAgency = this.txtSupervisoryAndInspectionAgency.Text.Trim();
|
||||
newReport.ConstructionUnit = this.txtConstructionUnit.Text.Trim();
|
||||
//newReport.Remark = this.txtRemark.Text.Trim();
|
||||
newReport.Remark = this.txtRemark.Text.Trim();
|
||||
//newReport.DesignLicenseCode = this.txtDesignLicenseCode.Text.Trim();
|
||||
//newReport.QualificationCertificateCode = this.txtQualificationCertificateCode.Text.Trim();
|
||||
//newReport.InstitutionalApprovalCertificate = this.txtInstitutionalApprovalCertificate.Text.Trim();
|
||||
|
|
|
|||
|
|
@ -230,6 +230,33 @@ namespace FineUIPro.Web.JGZL
|
|||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtConstructionUnit;
|
||||
|
||||
/// <summary>
|
||||
/// lblRemark 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lblRemark;
|
||||
|
||||
/// <summary>
|
||||
/// txtRemark 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtRemark;
|
||||
|
||||
/// <summary>
|
||||
/// lbld 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lbld;
|
||||
|
||||
/// <summary>
|
||||
/// txtSpecialEquipmentProductionLicenseCode 控件。
|
||||
/// </summary>
|
||||
|
|
|
|||
|
|
@ -10,6 +10,8 @@
|
|||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
|
||||
<%-- 隐藏域存储Grid的ClientID,避免JS代码块冲突 --%>
|
||||
<asp:HiddenField ID="hidGridClientID" runat="server" Value="<%# Grid1.ClientID %>" />
|
||||
<f:Panel ID="Panel1" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
|
||||
<Items>
|
||||
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true"
|
||||
|
|
@ -40,6 +42,7 @@
|
|||
<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>
|
||||
|
|
@ -47,98 +50,159 @@
|
|||
</Toolbars>
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="工业管道安装汇总表" EnableCollapse="true"
|
||||
runat="server" BoxFlex="1" DataKeyNames="SummaryId" AllowCellEditing="true"
|
||||
EnableColumnLines="true" ClicksToEdit="1" DataIDField="SummaryId" AllowSorting="true"
|
||||
SortField="CertificateCode" SortDirection="ASC" OnSort="Grid1_Sort" AllowPaging="true"
|
||||
IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange"
|
||||
EnableTextSelection="True" AutoScroll="true" EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick">
|
||||
runat="server" BoxFlex="1" DataKeyNames="SummaryId" EnableColumnLines="true"
|
||||
AllowCellEditing="true" ClicksToEdit="1" DataIDField="SummaryId" AllowSorting="true"
|
||||
SortDirection="ASC" OnSort="Grid1_Sort" OnPreDataBound="Grid1_PreDataBound"
|
||||
AllowPaging="false" IsDatabasePaging="true" PageSize="10000"
|
||||
EnableTextSelection="True" AutoScroll="true">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar3" Position="Top" runat="server" ToolbarAlign="Left">
|
||||
<Items>
|
||||
<f:DropDownList runat="server" ID="drpCertificateCode" LabelAlign="Right" Label="质量证明书编号" LabelWidth="120px" AutoPostBack="true" OnSelectedIndexChanged="drpCertificateCode_SelectedIndexChanged" ShowRedStar="true" EnableEdit="true" Width="380px"></f:DropDownList>
|
||||
<f:TextBox ID="txtDeliveryUnit" runat="server" Label="交工单元名称" LabelAlign="Right" Readonly="true"></f:TextBox>
|
||||
<f:TextBox ID="txtDeliveryUnitCode" runat="server" Label="交工单元编号" LabelAlign="Right" Readonly="true"></f:TextBox>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Columns>
|
||||
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center"
|
||||
TextAlign="Center" />
|
||||
<f:RenderField HeaderText="质量证明书编号" ColumnID="CertificateCode" DataField="CertificateCode" SortField="CertificateCode"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="140px" ExpandUnusedSpace="true">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="交工单元名称" ColumnID="DeliveryUnit" DataField="DeliveryUnit" SortField="DeliveryUnit"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="160px" ExpandUnusedSpace="true">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="交工单元编号" ColumnID="DeliveryUnitCode" DataField="DeliveryUnitCode" SortField="DeliveryUnitCode"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="160px" ExpandUnusedSpace="true">
|
||||
</f:RenderField>
|
||||
|
||||
<%-- <f:RenderField HeaderText="管道编号" ColumnID="PipelineCode" DataField="PipelineCode" SortField="PipelineCode"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="160px">
|
||||
<f:RenderField HeaderText="管道编号" ColumnID="PipelineCode" DataField="PipelineCode" SortField="PipelineCode"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="140px">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtIsoNo" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="管道级别" ColumnID="PipelineLevel" DataField="PipelineLevel" SortField="PipelineLevel"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="160px">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtPipelineLevel" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:GroupField EnableLock="true" HeaderText="起止点" TextAlign="Center">
|
||||
<f:GroupField HeaderText="起止点" runat="server" TextAlign="Center" HeaderTextAlign="Center">
|
||||
<Columns>
|
||||
<f:RenderField HeaderText="起点" ColumnID="PipelineStartPoint" DataField="PipelineStartPoint" SortField="ConcealedContentAndDiagram"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="120px">
|
||||
<f:RenderField HeaderText="起点" ColumnID="PipelineStartPoint" DataField="PipelineStartPoint" SortField="PipelineStartPoint"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="80px">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtPipelineStartPoint" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="终点" ColumnID="PipelineEndPoint" DataField="PipelineEndPoint" SortField="PipelineEndPoint"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="120px">
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="80px">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtPipelineEndPoint" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:GroupField>
|
||||
<f:RenderField HeaderText="设计压力(MPa)" ColumnID="DesignPressure" DataField="DesignPressure" SortField="DesignPressure"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtDesignPressure" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="设计温度(℃)" ColumnID="DesignTemperature" DataField="DesignTemperature" SortField="DesignTemperature"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtDesignTemperature" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="介质" ColumnID="Medium" DataField="Medium" SortField="Medium"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtMedium" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="材质" ColumnID="Material" DataField="Material" SortField="Material"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtMaterial" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="规格(mm)" ColumnID="Specification" DataField="Specification" SortField="Specification"
|
||||
<f:RenderField HeaderText="规格(mm)" ColumnID="Specifications" DataField="Specifications" SortField="Specifications"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtSpecifications" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="长度(m)" ColumnID="Length" DataField="Length" SortField="Length"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtLength" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="铺设方式" ColumnID="LayingMethod" DataField="LayingMethod" SortField="LayingMethod"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtLayingMethod" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="焊口数量" ColumnID="WeldsNum" DataField="WeldsNum" SortField="WeldsNum"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtWeldsNum" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="无损检测方法/比例(%)" ColumnID="LosslessRatio" DataField="LosslessRatio" SortField="LosslessRatio"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtLosslessRatio" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="耐压试验方法" ColumnID="VoltageResistantTestMethod" DataField="VoltageResistantTestMethod" SortField="VoltageResistantTestMethod"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtVoltageResistantTestMethod" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="耐压试验介质" ColumnID="VoltageResistantTestMedium" DataField="VoltageResistantTestMedium" SortField="VoltageResistantTestMedium"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtVoltageResistantTestMedium" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="耐压试验压力(MPa)" ColumnID="VoltageResistantTestPressure" DataField="VoltageResistantTestPressure" SortField="VoltageResistantTestPressure"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtVoltageResistantTestPressure" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="泄漏试验介质" ColumnID="LeakageTestMedium" DataField="LeakageTestMedium" SortField="LeakageTestMedium"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtLeakageTestMedium" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="泄漏试验压力(MPa)" ColumnID="LeakageTestPressure" DataField="LeakageTestPressure" SortField="LeakageTestPressure"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtLeakageTestPressure" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="吹扫、清洗方法" ColumnID="CleaningMethod" DataField="CleaningMethod" SortField="CleaningMethod"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtCleaningMethod" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="腐蚀试验方式" ColumnID="CorrosionControlMethod" DataField="CorrosionControlMethod" SortField="CorrosionControlMethod"
|
||||
<f:RenderField HeaderText="腐蚀控制方式" ColumnID="CorrosionControlMethod" DataField="CorrosionControlMethod" SortField="CorrosionControlMethod"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtCorrosionControlMethod" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="保温(绝热)方式" ColumnID="InsulationMethod" DataField="InsulationMethod" SortField="InsulationMethod"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
|
||||
</f:RenderField>--%>
|
||||
<%--<f:RenderField HeaderText="备注" ColumnID="Remark" DataField="Remark" SortField="Remark"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="180px">
|
||||
</f:RenderField>--%>
|
||||
<Editor>
|
||||
<f:TextBox ID="txtInsulationMethod" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:LinkButtonField ColumnID="Delete3" Width="60px" EnablePostBack="false" Icon="Delete"
|
||||
HeaderTextAlign="Center" HeaderText="删除" />
|
||||
<f:RenderField HeaderText="主键" ColumnID="SummaryId" DataField="SummaryId" SortField="SummaryId"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="140px" Hidden="true">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
<Listeners>
|
||||
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
|
||||
</Listeners>
|
||||
<PageItems>
|
||||
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
|
||||
</f:ToolbarSeparator>
|
||||
|
|
@ -157,30 +221,10 @@
|
|||
</f:Panel>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Window ID="Window1" Title="工业管道安装汇总表" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="top" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true"
|
||||
Width="960px" Height="680px">
|
||||
</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: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>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
var menuID = '<%= Menu1.ClientID %>';
|
||||
// 返回false,来阻止浏览器右键菜单
|
||||
function onRowContextMenu(event, rowId) {
|
||||
F(menuID).show(); //showAt(event.pageX, event.pageY);
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -8,11 +8,62 @@ using System.Web;
|
|||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.IO;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System.Web.Services;
|
||||
using Org.BouncyCastle.Asn1.IsisMtt;
|
||||
using Model;
|
||||
|
||||
namespace FineUIPro.Web.JGZL
|
||||
{
|
||||
public partial class IndustrialPipelineInstallationSummary : PageBase
|
||||
{
|
||||
#region 定义项
|
||||
/// <summary>
|
||||
/// 主键
|
||||
/// </summary>
|
||||
private string SummaryId
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["SummaryId"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["SummaryId"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 项目Id
|
||||
/// </summary>
|
||||
private string ProjectId
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["ProjectId"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["ProjectId"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 外键—CertificateId
|
||||
/// </summary>
|
||||
public string CertificateId
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["CertificateId"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["CertificateId"] = value;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 加载页面
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
|
|
@ -34,8 +85,74 @@ namespace FineUIPro.Web.JGZL
|
|||
this.drpProjectId.SelectedValue = this.CurrUser.LoginProjectId;
|
||||
this.InitTreeMenu();//加载树
|
||||
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
|
||||
|
||||
//获取下拉选择项本项目下所有工业管道安装质量证明书信息
|
||||
IndustrialPipelineInstallationQualityCertificateService.InitIndustrialPipelineInstallationQualityCertificateDownList(this.drpCertificateCode, this.tvControlItem.SelectedNodeID, false);
|
||||
if (!string.IsNullOrEmpty(this.drpCertificateCode.SelectedValue) && this.drpCertificateCode.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
this.CertificateId = this.drpCertificateCode.SelectedValue;
|
||||
var certificate = BLL.IndustrialPipelineInstallationQualityCertificateService.GetIndustrialPipelineInstallationQualityCertificateById(this.CertificateId);
|
||||
if (certificate != null)
|
||||
{
|
||||
this.txtDeliveryUnit.Text = certificate.DeliveryUnit;
|
||||
this.txtDeliveryUnitCode.Text = certificate.DeliveryUnitCode;
|
||||
}
|
||||
}
|
||||
|
||||
var summary = BLL.IndustrialPipelineInstallationSummaryService.GetIndustrialPipelineInstallationSummaryByProjectId(this.tvControlItem.SelectedNodeID);
|
||||
if (summary.Count > 0)
|
||||
{
|
||||
this.BindGrid();
|
||||
}
|
||||
else
|
||||
{
|
||||
JArray teamGroupData = Grid1.GetMergedData();
|
||||
List<JObject> list = new List<JObject>();
|
||||
foreach (JObject teamGroupRow in teamGroupData)
|
||||
{
|
||||
JObject values = teamGroupRow.Value<JObject>("values");
|
||||
list.Add(values);
|
||||
}
|
||||
|
||||
JObject defaultObj = new JObject
|
||||
{
|
||||
{ "SummaryId", Guid.NewGuid() },
|
||||
{ "CertificateId", CertificateId },
|
||||
{ "PipelineCode", "" },
|
||||
{ "PipelineLevel", "" },
|
||||
{ "PipelineStartPoint", "" },
|
||||
{ "PipelineEndPoint", "" },
|
||||
{ "DesignPressure", "" },
|
||||
{ "DesignTemperature", "" },
|
||||
{ "Medium", "" },
|
||||
{ "Material", "" },
|
||||
{ "Specifications", "" },
|
||||
{ "Length", "" },
|
||||
{ "LayingMethod", "" },
|
||||
{ "WeldsNum", "" },
|
||||
{ "LosslessRatio", "" },
|
||||
{ "VoltageResistantTestMedium", "" },
|
||||
{ "VoltageResistantTestPressure", "" },
|
||||
{ "LeakageTestMedium", "" },
|
||||
{ "LeakageTestPressure", "" },
|
||||
{ "CleaningMethod", "" },
|
||||
{ "CorrosionControlMethod", "" },
|
||||
{ "InsulationMethod", "" },
|
||||
{ "OperatingTemperature", "" },
|
||||
{ "VoltageResistantTestDate", "" },
|
||||
{ "LeakageTestDate", "" },
|
||||
{ "Remark", "" },
|
||||
{
|
||||
"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
|
||||
|
||||
|
|
@ -93,27 +210,19 @@ namespace FineUIPro.Web.JGZL
|
|||
/// </summary>
|
||||
private void BindGrid()
|
||||
{
|
||||
//string projectIds = BLL.Base_ProjectService.GetStrOnProjectIds(this.CurrUser.UserId, "1");
|
||||
string strSql = @"SELECT tbb.CertificateCode,tbb.DeliveryUnit,tbb.DeliveryUnitCode,tba.*
|
||||
FROM JGZL_IndustrialPipelineInstallationSummary AS tba
|
||||
LEFT JOIN JGZL_IndustrialPipelineInstallationQualityCertificate AS tbb ON tbb.CertificateId=tba.CertificateId
|
||||
string strSql = @"SELECT *
|
||||
FROM JGZL_IndustrialPipelineInstallationSummary
|
||||
WHERE 1=1 ";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
||||
{
|
||||
strSql += " AND tba.ProjectId = @ProjectId";
|
||||
strSql += " AND ProjectId = @ProjectId";
|
||||
listStr.Add(new SqlParameter("@ProjectId", this.tvControlItem.SelectedNodeID));
|
||||
}
|
||||
//else
|
||||
//{
|
||||
// strSql += " AND CHARINDEX(ProjectId,@ProjectId)>0 ";
|
||||
// listStr.Add(new SqlParameter("@ProjectId", projectIds));
|
||||
//}
|
||||
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();
|
||||
|
|
@ -239,7 +348,7 @@ namespace FineUIPro.Web.JGZL
|
|||
{
|
||||
var newRow = dt.NewRow();
|
||||
newRow["Num"] = (i + 1).ToString();
|
||||
newRow["PipelineCode"] = BLL.HJGL_PW_IsoInfoService.GetIsoInfoByIsoInfoId(row["PipelineCode"].ToString()).ISO_IsoNo;
|
||||
newRow["PipelineCode"] = row["PipelineCode"].ToString();
|
||||
newRow["PipelineLevel"] = row["PipelineLevel"].ToString();
|
||||
newRow["DesignPressure"] = row["DesignPressure"].ToString();
|
||||
newRow["DesignTemperature"] = row["DesignTemperature"].ToString();
|
||||
|
|
@ -311,7 +420,53 @@ namespace FineUIPro.Web.JGZL
|
|||
{
|
||||
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("IndustrialPipelineInstallationSummaryEdit.aspx?projectId={0}", this.tvControlItem.SelectedNodeID, "新增 - ")));
|
||||
JArray teamGroupData = Grid1.GetMergedData();
|
||||
List<JObject> list = new List<JObject>();
|
||||
foreach (JObject teamGroupRow in teamGroupData)
|
||||
{
|
||||
JObject values = teamGroupRow.Value<JObject>("values");
|
||||
list.Add(values);
|
||||
}
|
||||
|
||||
JObject defaultObj = new JObject
|
||||
{
|
||||
{ "SummaryId", Guid.NewGuid() },
|
||||
{ "CertificateId", this.drpCertificateCode.SelectedValue },
|
||||
{ "ProjectId", this.tvControlItem.SelectedNodeID },
|
||||
{ "PipelineCode", "" },
|
||||
{ "PipelineLevel", "" },
|
||||
{ "PipelineStartPoint", "" },
|
||||
{ "PipelineEndPoint", "" },
|
||||
{ "DesignPressure", "" },
|
||||
{ "DesignTemperature", "" },
|
||||
{ "Medium", "" },
|
||||
{ "Material", "" },
|
||||
{ "Specifications", "" },
|
||||
{ "Length", "" },
|
||||
{ "LayingMethod", "" },
|
||||
{ "WeldsNum", "" },
|
||||
{ "LosslessRatio", "" },
|
||||
{ "VoltageResistantTestMedium", "" },
|
||||
{ "VoltageResistantTestPressure", "" },
|
||||
{ "LeakageTestMedium", "" },
|
||||
{ "LeakageTestPressure", "" },
|
||||
{ "CleaningMethod", "" },
|
||||
{ "CorrosionControlMethod", "" },
|
||||
{ "InsulationMethod", "" },
|
||||
{ "OperatingTemperature", "" },
|
||||
{ "VoltageResistantTestDate", "" },
|
||||
{ "LeakageTestDate", "" },
|
||||
{ "Remark", "" },
|
||||
{
|
||||
"Delete3",
|
||||
String.Format("<a href=\"javascript:;\" onclick=\"{0}\"><img src=\"{1}\"/></a>",
|
||||
GetDeleteScriptGrid1(), IconHelper.GetResolvedIconUrl(Icon.Delete))
|
||||
}
|
||||
};
|
||||
list.Add(defaultObj);
|
||||
Grid1.DataSource = list;
|
||||
Grid1.DataBind();
|
||||
//PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("IndustrialPipelineInstallationSummaryEdit.aspx?projectId={0}", this.tvControlItem.SelectedNodeID, "新增 - ")));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -320,139 +475,122 @@ namespace FineUIPro.Web.JGZL
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 双击编辑
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
|
||||
protected void Grid1_PreDataBound(object sender, EventArgs e)
|
||||
{
|
||||
if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.JGZL_IndustrialPipelineInstallationSummaryMenuId, BLL.Const.BtnModify))
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("IndustrialPipelineInstallationSummaryEdit.aspx?summaryId={0}", this.Grid1.SelectedRowID, "编辑 - ")));
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||
}
|
||||
// 设置LinkButtonField的点击客户端事件
|
||||
LinkButtonField deleteField = Grid1.FindColumn("Delete3") as LinkButtonField;
|
||||
deleteField.OnClientClick = GetDeleteScriptGrid1();
|
||||
}
|
||||
|
||||
/// <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_IndustrialPipelineInstallationSummaryMenuId, BLL.Const.BtnModify))
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||
{
|
||||
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("IndustrialPipelineInstallationSummaryEdit.aspx?summaryId={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_IndustrialPipelineInstallationSummaryMenuId, 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.IndustrialPipelineInstallationSummaryService.DeleteIndustrialPipelineInstallationSummaryById(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)
|
||||
private string GetDeleteScriptGrid1()
|
||||
{
|
||||
string content = string.Empty;
|
||||
|
||||
if (string.IsNullOrEmpty(content))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (isShow)
|
||||
{
|
||||
Alert.ShowInTop(content, MessageBoxIcon.Error);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return Confirm.GetShowReference("删除选中行?", String.Empty, MessageBoxIcon.Question,
|
||||
Grid1.GetDeleteSelectedRowsReference(), String.Empty);
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
#region 关闭弹出窗口及刷新页面
|
||||
#region 选择质量证明书编号
|
||||
/// <summary>
|
||||
/// 关闭弹出窗口
|
||||
/// 选择质量证明书编号
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Window1_Close(object sender, WindowCloseEventArgs e)
|
||||
protected void drpCertificateCode_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.InitTreeMenu();//加载树
|
||||
this.BindGrid();
|
||||
this.txtDeliveryUnit.Text = string.Empty;
|
||||
this.txtDeliveryUnitCode.Text = string.Empty;
|
||||
if (!string.IsNullOrWhiteSpace(this.drpCertificateCode.SelectedValue))
|
||||
{
|
||||
//this.CertificateId = this.drpCertificateCode.SelectedValue;
|
||||
|
||||
#region 质量证明书
|
||||
var certificate = BLL.IndustrialPipelineInstallationQualityCertificateService.GetIndustrialPipelineInstallationQualityCertificateById(this.drpCertificateCode.SelectedValue);
|
||||
if (certificate != null)
|
||||
{
|
||||
this.txtDeliveryUnit.Text = certificate.DeliveryUnit;
|
||||
this.txtDeliveryUnitCode.Text = certificate.DeliveryUnitCode;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 保存
|
||||
/// <summary>
|
||||
/// 保存按钮
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId,
|
||||
Const.JGZL_IndustrialPipelineInstallationSummaryMenuId, Const.BtnSave))
|
||||
{
|
||||
saveItem();
|
||||
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
void saveItem()
|
||||
{
|
||||
BLL.IndustrialPipelineInstallationSummaryService.DeleteIndustrialPipelineInstallationSummaryByProjectId(this.tvControlItem.SelectedNodeID);
|
||||
List<Model.JGZL_IndustrialPipelineInstallationSummary> detailLists = new List<Model.JGZL_IndustrialPipelineInstallationSummary>();
|
||||
JArray teamGroupData = Grid1.GetMergedData();
|
||||
foreach (JObject teamGroupRow in teamGroupData)
|
||||
{
|
||||
JObject values = teamGroupRow.Value<JObject>("values");
|
||||
int rowIndex = teamGroupRow.Value<int>("index");
|
||||
Model.JGZL_IndustrialPipelineInstallationSummary newDetail = new Model.JGZL_IndustrialPipelineInstallationSummary
|
||||
{
|
||||
SummaryId = values.Value<string>("SummaryId"),
|
||||
ProjectId = this.tvControlItem.SelectedNodeID,
|
||||
CertificateId = this.drpCertificateCode.SelectedValue,
|
||||
PipelineCode = values.Value<string>("PipelineCode"),
|
||||
PipelineLevel = values.Value<string>("PipelineLevel"),
|
||||
PipelineStartPoint = values.Value<string>("PipelineStartPoint"),
|
||||
PipelineEndPoint = values.Value<string>("PipelineEndPoint"),
|
||||
DesignPressure = values.Value<string>("DesignPressure"),
|
||||
DesignTemperature = values.Value<string>("DesignTemperature"),
|
||||
Medium = values.Value<string>("Medium"),
|
||||
Material = values.Value<string>("Material"),
|
||||
Specifications = values.Value<string>("Specifications"),
|
||||
Length = values.Value<string>("Length"),
|
||||
LayingMethod = values.Value<string>("LayingMethod"),
|
||||
WeldsNum = values.Value<string>("WeldsNum"),
|
||||
LosslessRatio = values.Value<string>("LosslessRatio"),
|
||||
VoltageResistantTestMethod = values.Value<string>("VoltageResistantTestMethod"),
|
||||
VoltageResistantTestMedium = values.Value<string>("VoltageResistantTestMedium"),
|
||||
VoltageResistantTestPressure = values.Value<string>("VoltageResistantTestPressure"),
|
||||
LeakageTestMedium = values.Value<string>("LeakageTestMedium"),
|
||||
LeakageTestPressure = values.Value<string>("LeakageTestPressure"),
|
||||
CleaningMethod = values.Value<string>("CleaningMethod"),
|
||||
CorrosionControlMethod = values.Value<string>("CorrosionControlMethod"),
|
||||
InsulationMethod = values.Value<string>("InsulationMethod"),
|
||||
};
|
||||
detailLists.Add(newDetail);
|
||||
}
|
||||
try
|
||||
{
|
||||
if (detailLists.Count > 0)
|
||||
{
|
||||
Funs.DB.JGZL_IndustrialPipelineInstallationSummary.InsertAllOnSubmit(detailLists);
|
||||
}
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,6 +32,15 @@ namespace FineUIPro.Web.JGZL
|
|||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
/// <summary>
|
||||
/// hidGridClientID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField hidGridClientID;
|
||||
|
||||
/// <summary>
|
||||
/// Panel1 控件。
|
||||
/// </summary>
|
||||
|
|
@ -113,6 +122,15 @@ namespace FineUIPro.Web.JGZL
|
|||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnAdd;
|
||||
|
||||
/// <summary>
|
||||
/// btnSave 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSave;
|
||||
|
||||
/// <summary>
|
||||
/// btnPrint 控件。
|
||||
/// </summary>
|
||||
|
|
@ -131,6 +149,231 @@ namespace FineUIPro.Web.JGZL
|
|||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar3;
|
||||
|
||||
/// <summary>
|
||||
/// drpCertificateCode 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpCertificateCode;
|
||||
|
||||
/// <summary>
|
||||
/// txtDeliveryUnit 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtDeliveryUnit;
|
||||
|
||||
/// <summary>
|
||||
/// txtDeliveryUnitCode 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtDeliveryUnitCode;
|
||||
|
||||
/// <summary>
|
||||
/// txtIsoNo 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtIsoNo;
|
||||
|
||||
/// <summary>
|
||||
/// txtPipelineLevel 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtPipelineLevel;
|
||||
|
||||
/// <summary>
|
||||
/// txtPipelineStartPoint 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtPipelineStartPoint;
|
||||
|
||||
/// <summary>
|
||||
/// txtPipelineEndPoint 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtPipelineEndPoint;
|
||||
|
||||
/// <summary>
|
||||
/// txtDesignPressure 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtDesignPressure;
|
||||
|
||||
/// <summary>
|
||||
/// txtDesignTemperature 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtDesignTemperature;
|
||||
|
||||
/// <summary>
|
||||
/// txtMedium 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtMedium;
|
||||
|
||||
/// <summary>
|
||||
/// txtMaterial 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtMaterial;
|
||||
|
||||
/// <summary>
|
||||
/// txtSpecifications 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtSpecifications;
|
||||
|
||||
/// <summary>
|
||||
/// txtLength 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtLength;
|
||||
|
||||
/// <summary>
|
||||
/// txtLayingMethod 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtLayingMethod;
|
||||
|
||||
/// <summary>
|
||||
/// txtWeldsNum 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtWeldsNum;
|
||||
|
||||
/// <summary>
|
||||
/// txtLosslessRatio 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtLosslessRatio;
|
||||
|
||||
/// <summary>
|
||||
/// txtVoltageResistantTestMethod 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtVoltageResistantTestMethod;
|
||||
|
||||
/// <summary>
|
||||
/// txtVoltageResistantTestMedium 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtVoltageResistantTestMedium;
|
||||
|
||||
/// <summary>
|
||||
/// txtVoltageResistantTestPressure 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtVoltageResistantTestPressure;
|
||||
|
||||
/// <summary>
|
||||
/// txtLeakageTestMedium 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtLeakageTestMedium;
|
||||
|
||||
/// <summary>
|
||||
/// txtLeakageTestPressure 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtLeakageTestPressure;
|
||||
|
||||
/// <summary>
|
||||
/// txtCleaningMethod 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtCleaningMethod;
|
||||
|
||||
/// <summary>
|
||||
/// txtCorrosionControlMethod 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtCorrosionControlMethod;
|
||||
|
||||
/// <summary>
|
||||
/// txtInsulationMethod 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtInsulationMethod;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarSeparator1 控件。
|
||||
/// </summary>
|
||||
|
|
@ -158,15 +401,6 @@ namespace FineUIPro.Web.JGZL
|
|||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList ddlPageSize;
|
||||
|
||||
/// <summary>
|
||||
/// Window1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window1;
|
||||
|
||||
/// <summary>
|
||||
/// WindowPrint 控件。
|
||||
/// </summary>
|
||||
|
|
@ -175,32 +409,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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue