20260210 压力管道安装汇总表
This commit is contained in:
parent
9c93de0cc6
commit
66c55899f1
|
|
@ -19,6 +19,11 @@ namespace BLL
|
|||
return Funs.DB.JGZL_IndustrialPipelineInstallationSummary.FirstOrDefault(e => e.SummaryId == Id);
|
||||
}
|
||||
|
||||
public static Model.JGZL_IndustrialPipelineInstallationSummary GetIndustrialPipelineInstallationSummaryByPipelineCode(string pipelineCode)
|
||||
{
|
||||
return Funs.DB.JGZL_IndustrialPipelineInstallationSummary.FirstOrDefault(e => e.PipelineCode == pipelineCode);
|
||||
}
|
||||
|
||||
public static List<Model.JGZL_IndustrialPipelineInstallationSummary> GetIndustrialPipelineInstallationSummaryByProjectId(string projectId)
|
||||
{
|
||||
return (from x in Funs.DB.JGZL_IndustrialPipelineInstallationSummary where x.ProjectId == projectId select x).ToList();
|
||||
|
|
|
|||
|
|
@ -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/10/2026 14:44:10" ReportInfo.CreatorVersion="2017.1.16.0">
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="01/26/2026 11:18:50" ReportInfo.Modified="02/10/2026 16:28:07" ReportInfo.CreatorVersion="2017.1.16.0">
|
||||
<ScriptText>using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
|
@ -42,7 +42,7 @@ namespace FastReport
|
|||
}
|
||||
</ScriptText>
|
||||
<Dictionary>
|
||||
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QF0vxnu5e02+t8IjlGkC6kBg==">
|
||||
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QFUG9g69GfVA9m0SQU5+zU8g==">
|
||||
<TableDataSource Name="Data" DataType="System.Int32" PropName="Attach_Image" Enabled="true" TableName="Data">
|
||||
<Column Name="Num" DataType="System.String" PropName="attach_image_id"/>
|
||||
<Column Name="PipelineCode" DataType="System.String" PropName="image_series"/>
|
||||
|
|
|
|||
|
|
@ -10,8 +10,6 @@
|
|||
<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"
|
||||
|
|
@ -39,6 +37,7 @@
|
|||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Right">
|
||||
<Items>
|
||||
<f:TextBox ID="txtIsoNoS" runat="server" Label="管道编号" LabelAlign="Right" AutoPostBack="true" OnTextChanged="TextBox_TextChanged" EmptyText="输入查询条件"></f:TextBox>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||
</f:ToolbarFill>
|
||||
<f:Button ID="btnAdd" runat="server" Icon="Add" Text="增加" OnClick="btnAdd_Click"></f:Button>
|
||||
|
|
@ -61,6 +60,7 @@
|
|||
<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>
|
||||
<f:ToolbarFill ID="ToolbarFill2" runat="server"></f:ToolbarFill>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
|
|
@ -74,7 +74,7 @@
|
|||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="管道级别" ColumnID="PipelineLevel" DataField="PipelineLevel" SortField="PipelineLevel"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="160px">
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="90px">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtPipelineLevel" runat="server"></f:TextBox>
|
||||
</Editor>
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ using Newtonsoft.Json.Linq;
|
|||
using System.Web.Services;
|
||||
using Org.BouncyCastle.Asn1.IsisMtt;
|
||||
using Model;
|
||||
using static System.Windows.Forms.VisualStyles.VisualStyleElement;
|
||||
|
||||
namespace FineUIPro.Web.JGZL
|
||||
{
|
||||
|
|
@ -98,64 +99,58 @@ namespace FineUIPro.Web.JGZL
|
|||
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();
|
||||
}
|
||||
DataIsoInfo();
|
||||
BindGrid();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
private void DataIsoInfo()
|
||||
{
|
||||
var isoInfo = BLL.HJGL_PW_IsoInfoService.GetIsoInfoByProjectId(this.tvControlItem.SelectedNodeID);
|
||||
foreach (var item in isoInfo)
|
||||
{
|
||||
var summary = BLL.IndustrialPipelineInstallationSummaryService.GetIndustrialPipelineInstallationSummaryByPipelineCode(item.ISO_IsoNo);
|
||||
if (summary == null)
|
||||
{
|
||||
Model.JGZL_IndustrialPipelineInstallationSummary newSummary = new JGZL_IndustrialPipelineInstallationSummary();
|
||||
newSummary.SummaryId = SQLHelper.GetNewID(typeof(Model.JGZL_IndustrialPipelineInstallationSummary));
|
||||
newSummary.ProjectId = this.tvControlItem.SelectedNodeID;
|
||||
newSummary.CertificateId = this.drpCertificateCode.SelectedValue;
|
||||
newSummary.PipelineCode = item.ISO_IsoNo;
|
||||
if (!string.IsNullOrEmpty(item.ISC_ID))
|
||||
{
|
||||
newSummary.PipelineLevel = BLL.HJGL_PipingClassService.GetPipingClassByPipingClassId(item.ISC_ID).ISC_IsoName;
|
||||
}
|
||||
newSummary.DesignPressure = item.ISO_DesignPress.ToString();
|
||||
newSummary.DesignTemperature = item.ISO_DesignTemperature.ToString();
|
||||
if (!string.IsNullOrEmpty(item.SER_ID))
|
||||
{
|
||||
newSummary.Medium = BLL.HJGL_MediumService.GetServiceBySERID(item.SER_ID).SER_Name;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(item.STE_ID))
|
||||
{
|
||||
newSummary.Material = BLL.HJGL_MaterialService.GetSteelBySteID(item.STE_ID).STE_Code;
|
||||
}
|
||||
var jointInfo = (from x in Funs.DB.HJGL_PW_JointInfo where x.ISO_ID == item.ISO_ID select x).FirstOrDefault();
|
||||
if (jointInfo != null)
|
||||
{
|
||||
newSummary.Specifications = jointInfo.JOT_JointDesc;
|
||||
}
|
||||
newSummary.Length = item.PipeLineLength.ToString();
|
||||
newSummary.WeldsNum = BLL.HJGL_PW_JointInfoService.GetJointCountByIsoId(item.ISO_ID).ToString();
|
||||
if (!string.IsNullOrEmpty(item.Joty_B_Rate))
|
||||
{
|
||||
newSummary.LosslessRatio = HJGL_DetectionService.GetNDTRateByNDTRID(item.Joty_B_Rate).NDTR_Name;//无损检测比例
|
||||
}
|
||||
newSummary.VoltageResistantTestMethod = "水压";//耐压试验方法
|
||||
newSummary.VoltageResistantTestMedium = "水";//耐压试验介质
|
||||
newSummary.CleaningMethod = "压缩空气吹扫";//吹扫、清洗方法
|
||||
BLL.IndustrialPipelineInstallationSummaryService.AddIndustrialPipelineInstallationSummary(newSummary);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#region 加载树项目
|
||||
/// <summary>
|
||||
/// 加载树
|
||||
|
|
@ -199,6 +194,7 @@ namespace FineUIPro.Web.JGZL
|
|||
{
|
||||
if (this.tvControlItem.SelectedNodeID != "0")
|
||||
{
|
||||
DataIsoInfo();
|
||||
this.BindGrid();
|
||||
}
|
||||
}
|
||||
|
|
@ -219,6 +215,11 @@ namespace FineUIPro.Web.JGZL
|
|||
strSql += " AND ProjectId = @ProjectId";
|
||||
listStr.Add(new SqlParameter("@ProjectId", this.tvControlItem.SelectedNodeID));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(this.txtIsoNoS.Text))
|
||||
{
|
||||
strSql += " AND PipelineCode like @PipelineCode";
|
||||
listStr.Add(new SqlParameter("@PipelineCode", "%" + this.txtIsoNoS.Text + "%"));
|
||||
}
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
// 2.获取当前分页数据
|
||||
|
|
@ -278,6 +279,7 @@ namespace FineUIPro.Web.JGZL
|
|||
{
|
||||
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
|
||||
this.InitTreeMenu();
|
||||
DataIsoInfo();
|
||||
BindGrid();
|
||||
}
|
||||
|
||||
|
|
@ -311,95 +313,107 @@ namespace FineUIPro.Web.JGZL
|
|||
string strSql = @"SELECT * from JGZL_IndustrialPipelineInstallationSummary where ProjectId = @ProjectId ";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
listStr.Add(new SqlParameter("@ProjectId", projectId));
|
||||
if (!string.IsNullOrEmpty(this.txtIsoNoS.Text))
|
||||
{
|
||||
strSql += " And PipelineCode like @pipeLineCode";
|
||||
listStr.Add(new SqlParameter("@pipeLineCode", "%" + this.txtIsoNoS.Text + "%"));
|
||||
}
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
|
||||
DataTable dt = new DataTable();
|
||||
dt.TableName = "Data";
|
||||
dt.Columns.Add("Num");
|
||||
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");
|
||||
dt.Columns.Add("PipelineStartPoint");
|
||||
dt.Columns.Add("PipelineEndPoint");
|
||||
dt.Columns.Add("Remark");
|
||||
|
||||
DataRow[] rows = tb.DefaultView.ToTable().Select();
|
||||
int i = 0;
|
||||
foreach (var row in rows)
|
||||
if (tb.Rows.Count > 0)
|
||||
{
|
||||
var newRow = dt.NewRow();
|
||||
newRow["Num"] = (i + 1).ToString();
|
||||
newRow["PipelineCode"] = row["PipelineCode"].ToString();
|
||||
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();
|
||||
newRow["PipelineStartPoint"] = row["PipelineStartPoint"].ToString();
|
||||
newRow["PipelineEndPoint"] = row["PipelineEndPoint"].ToString();
|
||||
newRow["Remark"] = row["Remark"].ToString();
|
||||
dt.Rows.Add(newRow);
|
||||
i++;
|
||||
DataTable dt = new DataTable();
|
||||
dt.TableName = "Data";
|
||||
dt.Columns.Add("Num");
|
||||
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");
|
||||
dt.Columns.Add("PipelineStartPoint");
|
||||
dt.Columns.Add("PipelineEndPoint");
|
||||
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["PipelineCode"] = row["PipelineCode"].ToString();
|
||||
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();
|
||||
newRow["PipelineStartPoint"] = row["PipelineStartPoint"].ToString();
|
||||
newRow["PipelineEndPoint"] = row["PipelineEndPoint"].ToString();
|
||||
newRow["Remark"] = row["Remark"].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("CertificateCode", certificateCode);
|
||||
keyValuePairs.Add("DeliveryUnit", deliveryUnit);
|
||||
keyValuePairs.Add("DeliveryUnitCode", deliveryUnitCode);
|
||||
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);
|
||||
|
||||
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)
|
||||
else
|
||||
{
|
||||
certificateCode = certificate.CertificateCode;
|
||||
deliveryUnit = certificate.DeliveryUnit;
|
||||
deliveryUnitCode = certificate.DeliveryUnitCode;
|
||||
}
|
||||
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
|
||||
keyValuePairs.Add("CertificateCode", certificateCode);
|
||||
keyValuePairs.Add("DeliveryUnit", deliveryUnit);
|
||||
keyValuePairs.Add("DeliveryUnitCode", deliveryUnitCode);
|
||||
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)));
|
||||
Alert.ShowInTop("没有要打印的数据!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
|||
|
|
@ -32,15 +32,6 @@ 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>
|
||||
|
|
@ -104,6 +95,15 @@ namespace FineUIPro.Web.JGZL
|
|||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar2;
|
||||
|
||||
/// <summary>
|
||||
/// txtIsoNoS 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtIsoNoS;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
|
|
@ -185,6 +185,15 @@ namespace FineUIPro.Web.JGZL
|
|||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtDeliveryUnitCode;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill2;
|
||||
|
||||
/// <summary>
|
||||
/// txtIsoNo 控件。
|
||||
/// </summary>
|
||||
|
|
|
|||
Loading…
Reference in New Issue