20260126 交工资料

This commit is contained in:
2026-01-26 16:26:49 +08:00
parent 04d43385f3
commit aa38718ac7
28 changed files with 1539 additions and 331 deletions
@@ -195,40 +195,26 @@ namespace FineUIPro.Web.JGZL
string rootPath = Server.MapPath("~/");
BLL.Common.FastReportService.ResetData();
string strSql = @"SELECT * from JGZL_ConcealedWorksInspectionRecord where ProjectId = @ProjectId order by DrawingNumber desc";
List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@ProjectId", projectId));
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
DataTable dt = new DataTable();
dt.TableName = "Data";
dt.Columns.Add("Num");
dt.Columns.Add("ConcealedWorks");
dt.Columns.Add("DrawingNumber");
dt.Columns.Add("ConcealedContentAndDiagram");
dt.Columns.Add("InspectionResults");
dt.Columns.Add("Remark");
DataRow[] rows = tb.DefaultView.ToTable().Select();
int i = 0;
foreach (var row in rows)
{
var newRow = dt.NewRow();
newRow["Num"] = (i + 1).ToString();
newRow["ConcealedWorks"] = row["ConcealedWorks"].ToString();
newRow["DrawingNumber"] = row["DrawingNumber"].ToString();
newRow["ConcealedContentAndDiagram"] = row["ConcealedContentAndDiagram"].ToString();
newRow["Remark"] = row["Remark"].ToString();
dt.Rows.Add(newRow);
i++;
}
BLL.Common.FastReportService.AddFastreportTable(dt);
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName);
BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs);
if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
{
var report = BLL.ConcealedWorksInspectionRecordService.GetConcealedWorksInspectionRecordById(this.Grid1.SelectedRowID);
if (report != null)
{
keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName);
keyValuePairs.Add("ConcealedWorks", report.ConcealedWorks);
keyValuePairs.Add("DrawingNumber", report.DrawingNumber);
keyValuePairs.Add("ConcealedContentAndDiagram", report.ConcealedContentAndDiagram);
keyValuePairs.Add("InspectionResults", report.InspectionResults);
}
}
else
{
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
return;
}
BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs);
initTemplatePath = "File\\Fastreport\\JGZL\\隐蔽工程验收记录.frx";
if (File.Exists(rootPath + initTemplatePath))
{
@@ -1,5 +1,7 @@
using BLL;
using FastReport;
using System;
using System.Windows.Forms.VisualStyles;
namespace FineUIPro.Web.JGZL
{
@@ -61,6 +63,13 @@ namespace FineUIPro.Web.JGZL
this.txtRemark.Text = report.Remark;
}
}
else
{
if (!string.IsNullOrEmpty(this.ProjectId))
{
this.txtDrawingNumber.Text = BLL.Base_ProjectService.GetProjectByProjectId(this.ProjectId).ProjectCode;
}
}
}
}
#endregion
@@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>工业管道安装质量证明书</title>
<title>压力管道安装质量证明书</title>
</head>
<body>
<form id="form1" runat="server">
@@ -13,7 +13,7 @@
<f:Panel ID="Panel1" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
<Items>
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true"
EnableCollapse="true" Width="220px" Title="工业管道安装质量证明书" ShowBorder="true" Layout="VBox"
EnableCollapse="true" Width="220px" Title="压力管道安装质量证明书" ShowBorder="true" Layout="VBox"
ShowHeader="true" AutoScroll="true" BodyPadding="5px" IconFont="ArrowCircleLeft">
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Left">
@@ -25,28 +25,28 @@
</f:Toolbar>
</Toolbars>
<Items>
<f:Tree ID="tvControlItem" ShowHeader="false" Title="工业管道安装质量证明书" OnNodeCommand="tvControlItem_NodeCommand"
<f:Tree ID="tvControlItem" ShowHeader="false" Title="压力管道安装质量证明书" OnNodeCommand="tvControlItem_NodeCommand"
runat="server" ShowBorder="false" EnableCollapse="true" EnableSingleClickExpand="true"
AutoLeafIdentification="true" EnableSingleExpand="true" EnableTextSelection="true">
</f:Tree>
</Items>
</f:Panel>
<f:Panel runat="server" ID="panelCenterRegion" RegionPosition="Center" ShowBorder="true"
Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" Title="工业管道安装质量证明书"
TitleToolTip="工业管道安装质量证明书" AutoScroll="true">
Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" Title="压力管道安装质量证明书"
TitleToolTip="压力管道安装质量证明书" AutoScroll="true">
<Toolbars>
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Right">
<Items>
<f:ToolbarFill ID="ToolbarFill1" runat="server">
</f:ToolbarFill>
<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 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:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="压力管道安装质量证明书" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="CertificateId" AllowCellEditing="true"
EnableColumnLines="true" ClicksToEdit="1" DataIDField="CertificateId" AllowSorting="true"
SortField="CertificateCode" SortDirection="DESC" OnSort="Grid1_Sort" AllowPaging="true"
@@ -58,12 +58,12 @@
<f:RenderField HeaderText="质量证明书编号" ColumnID="CertificateCode" DataField="CertificateCode" SortField="CertificateCode"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="140px">
</f:RenderField>
<f:RenderField HeaderText="工程名称" ColumnID="EngineeringName" DataField="EngineeringName" SortField="EngineeringName"
<%-- <f:RenderField HeaderText="工程名称" ColumnID="EngineeringName" DataField="EngineeringName" SortField="EngineeringName"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="160px">
</f:RenderField>
<f:RenderField HeaderText="工程编号" ColumnID="EngineeringCode" DataField="EngineeringCode" SortField="EngineeringCode"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="140px">
</f:RenderField>
</f:RenderField>--%>
<f:RenderField HeaderText="交工单元名称" ColumnID="DeliveryUnit" DataField="DeliveryUnit" SortField="DeliveryUnit"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="220px">
</f:RenderField>
@@ -82,24 +82,18 @@
<f:RenderField HeaderText="管道长度" ColumnID="PipelineLength" DataField="PipelineLength" SortField="PipelineLength"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="100px">
</f:RenderField>
<f:RenderField HeaderText="设计单位" ColumnID="DesignUnit" DataField="DesignUnit" SortField="DesignUnit"
<f:RenderField HeaderText="压力管道设计许可证编号" ColumnID="DesignLicenseCode" DataField="DesignLicenseCode" SortField="DesignLicenseCode"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="160px">
</f:RenderField>
<f:RenderField HeaderText="无损检测机构" ColumnID="LosslessTestingAgency" DataField="LosslessTestingAgency" SortField="LosslessTestingAgency"
<f:RenderField HeaderText="资质证书编号" ColumnID="QualificationCertificateCode" DataField="QualificationCertificateCode" SortField="QualificationCertificateCode"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="160px">
</f:RenderField>
<f:RenderField HeaderText="监检机构" ColumnID="SupervisoryAndInspectionAgency" DataField="SupervisoryAndInspectionAgency" SortField="SupervisoryAndInspectionAgency"
<f:RenderField HeaderText="无损检测机构核准证编号" ColumnID="InstitutionalApprovalCertificate" DataField="InstitutionalApprovalCertificate" SortField="InstitutionalApprovalCertificate"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="160px">
</f:RenderField>
<f:RenderField HeaderText="建设单位" ColumnID="ConstructionUnit" DataField="ConstructionUnit" SortField="ConstructionUnit"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="160px">
</f:RenderField>
<f:RenderField HeaderText="特种设备生产许可证编号" ColumnID="SpecialEquipmentProductionLicenseCode" DataField="SpecialEquipmentProductionLicenseCode" SortField="SpecialEquipmentProductionLicenseCode"
<f:RenderField HeaderText="特种设备安装许可证编号" ColumnID="SpecialEquipmentProductionLicenseCode" DataField="SpecialEquipmentProductionLicenseCode" SortField="SpecialEquipmentProductionLicenseCode"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="140px">
</f:RenderField>
<%--<f:RenderField HeaderText="备注" ColumnID="Remark" DataField="Remark" SortField="Remark"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="180px">
</f:RenderField>--%>
</Columns>
<Listeners>
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
@@ -122,11 +116,11 @@
</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="900px" Height="600px">
</f:Window>
<f:Window ID="WindowPrint" Title="打印工业管道安装质量证明书" Hidden="true" EnableIFrame="true" EnableMaximize="false"
<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>
@@ -195,65 +195,72 @@ namespace FineUIPro.Web.JGZL
string rootPath = Server.MapPath("~/");
BLL.Common.FastReportService.ResetData();
string strSql = @"SELECT * from JGZL_IndustrialPipelineInstallationQualityCertificate where ProjectId = @ProjectId order by DrawingNumber desc";
List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@ProjectId", projectId));
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
DataTable dt = new DataTable();
dt.TableName = "Data";
dt.Columns.Add("Num");
dt.Columns.Add("CertificateCode");
dt.Columns.Add("EngineeringName");
dt.Columns.Add("EngineeringCode");
dt.Columns.Add("DeliveryUnit");
dt.Columns.Add("DeliveryUnitCode");
dt.Columns.Add("InstallStartDate");
dt.Columns.Add("InstallEndDate");
dt.Columns.Add("PipelineLevel");
dt.Columns.Add("PipelineLength");
dt.Columns.Add("DesignUnit");
dt.Columns.Add("LosslessTestingAgency");
dt.Columns.Add("SupervisoryAndInspectionAgency");
dt.Columns.Add("ConstructionUnit");
dt.Columns.Add("SpecialEquipmentProductionLicenseCode");
dt.Columns.Add("Remark");
DataRow[] rows = tb.DefaultView.ToTable().Select();
int i = 0;
foreach (var row in rows)
string id = this.Grid1.SelectedRowID;
if (!string.IsNullOrEmpty(id))
{
var newRow = dt.NewRow();
newRow["Num"] = (i + 1).ToString();
newRow["CertificateCode"] = row["CertificateCode"].ToString();
newRow["EngineeringName"] = row["EngineeringName"].ToString();
newRow["EngineeringCode"] = row["EngineeringCode"].ToString();
newRow["DeliveryUnit"] = row["DeliveryUnit"].ToString();
newRow["DeliveryUnitCode"] = row["DeliveryUnitCode"].ToString();
newRow["InstallStartDate"] = row["InstallStartDate"].ToString();
newRow["InstallEndDate"] = row["InstallEndDate"].ToString();
newRow["PipelineLevel"] = row["PipelineLevel"].ToString();
newRow["PipelineLength"] = row["PipelineLength"].ToString();
newRow["DesignUnit"] = row["DesignUnit"].ToString();
newRow["LosslessTestingAgency"] = row["LosslessTestingAgency"].ToString();
newRow["SupervisoryAndInspectionAgency"] = row["SupervisoryAndInspectionAgency"].ToString();
newRow["ConstructionUnit"] = row["ConstructionUnit"].ToString();
newRow["SpecialEquipmentProductionLicenseCode"] = row["SpecialEquipmentProductionLicenseCode"].ToString();
newRow["Remark"] = row["Remark"].ToString();
dt.Rows.Add(newRow);
i++;
var report = BLL.IndustrialPipelineInstallationQualityCertificateService.GetIndustrialPipelineInstallationQualityCertificateById(id);
if (report != null)
{
DataTable dt = new DataTable();
dt.TableName = "Data";
dt.Columns.Add("CertificateCode");
dt.Columns.Add("EngineeringName");
dt.Columns.Add("EngineeringCode");
dt.Columns.Add("DeliveryUnit");
dt.Columns.Add("DeliveryUnitCode");
dt.Columns.Add("InstallStartDate");
dt.Columns.Add("InstallEndDate");
dt.Columns.Add("PipelineLevel");
dt.Columns.Add("PipelineLength");
dt.Columns.Add("DesignUnit");
dt.Columns.Add("DesignLicenseCode");
dt.Columns.Add("SupervisoryAndInspectionAgency");
dt.Columns.Add("QualificationCertificateCode");
dt.Columns.Add("LosslessTestingAgency");
dt.Columns.Add("InstitutionalApprovalCertificate");
dt.Columns.Add("InstallationInspection");
dt.Columns.Add("ConstructionUnit");
dt.Columns.Add("SpecialEquipmentProductionLicenseCode");
var newRow = dt.NewRow();
newRow["CertificateCode"] = report.CertificateCode;
newRow["EngineeringName"] = BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName;
newRow["EngineeringCode"] = BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectCode;
newRow["DeliveryUnit"] = report.DeliveryUnit;
newRow["DeliveryUnitCode"] = report.DeliveryUnitCode;
string InstallStartDate = report.InstallStartDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.InstallStartDate) : "";
newRow["InstallStartDate"] = InstallStartDate;
string InstallEndDate = report.InstallEndDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.InstallEndDate) : "";
newRow["InstallEndDate"] = InstallEndDate;
newRow["PipelineLevel"] = report.PipelineLevel;
newRow["PipelineLength"] = report.PipelineLength;
newRow["DesignUnit"] = report.DesignUnit;
newRow["DesignLicenseCode"] = report.DesignLicenseCode;
newRow["SupervisoryAndInspectionAgency"] = report.SupervisoryAndInspectionAgency;
newRow["QualificationCertificateCode"] = report.QualificationCertificateCode;
newRow["LosslessTestingAgency"] = report.LosslessTestingAgency;
newRow["InstitutionalApprovalCertificate"] = report.InstitutionalApprovalCertificate;
newRow["InstallationInspection"] = report.InstallationInspection;
newRow["ConstructionUnit"] = report.ConstructionUnit;
newRow["SpecialEquipmentProductionLicenseCode"] = report.SpecialEquipmentProductionLicenseCode;
dt.Rows.Add(newRow);
BLL.Common.FastReportService.AddFastreportTable(dt);
}
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
//keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName);
BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs);
initTemplatePath = "File\\Fastreport\\JGZL\\压力管道安装质量证明.frx";
if (File.Exists(rootPath + initTemplatePath))
{
PageContext.RegisterStartupScript(WindowPrint.GetShowReference(String.Format("../common/ReportPrint/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath)));
}
}
BLL.Common.FastReportService.AddFastreportTable(dt);
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName);
BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs);
initTemplatePath = "File\\Fastreport\\JGZL\\工业管道安装质量证明书.frx";
if (File.Exists(rootPath + initTemplatePath))
else
{
PageContext.RegisterStartupScript(WindowPrint.GetShowReference(String.Format("../common/ReportPrint/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath)));
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
return;
}
}
else
@@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>编辑工业管道安装质量证明书</title>
<title>编辑压力管道安装质量证明书</title>
</head>
<body>
<form id="form1" runat="server">
@@ -26,49 +26,61 @@
<Rows>
<f:FormRow>
<Items>
<f:TextBox ID="txtCertificateCode" runat="server" Label="证明书编号" LabelAlign="Right" LabelWidth="150px" MaxLength="20" Required="true" ShowRedStar="true"></f:TextBox>
<f:TextBox ID="txtSpecialEquipmentProductionLicenseCode" runat="server" Label="特种设备生产许可证编号" LabelAlign="Right" LabelWidth="150px" MaxLength="20" Required="true" ShowRedStar="true"></f:TextBox>
<f:TextBox ID="txtCertificateCode" runat="server" Label="编号" LabelAlign="Right" LabelWidth="170px" MaxLength="50" Required="true" ShowRedStar="true"></f:TextBox>
<f:TextBox ID="txtSpecialEquipmentProductionLicenseCode" runat="server" Label="特种设备安装许可证编号" LabelAlign="Right" LabelWidth="170px" MaxLength="50" Required="true" ShowRedStar="true"></f:TextBox>
</Items>
</f:FormRow>
<%--<f:FormRow>
<Items>
<f:TextBox ID="txtEngineeringName" runat="server" Label="工程名称" LabelAlign="Right" LabelWidth="170px" MaxLength="50" Required="true" ShowRedStar="true"></f:TextBox>
<f:TextBox ID="txtEngineeringCode" runat="server" Label="工程编号" LabelAlign="Right" LabelWidth="170px" MaxLength="50" Required="true" ShowRedStar="true"></f:TextBox>
</Items>
</f:FormRow>--%>
<f:FormRow>
<Items>
<f:TextBox ID="txtDeliveryUnit" runat="server" Label="交工单元名称" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
<f:TextBox ID="txtDeliveryUnitCode" runat="server" Label="交工单元编号" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtEngineeringName" runat="server" Label="工程名称" LabelAlign="Right" LabelWidth="150px" MaxLength="50" Required="true" ShowRedStar="true"></f:TextBox>
<f:TextBox ID="txtEngineeringCode" runat="server" Label="工程编号" LabelAlign="Right" LabelWidth="150px" MaxLength="50" Required="true" ShowRedStar="true"></f:TextBox>
<f:DatePicker ID="txtInstallStartDate" runat="server" Label="安装开工日期" LabelAlign="Right" LabelWidth="170px"></f:DatePicker>
<f:DatePicker ID="txtInstallEndDate" runat="server" Label="安装竣工日期" LabelAlign="Right" LabelWidth="170px"></f:DatePicker>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtDeliveryUnit" runat="server" Label="交工单元名称" LabelAlign="Right" LabelWidth="150px" MaxLength="50" Required="true" ShowRedStar="true"></f:TextBox>
<f:TextBox ID="txtDeliveryUnitCode" runat="server" Label="交工单元编号" LabelAlign="Right" LabelWidth="150px" MaxLength="50" Required="true" ShowRedStar="true"></f:TextBox>
<f:TextBox ID="txtPipelineLevel" runat="server" Label="管道级别" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
<f:TextBox ID="txtPipelineLength" runat="server" Label="管道长度" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DatePicker ID="txtInstallStartDate" runat="server" Label="安装开工日期" LabelAlign="Right" LabelWidth="150px"></f:DatePicker>
<f:DatePicker ID="txtInstallEndDate" runat="server" Label="安装竣工日期" LabelAlign="Right" LabelWidth="150px"></f:DatePicker>
<f:TextBox ID="txtDesignLicenseCode" runat="server" Label="压力管道设计许可证编号" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
<f:TextBox ID="txtQualificationCertificateCode" runat="server" Label="资质证书编号" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtPipelineLevel" runat="server" Label="管道级别" LabelAlign="Right" LabelWidth="150px" MaxLength="50"></f:TextBox>
<f:TextBox ID="txtPipelineLength" runat="server" Label="管道长度" LabelAlign="Right" LabelWidth="150px" MaxLength="50"></f:TextBox>
<f:TextBox ID="txtInstitutionalApprovalCertificate" runat="server" Label="无损检测机构核准证编号" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
<f:TextBox ID="txtDesignUnit" runat="server" Label="设计单位" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtDesignUnit" runat="server" Label="设计单位" LabelAlign="Right" LabelWidth="150px" MaxLength="50"></f:TextBox>
<f:TextBox ID="txtLosslessTestingAgency" runat="server" Label="无损检测机构" LabelAlign="Right" LabelWidth="150px" MaxLength="50"></f:TextBox>
<f:TextBox ID="txtSupervisoryAndInspectionAgency" runat="server" Label="监理单位" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
<f:TextBox ID="txtLosslessTestingAgency" runat="server" Label="无损检测单位" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtSupervisoryAndInspectionAgency" runat="server" Label="监检机构" LabelAlign="Right" LabelWidth="150px" MaxLength="50"></f:TextBox>
<f:TextBox ID="txtConstructionUnit" runat="server" Label="建设单位" LabelAlign="Right" LabelWidth="150px" MaxLength="50"></f:TextBox>
<f:TextBox ID="txtInstallationInspection" runat="server" Label="安装监检单位" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
<f:TextBox ID="txtConstructionUnit" runat="server" Label="使用单位" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextArea ID="txtRemark" runat="server" Label="备注" LabelAlign="Right" LabelWidth="150px" MaxLength="500"></f:TextArea>
<f:TextArea ID="txtRemark" runat="server" Label="备注" LabelAlign="Right" LabelWidth="170px" MaxLength="500"></f:TextArea>
</Items>
</f:FormRow>
</Rows>
@@ -56,17 +56,21 @@ namespace FineUIPro.Web.JGZL
{
this.txtCertificateCode.Text = report.CertificateCode;
this.txtSpecialEquipmentProductionLicenseCode.Text = report.SpecialEquipmentProductionLicenseCode;
this.txtEngineeringName.Text = report.EngineeringName;
this.txtEngineeringCode.Text = report.EngineeringCode;
//this.txtEngineeringName.Text = report.EngineeringName;
//this.txtEngineeringCode.Text = report.EngineeringCode;
this.txtDeliveryUnit.Text = report.DeliveryUnit;
this.txtDeliveryUnitCode.Text = report.DeliveryUnitCode;
this.txtInstallStartDate.Text = report.InstallStartDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.InstallStartDate) : "";
this.txtInstallEndDate.Text = report.InstallEndDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.InstallEndDate) : "";
this.txtPipelineLevel.Text = report.PipelineLevel;
this.txtPipelineLength.Text = report.PipelineLength;
this.txtDesignLicenseCode.Text = report.DesignLicenseCode;
this.txtQualificationCertificateCode.Text = report.QualificationCertificateCode;
this.txtInstitutionalApprovalCertificate.Text = report.InstitutionalApprovalCertificate;
this.txtDesignUnit.Text = report.DesignUnit;
this.txtLosslessTestingAgency.Text = report.LosslessTestingAgency;
this.txtSupervisoryAndInspectionAgency.Text = report.SupervisoryAndInspectionAgency;
this.txtLosslessTestingAgency.Text = report.LosslessTestingAgency;
this.txtInstallationInspection.Text = report.InstallationInspection;
this.txtConstructionUnit.Text = report.ConstructionUnit;
this.txtRemark.Text = report.Remark;
}
@@ -88,8 +92,8 @@ namespace FineUIPro.Web.JGZL
Model.JGZL_IndustrialPipelineInstallationQualityCertificate newReport = new Model.JGZL_IndustrialPipelineInstallationQualityCertificate();
newReport.CertificateCode = this.txtCertificateCode.Text.Trim();
newReport.SpecialEquipmentProductionLicenseCode = this.txtSpecialEquipmentProductionLicenseCode.Text.Trim();
newReport.EngineeringName = this.txtEngineeringName.Text.Trim();
newReport.EngineeringCode = this.txtEngineeringCode.Text.Trim();
//newReport.EngineeringName = this.txtEngineeringName.Text.Trim();
//newReport.EngineeringCode = this.txtEngineeringCode.Text.Trim();
newReport.DeliveryUnit = this.txtDeliveryUnit.Text.Trim();
newReport.DeliveryUnitCode = this.txtDeliveryUnitCode.Text.Trim();
newReport.InstallStartDate = Funs.GetNewDateTime(this.txtInstallStartDate.Text.Trim());
@@ -101,6 +105,10 @@ namespace FineUIPro.Web.JGZL
newReport.SupervisoryAndInspectionAgency = this.txtSupervisoryAndInspectionAgency.Text.Trim();
newReport.ConstructionUnit = this.txtConstructionUnit.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();
newReport.InstallationInspection = this.txtInstallationInspection.Text.Trim();
if (!string.IsNullOrEmpty(this.CertificateId))
{
@@ -86,24 +86,6 @@ namespace FineUIPro.Web.JGZL
/// </remarks>
protected global::FineUIPro.TextBox txtSpecialEquipmentProductionLicenseCode;
/// <summary>
/// txtEngineeringName 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtEngineeringName;
/// <summary>
/// txtEngineeringCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtEngineeringCode;
/// <summary>
/// txtDeliveryUnit 控件。
/// </summary>
@@ -158,6 +140,33 @@ namespace FineUIPro.Web.JGZL
/// </remarks>
protected global::FineUIPro.TextBox txtPipelineLength;
/// <summary>
/// txtDesignLicenseCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtDesignLicenseCode;
/// <summary>
/// txtQualificationCertificateCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtQualificationCertificateCode;
/// <summary>
/// txtInstitutionalApprovalCertificate 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtInstitutionalApprovalCertificate;
/// <summary>
/// txtDesignUnit 控件。
/// </summary>
@@ -167,6 +176,15 @@ namespace FineUIPro.Web.JGZL
/// </remarks>
protected global::FineUIPro.TextBox txtDesignUnit;
/// <summary>
/// txtSupervisoryAndInspectionAgency 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtSupervisoryAndInspectionAgency;
/// <summary>
/// txtLosslessTestingAgency 控件。
/// </summary>
@@ -177,13 +195,13 @@ namespace FineUIPro.Web.JGZL
protected global::FineUIPro.TextBox txtLosslessTestingAgency;
/// <summary>
/// txtSupervisoryAndInspectionAgency 控件。
/// txtInstallationInspection 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtSupervisoryAndInspectionAgency;
protected global::FineUIPro.TextBox txtInstallationInspection;
/// <summary>
/// txtConstructionUnit 控件。
@@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>工业管道安装汇总表</title>
<title>压力管道安装汇总表</title>
</head>
<body>
<form id="form1" runat="server">
@@ -13,7 +13,7 @@
<f:Panel ID="Panel1" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
<Items>
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true"
EnableCollapse="true" Width="220px" Title="工业管道安装汇总表" ShowBorder="true" Layout="VBox"
EnableCollapse="true" Width="220px" Title="压力管道安装汇总表" ShowBorder="true" Layout="VBox"
ShowHeader="true" AutoScroll="true" BodyPadding="5px" IconFont="ArrowCircleLeft">
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Left">
@@ -25,47 +25,47 @@
</f:Toolbar>
</Toolbars>
<Items>
<f:Tree ID="tvControlItem" ShowHeader="false" Title="工业管道安装汇总表" OnNodeCommand="tvControlItem_NodeCommand"
<f:Tree ID="tvControlItem" ShowHeader="false" Title="压力管道安装汇总表" OnNodeCommand="tvControlItem_NodeCommand"
runat="server" ShowBorder="false" EnableCollapse="true" EnableSingleClickExpand="true"
AutoLeafIdentification="true" EnableSingleExpand="true" EnableTextSelection="true">
</f:Tree>
</Items>
</f:Panel>
<f:Panel runat="server" ID="panelCenterRegion" RegionPosition="Center" ShowBorder="true"
Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" Title="工业管道安装汇总表"
TitleToolTip="工业管道安装汇总表" AutoScroll="true">
Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" Title="压力管道安装汇总表"
TitleToolTip="压力管道安装汇总表" AutoScroll="true">
<Toolbars>
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Right">
<Items>
<f:ToolbarFill ID="ToolbarFill1" runat="server">
</f:ToolbarFill>
<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 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: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,PipelineCode" SortDirection="ASC" OnSort="Grid1_Sort" AllowPaging="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">
<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">
<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">
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">
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="160px" ExpandUnusedSpace="true">
</f:RenderField>
<f:RenderField HeaderText="管道编号" ColumnID="PipelineCode" DataField="PipelineCode" SortField="PipelineCode"
<%-- <f:RenderField HeaderText="管道编号" ColumnID="PipelineCode" DataField="PipelineCode" SortField="PipelineCode"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="160px">
</f:RenderField>
<f:RenderField HeaderText="管道级别" ColumnID="PipelineLevel" DataField="PipelineLevel" SortField="PipelineLevel"
@@ -131,7 +131,7 @@
</f:RenderField>
<f:RenderField HeaderText="保温(绝热)方式" ColumnID="InsulationMethod" DataField="InsulationMethod" SortField="InsulationMethod"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
</f:RenderField>
</f:RenderField>--%>
<%--<f:RenderField HeaderText="备注" ColumnID="Remark" DataField="Remark" SortField="Remark"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="180px">
</f:RenderField>--%>
@@ -157,11 +157,11 @@
</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="960px" Height="680px">
</f:Window>
<f:Window ID="WindowPrint" Title="打印工业管道安装汇总表" Hidden="true" EnableIFrame="true" EnableMaximize="false"
<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>
@@ -198,7 +198,7 @@ namespace FineUIPro.Web.JGZL
string rootPath = Server.MapPath("~/");
BLL.Common.FastReportService.ResetData();
string strSql = @"SELECT * from JGZL_IndustrialPipelineInstallationSummary where ProjectId = @ProjectId order by DrawingNumber desc";
string strSql = @"SELECT * from JGZL_IndustrialPipelineInstallationSummary where ProjectId = @ProjectId ";
List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@ProjectId", projectId));
SqlParameter[] parameter = listStr.ToArray();
@@ -207,11 +207,27 @@ namespace FineUIPro.Web.JGZL
DataTable dt = new DataTable();
dt.TableName = "Data";
dt.Columns.Add("Num");
dt.Columns.Add("ConcealedWorks");
dt.Columns.Add("DrawingNumber");
dt.Columns.Add("ConcealedContentAndDiagram");
dt.Columns.Add("InspectionResults");
dt.Columns.Add("Remark");
dt.Columns.Add("PipelineCode");
dt.Columns.Add("PipelineLevel");
dt.Columns.Add("DesignPressure");
dt.Columns.Add("DesignTemperature");
dt.Columns.Add("OperatingTemperature");
dt.Columns.Add("Medium");
dt.Columns.Add("Material");
dt.Columns.Add("Specifications");
dt.Columns.Add("Length");
dt.Columns.Add("LayingMethod");
dt.Columns.Add("WeldsNum");
dt.Columns.Add("LosslessRatio");
dt.Columns.Add("VoltageResistantTestMedium");
dt.Columns.Add("VoltageResistantTestPressure");
dt.Columns.Add("VoltageResistantTestDate");
dt.Columns.Add("LeakageTestMedium");
dt.Columns.Add("LeakageTestPressure");
dt.Columns.Add("LeakageTestDate");
dt.Columns.Add("CleaningMethod");
dt.Columns.Add("CorrosionControlMethod");
dt.Columns.Add("InsulationMethod");
DataRow[] rows = tb.DefaultView.ToTable().Select();
int i = 0;
@@ -219,20 +235,52 @@ namespace FineUIPro.Web.JGZL
{
var newRow = dt.NewRow();
newRow["Num"] = (i + 1).ToString();
newRow["ConcealedWorks"] = row["ConcealedWorks"].ToString();
newRow["DrawingNumber"] = row["DrawingNumber"].ToString();
newRow["ConcealedContentAndDiagram"] = row["ConcealedContentAndDiagram"].ToString();
newRow["Remark"] = row["Remark"].ToString();
newRow["PipelineCode"] = BLL.HJGL_PW_IsoInfoService.GetIsoInfoByIsoInfoId(row["PipelineCode"].ToString()).ISO_IsoNo;
newRow["PipelineLevel"] = row["PipelineLevel"].ToString();
newRow["DesignPressure"] = row["DesignPressure"].ToString();
newRow["DesignTemperature"] = row["DesignTemperature"].ToString();
newRow["OperatingTemperature"] = row["OperatingTemperature"].ToString();
newRow["Medium"] = row["Medium"].ToString();
newRow["Material"] = row["Material"].ToString();
newRow["Specifications"] = row["Specifications"].ToString();
newRow["Length"] = row["Length"].ToString();
newRow["LayingMethod"] = row["LayingMethod"].ToString();
newRow["WeldsNum"] = row["WeldsNum"].ToString();
newRow["LosslessRatio"] = row["LosslessRatio"].ToString();
newRow["VoltageResistantTestMedium"] = row["VoltageResistantTestMedium"].ToString();
newRow["VoltageResistantTestPressure"] = row["VoltageResistantTestPressure"].ToString();
string VoltageResistantTestDate = string.Format("{0:yyyy.MM.dd}", row["VoltageResistantTestDate"]);
newRow["VoltageResistantTestDate"] = VoltageResistantTestDate;
newRow["LeakageTestMedium"] = row["LeakageTestMedium"].ToString();
newRow["LeakageTestPressure"] = row["LeakageTestPressure"].ToString();
string LeakageTestDate = string.Format("{0:yyyy.MM.dd}", row["LeakageTestDate"]);
newRow["LeakageTestDate"] = LeakageTestDate;
newRow["CleaningMethod"] = row["CleaningMethod"].ToString();
newRow["CorrosionControlMethod"] = row["CorrosionControlMethod"].ToString();
newRow["InsulationMethod"] = row["InsulationMethod"].ToString();
dt.Rows.Add(newRow);
i++;
}
BLL.Common.FastReportService.AddFastreportTable(dt);
string certificateCode = string.Empty;
string deliveryUnit = string.Empty;
string deliveryUnitCode = string.Empty;
string certificateId = rows[0]["CertificateId"].ToString();
var certificate = BLL.IndustrialPipelineInstallationQualityCertificateService.GetIndustrialPipelineInstallationQualityCertificateById(certificateId);
if (certificate!=null)
{
certificateCode = certificate.CertificateCode;
deliveryUnit=certificate.DeliveryUnit;
deliveryUnitCode = certificate.DeliveryUnitCode;
}
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName);
keyValuePairs.Add("CertificateCode", certificateCode);
keyValuePairs.Add("DeliveryUnit", deliveryUnit);
keyValuePairs.Add("DeliveryUnitCode", deliveryUnitCode);
BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs);
initTemplatePath = "File\\Fastreport\\JGZL\\工业管道安装汇总表.frx";
initTemplatePath = "File\\Fastreport\\JGZL\\压力管道安装汇总表.frx";
if (File.Exists(rootPath + initTemplatePath))
{
PageContext.RegisterStartupScript(WindowPrint.GetShowReference(String.Format("../common/ReportPrint/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath)));
@@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>编辑工业管道安装汇总表</title>
<title>编辑压力管道安装汇总表</title>
</head>
<body>
<form id="form1" runat="server">
@@ -26,85 +26,92 @@
<Rows>
<f:FormRow>
<Items>
<f:DropDownList runat="server" ID="drpCertificateCode" Label="质量证明书编号" LabelWidth="150px" EmptyText="-请选择-" AutoPostBack="true" OnSelectedIndexChanged="drpCertificateCode_SelectedIndexChanged" ShowRedStar="true" AutoSelectFirstItem="false" EnableEdit="true"></f:DropDownList>
<%--<f:TextBox ID="txtDrawingNumber" runat="server" Label="施工图号" LabelAlign="Right" LabelWidth="150px" MaxLength="20" Required="true" ShowRedStar="true"></f:TextBox>--%>
<f:DropDownList runat="server" ID="drpCertificateCode" Label="证明书编号" LabelWidth="170px" EmptyText="-请选择-" AutoPostBack="true" OnSelectedIndexChanged="drpCertificateCode_SelectedIndexChanged" ShowRedStar="true" AutoSelectFirstItem="false" EnableEdit="true"></f:DropDownList>
<%--<f:TextBox ID="txtDrawingNumber" runat="server" Label="施工图号" LabelAlign="Right" LabelWidth="170px" MaxLength="20" Required="true" ShowRedStar="true"></f:TextBox>--%>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtDeliveryUnit" runat="server" Label="交工单元名称" LabelAlign="Right" LabelWidth="150px" Readonly="true"></f:TextBox>
<f:TextBox ID="txtDeliveryUnitCode" runat="server" Label="交工单元编号" LabelAlign="Right" LabelWidth="150px" Readonly="true"></f:TextBox>
<f:TextBox ID="txtDeliveryUnit" runat="server" Label="交工单元名称" LabelAlign="Right" LabelWidth="170px" Readonly="true"></f:TextBox>
<f:TextBox ID="txtDeliveryUnitCode" runat="server" Label="交工单元编号" LabelAlign="Right" LabelWidth="170px" Readonly="true"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtPipelineCode" runat="server" Label="管道编号" LabelAlign="Right" LabelWidth="150px" MaxLength="50" Required="true" ShowRedStar="true"></f:TextBox>
<f:TextBox ID="txtPipelineLevel" runat="server" Label="管道级别" LabelAlign="Right" LabelWidth="150px" MaxLength="50" Required="true" ShowRedStar="true"></f:TextBox>
<f:DropDownList ID="drpPipelineCode" runat="server" Label="单线号" LabelAlign="Right" LabelWidth="170px" Required="true" ShowRedStar="true" AutoPostBack="true" OnSelectedIndexChanged="drpPipelineCode_SelectedIndexChanged"></f:DropDownList>
<%--<f:TextBox ID="txtPipelineCode" runat="server" Label="单线号" LabelAlign="Right" LabelWidth="170px" MaxLength="50" Required="true" ShowRedStar="true"></f:TextBox>--%>
<f:TextBox ID="txtPipelineLevel" runat="server" Label="管道级别" LabelAlign="Right" LabelWidth="170px" MaxLength="50" ></f:TextBox>
</Items>
</f:FormRow>
<%--<f:FormRow>
<Items>
<f:TextBox ID="txtPipelineStartPoint" runat="server" Label="起点" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
<f:TextBox ID="txtPipelineEndPoint" runat="server" Label="终点" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
</Items>
</f:FormRow>--%>
<f:FormRow>
<Items>
<f:TextBox ID="txtDesignPressure" runat="server" Label="设计压力(MPa)" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
<f:TextBox ID="txtDesignTemperature" runat="server" Label="设计温度(℃)" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtPipelineStartPoint" runat="server" Label="起点" LabelAlign="Right" LabelWidth="150px" MaxLength="50"></f:TextBox>
<f:TextBox ID="txtPipelineEndPoint" runat="server" Label="终点" LabelAlign="Right" LabelWidth="150px" MaxLength="50"></f:TextBox>
<f:TextBox ID="txtOperatingTemperature" runat="server" Label="操作温度(℃)" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
<f:TextBox ID="txtMedium" runat="server" Label="输送介质" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtDesignPressure" runat="server" Label="设计压力(MPa)" LabelAlign="Right" LabelWidth="150px" MaxLength="50"></f:TextBox>
<f:TextBox ID="txtDesignTemperature" runat="server" Label="设计温度(℃)" LabelAlign="Right" LabelWidth="150px" MaxLength="50"></f:TextBox>
<f:TextBox ID="txtMaterial" runat="server" Label="管道材质牌号及标准" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
<f:TextBox ID="txtSpecifications" runat="server" Label="管道规格" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtMedium" runat="server" Label="介质" LabelAlign="Right" LabelWidth="150px" MaxLength="50"></f:TextBox>
<f:TextBox ID="txtMaterial" runat="server" Label="材质" LabelAlign="Right" LabelWidth="150px" MaxLength="50"></f:TextBox>
<f:TextBox ID="txtLength" runat="server" Label="管道长度(m)" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
<f:TextBox ID="txtLayingMethod" runat="server" Label="铺设方式" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtSpecifications" runat="server" Label="规格(mm)" LabelAlign="Right" LabelWidth="150px" MaxLength="50"></f:TextBox>
<f:TextBox ID="txtLength" runat="server" Label="长度(m)" LabelAlign="Right" LabelWidth="150px" MaxLength="50"></f:TextBox>
<f:TextBox ID="txtWeldsNum" runat="server" Label="焊口数量" LabelAlign="Right" LabelWidth="170px" MaxLength="50" Readonly="true"></f:TextBox>
<f:TextBox ID="txtLosslessRatio" runat="server" Label="检测方法/比例(%)" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtLayingMethod" runat="server" Label="铺设方式" LabelAlign="Right" LabelWidth="150px" MaxLength="50"></f:TextBox>
<f:TextBox ID="txtWeldsNum" runat="server" Label="焊口数量" LabelAlign="Right" LabelWidth="150px" MaxLength="50"></f:TextBox>
<f:TextBox ID="txtVoltageResistantTestMedium" runat="server" Label="压力试验介质" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
<f:TextBox ID="txtVoltageResistantTestPressure" runat="server" Label="压力试验压力(MPa)" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtLosslessRatio" runat="server" Label="无损检测方法/比例(%)" LabelAlign="Right" LabelWidth="150px" MaxLength="50"></f:TextBox>
<f:TextBox ID="txtVoltageResistantTestMethod" runat="server" Label="耐压试验方法" LabelAlign="Right" LabelWidth="150px" MaxLength="50"></f:TextBox>
<f:DatePicker ID="txtVoltageResistantTestDate" runat="server" Label="压力试验日期" LabelAlign="Right" LabelWidth="170px"></f:DatePicker>
<f:TextBox ID="txtLeakageTestMedium" runat="server" Label="泄漏性试验介质" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtVoltageResistantTestMedium" runat="server" Label="耐压试验介质" LabelAlign="Right" LabelWidth="150px" MaxLength="50"></f:TextBox>
<f:TextBox ID="txtVoltageResistantTestPressure" runat="server" Label="耐压试验压力(MPa)" LabelAlign="Right" LabelWidth="150px" MaxLength="50"></f:TextBox>
<f:TextBox ID="txtLeakageTestPressure" runat="server" Label="泄露性试验压力(MPa)" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
<f:DatePicker ID="txtLeakageTestDate" runat="server" Label="泄露性试验日期" LabelAlign="Right" LabelWidth="170px"></f:DatePicker>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtLeakageTestMedium" runat="server" Label="泄露试验介质" LabelAlign="Right" LabelWidth="150px" MaxLength="50"></f:TextBox>
<f:TextBox ID="txtLeakageTestPressure" runat="server" Label="泄露试验压力(MPa)" LabelAlign="Right" LabelWidth="150px" MaxLength="50"></f:TextBox>
<f:TextBox ID="txtCleaningMethod" runat="server" Label="吹洗方法" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
<f:TextBox ID="txtCorrosionControlMethod" runat="server" Label="防腐方式" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtCleaningMethod" runat="server" Label="吹扫、清洗方法" LabelAlign="Right" LabelWidth="150px" MaxLength="50"></f:TextBox>
<f:TextBox ID="txtCorrosionControlMethod" runat="server" Label="腐蚀试验方式" LabelAlign="Right" LabelWidth="150px" MaxLength="50"></f:TextBox>
<f:TextBox ID="txtInsulationMethod" runat="server" Label="保温(绝热)方式" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
<f:Label ID="Label1" runat="server"></f:Label>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtInsulationMethod" runat="server" Label="保温(绝热)方式" LabelAlign="Right" LabelWidth="150px" MaxLength="50"></f:TextBox>
<%--<f:TextBox ID="TextBox2" runat="server" Label="耐压试验压力(MPa)" LabelAlign="Right" LabelWidth="150px" MaxLength="50"></f:TextBox>--%>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextArea ID="txtRemark" runat="server" Label="备注" LabelAlign="Right" LabelWidth="150px" MaxLength="500"></f:TextArea>
<f:TextArea ID="txtRemark" runat="server" Label="备注" LabelAlign="Right" LabelWidth="170px" MaxLength="500"></f:TextArea>
</Items>
</f:FormRow>
</Rows>
@@ -1,5 +1,6 @@
using BLL;
using FastReport;
using Model;
using Org.BouncyCastle.Crypto.Tls;
using Org.BouncyCastle.Ocsp;
using System;
@@ -71,6 +72,11 @@ namespace FineUIPro.Web.JGZL
{
//获取下拉选择项本项目下所有工业管道安装质量证明书信息
IndustrialPipelineInstallationQualityCertificateService.InitIndustrialPipelineInstallationQualityCertificateDownList(this.drpCertificateCode, this.ProjectId, false);
this.drpPipelineCode.DataTextField = "ISO_IsoNo";
this.drpPipelineCode.DataValueField = "ISO_ID";
this.drpPipelineCode.DataSource = BLL.HJGL_PW_IsoInfoService.GetIsoInfoByProjectId(this.ProjectId);
this.drpPipelineCode.DataBind();
Funs.FineUIPleaseSelect(this.drpPipelineCode);
}
if (!string.IsNullOrEmpty(this.SummaryId))
{
@@ -78,23 +84,33 @@ namespace FineUIPro.Web.JGZL
if (report != null)
{
this.ProjectId = report.ProjectId;
if (!string.IsNullOrWhiteSpace(this.ProjectId))
{
//获取下拉选择项本项目下所有工业管道安装质量证明书信息
IndustrialPipelineInstallationQualityCertificateService.InitIndustrialPipelineInstallationQualityCertificateDownList(this.drpCertificateCode, this.ProjectId, false);
this.drpCertificateCode.SelectedValue = report.CertificateId;
this.drpCertificateCode.Readonly = true;
}
var certificate = BLL.IndustrialPipelineInstallationQualityCertificateService.GetIndustrialPipelineInstallationQualityCertificateById(report.CertificateId);
this.txtDeliveryUnit.Text = certificate.DeliveryUnit;
this.txtDeliveryUnitCode.Text = certificate.DeliveryUnitCode;
IndustrialPipelineInstallationQualityCertificateService.InitIndustrialPipelineInstallationQualityCertificateDownList(this.drpCertificateCode, this.ProjectId, false);
this.drpPipelineCode.DataTextField = "ISO_IsoNo";
this.drpPipelineCode.DataValueField = "ISO_ID";
this.drpPipelineCode.DataSource = BLL.HJGL_PW_IsoInfoService.GetIsoInfoByProjectId(this.ProjectId);
this.drpPipelineCode.DataBind();
Funs.FineUIPleaseSelect(this.drpPipelineCode);
this.txtPipelineCode.Text = report.PipelineCode;
if (!string.IsNullOrEmpty(report.CertificateId))
{
this.drpCertificateCode.SelectedValue = report.CertificateId;
var certificate = BLL.IndustrialPipelineInstallationQualityCertificateService.GetIndustrialPipelineInstallationQualityCertificateById(report.CertificateId);
if (certificate != null)
{
this.txtDeliveryUnit.Text = certificate.DeliveryUnit;
this.txtDeliveryUnitCode.Text = certificate.DeliveryUnitCode;
}
}
if (!string.IsNullOrEmpty(report.PipelineCode))
{
this.drpPipelineCode.SelectedValue = report.PipelineCode;
}
this.txtPipelineLevel.Text = report.PipelineLevel;
this.txtPipelineStartPoint.Text = report.PipelineStartPoint;
this.txtPipelineEndPoint.Text = report.PipelineEndPoint;
//this.txtPipelineStartPoint.Text = report.PipelineStartPoint;
//this.txtPipelineEndPoint.Text = report.PipelineEndPoint;
this.txtDesignPressure.Text = report.DesignPressure;
this.txtDesignTemperature.Text = report.DesignTemperature;
this.txtOperatingTemperature.Text = report.OperatingTemperature;
this.txtMedium.Text = report.Medium;
this.txtMaterial.Text = report.Material;
this.txtSpecifications.Text = report.Specifications;
@@ -102,18 +118,19 @@ namespace FineUIPro.Web.JGZL
this.txtLayingMethod.Text = report.LayingMethod;
this.txtWeldsNum.Text = report.WeldsNum;
this.txtLosslessRatio.Text = report.LosslessRatio;
this.txtVoltageResistantTestMethod.Text = report.VoltageResistantTestMethod;
//this.txtVoltageResistantTestMethod.Text = report.VoltageResistantTestMethod;
this.txtVoltageResistantTestMedium.Text = report.VoltageResistantTestMedium;
this.txtVoltageResistantTestPressure.Text = report.VoltageResistantTestPressure;
this.txtVoltageResistantTestDate.Text = report.VoltageResistantTestDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.VoltageResistantTestDate) : "";
this.txtLeakageTestMedium.Text = report.LeakageTestMedium;
this.txtLeakageTestPressure.Text = report.LeakageTestPressure;
this.txtLeakageTestDate.Text = report.LeakageTestDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.LeakageTestDate) : "";
this.txtCleaningMethod.Text = report.CleaningMethod;
this.txtCorrosionControlMethod.Text = report.CorrosionControlMethod;
this.txtInsulationMethod.Text = report.InsulationMethod;
this.txtRemark.Text = report.Remark;
}
}
}
}
@@ -152,13 +169,25 @@ namespace FineUIPro.Web.JGZL
{
if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.JGZL_IndustrialPipelineInstallationSummaryMenuId, Const.BtnSave))
{
if (this.drpCertificateCode.SelectedValue == BLL.Const._Null || string.IsNullOrEmpty(this.drpCertificateCode.SelectedValue))
{
Alert.ShowInTop("请选择证明书编号!", MessageBoxIcon.Warning);
return;
}
if (this.drpPipelineCode.SelectedValue == BLL.Const._Null || string.IsNullOrEmpty(this.drpPipelineCode.SelectedValue))
{
Alert.ShowInTop("请选择单线图号!", MessageBoxIcon.Warning);
return;
}
Model.JGZL_IndustrialPipelineInstallationSummary newReport = new Model.JGZL_IndustrialPipelineInstallationSummary();
newReport.PipelineCode = this.txtPipelineCode.Text.Trim();
newReport.CertificateId = this.drpCertificateCode.SelectedValue;
newReport.PipelineCode = this.drpPipelineCode.SelectedValue;
newReport.PipelineLevel = this.txtPipelineLevel.Text.Trim();
newReport.PipelineStartPoint = this.txtPipelineStartPoint.Text.Trim();
newReport.PipelineEndPoint = this.txtPipelineEndPoint.Text.Trim();
//newReport.PipelineStartPoint = this.txtPipelineStartPoint.Text.Trim();
//newReport.PipelineEndPoint = this.txtPipelineEndPoint.Text.Trim();
newReport.DesignPressure = this.txtDesignPressure.Text.Trim();
newReport.DesignTemperature = this.txtDesignTemperature.Text.Trim();
newReport.OperatingTemperature = this.txtOperatingTemperature.Text.Trim();
newReport.Medium = this.txtMedium.Text.Trim();
newReport.Material = this.txtMaterial.Text.Trim();
newReport.Specifications = this.txtSpecifications.Text.Trim();
@@ -166,11 +195,13 @@ namespace FineUIPro.Web.JGZL
newReport.LayingMethod = this.txtLayingMethod.Text.Trim();
newReport.WeldsNum = this.txtWeldsNum.Text.Trim();
newReport.LosslessRatio = this.txtLosslessRatio.Text.Trim();
newReport.VoltageResistantTestMethod = this.txtVoltageResistantTestMethod.Text.Trim();
//newReport.VoltageResistantTestMethod = this.txtVoltageResistantTestMethod.Text.Trim();
newReport.VoltageResistantTestMedium = this.txtVoltageResistantTestMedium.Text.Trim();
newReport.VoltageResistantTestPressure = this.txtVoltageResistantTestPressure.Text.Trim();
newReport.VoltageResistantTestDate = Funs.GetNewDateTime(this.txtVoltageResistantTestDate.Text);
newReport.LeakageTestMedium = this.txtLeakageTestMedium.Text.Trim();
newReport.LeakageTestPressure = this.txtLeakageTestPressure.Text.Trim();
newReport.LeakageTestDate = Funs.GetNewDateTime(this.txtLeakageTestDate.Text);
newReport.CleaningMethod = this.txtCleaningMethod.Text.Trim();
newReport.CorrosionControlMethod = this.txtCorrosionControlMethod.Text.Trim();
newReport.InsulationMethod = this.txtInsulationMethod.Text.Trim();
@@ -179,12 +210,12 @@ namespace FineUIPro.Web.JGZL
if (!string.IsNullOrEmpty(this.SummaryId))
{
newReport.SummaryId = this.SummaryId;
newReport.CertificateId = this.drpCertificateCode.SelectedValue;
//newReport.CertificateId = this.drpCertificateCode.SelectedValue;
BLL.IndustrialPipelineInstallationSummaryService.UpdateIndustrialPipelineInstallationSummary(newReport);
}
else
{
newReport.CertificateId = this.drpCertificateCode.SelectedValue;
//newReport.CertificateId = this.drpCertificateCode.SelectedValue;
newReport.ProjectId = this.ProjectId;
newReport.CompileMan = this.CurrUser.UserId;
newReport.CompileDate = DateTime.Now;
@@ -203,6 +234,17 @@ namespace FineUIPro.Web.JGZL
return;
}
}
#endregion
#endregion
protected void drpPipelineCode_SelectedIndexChanged(object sender, EventArgs e)
{
SGGLDB db = Funs.DB;
this.txtWeldsNum.Text = string.Empty;
if (this.drpPipelineCode.SelectedValue!=BLL.Const._Null&&!string.IsNullOrEmpty(this.drpPipelineCode.SelectedValue))
{
int jointCount = BLL.HJGL_PW_JointInfoService.GetJointCountByIsoId(this.drpPipelineCode.SelectedValue);
this.txtWeldsNum.Text = jointCount.ToString();
}
}
}
}
@@ -96,13 +96,13 @@ namespace FineUIPro.Web.JGZL
protected global::FineUIPro.TextBox txtDeliveryUnitCode;
/// <summary>
/// txtPipelineCode 控件。
/// drpPipelineCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtPipelineCode;
protected global::FineUIPro.DropDownList drpPipelineCode;
/// <summary>
/// txtPipelineLevel 控件。
@@ -113,24 +113,6 @@ namespace FineUIPro.Web.JGZL
/// </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>
@@ -149,6 +131,15 @@ namespace FineUIPro.Web.JGZL
/// </remarks>
protected global::FineUIPro.TextBox txtDesignTemperature;
/// <summary>
/// txtOperatingTemperature 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtOperatingTemperature;
/// <summary>
/// txtMedium 控件。
/// </summary>
@@ -212,15 +203,6 @@ namespace FineUIPro.Web.JGZL
/// </remarks>
protected global::FineUIPro.TextBox txtLosslessRatio;
/// <summary>
/// txtVoltageResistantTestMethod 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtVoltageResistantTestMethod;
/// <summary>
/// txtVoltageResistantTestMedium 控件。
/// </summary>
@@ -239,6 +221,15 @@ namespace FineUIPro.Web.JGZL
/// </remarks>
protected global::FineUIPro.TextBox txtVoltageResistantTestPressure;
/// <summary>
/// txtVoltageResistantTestDate 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DatePicker txtVoltageResistantTestDate;
/// <summary>
/// txtLeakageTestMedium 控件。
/// </summary>
@@ -257,6 +248,15 @@ namespace FineUIPro.Web.JGZL
/// </remarks>
protected global::FineUIPro.TextBox txtLeakageTestPressure;
/// <summary>
/// txtLeakageTestDate 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DatePicker txtLeakageTestDate;
/// <summary>
/// txtCleaningMethod 控件。
/// </summary>
@@ -284,6 +284,15 @@ namespace FineUIPro.Web.JGZL
/// </remarks>
protected global::FineUIPro.TextBox txtInsulationMethod;
/// <summary>
/// Label1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label Label1;
/// <summary>
/// txtRemark 控件。
/// </summary>
@@ -216,7 +216,6 @@ namespace FineUIPro.Web.JGZL
dt.Columns.Add("ReInspectionReportCode");
dt.Columns.Add("ReceivingUnit");
dt.Columns.Add("DrawNum");
dt.Columns.Add("Remark");
DataRow[] rows = tb.DefaultView.ToTable().Select();
int i = 0;
@@ -228,13 +227,13 @@ namespace FineUIPro.Web.JGZL
newRow["MaterialCode"] = row["MaterialCode"].ToString();
newRow["SerialCode"] = row["SerialCode"].ToString();
newRow["Material"] = row["Material"].ToString();
newRow["Specification"] = row["Specification"].ToString();
newRow["Manufacturer"] = row["Manufacturer"].ToString();
newRow["Unit"] = row["Unit"].ToString();
newRow["TotalNum"] = row["TotalNum"].ToString();
newRow["ReInspectionReportCode"] = row["ReInspectionReportCode"].ToString();
newRow["ReceivingUnit"] = row["ReceivingUnit"].ToString();
newRow["DrawNum"] = row["DrawNum"].ToString();
newRow["Remark"] = row["Remark"].ToString();
dt.Rows.Add(newRow);
i++;
}
@@ -26,20 +26,20 @@
<Rows>
<f:FormRow>
<Items>
<f:TextBox ID="txtMaterialCode" runat="server" Label="编号" LabelAlign="Right" LabelWidth="150px" MaxLength="20" Required="true" ShowRedStar="true"></f:TextBox>
<f:TextBox ID="txtMaterialName" runat="server" Label="名称" LabelAlign="Right" LabelWidth="150px" MaxLength="50" Required="true" ShowRedStar="true"></f:TextBox>
<f:TextBox ID="txtMaterialName" runat="server" Label="材料名称" LabelAlign="Right" LabelWidth="150px" MaxLength="50" Required="true" ShowRedStar="true"></f:TextBox>
<f:TextBox ID="txtMaterialCode" runat="server" Label="证件自编号" LabelAlign="Right" LabelWidth="150px" MaxLength="50" Required="true" ShowRedStar="true"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtSerialCode" runat="server" Label="证件出厂编号" LabelAlign="Right" LabelWidth="150px" MaxLength="50" Required="true" ShowRedStar="true"></f:TextBox>
<f:TextBox ID="txtManufacturer" runat="server" Label="制造厂家" LabelAlign="Right" LabelWidth="150px" MaxLength="50" Required="true" ShowRedStar="true"></f:TextBox>
<f:TextBox ID="txtSerialCode" runat="server" Label="证件出厂编号" LabelAlign="Right" LabelWidth="150px" MaxLength="50"></f:TextBox>
<f:TextBox ID="txtManufacturer" runat="server" Label="制造厂家" LabelAlign="Right" LabelWidth="150px" MaxLength="50"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtMaterial" runat="server" Label="材质" LabelAlign="Right" LabelWidth="150px" MaxLength="50"></f:TextBox>
<f:TextBox ID="txtSpecification" runat="server" Label="规格型号" LabelAlign="Right" LabelWidth="150px" MaxLength="50" Required="true" ShowRedStar="true"></f:TextBox>
<f:TextBox ID="txtSpecification" runat="server" Label="规格型号" LabelAlign="Right" LabelWidth="150px" MaxLength="50"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
@@ -53,14 +53,15 @@
<f:FormRow>
<Items>
<f:TextBox ID="txtReInspectionReportCode" runat="server" Label="复验报告编号" LabelAlign="Right" LabelWidth="150px" MaxLength="50"></f:TextBox>
<f:TextBox ID="txtReceivingUnit" runat="server" Label="领用单位" LabelAlign="Right" LabelWidth="150px"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtReceivingUnit" runat="server" Label="领用单位" LabelAlign="Right" LabelWidth="150px"></f:TextBox>
<f:NumberBox ID="txtDrawNum" runat="server" Label="领用量" LabelWidth="150px" LabelAlign="Right" NoDecimal="false"
NoNegative="true" EmptyText="0">
</f:NumberBox>
<f:Label ID="Label1" runat="server"></f:Label>
</Items>
</f:FormRow>
<f:FormRow>
@@ -68,15 +68,6 @@ namespace FineUIPro.Web.JGZL
/// </remarks>
protected global::FineUIPro.Button btnSave;
/// <summary>
/// txtMaterialCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtMaterialCode;
/// <summary>
/// txtMaterialName 控件。
/// </summary>
@@ -86,6 +77,15 @@ namespace FineUIPro.Web.JGZL
/// </remarks>
protected global::FineUIPro.TextBox txtMaterialName;
/// <summary>
/// txtMaterialCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtMaterialCode;
/// <summary>
/// txtSerialCode 控件。
/// </summary>
@@ -167,6 +167,15 @@ namespace FineUIPro.Web.JGZL
/// </remarks>
protected global::FineUIPro.NumberBox txtDrawNum;
/// <summary>
/// Label1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label Label1;
/// <summary>
/// txtRemark 控件。
/// </summary>
@@ -195,41 +195,26 @@ namespace FineUIPro.Web.JGZL
string rootPath = Server.MapPath("~/");
BLL.Common.FastReportService.ResetData();
string strSql = @"SELECT * from JGZL_PipelineInstallationInspectionRecord where ProjectId = @ProjectId order by DrawingNumber desc";
List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@ProjectId", projectId));
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
DataTable dt = new DataTable();
dt.TableName = "Data";
dt.Columns.Add("Num");
dt.Columns.Add("ConcealedWorks");
dt.Columns.Add("DrawingNumber");
dt.Columns.Add("ConcealedContentAndDiagram");
dt.Columns.Add("InspectionResults");
dt.Columns.Add("Remark");
DataRow[] rows = tb.DefaultView.ToTable().Select();
int i = 0;
foreach (var row in rows)
if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
{
var newRow = dt.NewRow();
newRow["Num"] = (i + 1).ToString();
newRow["ConcealedWorks"] = row["ConcealedWorks"].ToString();
newRow["DrawingNumber"] = row["DrawingNumber"].ToString();
newRow["ConcealedContentAndDiagram"] = row["ConcealedContentAndDiagram"].ToString();
newRow["Remark"] = row["Remark"].ToString();
dt.Rows.Add(newRow);
i++;
var report = BLL.PipelineInstallationInspectionRecordService.GetPipelineInstallationInspectionRecordById(this.Grid1.SelectedRowID);
if (report != null)
{
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName);
keyValuePairs.Add("ProfessionalEngineering", report.ProfessionalEngineering);
keyValuePairs.Add("DrawingNumber", report.DrawingNumber);
keyValuePairs.Add("InspectionItems", report.InspectionItems);
keyValuePairs.Add("InspectionResults", report.InspectionResults);
BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs);
}
}
BLL.Common.FastReportService.AddFastreportTable(dt);
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName);
BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs);
initTemplatePath = "File\\Fastreport\\JGZL\\隐蔽工程验收记录.frx";
else
{
Alert.ShowInTop("请选择一条记录!", 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)));
@@ -61,6 +61,14 @@ namespace FineUIPro.Web.JGZL
this.txtRemark.Text = report.Remark;
}
}
else
{
this.txtProfessionalEngineering.Text = "管道安装工程";
if (!string.IsNullOrEmpty(this.ProjectId))
{
this.txtDrawingNumber.Text = BLL.Base_ProjectService.GetProjectByProjectId(this.ProjectId).ProjectCode;
}
}
}
}
#endregion