diff --git a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj
index eeb9fc5..ef67142 100644
--- a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj
+++ b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj
@@ -108,6 +108,9 @@
..\packages\NPOI.2.5.5\lib\net45\NPOI.OpenXmlFormats.dll
+
+ ..\packages\Spire.PDF.12.2.6\lib\net40\Spire.Pdf.dll
+
@@ -1082,7 +1085,10 @@
+
+
+
@@ -5590,6 +5596,20 @@
JointIn.aspx
+
+ PipelineGrid.aspx
+ ASPXCodeBehind
+
+
+ PipelineGrid.aspx
+
+
+ PipeLineInAuto.aspx
+ ASPXCodeBehind
+
+
+ PipeLineInAuto.aspx
+
PipeLineIn.aspx
ASPXCodeBehind
@@ -5597,6 +5617,13 @@
PipeLineIn.aspx
+
+ PipelineInEdit.aspx
+ ASPXCodeBehind
+
+
+ PipelineInEdit.aspx
+
ShowErr.aspx
ASPXCodeBehind
@@ -8183,6 +8210,7 @@
+
diff --git a/HJGL_DS/FineUIPro.Web/HJGL/DataIn/PipeLineIn.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/HJGL/DataIn/PipeLineIn.aspx.designer.cs
index 02cfa9b..2242f43 100644
--- a/HJGL_DS/FineUIPro.Web/HJGL/DataIn/PipeLineIn.aspx.designer.cs
+++ b/HJGL_DS/FineUIPro.Web/HJGL/DataIn/PipeLineIn.aspx.designer.cs
@@ -7,11 +7,13 @@
// 自动生成>
//------------------------------------------------------------------------------
-namespace FineUIPro.Web.HJGL.DataIn {
-
-
- public partial class PipeLineIn {
-
+namespace FineUIPro.Web.HJGL.DataIn
+{
+
+
+ public partial class PipeLineIn
+ {
+
///
/// Head1 控件。
///
@@ -20,7 +22,7 @@ namespace FineUIPro.Web.HJGL.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::System.Web.UI.HtmlControls.HtmlHead Head1;
-
+
///
/// form1 控件。
///
@@ -29,7 +31,7 @@ namespace FineUIPro.Web.HJGL.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
-
+
///
/// PageManager1 控件。
///
@@ -38,7 +40,7 @@ namespace FineUIPro.Web.HJGL.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.PageManager PageManager1;
-
+
///
/// Panel1 控件。
///
@@ -47,7 +49,7 @@ namespace FineUIPro.Web.HJGL.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Panel Panel1;
-
+
///
/// panelCenterRegion 控件。
///
@@ -56,7 +58,7 @@ namespace FineUIPro.Web.HJGL.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Panel panelCenterRegion;
-
+
///
/// Toolbar2 控件。
///
@@ -65,7 +67,7 @@ namespace FineUIPro.Web.HJGL.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Toolbar Toolbar2;
-
+
///
/// FileExcel 控件。
///
@@ -74,7 +76,7 @@ namespace FineUIPro.Web.HJGL.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.FileUpload FileExcel;
-
+
///
/// btnAudit 控件。
///
@@ -83,7 +85,7 @@ namespace FineUIPro.Web.HJGL.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnAudit;
-
+
///
/// imgbtnImport 控件。
///
@@ -92,7 +94,7 @@ namespace FineUIPro.Web.HJGL.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button imgbtnImport;
-
+
///
/// ToolbarFill1 控件。
///
@@ -101,7 +103,7 @@ namespace FineUIPro.Web.HJGL.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.ToolbarFill ToolbarFill1;
-
+
///
/// imgbtnUpload 控件。
///
@@ -110,7 +112,7 @@ namespace FineUIPro.Web.HJGL.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button imgbtnUpload;
-
+
///
/// hdFileName 控件。
///
@@ -119,7 +121,7 @@ namespace FineUIPro.Web.HJGL.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.HiddenField hdFileName;
-
+
///
/// Grid1 控件。
///
@@ -128,7 +130,7 @@ namespace FineUIPro.Web.HJGL.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Grid Grid1;
-
+
///
/// ToolbarSeparator1 控件。
///
@@ -137,7 +139,7 @@ namespace FineUIPro.Web.HJGL.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
-
+
///
/// ToolbarText1 控件。
///
@@ -146,7 +148,7 @@ namespace FineUIPro.Web.HJGL.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.ToolbarText ToolbarText1;
-
+
///
/// ddlPageSize 控件。
///
@@ -155,7 +157,7 @@ namespace FineUIPro.Web.HJGL.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.DropDownList ddlPageSize;
-
+
///
/// Window1 控件。
///
@@ -164,7 +166,7 @@ namespace FineUIPro.Web.HJGL.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Window Window1;
-
+
///
/// Menu1 控件。
///
@@ -173,7 +175,7 @@ namespace FineUIPro.Web.HJGL.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Menu Menu1;
-
+
///
/// btnMenuDelete 控件。
///
diff --git a/HJGL_DS/FineUIPro.Web/HJGL/DataIn/PipeLineInAuto.aspx b/HJGL_DS/FineUIPro.Web/HJGL/DataIn/PipeLineInAuto.aspx
new file mode 100644
index 0000000..79a8959
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/HJGL/DataIn/PipeLineInAuto.aspx
@@ -0,0 +1,35 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PipeLineInAuto.aspx.cs" Inherits="FineUIPro.Web.HJGL.DataIn.PipeLineInAuto" %>
+
+
+
+
+
+
+ 管线导入
+
+
+
+
+
+
+
diff --git a/HJGL_DS/FineUIPro.Web/HJGL/DataIn/PipeLineInAuto.aspx.cs b/HJGL_DS/FineUIPro.Web/HJGL/DataIn/PipeLineInAuto.aspx.cs
new file mode 100644
index 0000000..d3a8d53
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/HJGL/DataIn/PipeLineInAuto.aspx.cs
@@ -0,0 +1,88 @@
+using Aspose.Words;
+
+using BLL;
+using BLL.Common;
+using NPOI.SS.Formula.Functions;
+using Spire.Pdf;
+using Spire.Pdf.Utilities;
+
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Data.OleDb;
+using System.Data.SqlClient;
+using System.IO;
+using System.Linq;
+using System.Net;
+using System.Text;
+using System.Threading;
+using System.Web.UI.DataVisualization.Charting;
+
+namespace FineUIPro.Web.HJGL.DataIn
+{
+ public partial class PipeLineInAuto : PageBase
+ {
+ #region 加载
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ }
+ }
+ #endregion
+
+ #region 文件上传
+ ///
+ /// 文件上传
+ ///
+ ///
+ ///
+ protected void imgbtnImport_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (this.FileExcel.HasFile == false)
+ {
+ Response.Write(" ");
+
+ return;
+ }
+ string IsXls = Path.GetExtension(FileExcel.FileName).ToString().Trim().ToLower();
+ if (IsXls != ".pdf")
+ {
+ Response.Write("\" ");
+ return;
+ }
+ string rootPath = Server.MapPath("~/");
+ string initFullPath = rootPath + Const.ExcelUrl;
+ if (!Directory.Exists(initFullPath))
+ {
+ Directory.CreateDirectory(initFullPath);
+ }
+ string fileUrl = initFullPath + BLL.Funs.GetNewFileName() + IsXls;
+ this.FileExcel.PostedFile.SaveAs(fileUrl);
+ if (ckbSkipFirst.Checked)
+ {
+ RegionPanel1.IFrameUrl = "./PipelineGrid.aspx?ckbSkipFirst=" + 1 + "&&fileUrl=" + fileUrl;
+ }
+ else
+ {
+ RegionPanel1.IFrameUrl = "./PipelineGrid.aspx?ckbSkipFirst=" + 0 + "&&fileUrl=" + fileUrl;
+
+ }
+ }
+ catch (Exception ex)
+ {
+ ShowNotify(ex.Message, MessageBoxIcon.Warning);
+ return;
+ }
+ }
+ #endregion
+
+ }
+}
\ No newline at end of file
diff --git a/HJGL_DS/FineUIPro.Web/HJGL/DataIn/PipeLineInAuto.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/HJGL/DataIn/PipeLineInAuto.aspx.designer.cs
new file mode 100644
index 0000000..a06a8b5
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/HJGL/DataIn/PipeLineInAuto.aspx.designer.cs
@@ -0,0 +1,89 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.HJGL.DataIn
+{
+
+
+ public partial class PipeLineInAuto
+ {
+
+ ///
+ /// form1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// PageManager1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.PageManager PageManager1;
+
+ ///
+ /// RegionPanel1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Panel RegionPanel1;
+
+ ///
+ /// Toolbar1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar1;
+
+ ///
+ /// hdId 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.HiddenField hdId;
+
+ ///
+ /// ckbSkipFirst 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.CheckBox ckbSkipFirst;
+
+ ///
+ /// FileExcel 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.FileUpload FileExcel;
+
+ ///
+ /// imgbtnImport 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button imgbtnImport;
+ }
+}
diff --git a/HJGL_DS/FineUIPro.Web/HJGL/DataIn/PipelineGrid.aspx b/HJGL_DS/FineUIPro.Web/HJGL/DataIn/PipelineGrid.aspx
new file mode 100644
index 0000000..12c7ced
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/HJGL/DataIn/PipelineGrid.aspx
@@ -0,0 +1,177 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PipelineGrid.aspx.cs" Inherits="FineUIPro.Web.HJGL.DataIn.PipelineGrid" %>
+
+
+
+
+
+
+ PDF导入
+
+
+
+
+
+
+
+
+
+
diff --git a/HJGL_DS/FineUIPro.Web/HJGL/DataIn/PipelineGrid.aspx.cs b/HJGL_DS/FineUIPro.Web/HJGL/DataIn/PipelineGrid.aspx.cs
new file mode 100644
index 0000000..f70041f
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/HJGL/DataIn/PipelineGrid.aspx.cs
@@ -0,0 +1,770 @@
+using BLL;
+using FineUIPro.Web.HJGL.WeldingManage;
+using FineUIPro.Web.HJGLServer.BaseInfo;
+using Model;
+using Newtonsoft.Json.Linq;
+using Org.BouncyCastle.Asn1.Tsp;
+using Spire.Pdf;
+using Spire.Pdf.Utilities;
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Data.SqlClient;
+using System.IO;
+using System.Linq;
+using System.Net;
+using System.Text;
+
+namespace FineUIPro.Web.HJGL.DataIn
+{
+ public partial class PipelineGrid : PageBase
+ {
+ public string fileUrl
+ {
+ get
+ {
+ return (string)ViewState["fileUrl"];
+ }
+ set
+ {
+ ViewState["fileUrl"] = value;
+ }
+ }
+ public string ckbSkipFirst
+ {
+ get
+ {
+ return (string)ViewState["ckbSkipFirst"];
+ }
+ set
+ {
+ ViewState["ckbSkipFirst"] = value;
+ }
+ }
+ private string IsPDMS
+ {
+ get
+ {
+ return (string)ViewState["IsPDMS"];
+ }
+ set
+ {
+ ViewState["IsPDMS"] = value;
+ }
+ }
+ public DataSet set
+ {
+ get
+ {
+ return (DataSet)ViewState["set"];
+ }
+ set
+ {
+ ViewState["set"] = value;
+ }
+ }
+
+ public DataSet setAfterProcess
+ {
+ get
+ {
+ return (DataSet)ViewState["setAfterProcess"];
+ }
+ set
+ {
+ ViewState["setAfterProcess"] = value;
+ }
+ }
+ public List isoList
+ {
+ get
+ {
+ return (List)Session["isoList"];
+ }
+ set
+ {
+ Session["isoList"] = value;
+ }
+ }
+
+ #region 加载
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ fileUrl = Request.Params["fileUrl"];
+ ckbSkipFirst = Request.Params["ckbSkipFirst"];
+ set = new DataSet();
+ setAfterProcess = new DataSet();
+ isoList = new List();
+ InitGrid();
+ }
+ }
+ #endregion
+
+
+
+ ///
+ /// 关闭弹出窗
+ ///
+ ///
+ ///
+ protected void InitGrid()
+ {
+
+ // 加载PDF文档
+ PdfDocument pdf = new PdfDocument();
+ if (!File.Exists(fileUrl))
+ {
+ return;
+ }
+ pdf.LoadFromFile(fileUrl);
+ PdfTableExtractor extractor = new PdfTableExtractor(pdf);
+ // 遍历每一页
+ int i = 0;
+ if (ckbSkipFirst == "1")
+ {
+ i = 1;
+ }
+ var units = from x in Funs.DB.Base_Unit
+ join y in Funs.DB.Project_Unit on x.UnitId equals y.UnitId
+ where y.ProjectId == CurrUser.LoginProjectId
+ select x;
+ var installs = from x in Funs.DB.Project_Installation where x.ProjectId == this.CurrUser.LoginProjectId select x;
+ var steels = from x in Funs.DB.HJGL_BS_Steel select x;
+ var materialStandards = from x in Funs.DB.HJGL_BS_MaterialStandard select x;
+
+ var rates = from x in Funs.DB.HJGL_BS_NDTRate select x;
+ var types = from x in Funs.DB.HJGL_BS_JointType select x;
+ var methods = from x in Funs.DB.HJGL_BS_WeldMethod select x;
+ var materials = from x in Funs.DB.HJGL_BS_WeldMaterial select x;
+ var services = from x in Funs.DB.HJGL_BS_Service select x;
+ var slopeTypes = from x in Funs.DB.HJGL_BS_SlopeType select x;
+ var isoClasss = from x in Funs.DB.HJGL_BS_IsoClass select x;
+ var components = from x in Funs.DB.HJGL_BS_Component select x;
+ var dns = from x in Funs.DB.HJGL_BS_SchTab select x;
+ var execStandards = from x in Funs.DB.HJGL_BS_ExecStandard select x;
+ var dataInTemp = from x in Funs.DB.HJGL_Sys_DataInTemp
+ where x.ProjectId == this.CurrUser.LoginProjectId && x.UserId == this.CurrUser.UserId && x.Type == this.IsPDMS
+ select x;
+ var users = from x in Funs.DB.Sys_User select x;
+ for (; i < pdf.Pages.Count; i++)
+ {
+ PdfPageBase page = pdf.Pages[i];
+ // 提取页面中的表格
+ PdfTable[] tables = extractor.ExtractTable(i);
+ // 输出找到的表格数量
+ Console.WriteLine($"第 {i + 1} 页找到 {tables.Length} 个表格");
+ // 遍历提取到的表格
+ for (int j = 0; j < tables.Length; j++)
+ {
+ PdfTable table = tables[j];
+ DataTable dtTemp = new DataTable();
+ for (int col = 0; col < table.GetColumnCount(); col++)
+ {
+ dtTemp.Columns.Add("col" + col);
+ }
+ // 遍历表格的行列
+ for (int row = 0; row < table.GetRowCount(); row++)
+ {
+ DataRow rowData = dtTemp.NewRow();
+ dtTemp.Rows.Add(rowData);
+ for (int col = 0; col < table.GetColumnCount(); col++)
+ {
+ string text = table.GetText(row, col);
+ rowData[col] = table.GetText(row, col);
+ Console.Write($"{text}\t");
+ }
+ Console.WriteLine(); // 换行
+ }
+
+ if (dtTemp.Rows.Count > 0 && dtTemp.Columns.Count > 1)
+ {// 2. 转换为CSV
+ string csvContent = ConvertDataTableToCsv(dtTemp);
+ Console.WriteLine("生成的CSV内容:");
+ Console.WriteLine(csvContent);
+
+ // 3. 上传到服务器
+ string uploadUrl = "http://localhost:8000/api/table/clean"; // 替换为实际上传地址
+ string fileName = $"data_{DateTime.Now:yyyyMMddHHmmss}.csv";
+ //"管线号", "公称直径", "管道等级", "管道材料", "主要介质", "起止点", "操作参数温度", "操作参数压力", "设计参数温度", "设计参数压力", "隔热工程代号", "隔热材料", "厚度", "介质", "压力", "比例", "方法", "合格等级", "PID尾号", "压力管道类别", "应力分析题号", "备注"
+
+
+ try
+ {
+ Grid grid = new Grid();
+ grid.ShowGridHeader = true;
+ grid.Title = dtTemp.TableName;
+ grid.AllowColumnLocking = true;
+ grid.DataKeyNames = new string[] { "Id" };
+ foreach (DataColumn dc in dtTemp.Columns)
+ {
+ grid.Columns.Add(new BoundField() { DataField = dc.ColumnName, HeaderText = dc.ColumnName });
+ }
+ grid.DataSource = dtTemp;
+ grid.DataBind();
+ Region2.Items.Add(grid);
+ set.Tables.Add(dtTemp);
+ string response = UploadCsvFile(csvContent, uploadUrl, fileName);
+ Grid grid1 = new Grid();
+ grid1.ShowGridHeader = true;
+ grid1.Title = dtTemp.TableName;
+ grid1.AllowColumnLocking = true;
+ grid1.DataKeyNames = new string[] { "Id" };
+ JObject dynamicObj = JObject.Parse(response);
+
+ DataTable dtAfterProcess = new DataTable();
+ foreach (JToken employeeToken in dynamicObj["headers"])
+ {
+ dtAfterProcess.Columns.Add(employeeToken.ToString());
+ grid1.Columns.Add(new BoundField() { DataField = employeeToken.ToString(), HeaderText = employeeToken.ToString() });
+ }
+ dtAfterProcess.Columns.Add("Id");
+
+ foreach (JToken rowData in dynamicObj["rows"])
+ {
+ int index = 0;
+ var row = dtAfterProcess.NewRow();
+ var datas = rowData.ToList();
+ row["Id"] = Guid.NewGuid().ToString();
+ foreach (var d in datas)
+ {
+ row[index] = d.ToString(); index++;
+ }
+ dtAfterProcess.Rows.Add(row);
+ }
+ grid1.DataSource = dtAfterProcess;
+ grid1.DataBind();
+ Region1.Items.Add(grid1);
+ setAfterProcess.Tables.Add(dtAfterProcess);
+
+ string urlHeaderCorrespondence = "http://localhost:8000/api/table/head";
+ string data = @"{
+ ""source_headers"": " + dynamicObj["headers"].ToString() + @" ,
+ ""target_fields"": [
+ ""管线号"",
+ ""管道等级"",
+ ""执行标准"",
+ ""材质"",
+ ""材质标准"",
+ ""介质"",
+ ""管道类别"",
+ ""涂漆类别"",
+ ""绝热类别"",
+ ""操作压力"",
+ ""操作温度"",
+ ""泄露性试验"",
+ ""设计压力"",
+ ""设计温度"",
+ ""耐压试验"",
+ ""外径"",
+ ""壁厚"",
+ ""管线长度"",
+ ""检测类别序号"",
+ ""热处理类型"",
+ ""备注""
+ ],
+ ""extra_instructions"": ""管线号优先匹配管线代号,优先将含有 Main Fluid 的字段映射到 介质,有名称首先匹配名称,没有名称匹配代号,按匹配度从高低输出""
+ }
+ ";
+ string resHeaderCorrespondence = HeaderCorrespondence(urlHeaderCorrespondence, data, "POST", "application/json;charset=utf-8");
+
+ if (!string.IsNullOrEmpty(resHeaderCorrespondence))
+ {
+ JObject dynamicHeaderCorrespondence = JObject.Parse(resHeaderCorrespondence);
+ Dictionary headerCorrespondenceDic = new Dictionary();
+ foreach (JToken employeeToken in dynamicHeaderCorrespondence["mapping"])
+ {
+ headerCorrespondenceDic.Add(employeeToken["source_header"].ToString(), employeeToken["target_field"].ToString());
+ }
+ foreach (DataRow row in dtAfterProcess.Rows)
+ {
+ HJGL_PW_IsoInfo isoInfo = new HJGL_PW_IsoInfo();
+ isoInfo.ISO_ID = Guid.NewGuid().ToString();
+ isoInfo.ISO_CreateDate = DateTime.Now;
+ isoInfo.ISO_Creator = CurrUser.UserCode;
+ isoInfo.ProjectId = CurrUser.LoginProjectId;
+ isoInfo.BSU_ID = CurrUser.UnitId;
+ isoInfo.IsHot = "0";
+ foreach (DataColumn dataColumn in dtAfterProcess.Columns)
+ {
+ if (headerCorrespondenceDic.ContainsKey(dataColumn.ColumnName))
+ switch (headerCorrespondenceDic[dataColumn.ColumnName])
+ {
+ case "管线号":
+ isoInfo.ISO_IsoNo = row[dataColumn.ColumnName].ToString();
+ break;
+ case "管道等级":
+ isoInfo.ISC_ID = isoClasss.Where(x=>x.ISC_IsoName==row[dataColumn.ColumnName].ToString()|| x.ISC_IsoCode == row[dataColumn.ColumnName].ToString()).Select(x=>x.ISC_ID).FirstOrDefault();
+ break;
+ case "执行标准":
+ isoInfo.ISO_Executive = execStandards.Where(x=>x.ExecStandardName== row[dataColumn.ColumnName].ToString()).Select(x=>x.ExecStandardId).FirstOrDefault();
+ break;
+ case "材质":
+ isoInfo.STE_ID = steels.Where(x => x.STE_Code == row[dataColumn.ColumnName].ToString()).Select(x => x.STE_ID).FirstOrDefault();
+ break;
+ case "材质标准":
+ isoInfo.MaterialStandardId = materialStandards.Where(x => x.MaterialStandardName == row[dataColumn.ColumnName].ToString()||x.MaterialStandardCode == row[dataColumn.ColumnName].ToString()).Select(x => x.MaterialStandardId).FirstOrDefault();
+ break;
+ case "介质":
+ isoInfo.SER_ID = services.Where(x => x.SER_Name == row[dataColumn.ColumnName].ToString() || x.SER_Code == row[dataColumn.ColumnName].ToString()).Select(x => x.SER_ID).FirstOrDefault();
+ break;
+ case "管道类别":
+ isoInfo.PipeLineClass = row[dataColumn.ColumnName].ToString();
+ break;
+ case "涂漆类别":
+ isoInfo.ISO_Paint = row[dataColumn.ColumnName].ToString();
+ break;
+ case "绝热类别":
+ isoInfo.ISO_Insulator = row[dataColumn.ColumnName].ToString();
+ break;
+ case "操作压力":
+ isoInfo.OperatingPressure = row[dataColumn.ColumnName].ToString();
+ break;
+ case "操作温度":
+ isoInfo.OperatingTemperature = row[dataColumn.ColumnName].ToString();
+ break;
+ case "泄露性试验":
+ isoInfo.LeakageTest = row[dataColumn.ColumnName].ToString();
+ break;
+ case "设计压力":
+ isoInfo.ISO_DesignPress = Funs.GetNewDecimal(row[dataColumn.ColumnName].ToString());
+ break;
+ case "设计温度":
+ isoInfo.ISO_DesignTemperature = Funs.GetNewDecimal(row[dataColumn.ColumnName].ToString());
+ break;
+ case "耐压试验":
+ isoInfo.ISO_TestPress = Funs.GetNewDecimal(row[dataColumn.ColumnName].ToString());
+ break;
+ case "外径":
+ isoInfo.ISO_Dia = Funs.GetNewDecimal(row[dataColumn.ColumnName].ToString());
+ break;
+ case "壁厚":
+ isoInfo.ISO_Sch = Funs.GetNewDecimal(row[dataColumn.ColumnName].ToString());
+ break;
+ case "管线长度":
+ isoInfo.PipeLineLength = Funs.GetNewDecimal(row[dataColumn.ColumnName].ToString());
+ break;
+ case "检测类别序号":
+ isoInfo.TestCategoryNum = row[dataColumn.ColumnName].ToString();
+ break;
+ case "热处理类型":
+ {
+ if (!string.IsNullOrEmpty(row[dataColumn.ColumnName].ToString()))
+ {
+ isoInfo.IsHotType = row[dataColumn.ColumnName].ToString();
+ isoInfo.IsHot = "1";
+ }
+ }
+ break;
+ case "备注":
+ isoInfo.ISO_Remark = row[dataColumn.ColumnName].ToString();
+ break;
+ }
+ }
+ isoList.Add(isoInfo);
+ }
+ }
+
+ }
+ catch (Exception e11)
+ {
+
+ }
+
+ }
+ Console.WriteLine($"\n--- 表格 {j + 1} ---");
+ }
+ }
+
+
+
+ this.IsoGrid.DataSource = this.isoList;
+ this.IsoGrid.DataBind();
+ }
+
+
+
+
+ ///
+ /// 将DataTable转换为标准CSV格式字符串
+ ///
+ /// 待转换的DataTable
+ /// CSV格式字符串
+ public static string ConvertDataTableToCsv(DataTable dt)
+ {
+ if (dt == null || dt.Rows.Count == 0)
+ throw new ArgumentNullException(nameof(dt), "DataTable不能为空或无数据");
+
+ StringBuilder csvBuilder = new StringBuilder();
+
+ // 1. 写入表头(列名)
+ for (int i = 0; i < dt.Columns.Count; i++)
+ {
+ // 处理表头中的特殊字符
+ csvBuilder.Append(EscapeCsvValue(dt.Columns[i].ColumnName));
+ if (i < dt.Columns.Count - 1)
+ csvBuilder.Append(",");
+ }
+ csvBuilder.AppendLine();
+
+ // 2. 写入数据行
+ foreach (DataRow row in dt.Rows)
+ {
+ for (int i = 0; i < dt.Columns.Count; i++)
+ {
+ // 处理单元格中的特殊字符
+ string cellValue = row[i] == DBNull.Value ? "" : row[i].ToString();
+ csvBuilder.Append(EscapeCsvValue(cellValue));
+ if (i < dt.Columns.Count - 1)
+ csvBuilder.Append(",");
+ }
+ csvBuilder.AppendLine();
+ }
+
+ return csvBuilder.ToString();
+ }
+
+ ///
+ /// 转义CSV中的特殊字符(处理逗号、换行、引号)
+ ///
+ /// 原始值
+ /// 转义后的值
+ private static string EscapeCsvValue(string value)
+ {
+ if (string.IsNullOrEmpty(value))
+ return "";
+
+ // 如果包含逗号、换行符、双引号,需要用双引号包裹,并将内部双引号替换为两个双引号
+ if (value.Contains(",") || value.Contains("\n") || value.Contains("\r") || value.Contains("\""))
+ {
+ return "\"" + value.Replace("\"", "\"\"") + "\"";
+ }
+ return value;
+ }
+
+ ///
+ /// 将CSV字符串保存为临时文件并上传到指定服务器
+ ///
+ /// CSV内容
+ /// 服务器上传接口地址
+ /// 上传的文件名
+ /// 超时时间(毫秒),默认30秒
+ /// 服务器返回的响应内容
+ public static string UploadCsvFile(string csvContent, string uploadUrl, string fileName, int timeout = 300000)
+ {
+
+
+ // 定义分隔符(随机生成避免冲突)
+ string boundary = "----WebKitFormBoundary" + Guid.NewGuid().ToString("N");
+ byte[] boundaryBytes = Encoding.UTF8.GetBytes("\r\n--" + boundary + "\r\n");
+
+ // 创建内存流存储请求内容
+ using (MemoryStream ms = new MemoryStream())
+ {
+ // 1. 写入表单字段头
+ ms.Write(boundaryBytes, 0, boundaryBytes.Length);
+
+ // 2. 写入文件内容头
+ string fileHeader =
+ $"Content-Disposition: form-data; name=\"file\"; filename=\"{fileName}\"\r\n" +
+ "Content-Type: text/csv; charset=utf-8\r\n\r\n";
+ byte[] fileHeaderBytes = Encoding.UTF8.GetBytes(fileHeader);
+ ms.Write(fileHeaderBytes, 0, fileHeaderBytes.Length);
+
+ // 3. 写入CSV内容
+ byte[] csvBytes = Encoding.UTF8.GetBytes(csvContent);
+ ms.Write(csvBytes, 0, csvBytes.Length);
+
+ // 4. 写入结束边界
+ byte[] endBoundaryBytes = Encoding.UTF8.GetBytes("\r\n--" + boundary + "--\r\n");
+ ms.Write(endBoundaryBytes, 0, endBoundaryBytes.Length);
+
+ // 5. 创建HTTP请求
+ HttpWebRequest request = (HttpWebRequest)WebRequest.Create(uploadUrl);
+ request.Method = "POST";
+ request.ContentType = "multipart/form-data; boundary=" + boundary;
+ request.ContentLength = ms.Length;
+ request.Timeout = timeout;
+ request.KeepAlive = true;
+
+ // 6. 写入请求数据
+ using (Stream requestStream = request.GetRequestStream())
+ {
+ ms.Position = 0;
+ ms.CopyTo(requestStream);
+ }
+
+ // 7. 获取响应
+ using (HttpWebResponse response = (HttpWebResponse)request.GetResponse())
+ using (Stream responseStream = response.GetResponseStream())
+ using (StreamReader reader = new StreamReader(responseStream, Encoding.UTF8))
+ {
+ return reader.ReadToEnd();
+ }
+ }
+ }
+
+
+ public static string HeaderCorrespondence(string uploadUrl, string data, string method, string contenttype)
+ {
+ // 5. 创建HTTP请求
+ HttpWebRequest request = (HttpWebRequest)WebRequest.Create(uploadUrl);
+ request.Method = string.IsNullOrEmpty(method) ? "GET" : method;
+ request.ContentType = string.IsNullOrEmpty(contenttype) ? "application/json;charset=utf-8" : contenttype;
+ if (uploadUrl.IndexOf("https") >= 0)
+ {
+ request.ProtocolVersion = HttpVersion.Version10;
+ }
+ if (!string.IsNullOrEmpty(data))
+ {
+ Stream RequestStream = request.GetRequestStream();
+ byte[] bytes = Encoding.UTF8.GetBytes(data);
+ RequestStream.Write(bytes, 0, bytes.Length);
+ RequestStream.Close();
+ }
+
+ HttpWebResponse response = null;
+ Stream ResponseStream = null;
+ StreamReader StreamReader = null;
+ try
+ {
+ response = (HttpWebResponse)request.GetResponse();
+ ResponseStream = response.GetResponseStream();
+ StreamReader = new StreamReader(ResponseStream, Encoding.GetEncoding("utf-8"));
+
+ string re = StreamReader.ReadToEnd();
+ StreamReader.Close();
+ ResponseStream.Close();
+ return re;
+ }
+ catch (WebException ex)
+ {
+ response = (HttpWebResponse)ex.Response;
+ ResponseStream = response.GetResponseStream();
+ StreamReader = new StreamReader(ResponseStream, Encoding.GetEncoding("utf-8"));
+
+ string re = StreamReader.ReadToEnd();
+ return re;
+ }
+ finally
+ {
+ if (StreamReader != null)
+ {
+ StreamReader.Close();
+ }
+ if (ResponseStream != null)
+ {
+ ResponseStream.Close();
+ }
+ if (response != null)
+ {
+ response.Close();
+ }
+ }
+ }
+
+
+
+
+
+
+
+
+ protected void IsoGrid_RowDoubleClick(object sender, GridRowClickEventArgs e)
+ {
+ HJGL_PW_IsoInfo iso = null;
+
+ foreach (var item in isoList)
+ {
+ if (item.ISO_ID == IsoGrid.SelectedRowID)
+ {
+ iso = item;
+ break;
+ }
+ }
+ if (PipelineInEdit.dic.ContainsKey(IsoGrid.SelectedRowID))
+ {
+ PipelineInEdit.dic[IsoGrid.SelectedRowID] = iso;
+ }
+ else
+ {
+ PipelineInEdit.dic.Add(IsoGrid.SelectedRowID, iso);
+ }
+ hdIds.Text = "";
+ PageContext.RegisterStartupScript(Window1.GetSaveStateReference(hdIds.ClientID) + Window1.GetShowReference(String.Format("PipelineInEdit.aspx?ISO_ID={0}", IsoGrid.SelectedRowID, "编辑 - ")));
+ }
+ protected void Window1_Close(object sender, WindowCloseEventArgs e)
+ {
+ if (!string.IsNullOrEmpty(hdIds.Text))
+ {
+ HJGL_PW_IsoInfo iso = null;
+
+ foreach (var item in isoList)
+ {
+ if (item.ISO_ID == hdIds.Text)
+ {
+ iso = item;
+ break;
+ }
+ }
+ for (int i = 0; i < isoList.Count; i++)
+ {
+
+
+ isoList[i].ISO_Remark = iso.ISO_Remark;
+
+
+ isoList[i].ISO_ID = iso.ISO_ID;
+ isoList[i].ProjectId = iso.ProjectId;
+ isoList[i].BSU_ID = iso.BSU_ID;
+ isoList[i].SER_ID = iso.SER_ID;
+
+ isoList[i].BAW_ID = iso.BAW_ID;
+ isoList[i].ISO_IsoNo = iso.ISO_IsoNo;
+
+ isoList[i].ISO_TotalDin = iso.ISO_TotalDin;
+ isoList[i].ISO_Paint = iso.ISO_Paint;
+ isoList[i].ISO_Insulator = iso.ISO_Insulator;
+ isoList[i].STE_ID = iso.STE_ID;
+
+ isoList[i].ISO_Executive = iso.ISO_Executive;
+ isoList[i].ISO_Dia = iso.ISO_Dia;
+ isoList[i].ISO_Sch = iso.ISO_Sch;
+ isoList[i].ISO_Modifier = iso.ISO_Modifier;
+ isoList[i].ISO_ModifyDate = iso.ISO_ModifyDate;
+ isoList[i].ISO_Creator = iso.ISO_Creator;
+ isoList[i].ISO_CreateDate = iso.ISO_CreateDate;
+
+ isoList[i].ISO_DesignPress = iso.ISO_DesignPress;
+ isoList[i].ISO_DesignTemperature = iso.ISO_DesignTemperature;
+ isoList[i].ISO_TestPress = iso.ISO_TestPress;
+ isoList[i].ISO_TestTemperature = iso.ISO_TestTemperature;
+ isoList[i].ISC_ID = iso.ISC_ID;
+ isoList[i].ISO_Remark = iso.ISO_Remark;
+ isoList[i].MaterialStandardId = iso.MaterialStandardId;
+ isoList[i].PressureTestPackageNo = iso.PressureTestPackageNo;
+ isoList[i].OperatingPressure = iso.OperatingPressure;
+ isoList[i].OperatingTemperature = iso.OperatingTemperature;
+ isoList[i].PipeLineClass = iso.PipeLineClass;
+ isoList[i].PipeLineLength = iso.PipeLineLength;
+ isoList[i].LeakageTest = iso.LeakageTest;
+ isoList[i].TestCategoryNum = iso.TestCategoryNum;
+ isoList[i].IsHot = iso.IsHot;
+ isoList[i].IsHotType = iso.IsHotType;
+
+ isoList[i].Joty_B_Rate = iso.Joty_B_Rate;
+ isoList[i].Joty_C_Rate = iso.Joty_C_Rate;
+ isoList[i].Joty_D_Rate = iso.Joty_D_Rate;
+ isoList[i].Joty_B_Level = iso.Joty_B_Level;
+ isoList[i].Joty_C_Level = iso.Joty_C_Level;
+ isoList[i].Joty_D_Level = iso.Joty_D_Level;
+
+ isoList[i].Specification = iso.Specification;
+
+ }
+ }
+ this.IsoGrid.DataSource = this.isoList;
+ this.IsoGrid.DataBind();
+ }
+
+
+
+ public static string ConvertSteel(object STE_ID)
+ {
+ if (STE_ID != null)
+ {
+ var steel= Funs.DB.HJGL_BS_Steel.FirstOrDefault(x => x.STE_ID == STE_ID.ToString());
+ if (steel != null)
+ {
+ return steel.STE_Code;
+ }
+ }
+ return null;
+ }
+ public static string ConvertISOExecutive(object ExecStandardId)
+ {
+ if (ExecStandardId != null)
+ {
+ var execStandard = Funs.DB.HJGL_BS_ExecStandard.FirstOrDefault(x => x.ExecStandardId == ExecStandardId.ToString());
+ if (execStandard != null)
+ {
+ return execStandard.ExecStandardName;
+ }
+ }
+ return null;
+ }
+ public static string ConvertMaterialStandard(object MaterialStandardId)
+ {
+ if (MaterialStandardId != null)
+ {
+ var materialStandard = Funs.DB.HJGL_BS_MaterialStandard.FirstOrDefault(x => x.MaterialStandardId == MaterialStandardId.ToString());
+ if (materialStandard != null)
+ {
+ return materialStandard.MaterialStandardName;
+ }
+ }
+ return null;
+ }
+ public static string ConvertHJGLBSService(object SER_ID)
+ {
+ if (SER_ID != null)
+ {
+ var service = Funs.DB.HJGL_BS_Service.FirstOrDefault(x => x.SER_ID == SER_ID.ToString());
+ if (service != null)
+ {
+ return service.SER_Name;
+ }
+ }
+ return null;
+ }
+ public static string ConvertIsoClass(object ISC_ID)
+ {
+ if (ISC_ID != null)
+ {
+ var isoClass = Funs.DB.HJGL_BS_IsoClass.FirstOrDefault(x => x.ISC_ID == ISC_ID.ToString());
+ if (isoClass != null)
+ {
+ return isoClass.ISC_IsoName;
+ }
+ }
+ return null;
+ }
+ protected void btnImport_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (isoList.Count() > 0)
+ {
+
+
+ Funs.DB.HJGL_PW_IsoInfo.InsertAllOnSubmit(isoList);
+ Funs.DB.SubmitChanges();
+
+
+ }
+
+
+ isoList.Clear();
+ this.IsoGrid.DataSource = this.isoList;
+ this.IsoGrid.DataBind();
+ Alert.ShowInTop("导入成功!", MessageBoxIcon.Success);
+
+ }
+ catch (SqlException ex)
+ {
+
+ throw;
+ }
+
+
+
+
+ }
+ }
+}
\ No newline at end of file
diff --git a/HJGL_DS/FineUIPro.Web/HJGL/DataIn/PipelineGrid.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/HJGL/DataIn/PipelineGrid.aspx.designer.cs
new file mode 100644
index 0000000..1e0997e
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/HJGL/DataIn/PipelineGrid.aspx.designer.cs
@@ -0,0 +1,197 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.HJGL.DataIn
+{
+
+
+ public partial class PipelineGrid
+ {
+
+ ///
+ /// form1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// PageManager1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.PageManager PageManager1;
+
+ ///
+ /// hdIds 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.HiddenField hdIds;
+
+ ///
+ /// TabStrip1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TabStrip TabStrip1;
+
+ ///
+ /// RegionPanel1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.RegionPanel RegionPanel1;
+
+ ///
+ /// Region2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Region Region2;
+
+ ///
+ /// RegionPanel2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.RegionPanel RegionPanel2;
+
+ ///
+ /// Region1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Region Region1;
+
+ ///
+ /// RegionPanel3 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.RegionPanel RegionPanel3;
+
+ ///
+ /// Toolbar1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar1;
+
+ ///
+ /// HiddenField2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.HiddenField HiddenField2;
+
+ ///
+ /// btnImport 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnImport;
+
+ ///
+ /// Region4 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Region Region4;
+
+ ///
+ /// IsoGrid 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Grid IsoGrid;
+
+ ///
+ /// Label1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label Label1;
+
+ ///
+ /// Label2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label Label2;
+
+ ///
+ /// Label3 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label Label3;
+
+ ///
+ /// Label4 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label Label4;
+
+ ///
+ /// Label5 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label Label5;
+
+ ///
+ /// Window1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Window Window1;
+ }
+}
diff --git a/HJGL_DS/FineUIPro.Web/HJGL/DataIn/PipelineInEdit.aspx b/HJGL_DS/FineUIPro.Web/HJGL/DataIn/PipelineInEdit.aspx
new file mode 100644
index 0000000..3b1d1df
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/HJGL/DataIn/PipelineInEdit.aspx
@@ -0,0 +1,209 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PipelineInEdit.aspx.cs" Inherits="FineUIPro.Web.HJGL.DataIn.PipelineInEdit" %>
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/HJGL_DS/FineUIPro.Web/HJGL/DataIn/PipelineInEdit.aspx.cs b/HJGL_DS/FineUIPro.Web/HJGL/DataIn/PipelineInEdit.aspx.cs
new file mode 100644
index 0000000..f30c547
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/HJGL/DataIn/PipelineInEdit.aspx.cs
@@ -0,0 +1,915 @@
+using BLL;
+using FastReport.Editor;
+using Model;
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Data.SqlClient;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace FineUIPro.Web.HJGL.DataIn
+{
+ public partial class PipelineInEdit : PageBase
+ {
+ public static Dictionary dic = new Dictionary();
+ private string ISO_ID
+ {
+ get
+ {
+ return (string)ViewState["ISO_ID"];
+ }
+ set
+ {
+ ViewState["ISO_ID"] = value;
+ }
+ }
+ #region 加载页面
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+
+ this.ISO_ID = string.Empty;
+ if (!string.IsNullOrEmpty(Request.Params["ISO_ID"]))
+ {
+ this.ISO_ID = Request.Params["ISO_ID"];
+ }
+ if (Request.Params["type"] == "view")
+ {
+ this.btnSave.Hidden = true;
+ }
+ var isoInfo = dic[this.ISO_ID];
+
+ ////初始化页面信息
+ this.PersonLoad(isoInfo);
+ }
+ }
+ #endregion
+
+ #region 初始化页面信息
+ ///
+ /// 初始化页面信息
+ ///
+ protected void PersonLoad(Model.HJGL_PW_IsoInfo isoInfo)
+ {
+ ///介质
+ this.drpSER.DataTextField = "SER_Name";
+ this.drpSER.DataValueField = "SER_ID";
+ this.drpSER.DataSource = BLL.HJGL_MediumService.GetBSServiceList();
+ this.drpSER.DataBind();
+ Funs.FineUIPleaseSelect(this.drpSER);
+
+ ///材质
+ this.drpSTEName.DataTextField = "STE_Code";
+ this.drpSTEName.DataValueField = "STE_ID";
+ this.drpSTEName.DataSource = BLL.HJGL_MaterialService.GetSteelList();
+ this.drpSTEName.DataBind();
+ Funs.FineUIPleaseSelect(this.drpSTEName);
+
+ // 执行标准
+ this.drpExecStandard.DataTextField = "ExecStandardName";
+ this.drpExecStandard.DataValueField = "ExecStandardId";
+ this.drpExecStandard.DataSource = BLL.HJGL_ExecStandardService.GetExecStandardNameList();
+ this.drpExecStandard.DataBind();
+ Funs.FineUIPleaseSelect(this.drpExecStandard);
+ ///管道等级
+ this.drpIDName.DataTextField = "ISC_IsoName";
+ this.drpIDName.DataValueField = "ISC_ID";
+ this.drpIDName.DataSource = BLL.HJGL_PipingClassService.GetIsoClassNameList();
+ this.drpIDName.DataBind();
+ Funs.FineUIPleaseSelect(this.drpIDName);
+
+ this.drpMaterialStandardId.DataTextField = "MaterialStandardCode";
+ this.drpMaterialStandardId.DataValueField = "MaterialStandardId";
+ this.drpMaterialStandardId.DataSource = BLL.HJGL_MaterialStandardService.GetMaterialStandardList();
+ this.drpMaterialStandardId.DataBind();
+ Funs.FineUIPleaseSelect(this.drpMaterialStandardId);
+
+ this.drpPipeLineClass.DataTextField = "Text";
+ this.drpPipeLineClass.DataValueField = "Value";
+ this.drpPipeLineClass.DataSource = BLL.DropListService.HJGL_PipeLineClassItem();
+ this.drpPipeLineClass.DataBind();
+ Funs.FineUIPleaseSelect(this.drpPipeLineClass);
+
+ this.drpBUS_ID.DataTextField = "UnitName";
+ this.drpBUS_ID.DataValueField = "UnitId";
+ this.drpBUS_ID.DataSource = BLL.Base_UnitService.GetUnitCodeByProjectIdList(this.CurrUser.LoginProjectId);
+ this.drpBUS_ID.DataBind();
+ Funs.FineUIPleaseSelect(this.drpBUS_ID);
+
+
+
+ if (isoInfo != null)
+ {
+
+
+ if (CurrUser.Account != Const.Gly)
+ {
+ var que = from x in Funs.DB.HJGL_BO_QualityRating where x.ISO_ID == isoInfo.ISO_ID select x;
+ if (que.Count() > 0)
+ {
+ txtISO_IsoNo.Enabled = false;
+ }
+ }
+
+ this.txtISO_IsoNo.Text = isoInfo.ISO_IsoNo;
+ if (!string.IsNullOrEmpty(isoInfo.BSU_ID))
+ {
+ this.drpBUS_ID.SelectedValue = isoInfo.BSU_ID;
+ }
+ if (!string.IsNullOrEmpty(isoInfo.SER_ID))
+ {
+ this.drpSER.SelectedValue = isoInfo.SER_ID;
+ var ser = BLL.HJGL_MediumService.GetServiceBySERID(this.drpSER.SelectedValue);
+ if (ser != null)
+ {
+ this.txtServiceAbbreviate.Text = ser.SER_Abbreviate;
+ }
+ }
+ if (!string.IsNullOrEmpty(isoInfo.STE_ID))
+ {
+ this.drpSTEName.SelectedValue = isoInfo.STE_ID;
+ }
+ this.txtISO_Paint.Text = isoInfo.ISO_Paint;
+ this.txtISO_Insulator.Text = isoInfo.ISO_Insulator;
+ if (!string.IsNullOrEmpty(isoInfo.ISO_Executive))
+ {
+ this.drpExecStandard.SelectedValue = isoInfo.ISO_Executive;
+ }
+
+ this.txtISO_DesignPress.Text = isoInfo.ISO_DesignPress.ToString();
+ this.txtISO_DesignTemperature.Text = isoInfo.ISO_DesignTemperature.ToString();
+ this.txtISO_TestPress.Text = isoInfo.ISO_TestPress.ToString();
+ if (!string.IsNullOrEmpty(isoInfo.ISC_ID))
+ {
+ this.drpIDName.SelectedValue = isoInfo.ISC_ID;
+ }
+ this.txtISO_Remark.Text = isoInfo.ISO_Remark;
+
+ if (!string.IsNullOrEmpty(isoInfo.MaterialStandardId))
+ {
+ this.drpMaterialStandardId.SelectedValue = isoInfo.MaterialStandardId;
+ }
+ if (!string.IsNullOrEmpty(isoInfo.PressureTestPackageNo))
+ {
+ this.txtPressureTestPackageNo.Text = isoInfo.PressureTestPackageNo;
+ }
+ else
+ {
+ this.txtPressureTestPackageNo.Text = "/";
+ }
+ this.txtOperatingPressure.Text = isoInfo.OperatingPressure;
+ this.txtOperatingTemperature.Text = isoInfo.OperatingTemperature;
+ if (!string.IsNullOrEmpty(isoInfo.PipeLineClass))
+ {
+ this.drpPipeLineClass.SelectedValue = isoInfo.PipeLineClass;
+ }
+ if (isoInfo.PipeLineLength.HasValue)
+ {
+ this.txtPipeLineLength.Text = Convert.ToString(isoInfo.PipeLineLength);
+ }
+ this.txtLeakageTest.Text = isoInfo.LeakageTest;
+
+
+ this.txtTestCategoryNum.Text = isoInfo.TestCategoryNum;
+ if (!string.IsNullOrEmpty(isoInfo.Joty_B_Rate))
+ {
+ drpJoty_B_Rate.SelectedValue = isoInfo.Joty_B_Rate;
+ }
+ if (!string.IsNullOrEmpty(isoInfo.Joty_C_Rate))
+ {
+ drpJoty_C_Rate.SelectedValue = isoInfo.Joty_C_Rate;
+ }
+ if (!string.IsNullOrEmpty(isoInfo.Joty_D_Rate))
+ {
+ drpJoty_D_Rate.SelectedValue = isoInfo.Joty_D_Rate;
+ }
+
+ if (!string.IsNullOrEmpty(isoInfo.Joty_B_Level))
+ {
+ drpJoty_Level.SelectedValue = isoInfo.Joty_B_Level;
+ }
+ if (!string.IsNullOrEmpty(isoInfo.Joty_C_Level))
+ {
+ drpJoty_C_Level.SelectedValue = isoInfo.Joty_C_Level;
+ }
+ if (!string.IsNullOrEmpty(isoInfo.Joty_D_Level))
+ {
+ drpJoty_D_Level.SelectedValue = isoInfo.Joty_D_Level;
+ }
+
+ if (!string.IsNullOrEmpty(isoInfo.IsHot))
+ {
+ this.drpIsHot.SelectedValue = isoInfo.IsHot;
+ if (isoInfo.IsHot == "1")
+ {
+ this.drpIsHotType.Hidden = false;
+ if (!string.IsNullOrEmpty(isoInfo.IsHotType))
+ {
+ string[] proessTypes = isoInfo.IsHotType.Split('|');
+ this.drpIsHotType.Values = proessTypes;
+ }
+ }
+ }
+ if (isoInfo.ISO_Dia != null)
+ {
+ this.txtDia.Text = isoInfo.ISO_Dia.ToString();
+ }
+ if (isoInfo.ISO_Sch != null)
+ {
+ this.txtSch.Text = isoInfo.ISO_Sch.ToString();
+ }
+ var weldControl = BLL.HJGL_WeldControlService.GEtWeldControlByISCIDAndExecStandardId(this.drpIDName.SelectedValue, this.drpExecStandard.SelectedValue);
+ if (weldControl != null)
+ {
+ if (!string.IsNullOrEmpty(weldControl.Joty_Rate))
+ {
+ var rate = BLL.HJGL_DetectionService.GetNDTRateByNDTRID(weldControl.Joty_Rate);
+ if (rate != null)
+ {
+ this.txtTestCategoryNum.Text = rate.NDTR_Code;
+ }
+ drpJoty_B_Rate.SelectedValue = weldControl.Joty_Rate;
+ }
+ if (!string.IsNullOrEmpty(weldControl.Joty_Level))
+ {
+ this.drpJoty_Level.SelectedValue = weldControl.Joty_Level;
+ }
+
+ if (!string.IsNullOrEmpty(weldControl.Joty_C_Rate))
+ {
+ drpJoty_C_Rate.SelectedValue = weldControl.Joty_C_Rate;
+ }
+ if (!string.IsNullOrEmpty(weldControl.Joty_C_Level))
+ {
+ this.drpJoty_C_Level.SelectedValue = weldControl.Joty_C_Level;
+ }
+
+
+ if (!string.IsNullOrEmpty(weldControl.Joty_D_Rate))
+ {
+ drpJoty_D_Rate.SelectedValue = weldControl.Joty_D_Rate;
+ }
+ if (!string.IsNullOrEmpty(weldControl.Joty_D_Level))
+ {
+ this.drpJoty_D_Level.SelectedValue = weldControl.Joty_D_Level;
+ }
+
+ }
+ //txtPressureTestPackageNo.Text = "/";
+ }
+ else
+ {
+ //选择管道等级、执行标准时,自动添加对接焊缝检测比例、合格等级、支管连接接头检测比例、合格等级、角焊缝检测比例、合格等级
+ var weldControl = BLL.HJGL_WeldControlService.GEtWeldControlByISCIDAndExecStandardId(this.drpIDName.SelectedValue, this.drpExecStandard.SelectedValue);
+ if (weldControl != null)
+ {
+ if (!string.IsNullOrEmpty(weldControl.Joty_Rate))
+ {
+ var rate = BLL.HJGL_DetectionService.GetNDTRateByNDTRID(weldControl.Joty_Rate);
+ if (rate != null)
+ {
+ this.txtTestCategoryNum.Text = rate.NDTR_Code;
+ }
+ drpJoty_B_Rate.SelectedValue = weldControl.Joty_Rate;
+ }
+ if (!string.IsNullOrEmpty(weldControl.Joty_Level))
+ {
+ this.drpJoty_Level.SelectedValue = weldControl.Joty_Level;
+ }
+
+ if (!string.IsNullOrEmpty(weldControl.Joty_C_Rate))
+ {
+ drpJoty_C_Rate.SelectedValue = weldControl.Joty_C_Rate;
+ }
+ if (!string.IsNullOrEmpty(weldControl.Joty_C_Level))
+ {
+ this.drpJoty_C_Level.SelectedValue = weldControl.Joty_C_Level;
+ }
+
+
+ if (!string.IsNullOrEmpty(weldControl.Joty_D_Rate))
+ {
+ drpJoty_D_Rate.SelectedValue = weldControl.Joty_D_Rate;
+ }
+ if (!string.IsNullOrEmpty(weldControl.Joty_D_Level))
+ {
+ this.drpJoty_D_Level.SelectedValue = weldControl.Joty_D_Level;
+ }
+
+ }
+ txtPressureTestPackageNo.Text = "/";
+ }
+ }
+ #endregion
+
+ #region 提交按钮
+ ///
+ /// 提交按钮
+ ///
+ ///
+ ///
+ protected void btnSave_Click(object sender, EventArgs e)
+ {
+ if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_PipelineManageMenuId, Const.BtnSave))
+ {
+ if (BLL.HJGL_PW_IsoInfoService.IsExistIsoInfoCode(this.txtISO_IsoNo.Text.Trim(), this.CurrUser.LoginProjectId, this.ISO_ID))
+ {
+ Alert.ShowInTop("该单线图号已存在!", MessageBoxIcon.Warning);
+ return;
+ }
+ Model.HJGL_PW_IsoInfo iso = dic[ISO_ID]; ;
+ iso.ProjectId = this.CurrUser.LoginProjectId;
+ if (this.drpBUS_ID.SelectedValue != BLL.Const._Null)
+ {
+ iso.BSU_ID = this.drpBUS_ID.SelectedValue;
+ }
+ else
+ {
+ Alert.ShowInTop("请选择单位!", MessageBoxIcon.Warning);
+ return;
+ }
+ if (this.drpExecStandard.SelectedValue != BLL.Const._Null)
+ {
+ iso.ISO_Executive = this.drpExecStandard.SelectedValue;
+ }
+ else
+ {
+ Alert.ShowInTop("请选择执行标准!", MessageBoxIcon.Warning);
+ return;
+ }
+ if (this.drpIDName.SelectedValue != BLL.Const._Null)
+ {
+ iso.ISC_ID = this.drpIDName.SelectedValue;
+ }
+ else
+ {
+ Alert.ShowInTop("请选择管道等级!", MessageBoxIcon.Warning);
+ return;
+ }
+ if (this.drpSTEName.SelectedValue != BLL.Const._Null)
+ {
+ iso.STE_ID = this.drpSTEName.SelectedValue;
+ }
+ else
+ {
+ Alert.ShowInTop("请选择材质!", MessageBoxIcon.Warning);
+ return;
+ }
+ if (this.drpSER.SelectedValue != BLL.Const._Null)
+ {
+ iso.SER_ID = this.drpSER.SelectedValue;
+ }
+ else
+ {
+ Alert.ShowInTop("请选择介质!", MessageBoxIcon.Warning);
+ return;
+ }
+ iso.ISO_IsoNo = this.txtISO_IsoNo.Text.Trim();
+ if (!string.IsNullOrEmpty(this.txtISO_Paint.Text.Trim()))
+ {
+ iso.ISO_Paint = this.txtISO_Paint.Text.Trim();
+ }
+ else
+ {
+ Alert.ShowInTop("请输入涂漆类别!", MessageBoxIcon.Warning);
+ return;
+ }
+ if (!string.IsNullOrEmpty(this.txtISO_Insulator.Text.Trim()))
+ {
+ iso.ISO_Insulator = this.txtISO_Insulator.Text.Trim();
+ }
+ else
+ {
+ Alert.ShowInTop("请输入绝热类别!", MessageBoxIcon.Warning);
+ return;
+ }
+ if (!string.IsNullOrEmpty(this.txtISO_DesignPress.Text))
+ {
+ iso.ISO_DesignPress = Funs.GetNewDecimal(this.txtISO_DesignPress.Text);
+ }
+ else
+ {
+ Alert.ShowInTop("请输入设计压力!", MessageBoxIcon.Warning);
+ return;
+ }
+ if (!string.IsNullOrEmpty(this.txtISO_DesignTemperature.Text))
+ {
+ iso.ISO_DesignTemperature = Funs.GetNewDecimal(this.txtISO_DesignTemperature.Text);
+ }
+ else
+ {
+ Alert.ShowInTop("请输入设计温度!", MessageBoxIcon.Warning);
+ return;
+ }
+ if (!string.IsNullOrEmpty(this.txtISO_TestPress.Text))
+ {
+ iso.ISO_TestPress = Funs.GetNewDecimal(this.txtISO_TestPress.Text);
+ }
+ else
+ {
+ Alert.ShowInTop("请输入耐压试验!", MessageBoxIcon.Warning);
+ return;
+ }
+ iso.ISO_Remark = this.txtISO_Remark.Text.Trim();
+
+ if (this.drpMaterialStandardId.SelectedValue != BLL.Const._Null)
+ {
+ iso.MaterialStandardId = this.drpMaterialStandardId.SelectedValue;
+ }
+ else
+ {
+ Alert.ShowInTop("请选择材质标准!", MessageBoxIcon.Warning);
+ return;
+ }
+ iso.PressureTestPackageNo = this.txtPressureTestPackageNo.Text.Trim();
+ if (!string.IsNullOrEmpty(this.txtOperatingPressure.Text.Trim()))
+ {
+ iso.OperatingPressure = this.txtOperatingPressure.Text.Trim();
+ }
+ else
+ {
+ Alert.ShowInTop("请输入操作压力!", MessageBoxIcon.Warning);
+ return;
+ }
+ if (!string.IsNullOrEmpty(this.txtOperatingTemperature.Text.Trim()))
+ {
+ iso.OperatingTemperature = this.txtOperatingTemperature.Text.Trim();
+ }
+ else
+ {
+ Alert.ShowInTop("请输入操作温度!", MessageBoxIcon.Warning);
+ return;
+ }
+ if (this.drpPipeLineClass.SelectedValue != BLL.Const._Null)
+ {
+ iso.PipeLineClass = this.drpPipeLineClass.SelectedValue;
+ }
+ else
+ {
+ Alert.ShowInTop("请选择管道类别!", MessageBoxIcon.Warning);
+ return;
+ }
+ if (!string.IsNullOrEmpty(this.txtPipeLineLength.Text.Trim()))
+ {
+ iso.PipeLineLength = Funs.GetNewDecimal(this.txtPipeLineLength.Text.Trim());
+ }
+ else
+ {
+ Alert.ShowInTop("请输入管线长度!", MessageBoxIcon.Warning);
+ return;
+ }
+ if (!string.IsNullOrEmpty(this.txtLeakageTest.Text.Trim()))
+ {
+ iso.LeakageTest = this.txtLeakageTest.Text.Trim();
+ }
+ else
+ {
+ Alert.ShowInTop("请输入泄露性试验!", MessageBoxIcon.Warning);
+ return;
+ }
+ if (!string.IsNullOrEmpty(this.txtTestCategoryNum.Text.Trim()))
+ {
+ iso.TestCategoryNum = this.txtTestCategoryNum.Text.Trim();
+ }
+ else
+ {
+ Alert.ShowInTop("请输入检测类别序号!", MessageBoxIcon.Warning);
+ return;
+ }
+ if (this.drpIsHot.SelectedValue != BLL.Const._Null)
+ {
+ iso.IsHot = this.drpIsHot.SelectedValue;
+ if (this.drpIsHot.SelectedValue == "1")
+ {
+ if (this.drpIsHotType.Values.Length > 0)
+ {
+ iso.IsHotType = String.Join("|", drpIsHotType.Values);
+ }
+ else
+ {
+ Alert.ShowInTop("请选择热处理类型!", MessageBoxIcon.Warning);
+ return;
+ }
+ }
+ }
+
+ if (!string.IsNullOrEmpty(this.txtSch.Text))
+ {
+ iso.ISO_Sch = Convert.ToDecimal(this.txtSch.Text);
+ }
+ else
+ {
+ Alert.ShowInTop("请输入壁厚!", MessageBoxIcon.Warning);
+ return;
+ }
+ if (!string.IsNullOrEmpty(this.txtDia.Text))
+ {
+ iso.ISO_Dia = Convert.ToDecimal(this.txtDia.Text);
+ }
+ else
+ {
+ Alert.ShowInTop("请输入外径!", MessageBoxIcon.Warning);
+ return;
+ }
+ if (drpJoty_B_Rate.SelectedValue == Const._Null)
+ {
+ Alert.ShowInTop("对接焊缝检测比例不能为空!", MessageBoxIcon.Warning);
+ return;
+ }
+ else
+ {
+ iso.Joty_B_Rate = drpJoty_B_Rate.SelectedValue;
+ }
+
+ if (drpJoty_Level.SelectedValue == Const._Null)
+ {
+ Alert.ShowInTop("对接焊缝合格等级不能为空!", MessageBoxIcon.Warning);
+ return;
+ }
+ else
+ {
+ iso.Joty_B_Level = drpJoty_Level.SelectedValue;
+ }
+
+ if (drpJoty_C_Rate.SelectedValue == Const._Null)
+ {
+ Alert.ShowInTop("角焊缝检测比例不能为空!", MessageBoxIcon.Warning);
+ return;
+ }
+ else
+ {
+ iso.Joty_C_Rate = drpJoty_C_Rate.SelectedValue;
+ }
+
+ if (this.drpJoty_C_Level.SelectedValue == Const._Null)
+ {
+ Alert.ShowInTop("角焊缝合格等级不能为空!", MessageBoxIcon.Warning);
+ return;
+ }
+ else
+ {
+ iso.Joty_C_Level = drpJoty_C_Level.SelectedValue;
+ }
+
+ if (drpJoty_D_Rate.SelectedValue == Const._Null)
+ {
+ Alert.ShowInTop("支管链接接头检测比例不能为空!", MessageBoxIcon.Warning);
+ return;
+ }
+ else
+ {
+ iso.Joty_D_Rate = drpJoty_D_Rate.SelectedValue;
+ }
+
+ if (drpJoty_D_Level.SelectedValue == Const._Null)
+ {
+ Alert.ShowInTop("支管链接焊缝合格等级不能为空!", MessageBoxIcon.Warning);
+ return;
+ }
+ else
+ {
+ iso.Joty_D_Level = drpJoty_D_Level.SelectedValue;
+ }
+ dic.Remove(ISO_ID);
+ ShowNotify("保存成功!", MessageBoxIcon.Success);
+ if (ckAll.Checked)
+ {
+ PageContext.RegisterStartupScript(ActiveWindow.GetWriteBackValueReference(ISO_ID) + ActiveWindow.GetHidePostBackReference());
+ }
+ else
+ {
+ PageContext.RegisterStartupScript(ActiveWindow.GetWriteBackValueReference("") + ActiveWindow.GetHidePostBackReference());
+
+ }
+ }
+ else
+ {
+ Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
+ return;
+ }
+ }
+ #endregion
+
+
+
+
+ #region 引用
+ ///
+ /// 根据单线图号拷贝到下列文本中
+ ///
+ ///
+ ///
+ protected void btnCopy_Click(object sender, EventArgs e)
+ {
+ if (!string.IsNullOrEmpty(this.txtISO_IsoNoS.Text.Trim()))
+ {
+ var isoInfo = BLL.HJGL_PW_IsoInfoService.GetIsoInfoByIsoNo(this.txtISO_IsoNoS.Text.Trim(), this.CurrUser.LoginProjectId);
+ if (isoInfo != null)
+ {
+ this.txtISO_IsoNo.Text = string.Empty;
+ if (!string.IsNullOrEmpty(isoInfo.BSU_ID))
+ {
+ this.drpBUS_ID.SelectedValue = isoInfo.BSU_ID;
+ }
+ if (!string.IsNullOrEmpty(isoInfo.ISC_ID))
+ {
+ this.drpIDName.SelectedValue = isoInfo.ISC_ID;
+ }
+ if (!string.IsNullOrEmpty(isoInfo.ISO_Executive))
+ {
+ this.drpExecStandard.SelectedValue = isoInfo.ISO_Executive;
+ }
+ if (!string.IsNullOrEmpty(isoInfo.STE_ID))
+ {
+ this.drpSTEName.SelectedValue = isoInfo.STE_ID;
+ }
+ if (!string.IsNullOrEmpty(isoInfo.MaterialStandardId))
+ {
+ this.drpMaterialStandardId.SelectedValue = isoInfo.MaterialStandardId;
+ }
+ if (!string.IsNullOrEmpty(isoInfo.SER_ID))
+ {
+ this.drpSER.SelectedValue = isoInfo.SER_ID;
+ var ser = BLL.HJGL_MediumService.GetServiceBySERID(this.drpSER.SelectedValue);
+ if (ser != null)
+ {
+ this.txtServiceAbbreviate.Text = ser.SER_Abbreviate;
+ }
+ }
+
+ this.txtPressureTestPackageNo.Text = isoInfo.PressureTestPackageNo;
+ this.txtISO_Paint.Text = isoInfo.ISO_Paint;
+ this.txtISO_Insulator.Text = isoInfo.ISO_Insulator;
+ this.txtOperatingPressure.Text = isoInfo.OperatingPressure;
+ this.txtOperatingTemperature.Text = isoInfo.OperatingTemperature;
+ if (!string.IsNullOrEmpty(isoInfo.PipeLineClass))
+ {
+ this.drpPipeLineClass.SelectedValue = isoInfo.PipeLineClass;
+ }
+ if (isoInfo.PipeLineLength.HasValue)
+ {
+ this.txtPipeLineLength.Text = isoInfo.PipeLineLength.ToString();
+ }
+ this.txtLeakageTest.Text = isoInfo.LeakageTest;
+ if (isoInfo.ISO_DesignPress.HasValue)
+ {
+ this.txtISO_DesignPress.Text = isoInfo.ISO_DesignPress.ToString();
+ }
+ if (isoInfo.ISO_DesignTemperature.HasValue)
+ {
+ this.txtISO_DesignTemperature.Text = isoInfo.ISO_DesignTemperature.ToString();
+ }
+ if (isoInfo.ISO_TestPress.HasValue)
+ {
+ this.txtISO_TestPress.Text = isoInfo.ISO_TestPress.ToString();
+ }
+ this.txtTestCategoryNum.Text = isoInfo.TestCategoryNum;
+
+ this.txtISO_Remark.Text = isoInfo.ISO_Remark;
+ if (isoInfo.ISO_Dia != null)
+ {
+ this.txtDia.Text = isoInfo.ISO_Dia.ToString();
+ }
+ if (isoInfo.ISO_Sch != null)
+ {
+ this.txtSch.Text = isoInfo.ISO_Sch.ToString();
+ }
+
+ if (!string.IsNullOrEmpty(isoInfo.Joty_B_Rate))
+ {
+ drpJoty_B_Rate.SelectedValue = isoInfo.Joty_B_Rate;
+ }
+ if (!string.IsNullOrEmpty(isoInfo.Joty_C_Rate))
+ {
+ drpJoty_C_Rate.SelectedValue = isoInfo.Joty_C_Rate;
+ }
+ if (!string.IsNullOrEmpty(isoInfo.Joty_D_Rate))
+ {
+ drpJoty_D_Rate.SelectedValue = isoInfo.Joty_D_Rate;
+ }
+
+ if (!string.IsNullOrEmpty(isoInfo.Joty_B_Level))
+ {
+ drpJoty_Level.SelectedValue = isoInfo.Joty_B_Level;
+ }
+ if (!string.IsNullOrEmpty(isoInfo.Joty_C_Level))
+ {
+ drpJoty_C_Level.SelectedValue = isoInfo.Joty_C_Level;
+ }
+ if (!string.IsNullOrEmpty(isoInfo.Joty_D_Level))
+ {
+ drpJoty_D_Level.SelectedValue = isoInfo.Joty_D_Level;
+ }
+
+ //选择管道等级、执行标准时,自动添加对接焊缝检测比例、合格等级、支管连接接头检测比例、合格等级、角焊缝检测比例、合格等级
+ //var weldControl = BLL.HJGL_WeldControlService.GEtWeldControlByISCIDAndExecStandardId(this.drpIDName.SelectedValue, this.drpExecStandard.SelectedValue);
+ //if (weldControl != null)
+ //{
+ // if (!string.IsNullOrEmpty(weldControl.Joty_Rate))
+ // {
+ // var rate = BLL.HJGL_DetectionService.GetNDTRateByNDTRID(weldControl.Joty_Rate);
+ // if (rate != null)
+ // {
+ // this.txtTestCategoryNum.Text = rate.NDTR_Code;
+ // if (drpJoty_B_Rate.SelectedValue == Const._Null || string.IsNullOrEmpty(drpJoty_B_Rate.SelectedValue))
+ // {
+ // drpJoty_B_Rate.SelectedValue = weldControl.Joty_Rate;
+ // }
+ // }
+ // }
+ // this.txtJoty_Level.Text = weldControl.Joty_Level;
+ // if (!string.IsNullOrEmpty(weldControl.Joty_C_Rate))
+ // {
+ // if (drpJoty_C_Rate.SelectedValue == Const._Null || string.IsNullOrEmpty(drpJoty_C_Rate.SelectedValue))
+ // {
+ // drpJoty_C_Rate.SelectedValue = weldControl.Joty_C_Rate;
+ // }
+ // }
+ // this.txtJoty_C_Level.Text = weldControl.Joty_C_Level;
+ // if (!string.IsNullOrEmpty(weldControl.Joty_D_Rate))
+ // {
+ // if (drpJoty_D_Rate.SelectedValue == Const._Null || string.IsNullOrEmpty(drpJoty_D_Rate.SelectedValue))
+ // {
+ // drpJoty_D_Rate.SelectedValue = weldControl.Joty_D_Rate;
+ // }
+ // }
+ // this.txtJoty_D_Level.Text = weldControl.Joty_D_Level;
+ //}
+ }
+ else
+ {
+ this.txtISO_IsoNo.Text = string.Empty;
+ this.drpBUS_ID.SelectedValue = BLL.Const._Null;
+ this.drpIDName.SelectedValue = BLL.Const._Null;
+ this.drpExecStandard.SelectedValue = BLL.Const._Null;
+ this.drpSTEName.SelectedValue = BLL.Const._Null;
+ this.drpMaterialStandardId.SelectedValue = BLL.Const._Null;
+ this.drpSER.SelectedValue = BLL.Const._Null;
+ this.txtPressureTestPackageNo.Text = string.Empty;
+ this.txtISO_Paint.Text = string.Empty;
+ this.txtISO_Insulator.Text = string.Empty;
+ this.txtOperatingPressure.Text = string.Empty;
+ this.txtOperatingTemperature.Text = string.Empty;
+ this.drpPipeLineClass.SelectedValue = BLL.Const._Null;
+ this.txtPipeLineLength.Text = string.Empty;
+ this.txtLeakageTest.Text = string.Empty;
+ this.txtServiceAbbreviate.Text = string.Empty;
+ this.txtISO_DesignPress.Text = string.Empty;
+ this.txtISO_DesignTemperature.Text = string.Empty;
+ this.txtISO_TestPress.Text = string.Empty;
+ this.txtTestCategoryNum.Text = string.Empty;
+ }
+ }
+ }
+ #endregion
+
+ #region DropDownList下拉选择
+ ///
+ /// DropDownList下拉选择
+ ///
+ ///
+ ///
+ protected void DrpList_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ ///选择介质时自动加载介质缩写
+ var ser = BLL.HJGL_MediumService.GetServiceBySERID(this.drpSER.SelectedValue);
+ if (ser != null)
+ {
+ this.txtServiceAbbreviate.Text = ser.SER_Abbreviate;
+ }
+ else
+ {
+ this.txtServiceAbbreviate.Text = string.Empty;
+ }
+
+ //选择管道等级、执行标准时,自动添加对接焊缝检测比例、合格等级、支管连接接头检测比例、合格等级、角焊缝检测比例、合格等级
+ var weldControl = BLL.HJGL_WeldControlService.GEtWeldControlByISCIDAndExecStandardId(this.drpIDName.SelectedValue, this.drpExecStandard.SelectedValue);
+ if (weldControl != null)
+ {
+ if (!string.IsNullOrEmpty(weldControl.Joty_Rate))
+ {
+ var rate = BLL.HJGL_DetectionService.GetNDTRateByNDTRID(weldControl.Joty_Rate);
+ if (rate != null)
+ {
+ this.txtTestCategoryNum.Text = rate.NDTR_Code;
+ }
+ drpJoty_B_Rate.SelectedValue = weldControl.Joty_Rate;
+ }
+ if (!string.IsNullOrEmpty(weldControl.Joty_Level))
+ {
+ this.drpJoty_Level.SelectedValue = weldControl.Joty_Level;
+ }
+
+ if (!string.IsNullOrEmpty(weldControl.Joty_C_Rate))
+ {
+ drpJoty_C_Rate.SelectedValue = weldControl.Joty_C_Rate;
+ }
+ if (!string.IsNullOrEmpty(weldControl.Joty_C_Level))
+ {
+ this.drpJoty_C_Level.SelectedValue = weldControl.Joty_C_Level;
+ }
+
+
+ if (!string.IsNullOrEmpty(weldControl.Joty_D_Rate))
+ {
+ drpJoty_D_Rate.SelectedValue = weldControl.Joty_D_Rate;
+ }
+ if (!string.IsNullOrEmpty(weldControl.Joty_D_Level))
+ {
+ this.drpJoty_D_Level.SelectedValue = weldControl.Joty_D_Level;
+ }
+
+ }
+ else
+ {
+ this.drpJoty_B_Rate.SelectedValue = Const._Null;
+ drpJoty_Level.SelectedValue = Const._Null;
+ this.drpJoty_C_Rate.SelectedValue = Const._Null;
+ this.drpJoty_C_Level.Text = Const._Null;
+ this.drpJoty_D_Rate.SelectedValue = Const._Null;
+ this.drpJoty_D_Level.Text = Const._Null;
+ }
+ }
+
+
+ ///
+ /// 是否显示热处理类型
+ ///
+ ///
+ ///
+ protected void drpIsHot_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ if (this.drpIsHot.SelectedValue == "1")
+ {
+ this.drpIsHotType.Hidden = false;
+ }
+ else
+ {
+ this.drpIsHotType.Hidden = true;
+ }
+ }
+ #endregion
+
+ #region 选项卡切换事件
+ ///
+ /// 选项卡切换事件
+ ///
+ ///
+ ///
+ protected void TabStrip1_TabIndexChanged(object sender, EventArgs e)
+ {
+ if (TabStrip1.ActiveTabIndex == 1)
+ {
+ this.Form2.Hidden = true;
+ }
+ else
+ {
+ this.Form2.Hidden = false;
+ }
+ }
+ #endregion
+
+ #region 格式化字符串
+ ///
+ /// 得到热处理类型
+ ///
+ ///
+ ///
+ protected string ConvertCheckState(object checkState)
+ {
+ string str = string.Empty;
+ if (checkState != null)
+ {
+ if (checkState.ToString() == "1")
+ {
+ str = "待检测";
+ }
+ if (checkState.ToString() == "2")
+ {
+ str = "检测合格";
+ }
+ if (checkState.ToString() == "3")
+ {
+ str = "待重检";
+ }
+ if (checkState.ToString() == "4")
+ {
+ str = "待返修";
+ }
+ }
+
+ return str;
+ }
+ #endregion
+
+ }
+}
\ No newline at end of file
diff --git a/HJGL_DS/FineUIPro.Web/HJGL/DataIn/PipelineInEdit.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/HJGL/DataIn/PipelineInEdit.aspx.designer.cs
new file mode 100644
index 0000000..fc3c849
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/HJGL/DataIn/PipelineInEdit.aspx.designer.cs
@@ -0,0 +1,449 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.HJGL.DataIn
+{
+
+
+ public partial class PipelineInEdit
+ {
+
+ ///
+ /// form1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// PageManager1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.PageManager PageManager1;
+
+ ///
+ /// Panel1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Panel Panel1;
+
+ ///
+ /// TabStrip1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TabStrip TabStrip1;
+
+ ///
+ /// Tab1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Tab Tab1;
+
+ ///
+ /// SimpleForm1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form SimpleForm1;
+
+ ///
+ /// Toolbar1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar1;
+
+ ///
+ /// txtISO_IsoNoS 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtISO_IsoNoS;
+
+ ///
+ /// btnCopy 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnCopy;
+
+ ///
+ /// ToolbarFill1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarFill ToolbarFill1;
+
+ ///
+ /// btnSave 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnSave;
+
+ ///
+ /// txtISO_IsoNo 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtISO_IsoNo;
+
+ ///
+ /// drpBUS_ID 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpBUS_ID;
+
+ ///
+ /// drpIDName 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpIDName;
+
+ ///
+ /// drpExecStandard 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpExecStandard;
+
+ ///
+ /// drpSTEName 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpSTEName;
+
+ ///
+ /// drpMaterialStandardId 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpMaterialStandardId;
+
+ ///
+ /// drpSER 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpSER;
+
+ ///
+ /// txtServiceAbbreviate 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtServiceAbbreviate;
+
+ ///
+ /// txtPressureTestPackageNo 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtPressureTestPackageNo;
+
+ ///
+ /// drpPipeLineClass 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpPipeLineClass;
+
+ ///
+ /// txtISO_Paint 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtISO_Paint;
+
+ ///
+ /// txtISO_Insulator 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtISO_Insulator;
+
+ ///
+ /// txtOperatingPressure 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtOperatingPressure;
+
+ ///
+ /// txtOperatingTemperature 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtOperatingTemperature;
+
+ ///
+ /// txtLeakageTest 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtLeakageTest;
+
+ ///
+ /// txtISO_DesignPress 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.NumberBox txtISO_DesignPress;
+
+ ///
+ /// txtISO_DesignTemperature 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.NumberBox txtISO_DesignTemperature;
+
+ ///
+ /// txtISO_TestPress 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.NumberBox txtISO_TestPress;
+
+ ///
+ /// txtDia 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.NumberBox txtDia;
+
+ ///
+ /// txtSch 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.NumberBox txtSch;
+
+ ///
+ /// txtPipeLineLength 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.NumberBox txtPipeLineLength;
+
+ ///
+ /// txtTestCategoryNum 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtTestCategoryNum;
+
+ ///
+ /// drpIsHot 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpIsHot;
+
+ ///
+ /// drpIsHotType 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownBox drpIsHotType;
+
+ ///
+ /// SimpleForm3 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.SimpleForm SimpleForm3;
+
+ ///
+ /// Label10 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Label Label10;
+
+ ///
+ /// RadioButtonList1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.CheckBoxList RadioButtonList1;
+
+ ///
+ /// ckAll 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.CheckBox ckAll;
+
+ ///
+ /// txtISO_Remark 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtISO_Remark;
+
+ ///
+ /// Form2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form2;
+
+ ///
+ /// drpJoty_B_Rate 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpJoty_B_Rate;
+
+ ///
+ /// drpJoty_Level 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpJoty_Level;
+
+ ///
+ /// drpJoty_C_Rate 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpJoty_C_Rate;
+
+ ///
+ /// drpJoty_C_Level 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpJoty_C_Level;
+
+ ///
+ /// drpJoty_D_Rate 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpJoty_D_Rate;
+
+ ///
+ /// drpJoty_D_Level 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpJoty_D_Level;
+
+ ///
+ /// Label3 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Label Label3;
+ }
+}
diff --git a/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/PipelineManageEdit.aspx b/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/PipelineManageEdit.aspx
index 6f45ca3..0a2e4bf 100644
--- a/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/PipelineManageEdit.aspx
+++ b/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/PipelineManageEdit.aspx
@@ -268,3 +268,4 @@