diff --git a/.vs/Basf_TCC7/v17/.wsuo b/.vs/Basf_TCC7/v17/.wsuo
index 60614da..22f9802 100644
Binary files a/.vs/Basf_TCC7/v17/.wsuo and b/.vs/Basf_TCC7/v17/.wsuo differ
diff --git a/.vs/Basf_TCC7/v17/DocumentLayout.json b/.vs/Basf_TCC7/v17/DocumentLayout.json
index 10aa578..4f87fa6 100644
--- a/.vs/Basf_TCC7/v17/DocumentLayout.json
+++ b/.vs/Basf_TCC7/v17/DocumentLayout.json
@@ -51,10 +51,6 @@
"$type": "Bookmark",
"Name": "ST:3:0:{f2bd8fb8-fc94-3dae-a733-fd993c73cc87}"
},
- {
- "$type": "Bookmark",
- "Name": "ST:128:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
- },
{
"$type": "Bookmark",
"Name": "ST:129:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
diff --git a/HJGL/.vs/HJGL/v17/.suo b/HJGL/.vs/HJGL/v17/.suo
index 1dda589..0ddbe03 100644
Binary files a/HJGL/.vs/HJGL/v17/.suo and b/HJGL/.vs/HJGL/v17/.suo differ
diff --git a/HJGL/BLL/Common/Const.cs b/HJGL/BLL/Common/Const.cs
index 05d1ef1..59b5c98 100644
--- a/HJGL/BLL/Common/Const.cs
+++ b/HJGL/BLL/Common/Const.cs
@@ -222,6 +222,10 @@ namespace BLL
/// 试压包导入模版文件原始的虚拟路径
///
public const string HJGL_TestTemplateUrl = "File\\Excel\\试压包导入模版.xlsx";
+ ///
+ /// PMI委托导入模版
+ ///
+ public const string HJGL_PMITemplateUrl = "File\\Excel\\PMI委托导入模版.xlsx";
///
/// PDMS导入模版文件原始的虚拟路径
diff --git a/HJGL/FineUIPro.Web/App_GlobalResources/Lan.Designer.cs b/HJGL/FineUIPro.Web/App_GlobalResources/Lan.Designer.cs
index ff85a82..d708d80 100644
--- a/HJGL/FineUIPro.Web/App_GlobalResources/Lan.Designer.cs
+++ b/HJGL/FineUIPro.Web/App_GlobalResources/Lan.Designer.cs
@@ -2391,6 +2391,15 @@ namespace Resources {
}
}
+ ///
+ /// 查找类似 导入 的本地化字符串。
+ ///
+ internal static string Import {
+ get {
+ return ResourceManager.GetString("Import", resourceCulture);
+ }
+ }
+
///
/// 查找类似 寸径 的本地化字符串。
///
diff --git a/HJGL/FineUIPro.Web/App_GlobalResources/Lan.en-US.resx b/HJGL/FineUIPro.Web/App_GlobalResources/Lan.en-US.resx
index 0995089..89314a1 100644
--- a/HJGL/FineUIPro.Web/App_GlobalResources/Lan.en-US.resx
+++ b/HJGL/FineUIPro.Web/App_GlobalResources/Lan.en-US.resx
@@ -2769,4 +2769,8 @@
Home Page
首页
+
+ Import
+ 导入
+
\ No newline at end of file
diff --git a/HJGL/FineUIPro.Web/App_GlobalResources/Lan.resx b/HJGL/FineUIPro.Web/App_GlobalResources/Lan.resx
index 4110d2d..71f2b22 100644
--- a/HJGL/FineUIPro.Web/App_GlobalResources/Lan.resx
+++ b/HJGL/FineUIPro.Web/App_GlobalResources/Lan.resx
@@ -2139,4 +2139,7 @@
返修扩探追踪清单
+
+ 导入
+
\ No newline at end of file
diff --git a/HJGL/FineUIPro.Web/App_GlobalResources/Lan.zh-CN.resx b/HJGL/FineUIPro.Web/App_GlobalResources/Lan.zh-CN.resx
index 3938dba..6768fed 100644
--- a/HJGL/FineUIPro.Web/App_GlobalResources/Lan.zh-CN.resx
+++ b/HJGL/FineUIPro.Web/App_GlobalResources/Lan.zh-CN.resx
@@ -2106,4 +2106,7 @@
首页
+
+ 导入
+
\ No newline at end of file
diff --git a/HJGL/FineUIPro.Web/File/Excel/HJGL_DataOut/管道追溯表.xlsx b/HJGL/FineUIPro.Web/File/Excel/HJGL_DataOut/管道追溯表.xlsx
index e9eb296..8908c51 100644
Binary files a/HJGL/FineUIPro.Web/File/Excel/HJGL_DataOut/管道追溯表.xlsx and b/HJGL/FineUIPro.Web/File/Excel/HJGL_DataOut/管道追溯表.xlsx differ
diff --git a/HJGL/FineUIPro.Web/File/Excel/PMI委托导入模版.xlsx b/HJGL/FineUIPro.Web/File/Excel/PMI委托导入模版.xlsx
new file mode 100644
index 0000000..b5904e1
Binary files /dev/null and b/HJGL/FineUIPro.Web/File/Excel/PMI委托导入模版.xlsx differ
diff --git a/HJGL/FineUIPro.Web/FineUIPro.Web.csproj b/HJGL/FineUIPro.Web/FineUIPro.Web.csproj
index 4aa5056..47d7b19 100644
--- a/HJGL/FineUIPro.Web/FineUIPro.Web.csproj
+++ b/HJGL/FineUIPro.Web/FineUIPro.Web.csproj
@@ -1279,6 +1279,7 @@
+
@@ -5483,6 +5484,13 @@
DataInEdit.aspx
+
+ ImportError.aspx
+ ASPXCodeBehind
+
+
+ ImportError.aspx
+
PMIDelegation.aspx
ASPXCodeBehind
diff --git a/HJGL/FineUIPro.Web/Global.asax.cs b/HJGL/FineUIPro.Web/Global.asax.cs
index 3cb1659..17afa2d 100644
--- a/HJGL/FineUIPro.Web/Global.asax.cs
+++ b/HJGL/FineUIPro.Web/Global.asax.cs
@@ -297,6 +297,10 @@
{
var wpsList = from x in Funs.DB.WPQ_WPQList where x.ProjectId == ((Model.Sys_User)Session["CurrUser"]).LoginProjectId select x;
var welderList = from x in Funs.DB.Welder_ProjectWelder where x.ProjectId == ((Model.Sys_User)Session["CurrUser"]).LoginProjectId select x;
+ if (wpsList==null)
+ {
+ return;
+ }
foreach (var wps in
wpsList)
{
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/CheckManage/RepairAndExpand.aspx.cs b/HJGL/FineUIPro.Web/WeldingProcess/CheckManage/RepairAndExpand.aspx.cs
index 8b81d26..1e81e7a 100644
--- a/HJGL/FineUIPro.Web/WeldingProcess/CheckManage/RepairAndExpand.aspx.cs
+++ b/HJGL/FineUIPro.Web/WeldingProcess/CheckManage/RepairAndExpand.aspx.cs
@@ -33,7 +33,7 @@ namespace FineUIPro.Web.WeldingProcess.CheckManage
if (!string.IsNullOrEmpty(repairRecordId))
{
this.txtPipeCode.Text = jot.PipelineCode;
- txtWeldJointCode.Text = jot.WeldJointCode;
+ txtWeldJointCode.Text = jot.WeldJointCode+repairRecord.RepairMark;
txtWelder.Text = jot.BackingWelderCode;
txtRepairLocation.Text = repairRecord.RepairLocation;
txtJudgeGrade.Text = ndeItem.JudgeGrade;
@@ -657,11 +657,11 @@ namespace FineUIPro.Web.WeldingProcess.CheckManage
//}
db.Repair_RepairRecord.DeleteOnSubmit(repair);
db.SubmitChanges();
- if (joint.WeldJointCode.Contains("P") || joint.WeldJointCode.Contains("S") || joint.WeldJointCode.Contains("R"))
- {
- Pipeline_WeldJointService.DeleteWeldJointById(joint.WeldJointId);
+ //if (joint.WeldJointCode.Contains("P") || joint.WeldJointCode.Contains("S") || joint.WeldJointCode.Contains("R"))
+ //{
+ // Pipeline_WeldJointService.DeleteWeldJointById(joint.WeldJointId);
- }
+ //}
this.InitTreeMenu();//加载树
Alert.ShowInTop("删除成功!", MessageBoxIcon.Success);
}
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/CheckManage/RepairNotice.aspx.cs b/HJGL/FineUIPro.Web/WeldingProcess/CheckManage/RepairNotice.aspx.cs
index ef251cc..d415f68 100644
--- a/HJGL/FineUIPro.Web/WeldingProcess/CheckManage/RepairNotice.aspx.cs
+++ b/HJGL/FineUIPro.Web/WeldingProcess/CheckManage/RepairNotice.aspx.cs
@@ -212,61 +212,61 @@ namespace FineUIPro.Web.WeldingProcess.CheckManage
// 回写焊口号
- var weldJoint = BLL.Pipeline_WeldJointService.GetWeldJointByWeldJointId(q.WeldJointId);
- //joint.WeldJointCode = newJointCode;
- //joint.OldWeldJointCode = q.WeldJointCode;
- //Funs.DB.SubmitChanges();
- Model.Pipeline_WeldJoint newWeldJoint = new Model.Pipeline_WeldJoint
- {
- WeldJointId = SQLHelper.GetNewID(typeof(Model.Pipeline_WeldJoint)),
- ProjectId = weldJoint.ProjectId,
- PipelineId = weldJoint.PipelineId,
- WeldJointCode = newJointCode,
- WeldTypeId = weldJoint.WeldTypeId,
- Material1Id = weldJoint.Material1Id,
- Material2Id = weldJoint.Material2Id,
- Thickness = weldJoint.Thickness,
- Dia = weldJoint.Dia,
- Size = weldJoint.Size,
- JointAttribute = weldJoint.JointAttribute,
- JointArea = weldJoint.JointArea,
- WeldingMethodId = weldJoint.WeldingMethodId,
- IsHotProess = weldJoint.IsHotProess,
- WeldingLocationId = weldJoint.WeldingLocationId,
- WeldMatId = weldJoint.WeldMatId,
- WeldSilkId = weldJoint.WeldSilkId,
- GrooveTypeId = weldJoint.GrooveTypeId,
- PipeSegment = weldJoint.PipeSegment,
- PipeAssembly1Id = weldJoint.PipeAssembly1Id,
- PipeAssembly2Id = weldJoint.PipeAssembly2Id,
- PipeAssemblyCount = weldJoint.PipeAssemblyCount,
- HeartNo1 = weldJoint.HeartNo1,
- HeartNo2 = weldJoint.HeartNo2,
- LastTemp = weldJoint.LastTemp,
- CellTemp = weldJoint.CellTemp,
- PrepareTemp = weldJoint.PrepareTemp,
- Electricity = weldJoint.Electricity,
- Voltage = weldJoint.Voltage,
- TestPackageNo = weldJoint.TestPackageNo,
- WeldingDailyCode = weldJoint.WeldingDailyCode,
- BackingWelderId = weldJoint.BackingWelderId,
- CoverWelderId = weldJoint.CoverWelderId,
- WeldingDailyId = weldJoint.WeldingDailyId,
- PipingClassId = weldJoint.PipingClassId,
- Specification = weldJoint.Specification,
- DoneDin = weldJoint.DoneDin,
- SystemNumber = weldJoint.SystemNumber,
- Remark = weldJoint.Remark,
- IsGoldJoint = weldJoint.IsGoldJoint,
- IsPMI = weldJoint.IsPMI,
- WPQId = weldJoint.WPQId,
- DetectionType = weldJoint.DetectionType,
- PageNum = weldJoint.PageNum,
- ANSISCH = weldJoint.ANSISCH,
- OldWeldJointCode = weldJoint.OldWeldJointCode,
+ /*var joint = BLL.Pipeline_WeldJointService.GetWeldJointByWeldJointId(q.WeldJointId);
+ joint.WeldJointCode = newJointCode;
+ joint.OldWeldJointCode = q.WeldJointCode;
+ Funs.DB.SubmitChanges();*/
+ // Model.Pipeline_WeldJoint newWeldJoint = new Model.Pipeline_WeldJoint
+ // {
+ // WeldJointId = SQLHelper.GetNewID(typeof(Model.Pipeline_WeldJoint)),
+ // ProjectId = weldJoint.ProjectId,
+ // PipelineId = weldJoint.PipelineId,
+ // WeldJointCode = newJointCode,
+ // WeldTypeId = weldJoint.WeldTypeId,
+ // Material1Id = weldJoint.Material1Id,
+ // Material2Id = weldJoint.Material2Id,
+ // Thickness = weldJoint.Thickness,
+ // Dia = weldJoint.Dia,
+ // Size = weldJoint.Size,
+ // JointAttribute = weldJoint.JointAttribute,
+ // JointArea = weldJoint.JointArea,
+ // WeldingMethodId = weldJoint.WeldingMethodId,
+ // IsHotProess = weldJoint.IsHotProess,
+ // WeldingLocationId = weldJoint.WeldingLocationId,
+ // WeldMatId = weldJoint.WeldMatId,
+ // WeldSilkId = weldJoint.WeldSilkId,
+ // GrooveTypeId = weldJoint.GrooveTypeId,
+ // PipeSegment = weldJoint.PipeSegment,
+ // PipeAssembly1Id = weldJoint.PipeAssembly1Id,
+ // PipeAssembly2Id = weldJoint.PipeAssembly2Id,
+ // PipeAssemblyCount = weldJoint.PipeAssemblyCount,
+ // HeartNo1 = weldJoint.HeartNo1,
+ // HeartNo2 = weldJoint.HeartNo2,
+ // LastTemp = weldJoint.LastTemp,
+ // CellTemp = weldJoint.CellTemp,
+ // PrepareTemp = weldJoint.PrepareTemp,
+ // Electricity = weldJoint.Electricity,
+ // Voltage = weldJoint.Voltage,
+ // TestPackageNo = weldJoint.TestPackageNo,
+ // WeldingDailyCode = weldJoint.WeldingDailyCode,
+ // BackingWelderId = weldJoint.BackingWelderId,
+ // CoverWelderId = weldJoint.CoverWelderId,
+ // WeldingDailyId = weldJoint.WeldingDailyId,
+ // PipingClassId = weldJoint.PipingClassId,
+ // Specification = weldJoint.Specification,
+ // DoneDin = weldJoint.DoneDin,
+ // SystemNumber = weldJoint.SystemNumber,
+ // Remark = weldJoint.Remark,
+ // IsGoldJoint = weldJoint.IsGoldJoint,
+ // IsPMI = weldJoint.IsPMI,
+ // WPQId = weldJoint.WPQId,
+ // DetectionType = weldJoint.DetectionType,
+ // PageNum = weldJoint.PageNum,
+ // ANSISCH = weldJoint.ANSISCH,
+ // OldWeldJointCode = weldJoint.OldWeldJointCode,
- };
- string WeldJointId= BLL.Pipeline_WeldJointService.AddWeldJointRef(newWeldJoint);
+ // };
+ //string WeldJointId= BLL.Pipeline_WeldJointService.AddWeldJointRef(newWeldJoint);
newItem.ProjectId = q.ProjectId;
newItem.UnitId = q.UnitId;
@@ -274,7 +274,7 @@ namespace FineUIPro.Web.WeldingProcess.CheckManage
newItem.WorkAreaId = q.WorkAreaId;
newItem.NoticeDate = DateTime.Now;
newItem.NDEItemID = ndeItemId;
- newItem.WeldJointId = WeldJointId;
+ newItem.WeldJointId = q.WeldJointId;
newItem.DetectionTypeId = q.DetectionTypeId;
newItem.WelderId = q.BackingWelderId;
newItem.RepairLocation = q.RepairLocation;
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/PMI/ImportError.aspx b/HJGL/FineUIPro.Web/WeldingProcess/PMI/ImportError.aspx
new file mode 100644
index 0000000..308de6e
--- /dev/null
+++ b/HJGL/FineUIPro.Web/WeldingProcess/PMI/ImportError.aspx
@@ -0,0 +1,36 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ImportError.aspx.cs" Inherits="FineUIPro.Web.WeldingProcess.PMI.ImportError" %>
+
+
+
+
+
+
+ PMI导入错误日志
+
+
+
+
+
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/PMI/ImportError.aspx.cs b/HJGL/FineUIPro.Web/WeldingProcess/PMI/ImportError.aspx.cs
new file mode 100644
index 0000000..52c9d25
--- /dev/null
+++ b/HJGL/FineUIPro.Web/WeldingProcess/PMI/ImportError.aspx.cs
@@ -0,0 +1,29 @@
+using BLL;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace FineUIPro.Web.WeldingProcess.PMI
+{
+ public partial class ImportError : PageBase
+ {
+ string batchNo = string.Empty;
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ this.batchNo = Request.Params["batchNo"];
+ if (!IsPostBack)
+ {
+ BindGrid();
+ }
+ }
+ void BindGrid()
+ {
+ var list = Funs.DB.PMI_ImportErrorLog.Where(t => t.BatchNo == batchNo).OrderBy(t => t.RowId).ToList();
+ this.Grid1.DataSource = list;
+ this.Grid1.DataBind();
+ }
+ }
+}
\ No newline at end of file
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/PMI/ImportError.aspx.designer.cs b/HJGL/FineUIPro.Web/WeldingProcess/PMI/ImportError.aspx.designer.cs
new file mode 100644
index 0000000..0a4118b
--- /dev/null
+++ b/HJGL/FineUIPro.Web/WeldingProcess/PMI/ImportError.aspx.designer.cs
@@ -0,0 +1,53 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.WeldingProcess.PMI
+{
+
+
+ public partial class ImportError
+ {
+
+ ///
+ /// form1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// PageManager1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.PageManager PageManager1;
+
+ ///
+ /// Grid1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Grid Grid1;
+
+ ///
+ /// lablRemark 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label lablRemark;
+ }
+}
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/PMI/PMIDelegation.aspx b/HJGL/FineUIPro.Web/WeldingProcess/PMI/PMIDelegation.aspx
index 1b487af..a8c5898 100644
--- a/HJGL/FineUIPro.Web/WeldingProcess/PMI/PMIDelegation.aspx
+++ b/HJGL/FineUIPro.Web/WeldingProcess/PMI/PMIDelegation.aspx
@@ -38,8 +38,17 @@
+
+
+
+
+
+
+
-
+
+