diff --git a/HJGL/.vs/HJGL/v17/.suo b/HJGL/.vs/HJGL/v17/.suo
index 17c6f2c..f805997 100644
Binary files a/HJGL/.vs/HJGL/v17/.suo and b/HJGL/.vs/HJGL/v17/.suo differ
diff --git a/HJGL/BLL/BLL.csproj b/HJGL/BLL/BLL.csproj
index 87fc54c..e26ba02 100644
--- a/HJGL/BLL/BLL.csproj
+++ b/HJGL/BLL/BLL.csproj
@@ -163,6 +163,7 @@
+
diff --git a/HJGL/BLL/WeldingProcess/PMI/PMIDelegation_Service.cs b/HJGL/BLL/WeldingProcess/PMI/PMIDelegation_Service.cs
new file mode 100644
index 0000000..1ce0380
--- /dev/null
+++ b/HJGL/BLL/WeldingProcess/PMI/PMIDelegation_Service.cs
@@ -0,0 +1,61 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace BLL
+{
+ public class PMIDelegation_Service
+ {
+ ///
+ /// 查找后返回集合增加到列表
+ ///
+ ///
+ ///
+ public static List GetPMI_DelegationAddItem(string hdItemsString)
+ {
+ var jointInfos = from x in Funs.DB.View_Pipeline_WeldJoint select x;
+ List returnViewMatch = new List();
+ if (!string.IsNullOrEmpty(hdItemsString))
+ {
+ List jotIds = Funs.GetStrListByStr(hdItemsString, '|');
+ foreach (var jotItem in jotIds)
+ {
+ string[] strs = jotItem.Split(',');
+ var jotInfo = jointInfos.FirstOrDefault(x => x.WeldJointId == strs[0]);
+ Model.View_PMI_DelegationDetails newItem = new Model.View_PMI_DelegationDetails();
+ newItem.Id = SQLHelper.GetNewID(typeof(Model.View_PMI_DelegationDetails));
+ newItem.WeldJointId = jotInfo.WeldJointId;
+ newItem.WeldJointCode = jotInfo.WeldJointCode;
+ newItem.PipelineCode = jotInfo.PipelineCode;
+ newItem.Specification = jotInfo.Specification;
+ newItem.MaterialCode = jotInfo.Material1Code;
+ newItem.QualityNo = string.Empty;
+ newItem.Acceptance = string.Empty;
+ newItem.Status = 0;
+ newItem.PMIId = string.Empty;
+ newItem.WorkAreaId = jotInfo.WorkAreaId;
+ newItem.CreatedTime = DateTime.Now;
+ newItem.DelegationDate= DateTime.Now;
+ newItem.DelegationNo = string.Empty;
+ returnViewMatch.Add(newItem);
+ }
+ }
+ return returnViewMatch;
+ }
+ ///
+ /// 返回视图列表集合
+ ///
+
+ public static List GetPMI_DelegationItem(string projectId, string pmiId)
+ {
+ List returnViewMatch = (from x in Funs.DB.View_PMI_DelegationDetails
+ where x.ProjectId == projectId && x.PMIId == pmiId
+ select x).ToList();
+ return returnViewMatch;
+ }
+
+
+ }
+}
diff --git a/HJGL/DataBase/版本日志/BSFDB_2024-05-10.sql b/HJGL/DataBase/版本日志/BSFDB_2024-05-10.sql
index 8af3c83..f6c4b0e 100644
--- a/HJGL/DataBase/版本日志/BSFDB_2024-05-10.sql
+++ b/HJGL/DataBase/版本日志/BSFDB_2024-05-10.sql
@@ -31,4 +31,36 @@ update Pipeline_WeldJoint set isPMI=0
-- PMIίв˵
insert into Sys_Menu values('A6FB44C3-0920-4F77-862F-D814FD5E5D23','PMI','PMI detection management','',21,0,3,NUll,1)
insert into Sys_Menu values(NEWID(),'PMIί','PMI delegation','/WeldingProcess/PMI/PMIDelegation.aspx',0,'A6FB44C3-0920-4F77-862F-D814FD5E5D23',3,NULL,1)
-insert into Sys_Menu values(NEWID(),'PMI¼','PMI detection entry','/WeldingProcess/PMI/PMIDetectionEntry.aspx',0,'A6FB44C3-0920-4F77-862F-D814FD5E5D23',3,NULL,1)
\ No newline at end of file
+insert into Sys_Menu values(NEWID(),'PMI¼','PMI detection entry','/WeldingProcess/PMI/PMIDetectionEntry.aspx',0,'A6FB44C3-0920-4F77-862F-D814FD5E5D23',3,NULL,1)
+
+
+
+CREATE VIEW [dbo].[View_PMI_DelegationDetails]
+AS
+/*******Ӳίϸ***********/
+SELECT
+B.PMIId,
+B.JointId,
+B.QualityNo,
+B.Acceptance,
+B.CreatedTime,
+B.status,
+Pipeline.PipelineCode,
+WeldJoint.WeldJointCode,
+WeldJoint.Specification,
+WeldJoint.Remark,
+Pipeline.SingleNumber,
+(CASE WHEN WeldJoint.CoverWelderCode IS NOT NULL AND WeldJoint.BackingWelderCode IS NOT NULL
+ THEN WeldJoint.CoverWelderCode + '/' + WeldJoint.BackingWelderCode
+ ELSE (ISNULL(WeldJoint.CoverWelderCode,'') + ISNULL(WeldJoint.BackingWelderCode,'')) END) AS WelderCode, --
+ (CASE WHEN WeldJoint.Material1Code IS NOT NULL AND WeldJoint.Material2Code IS NOT NULL
+ THEN WeldJoint.Material1Code + '/' + WeldJoint.Material2Code
+ ELSE (ISNULL(WeldJoint.Material1Code,'') + ISNULL(WeldJoint.Material2Code,'')) END) AS MaterialCode --
+FROM PMI_Delegation AS A INNER JOIN
+PMI_DelegationDetails AS B ON A.Id=B.PMIId
+LEFT JOIN View_Pipeline_WeldJoint AS WeldJoint ON WeldJoint.WeldJointId=B.JointId
+LEFT JOIN Pipeline_Pipeline AS Pipeline ON Pipeline.PipelineId=WeldJoint.PipelineId
+
+GO
+
+
diff --git a/HJGL/FineUIPro.Web/App_GlobalResources/Lan.Designer.cs b/HJGL/FineUIPro.Web/App_GlobalResources/Lan.Designer.cs
index 8a3af65..6fa9864 100644
--- a/HJGL/FineUIPro.Web/App_GlobalResources/Lan.Designer.cs
+++ b/HJGL/FineUIPro.Web/App_GlobalResources/Lan.Designer.cs
@@ -69,6 +69,15 @@ namespace Resources {
}
}
+ ///
+ /// 查找类似 制造/验收标准 的本地化字符串。
+ ///
+ internal static string Acceptance {
+ get {
+ return ResourceManager.GetString("Acceptance", resourceCulture);
+ }
+ }
+
///
/// 查找类似 账号 的本地化字符串。
///
@@ -3678,6 +3687,33 @@ namespace Resources {
}
}
+ ///
+ /// 查找类似 PMI委托单号已存在 的本地化字符串。
+ ///
+ internal static string PMICodeExists {
+ get {
+ return ResourceManager.GetString("PMICodeExists", resourceCulture);
+ }
+ }
+
+ ///
+ /// 查找类似 PMI处理委托 的本地化字符串。
+ ///
+ internal static string PMIDelegationTrust {
+ get {
+ return ResourceManager.GetString("PMIDelegationTrust", resourceCulture);
+ }
+ }
+
+ ///
+ /// 查找类似 PMI委托单保存失败 的本地化字符串。
+ ///
+ internal static string PMIError {
+ get {
+ return ResourceManager.GetString("PMIError", resourceCulture);
+ }
+ }
+
///
/// 查找类似 点口编号 的本地化字符串。
///
@@ -4146,6 +4182,15 @@ namespace Resources {
}
}
+ ///
+ /// 查找类似 质量证明文件编号 的本地化字符串。
+ ///
+ internal static string QualityNo {
+ get {
+ return ResourceManager.GetString("QualityNo", resourceCulture);
+ }
+ }
+
///
/// 查找类似 返修原因 的本地化字符串。
///
diff --git a/HJGL/FineUIPro.Web/App_GlobalResources/Lan.resx b/HJGL/FineUIPro.Web/App_GlobalResources/Lan.resx
index 26be42b..0a894d5 100644
--- a/HJGL/FineUIPro.Web/App_GlobalResources/Lan.resx
+++ b/HJGL/FineUIPro.Web/App_GlobalResources/Lan.resx
@@ -2115,4 +2115,19 @@
检测标准
+
+ 制造/验收标准
+
+
+ 质量证明文件编号
+
+
+ PMI处理委托
+
+
+ PMI委托单号已存在
+
+
+ PMI委托单保存失败
+
\ No newline at end of file
diff --git a/HJGL/FineUIPro.Web/FineUIPro.Web.csproj b/HJGL/FineUIPro.Web/FineUIPro.Web.csproj
index 50dbbd6..fc0f2db 100644
--- a/HJGL/FineUIPro.Web/FineUIPro.Web.csproj
+++ b/HJGL/FineUIPro.Web/FineUIPro.Web.csproj
@@ -397,6 +397,7 @@
+
@@ -4461,6 +4462,13 @@
PMIDelegationEdit.aspx
+
+ PMISelectList.aspx
+ ASPXCodeBehind
+
+
+ PMISelectList.aspx
+
AItemEndCheck.aspx
ASPXCodeBehind
@@ -4887,6 +4895,7 @@
GlobalResourceProxyGenerator
Lan.Designer.cs
+ Designer
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/PMI/PMIDelegation.aspx b/HJGL/FineUIPro.Web/WeldingProcess/PMI/PMIDelegation.aspx
index ef73095..fc21ad8 100644
--- a/HJGL/FineUIPro.Web/WeldingProcess/PMI/PMIDelegation.aspx
+++ b/HJGL/FineUIPro.Web/WeldingProcess/PMI/PMIDelegation.aspx
@@ -104,9 +104,9 @@
@@ -139,10 +139,24 @@
DataField="MaterialCode" SortField="MaterialCode" FieldType="String" HeaderTextAlign="Center"
TextAlign="Center" Width="120px">
-
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/PMI/PMIDelegation.aspx.cs b/HJGL/FineUIPro.Web/WeldingProcess/PMI/PMIDelegation.aspx.cs
index 9df6bfa..2df785a 100644
--- a/HJGL/FineUIPro.Web/WeldingProcess/PMI/PMIDelegation.aspx.cs
+++ b/HJGL/FineUIPro.Web/WeldingProcess/PMI/PMIDelegation.aspx.cs
@@ -144,12 +144,10 @@ namespace FineUIPro.Web.WeldingProcess.PMI
if (result != null)
{
this.PMIDelegationId = result.Id;
- strSql = @"SELECT * "
- + @" FROM dbo.View_HotProess_TrustItem AS Trust"
- + @" WHERE Trust.ProjectId= @ProjectId AND Trust.HotProessTrustId=@HotProessTrustId ";
+ strSql = @"SELECT *FROM [View_PMI_DelegationDetails] WHERE ProjectId= @ProjectId AND PMIID=@PMIDelegationId ";
listStr.Add(new SqlParameter("@ProjectId", result != null ? result.ProjectId : this.CurrUser.LoginProjectId));
- listStr.Add(new SqlParameter("@HotProessTrustId", this.PMIDelegationId));
+ listStr.Add(new SqlParameter("@PMIDelegationId", this.PMIDelegationId));
if (!string.IsNullOrEmpty(this.txtIsoNo.Text.Trim()))
{
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/PMI/PMIDelegation.aspx.designer.cs b/HJGL/FineUIPro.Web/WeldingProcess/PMI/PMIDelegation.aspx.designer.cs
index 7b36fc3..2e75263 100644
--- a/HJGL/FineUIPro.Web/WeldingProcess/PMI/PMIDelegation.aspx.designer.cs
+++ b/HJGL/FineUIPro.Web/WeldingProcess/PMI/PMIDelegation.aspx.designer.cs
@@ -257,6 +257,24 @@ namespace FineUIPro.Web.WeldingProcess.PMI
///
protected global::FineUIPro.ToolbarFill ToolbarFill2;
+ ///
+ /// tbxEditorQualityNo 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox tbxEditorQualityNo;
+
+ ///
+ /// txtEditorAcceptance 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtEditorAcceptance;
+
///
/// ToolbarSeparator1 控件。
///
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/PMI/PMIDelegationEdit.aspx b/HJGL/FineUIPro.Web/WeldingProcess/PMI/PMIDelegationEdit.aspx
index df49dbd..a31a5ac 100644
--- a/HJGL/FineUIPro.Web/WeldingProcess/PMI/PMIDelegationEdit.aspx
+++ b/HJGL/FineUIPro.Web/WeldingProcess/PMI/PMIDelegationEdit.aspx
@@ -1,16 +1,177 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PMIDelegationEdit.aspx.cs" Inherits="FineUIPro.Web.WeldingProcess.PMI.PMIDelegationEdit" %>
-
+
-
-
+ 编辑热处理委托及数据录入
+
+
+
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/PMI/PMIDelegationEdit.aspx.cs b/HJGL/FineUIPro.Web/WeldingProcess/PMI/PMIDelegationEdit.aspx.cs
index 5a0e2d7..844367e 100644
--- a/HJGL/FineUIPro.Web/WeldingProcess/PMI/PMIDelegationEdit.aspx.cs
+++ b/HJGL/FineUIPro.Web/WeldingProcess/PMI/PMIDelegationEdit.aspx.cs
@@ -1,5 +1,9 @@
-using System;
+using BLL;
+using Model;
+using Newtonsoft.Json.Linq;
+using System;
using System.Collections.Generic;
+using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
@@ -7,11 +11,293 @@ using System.Web.UI.WebControls;
namespace FineUIPro.Web.WeldingProcess.PMI
{
- public partial class PMIDelegationEdit : System.Web.UI.Page
+ public partial class PMIDelegationEdit : PageBase
{
+ #region 定义项
+ ///
+ /// PMI委托主键
+ ///
+ public string PMIDelegationId
+ {
+ get
+ {
+ return (string)ViewState["PMIDelegationId"];
+ }
+ set
+ {
+ ViewState["PMIDelegationId"] = value;
+ }
+ }
+
+
+ #endregion
+
+ #region 加载页面
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
protected void Page_Load(object sender, EventArgs e)
{
+ if (!IsPostBack)
+ {
+ this.PMIDelegationId = Request.Params["PMIDelegationId"];
+ BLL.Project_InstallationService.InitInstallationDropDownList(this.drpInstallationId, true, this.CurrUser.LoginProjectId, Resources.Lan.PleaseSelect);//装置
+ BLL.Base_UnitService.InitUnitDropDownList(this.drpUnitId, true, BLL.Const.UnitType_5, Resources.Lan.PleaseSelect);//单位
+
+ this.PageInfoLoad(); ///加载页面
+ this.txtDetectionMethod.Text = "PMI光谱分析";
+ this.txtDetectionMethod.Enabled = false;
+ //this.BindGrid(result); ////初始化页面
+ this.txtDelegationDate.Text = DateTime.Now.ToString("yyyy-MM-dd");
+ }
+ }
+
+ #endregion
+
+ #region 加载页面输入提交信息
+ ///
+ /// 加载页面输入提交信息
+ ///
+ private void PageInfoLoad()
+ {
+ var trust = Funs.DB.PMI_Delegation.FirstOrDefault(t=>t.Id==this.PMIDelegationId);
+ if (trust != null)
+ {
+ //this.ProjectId = trust.ProjectId;
+ this.txtDelegationNo.Text = trust.DelegationNo;
+ if (trust.DelegationDate.HasValue)
+ {
+ this.txtDelegationDate.Text = string.Format("{0:yyyy-MM-dd}", trust.DelegationDate);
+ }
+ if (!string.IsNullOrEmpty(trust.InstallationId))
+ {
+ this.drpInstallationId.SelectedValue = trust.InstallationId;
+ }
+ if (!string.IsNullOrEmpty(trust.UnitId))
+ {
+ this.drpUnitId.SelectedValue = trust.UnitId;
+ }
+ this.txtDetectionMethod.Text = "PMI光谱分析";
+ this.txtDetectionStandard.Text = trust.DetectionStandard;
+ if (!string.IsNullOrEmpty(trust.Tabler))
+ {
+ this.txtTabler.Text = BLL.Sys_UserService.GetUserNameByUserId(trust.Tabler);
+ }
+ this.txtRemark.Text = trust.Remark;
+ }
+ else
+ {
+ this.txtTabler.Text = this.CurrUser.UserName;
+ this.SimpleForm1.Reset(); //重置所有字段
+ }
+ }
+ #endregion
+
+ #region 数据绑定
+
+ ///
+ /// 数据绑定
+ ///
+ private void BindGrid(List lists)
+ {
+ DataTable tb = this.LINQToDataTable(lists);
+ Grid1.RecordCount = tb.Rows.Count;
+ tb = GetFilteredTable(Grid1.FilteredData, tb);
+ var table = this.GetPagedDataTable(Grid1, tb);
+
+ Grid1.DataSource = table;
+ Grid1.DataBind();
+ }
+ #endregion
+
+ #region 查找需要热处理的焊口
+ ///
+ /// 查找需要PMI处理的焊口
+ ///
+ ///
+ ///
+ protected void ckSelect_Click(object sender, EventArgs e)
+ {
+ if (!string.IsNullOrEmpty(this.drpUnitId.SelectedValue) && this.drpUnitId.SelectedValue != BLL.Const._Null)
+ {
+ string weldJointIds = string.Empty;
+ for (int i = 0; i < Grid1.Rows.Count; i++)
+ {
+ string jotId = Grid1.DataKeys[i][0].ToString();
+ weldJointIds += jotId + "|";
+ }
+ if (weldJointIds != string.Empty)
+ {
+ weldJointIds = weldJointIds.Substring(0, weldJointIds.Length - 1);
+ }
+
+ //url查询
+ string window = String.Format($"PMISelectList.aspx?unitId={this.drpUnitId.SelectedValue}&projectId={this.CurrUser.LoginProjectId}&weldJointIds={weldJointIds}", "编辑 - ");
+ PageContext.RegisterStartupScript(Window1.GetSaveStateReference(hdItemsString.ClientID) + Window1.GetShowReference(window));
+ }
+ else
+ {
+ Alert.ShowInTop(Resources.Lan.PleaseSelectCompany, MessageBoxIcon.Warning);
+ }
+ }
+ #endregion
+
+ #region Grid 关闭弹出窗口事件
+ ///
+ /// 关闭弹出窗口
+ ///
+ ///
+ ///
+ protected void Window1_Close(object sender, WindowCloseEventArgs e)
+ {
+ string weldJointIds = string.Empty;
+ if (!string.IsNullOrEmpty(hdItemsString.Text))
+ {
+ weldJointIds = hdItemsString.Text.Substring(0, hdItemsString.Text.LastIndexOf('|'));
+
+ List lists = BLL.PMIDelegation_Service.GetPMI_DelegationAddItem(weldJointIds);
+ this.BindGrid(lists);
+ //获取单位
+ string unitCode = Funs.DB.Base_Unit.FirstOrDefault(t => t.UnitId == drpUnitId.SelectedValue)?.UnitCode;
+ //获取区域code
+ var workdAreaIdList = lists.Select(t => t.WorkAreaId).ToList();
+
+ var workAreaCode = Funs.DB.Project_WorkArea.AsQueryable().Where(t => workdAreaIdList.Contains(t.WorkAreaId)).Distinct().FirstOrDefault()?.WorkAreaCode;
+
+ this.txtDelegationNo.Text = $"PMI-{unitCode}-{workAreaCode}-PI-";
+ }
+ }
+ #endregion
+
+ #region PMI委托 提交事件
+ ///
+ /// 编辑PMI委托
+ ///
+ ///
+ ///
+ protected void btnSave_Click(object sender, EventArgs e)
+ {
+ if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.PMIDelegationId, Const.BtnSave))
+ {
+ var isExists = Funs.DB.PMI_Delegation.Any(t => t.DelegationNo == this.txtDelegationNo.Text.Trim() && t.ProjectId == this.CurrUser.LoginProjectId);
+ if (isExists)
+ {
+ ShowNotify(Resources.Lan.PMICodeExists, MessageBoxIcon.Warning);
+ return;
+ }
+ try
+ {
+ var pmiModel = new Model.PMI_Delegation();
+ pmiModel.Id = SQLHelper.GetNewID(typeof(Model.PMI_Delegation));
+ pmiModel.DelegationNo = txtDelegationNo.Text.Trim();
+ pmiModel.DelegationDate = !string.IsNullOrEmpty(txtDelegationDate.Text.Trim()) ? DateTime.Parse(txtDelegationDate.Text.Trim()) : DateTime.Now;
+ pmiModel.InstallationId = drpInstallationId.SelectedValue;
+ pmiModel.UnitId = drpUnitId.SelectedValue;
+ pmiModel.ProjectId = this.CurrUser.LoginProjectId;
+ pmiModel.Remark = txtRemark.Text.Trim();
+ pmiModel.DetectionStandard=txtDetectionStandard.Text.Trim();
+ pmiModel.CreatedTime = DateTime.Now;
+ pmiModel.Tabler = this.CurrUser.UserId;
+ this.PMIDelegationId = pmiModel.Id;
+ Funs.DB.PMI_Delegation.InsertOnSubmit(pmiModel);
+ //先删除明细表
+ var deleteEntity= Funs.DB.PMI_DelegationDetails.Where(t => t.PMIId == pmiModel.Id).ToList();
+ if (deleteEntity.Any())
+ {
+ Funs.DB.PMI_DelegationDetails.DeleteAllOnSubmit(deleteEntity);
+ }
+ //再插入明细表
+ this.CollectGridJointInfo();
+ Funs.DB.SubmitChanges();
+ }
+ catch (Exception ex)
+ {
+ BLL.ErrLogInfo.WriteLog(ex);
+ ShowNotify(Resources.Lan.PMIError, MessageBoxIcon.Error);
+ return;
+ }
+
+ ShowNotify(Resources.Lan.SaveSuccessfully, MessageBoxIcon.Success);
+ PageContext.RegisterStartupScript(ActiveWindow.GetWriteBackValueReference(this.PMIDelegationId)
+ + ActiveWindow.GetHidePostBackReference());
+ }
+ else
+ {
+ ShowNotify(Resources.Lan.NoPrivilegePrompt, MessageBoxIcon.Warning);
+ return;
+ }
+ }
+ #endregion
+
+ #region 收集Grid页面信息,提交明细
+ ///
+ /// 收集Grid页面信息,提交明细
+ ///
+ ///
+ private void CollectGridJointInfo()
+ {
+ var listData = new List();
+ JArray mergedData = Grid1.GetMergedData();
+ foreach (JObject mergedRow in mergedData)
+ {
+ JObject values = mergedRow.Value("values");
+ Model.PMI_DelegationDetails newTrustItem = new Model.PMI_DelegationDetails();
+ newTrustItem.Id = SQLHelper.GetNewID(typeof(PMI_DelegationDetails));
+ newTrustItem.JointId = values.Value("WeldJointId").ToString();
+ newTrustItem.Acceptance = values.Value("Acceptance").ToString();
+ newTrustItem.QualityNo = values.Value("QualityNo").ToString();
+ newTrustItem.Status = 0;
+ newTrustItem.CreatedTime = DateTime.Now;
+ newTrustItem.PMIId = this.PMIDelegationId;
+ listData.Add(newTrustItem);
+ }
+ Funs.DB.PMI_DelegationDetails.InsertAllOnSubmit(listData);
}
+ #endregion
+
+ #region 右键删除事件
+ ///
+ /// 右键删除事件
+ ///
+ ///
+ ///
+ protected void btnMenuDelete_Click(object sender, EventArgs e)
+ {
+ if (!string.IsNullOrEmpty(this.hdItemsString.Text))
+ {
+ this.hdItemsString.Text = this.hdItemsString.Text.Substring(0, this.hdItemsString.Text.LastIndexOf('|'));
+ }
+ var trust = Funs.DB.PMI_Delegation.FirstOrDefault(t=>t.Id==this.PMIDelegationId);
+ if (Grid1.SelectedRowIndexArray.Length > 0)
+ {
+ List GetHotProessTrustItem = new List();
+ if (!string.IsNullOrEmpty(this.hdItemsString.Text))
+ {
+ GetHotProessTrustItem = BLL.PMIDelegation_Service.GetPMI_DelegationAddItem(this.hdItemsString.Text);
+ }
+ else if (string.IsNullOrEmpty(this.hdItemsString.Text) && this.PMIDelegationId != null)
+ {
+ GetHotProessTrustItem = BLL.PMIDelegation_Service.GetPMI_DelegationItem(this.CurrUser.LoginProjectId, this.PMIDelegationId);
+ }
+ foreach (int rowIndex in Grid1.SelectedRowIndexArray)
+ {
+ string rowID = Grid1.DataKeys[rowIndex][0].ToString();
+ var item = GetHotProessTrustItem.FirstOrDefault(x => x.WeldJointId == rowID);
+ if (item != null)
+ {
+ if (string.IsNullOrEmpty(this.PMIDelegationId)) //新增记录可直接删除
+ {
+ GetHotProessTrustItem.Remove(item);
+ }
+ }
+ }
+ BindGrid(GetHotProessTrustItem);
+ ShowNotify(Resources.Lan.DeletedSuccessfully, MessageBoxIcon.Success);
+ }
+ }
+ #endregion
}
}
\ No newline at end of file
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/PMI/PMIDelegationEdit.aspx.designer.cs b/HJGL/FineUIPro.Web/WeldingProcess/PMI/PMIDelegationEdit.aspx.designer.cs
index e801022..de5ebfd 100644
--- a/HJGL/FineUIPro.Web/WeldingProcess/PMI/PMIDelegationEdit.aspx.designer.cs
+++ b/HJGL/FineUIPro.Web/WeldingProcess/PMI/PMIDelegationEdit.aspx.designer.cs
@@ -22,5 +22,230 @@ namespace FineUIPro.Web.WeldingProcess.PMI
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// PageManager1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.PageManager PageManager1;
+
+ ///
+ /// Panel1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Panel Panel1;
+
+ ///
+ /// panelCenterRegion 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Panel panelCenterRegion;
+
+ ///
+ /// Toolbar2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar2;
+
+ ///
+ /// hdItemsString 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.HiddenField hdItemsString;
+
+ ///
+ /// ToolbarFill1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarFill ToolbarFill1;
+
+ ///
+ /// btnSave 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnSave;
+
+ ///
+ /// SimpleForm1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form SimpleForm1;
+
+ ///
+ /// txtDelegationNo 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtDelegationNo;
+
+ ///
+ /// txtDelegationDate 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DatePicker txtDelegationDate;
+
+ ///
+ /// drpInstallationId 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpInstallationId;
+
+ ///
+ /// drpUnitId 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpUnitId;
+
+ ///
+ /// txtDetectionMethod 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtDetectionMethod;
+
+ ///
+ /// txtDetectionStandard 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtDetectionStandard;
+
+ ///
+ /// txtTabler 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtTabler;
+
+ ///
+ /// txtRemark 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtRemark;
+
+ ///
+ /// Grid1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Grid Grid1;
+
+ ///
+ /// Toolbar1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar1;
+
+ ///
+ /// btnDelete 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnDelete;
+
+ ///
+ /// ckSelect 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button ckSelect;
+
+ ///
+ /// tbxEditorQualityNo 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox tbxEditorQualityNo;
+
+ ///
+ /// txtEditorAcceptance 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtEditorAcceptance;
+
+ ///
+ /// Window1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Window Window1;
+
+ ///
+ /// Menu1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Menu Menu1;
+
+ ///
+ /// btnMenuDelete 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.MenuButton btnMenuDelete;
}
}
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/PMI/PMISelectList.aspx b/HJGL/FineUIPro.Web/WeldingProcess/PMI/PMISelectList.aspx
new file mode 100644
index 0000000..1e4efae
--- /dev/null
+++ b/HJGL/FineUIPro.Web/WeldingProcess/PMI/PMISelectList.aspx
@@ -0,0 +1,100 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PMISelectList.aspx.cs" Inherits="FineUIPro.Web.WeldingProcess.PMI.PMISelectList" %>
+
+
+
+
+
+ 查找管线焊口信息
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/PMI/PMISelectList.aspx.cs b/HJGL/FineUIPro.Web/WeldingProcess/PMI/PMISelectList.aspx.cs
new file mode 100644
index 0000000..a2e1580
--- /dev/null
+++ b/HJGL/FineUIPro.Web/WeldingProcess/PMI/PMISelectList.aspx.cs
@@ -0,0 +1,209 @@
+using BLL;
+using System;
+using System.Collections.Generic;
+using System.Data.SqlClient;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace FineUIPro.Web.WeldingProcess.PMI
+{
+ public partial class PMISelectList : PageBase
+ {
+ string UnitId = string.Empty;
+ string ProjectId = string.Empty;
+ string PMIId = string.Empty;
+ string weldJointIds=string.Empty;
+ #region 加载页面
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ this.UnitId = Request.Params["unitId"] ??"";
+ this.ProjectId = this.CurrUser.LoginProjectId;
+ this.PMIId = Request.Params["PMIId"]??"";
+ this.weldJointIds = Request.Params["weldJointIds"] ?? "";
+ this.InitTreeMenu();//加载树
+ this.BindGrid();
+ }
+ }
+ #endregion
+
+ #region 加载管线信息
+ ///
+ /// 加载树
+ ///
+ private void InitTreeMenu()
+ {
+ this.tvControlItem.Nodes.Clear();
+ TreeNode rootNode = new TreeNode();
+ rootNode.Text = Resources.Lan.PipelineCode;
+ rootNode.NodeID = "0";
+ rootNode.ToolTip = Resources.Lan.SeachTip;
+ rootNode.Expanded = true;
+ this.tvControlItem.Nodes.Add(rootNode);
+
+ //排除已经委托过的
+ var listData= (from a in Funs.DB.PMI_Delegation.AsQueryable() join
+ b in Funs.DB.PMI_DelegationDetails.AsQueryable() on
+ a.Id equals b.PMIId
+ select b.JointId
+ ).Distinct().ToList();
+
+ //查询带有PMI处理的管线数据
+ var iso = from x in Funs.DB.View_Pipeline_WeldJoint
+ where x.ProjectId == this.ProjectId && x.IsPMI == true && x.UnitId == this.UnitId
+ select new { x.PipelineCode, x.PipelineId,x.WeldJointId }; //from x in Funs.DB.Pipeline_Pipeline where x.ProjectId == this.ProjectId && x.UnitId == this.UnitId select x;
+
+ if (listData.Count > 0)
+ {
+ iso = iso.Where(e => !listData.Contains(e.WeldJointId));
+ }
+ if (!string.IsNullOrEmpty(this.txtIsono.Text))
+ {
+ iso = iso.Where(e => e.PipelineCode.Contains(this.txtIsono.Text.Trim()));
+ }
+ var isoList = iso.Select(x => new {x.PipelineId,x.PipelineCode }).OrderBy(x => x.PipelineCode).Distinct().ToList();
+ if (isoList.Count > 0)
+ {
+ foreach (var q in isoList)
+ {
+ TreeNode newNode = new TreeNode();
+ newNode.NodeID = q.PipelineId;
+ newNode.Text = q.PipelineCode;
+ newNode.EnableClickEvent = true;
+ rootNode.Nodes.Add(newNode);
+ }
+ }
+ }
+ #endregion
+
+ #region 管线查询
+ ///
+ /// 查询
+ ///
+ ///
+ ///
+ protected void Tree_TextChanged(object sender, EventArgs e)
+ {
+ this.InitTreeMenu();
+ }
+ protected void Tree2_TextChanged(object sender, EventArgs e)
+ {
+ this.BindGrid();
+ }
+
+ #endregion
+
+
+ #region 点击TreeView
+ ///
+ /// 点击TreeView
+ ///
+ ///
+ ///
+ protected void tvControlItem_NodeCommand(object sender, TreeCommandEventArgs e)
+ {
+ this.BindGrid();
+ }
+ #endregion
+
+ #region 数据绑定
+ ///
+ /// 数据绑定
+ ///
+ private void BindGrid()
+ {
+ string sql = @"SELECT WeldJointId,ProjectId,PipelineId,WeldJointCode,WPQCode,DetectionType,
+ convert(int,dbo.Fun_GetParseInt(WeldJointCode)) AS ConvertJointNo,
+ dbo.Fun_GetParseString(WeldJointCode) AS PreJotNo,
+ PipingClassCode,PipeSegment,JointAttribute,PageNum,
+ ComponentsCode1,ComponentsCode2,Is_hjName,IsHotProessStr,Material1Code,Material2Code,
+ WeldTypeCode,Specification,HeartNo1,HeartNo2,Size,Dia,Thickness,GrooveTypeCode,
+ WeldingMethodCode,WeldSilkId,WeldMatCode,WeldingDate,WeldingDailyCode,DoneDin,
+ BackingWelderCode,CoverWelderCode,SystemNumber,TestPackageNo,Remark,
+ MaterialCode,WeldingDate,
+ (CASE WHEN IsCancel=1 THEN '是' ELSE '否' END) AS IsCancel,isPMI
+ FROM View_Pipeline_WeldJoint WHERE isPMI=1 ";
+
+ List paramsList = new List();
+ if (!string.IsNullOrEmpty(this.txtJointNo.Text))
+ {
+ sql += @" and WeldJointCode=@WeldJointCode";
+ paramsList.Add(new SqlParameter("@WeldJointCode", txtJointNo.Text.Trim()));
+ }
+ if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
+ {
+ sql += @" and PipelineId=@PipelineId ";
+ paramsList.Add(new SqlParameter("@PipelineId", this.tvControlItem.SelectedNodeID));
+ }
+ var dt = SQLHelper.GetDataTableRunText(sql, paramsList.ToArray());
+ Grid1.DataSource = dt;
+ Grid1.DataBind();
+ }
+ #endregion
+
+ #region 排序
+ ///
+ /// 排序
+ ///
+ ///
+ ///
+ protected void Grid1_Sort(object sender, GridSortEventArgs e)
+ {
+ this.BindGrid();
+ }
+ #endregion
+
+ #region 提交按钮
+ ///
+ /// 提交按钮
+ ///
+ ///
+ ///
+ protected void btnAccept_Click(object sender, EventArgs e)
+ {
+ string itemsString = "";
+ string[] selectRowId = Grid1.SelectedRowIDArray;
+ int n = 0;
+ int j = 0;
+ int[] selections = new int[selectRowId.Count()];
+ foreach (GridRow row in Grid1.Rows)
+ {
+ if (selectRowId.Contains(row.DataKeys[0]))
+ {
+ selections[n] = j;
+ n++;
+ }
+ j++;
+ }
+ var select = selections.Distinct();
+ string jotIds = Request.Params["jotIds"];
+ if (!string.IsNullOrEmpty(jotIds))
+ {
+ string[] jots = jotIds.Split('|');
+ foreach (string jotId in jots)
+ {
+ itemsString += jotId + "|";
+ }
+ }
+ foreach (int i in select)
+ {
+ string rowID = Grid1.DataKeys[i][0].ToString();
+ if (!itemsString.Contains(rowID))
+ {
+ itemsString += rowID + "|";
+ }
+ }
+ PageContext.RegisterStartupScript(ActiveWindow.GetWriteBackValueReference(itemsString)
+ + ActiveWindow.GetHidePostBackReference());
+ }
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/PMI/PMISelectList.aspx.designer.cs b/HJGL/FineUIPro.Web/WeldingProcess/PMI/PMISelectList.aspx.designer.cs
new file mode 100644
index 0000000..067c153
--- /dev/null
+++ b/HJGL/FineUIPro.Web/WeldingProcess/PMI/PMISelectList.aspx.designer.cs
@@ -0,0 +1,143 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.WeldingProcess.PMI
+{
+
+
+ public partial class PMISelectList
+ {
+
+ ///
+ /// form1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// PageManager1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.PageManager PageManager1;
+
+ ///
+ /// Panel1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Panel Panel1;
+
+ ///
+ /// panelLeftRegion 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Panel panelLeftRegion;
+
+ ///
+ /// Toolbar2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar2;
+
+ ///
+ /// txtIsono 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtIsono;
+
+ ///
+ /// tvControlItem 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Tree tvControlItem;
+
+ ///
+ /// panelCenterRegion 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Panel panelCenterRegion;
+
+ ///
+ /// Grid1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Grid Grid1;
+
+ ///
+ /// Toolbar1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar1;
+
+ ///
+ /// txtJointNo 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtJointNo;
+
+ ///
+ /// ww 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Label ww;
+
+ ///
+ /// ToolbarFill1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarFill ToolbarFill1;
+
+ ///
+ /// btnAccept 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnAccept;
+ }
+}
diff --git a/HJGL/Model/Model.cs b/HJGL/Model/Model.cs
index 88e224c..c89fb8c 100644
--- a/HJGL/Model/Model.cs
+++ b/HJGL/Model/Model.cs
@@ -1070,6 +1070,14 @@ namespace Model
}
}
+ public System.Data.Linq.Table View_PMI_DelegationDetails
+ {
+ get
+ {
+ return this.GetTable();
+ }
+ }
+
public System.Data.Linq.Table View_PTP_TestPackageAudit
{
get
@@ -37258,6 +37266,8 @@ namespace Model
private string _ProjectId;
+ private System.Nullable _IsPMI;
+
private string _PipelineCode;
private string _PipelineId;
@@ -37388,6 +37398,22 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Name="isPMI", Storage="_IsPMI", DbType="Bit")]
+ public System.Nullable IsPMI
+ {
+ get
+ {
+ return this._IsPMI;
+ }
+ set
+ {
+ if ((this._IsPMI != value))
+ {
+ this._IsPMI = value;
+ }
+ }
+ }
+
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineCode", DbType="NVarChar(100)")]
public string PipelineCode
{
@@ -40633,6 +40659,285 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.View_PMI_DelegationDetails")]
+ public partial class View_PMI_DelegationDetails
+ {
+
+ private string _Id;
+
+ private string _Acceptance;
+
+ private System.Nullable _CreatedTime;
+
+ private string _WeldJointId;
+
+ private int _Status;
+
+ private string _QualityNo;
+
+ private string _PMIId;
+
+ private string _ProjectId;
+
+ private string _DelegationNo;
+
+ private System.Nullable _DelegationDate;
+
+ private string _WeldJointCode;
+
+ private string _PipelineCode;
+
+ private string _Specification;
+
+ private string _MaterialCode;
+
+ private string _WorkAreaId;
+
+ public View_PMI_DelegationDetails()
+ {
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
+ public string Id
+ {
+ get
+ {
+ return this._Id;
+ }
+ set
+ {
+ if ((this._Id != value))
+ {
+ this._Id = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Acceptance", DbType="NVarChar(255)")]
+ public string Acceptance
+ {
+ get
+ {
+ return this._Acceptance;
+ }
+ set
+ {
+ if ((this._Acceptance != value))
+ {
+ this._Acceptance = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreatedTime", DbType="DateTime")]
+ public System.Nullable CreatedTime
+ {
+ get
+ {
+ return this._CreatedTime;
+ }
+ set
+ {
+ if ((this._CreatedTime != value))
+ {
+ this._CreatedTime = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WeldJointId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
+ public string WeldJointId
+ {
+ get
+ {
+ return this._WeldJointId;
+ }
+ set
+ {
+ if ((this._WeldJointId != value))
+ {
+ this._WeldJointId = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Name="status", Storage="_Status", DbType="Int NOT NULL")]
+ public int Status
+ {
+ get
+ {
+ return this._Status;
+ }
+ set
+ {
+ if ((this._Status != value))
+ {
+ this._Status = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_QualityNo", DbType="NVarChar(255)")]
+ public string QualityNo
+ {
+ get
+ {
+ return this._QualityNo;
+ }
+ set
+ {
+ if ((this._QualityNo != value))
+ {
+ this._QualityNo = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PMIId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
+ public string PMIId
+ {
+ get
+ {
+ return this._PMIId;
+ }
+ set
+ {
+ if ((this._PMIId != value))
+ {
+ this._PMIId = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")]
+ public string ProjectId
+ {
+ get
+ {
+ return this._ProjectId;
+ }
+ set
+ {
+ if ((this._ProjectId != value))
+ {
+ this._ProjectId = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DelegationNo", DbType="NVarChar(50)")]
+ public string DelegationNo
+ {
+ get
+ {
+ return this._DelegationNo;
+ }
+ set
+ {
+ if ((this._DelegationNo != value))
+ {
+ this._DelegationNo = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DelegationDate", DbType="DateTime")]
+ public System.Nullable DelegationDate
+ {
+ get
+ {
+ return this._DelegationDate;
+ }
+ set
+ {
+ if ((this._DelegationDate != value))
+ {
+ this._DelegationDate = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WeldJointCode", DbType="NVarChar(50)")]
+ public string WeldJointCode
+ {
+ get
+ {
+ return this._WeldJointCode;
+ }
+ set
+ {
+ if ((this._WeldJointCode != value))
+ {
+ this._WeldJointCode = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineCode", DbType="NVarChar(100)")]
+ public string PipelineCode
+ {
+ get
+ {
+ return this._PipelineCode;
+ }
+ set
+ {
+ if ((this._PipelineCode != value))
+ {
+ this._PipelineCode = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Specification", DbType="NVarChar(50)")]
+ public string Specification
+ {
+ get
+ {
+ return this._Specification;
+ }
+ set
+ {
+ if ((this._Specification != value))
+ {
+ this._Specification = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialCode", DbType="NVarChar(50)")]
+ public string MaterialCode
+ {
+ get
+ {
+ return this._MaterialCode;
+ }
+ set
+ {
+ if ((this._MaterialCode != value))
+ {
+ this._MaterialCode = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WorkAreaId", DbType="NVarChar(50)")]
+ public string WorkAreaId
+ {
+ get
+ {
+ return this._WorkAreaId;
+ }
+ set
+ {
+ if ((this._WorkAreaId != value))
+ {
+ this._WorkAreaId = value;
+ }
+ }
+ }
+ }
+
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.View_PTP_TestPackageAudit")]
public partial class View_PTP_TestPackageAudit
{