This commit is contained in:
		
						commit
						0ffac0d763
					
				| 
						 | 
					@ -21,7 +21,7 @@ namespace FineUIPro.Web.WeldingProcess.TestPackageManage
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        void BindGrid()
 | 
					        void BindGrid()
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            var list=Funs.DB.PTP_TestPackage_ImportErrorLog.Where(t=>t.BatchNo == batchNo).OrderBy(t=>t.TestPackageNo).ToList();
 | 
					            var list = Funs.DB.PTP_TestPackage_ImportErrorLog.Where(t => t.BatchNo == batchNo).OrderBy(t => t.RowId).ToList();
 | 
				
			||||||
            this.Grid1.DataSource = list;
 | 
					            this.Grid1.DataSource = list;
 | 
				
			||||||
            this.Grid1.DataBind();
 | 
					            this.Grid1.DataBind();
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -8,8 +8,7 @@
 | 
				
			||||||
    <title>委托单导入</title>
 | 
					    <title>委托单导入</title>
 | 
				
			||||||
    <link href="../res/css/common.css" rel="stylesheet" type="text/css" />
 | 
					    <link href="../res/css/common.css" rel="stylesheet" type="text/css" />
 | 
				
			||||||
    <style>
 | 
					    <style>
 | 
				
			||||||
        .f-grid-row .f-grid-cell-inner
 | 
					        .f-grid-row .f-grid-cell-inner {
 | 
				
			||||||
        {
 | 
					 | 
				
			||||||
            white-space: normal;
 | 
					            white-space: normal;
 | 
				
			||||||
            word-break: break-all;
 | 
					            word-break: break-all;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
| 
						 | 
					@ -60,6 +59,35 @@
 | 
				
			||||||
                    </Items>
 | 
					                    </Items>
 | 
				
			||||||
                </f:FormRow>
 | 
					                </f:FormRow>
 | 
				
			||||||
            </Rows>
 | 
					            </Rows>
 | 
				
			||||||
 | 
					            <Rows>
 | 
				
			||||||
 | 
					                <f:FormRow>
 | 
				
			||||||
 | 
					                    <Items>
 | 
				
			||||||
 | 
					                        <f:Grid ID="Grid1" ShowBorder="true" Hidden="true" ShowHeader="false" Title="委托单导入错误日志" runat="server" EnableCollapse="false"
 | 
				
			||||||
 | 
					                            DataKeyNames="ID"  PageSize="100" AllowPaging="true">
 | 
				
			||||||
 | 
					                            <Columns>
 | 
				
			||||||
 | 
					                                <f:RowNumberField />
 | 
				
			||||||
 | 
					                                <f:RenderField ColumnID="RowID" Width="80px" DataField="RowID" HeaderText="行号" />
 | 
				
			||||||
 | 
					                                <f:RenderField ColumnID="TrustBatchCode" MinWidth="80" DataField="TrustBatchCode" HeaderText="委托单编号" />
 | 
				
			||||||
 | 
					                                <f:RenderField ColumnID="InstallCode" MinWidth="80" DataField="InstallCode" HeaderText="装置编号" />
 | 
				
			||||||
 | 
					                                <f:RenderField ColumnID="AreaCode" MinWidth="80" DataField="AreaCode" HeaderText="区域编号" />
 | 
				
			||||||
 | 
					                                <f:RenderField ColumnID="PipelineCode" MinWidth="80" DataField="PipelineCode" HeaderText="管线号" />
 | 
				
			||||||
 | 
					                                <f:RenderField ColumnID="WeldJointCode" MinWidth="80" DataField="WeldJointCode" HeaderText="焊口号" />
 | 
				
			||||||
 | 
					                                <f:RenderField ColumnID="DetectionType" MinWidth="80" DataField="DetectionType" HeaderText="探伤类型" />
 | 
				
			||||||
 | 
					                                <f:RenderField ColumnID="TrustDate" MinWidth="80" DataField="TrustDate" HeaderText="委托日期" />
 | 
				
			||||||
 | 
					                                <f:RenderField ColumnID="UnitCode" MinWidth="80" DataField="UnitCode" HeaderText="检测单位编号" />
 | 
				
			||||||
 | 
					                                <f:RenderField ColumnID="SurfaceState" MinWidth="80" DataField="SurfaceState" HeaderText="表面状态" />
 | 
				
			||||||
 | 
					                                <f:RenderField ColumnID="Opportunity" MinWidth="80" DataField="Opportunity" HeaderText="检测时机" />
 | 
				
			||||||
 | 
					                                <f:TemplateField  HeaderText="错误原因" MinWidth="500">
 | 
				
			||||||
 | 
					                                    <ItemTemplate>
 | 
				
			||||||
 | 
					                                        <asp:Label ID="lablRemark" runat="server" Text='<%#Eval("Remark") %>'  ForeColor="Red"></asp:Label>
 | 
				
			||||||
 | 
					                                    </ItemTemplate>
 | 
				
			||||||
 | 
					                                </f:TemplateField>
 | 
				
			||||||
 | 
					                                <f:RenderField ColumnID="CreatedTime" MinWidth="150" DataField="CreatedTime" HeaderText="导入时间" />
 | 
				
			||||||
 | 
					                            </Columns>
 | 
				
			||||||
 | 
					                        </f:Grid>
 | 
				
			||||||
 | 
					                    </Items>
 | 
				
			||||||
 | 
					                </f:FormRow>
 | 
				
			||||||
 | 
					            </Rows>
 | 
				
			||||||
        </f:Form>
 | 
					        </f:Form>
 | 
				
			||||||
    </form>
 | 
					    </form>
 | 
				
			||||||
</body>
 | 
					</body>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -8,6 +8,7 @@ using System.Web.UI;
 | 
				
			||||||
using BLL;
 | 
					using BLL;
 | 
				
			||||||
using FineUIPro.Web.common.ProjectSet;
 | 
					using FineUIPro.Web.common.ProjectSet;
 | 
				
			||||||
using FineUIPro.Web.Common.ProjectSet;
 | 
					using FineUIPro.Web.Common.ProjectSet;
 | 
				
			||||||
 | 
					using Model;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace FineUIPro.Web.WeldingProcess.TrustManage
 | 
					namespace FineUIPro.Web.WeldingProcess.TrustManage
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
| 
						 | 
					@ -88,15 +89,19 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if (ds.Tables.Count > 0)
 | 
					            if (ds.Tables.Count > 0)
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                string result = string.Empty;
 | 
					
 | 
				
			||||||
                List<Model.Batch_BatchTrust> trustList = new List<Model.Batch_BatchTrust>();
 | 
					                List<Model.Batch_BatchTrust> trustList = new List<Model.Batch_BatchTrust>();
 | 
				
			||||||
                var units = from x in Funs.DB.Base_Unit select x;
 | 
					                var units = from x in Funs.DB.Base_Unit select x;
 | 
				
			||||||
                var area = from x in Funs.DB.Project_WorkArea where x.ProjectId == this.CurrUser.LoginProjectId select x;
 | 
					                var area = from x in Funs.DB.Project_WorkArea where x.ProjectId == this.CurrUser.LoginProjectId select x;
 | 
				
			||||||
                var installation = from x in Funs.DB.Project_Installation where x.ProjectId == this.CurrUser.LoginProjectId select x;
 | 
					                var installation = from x in Funs.DB.Project_Installation where x.ProjectId == this.CurrUser.LoginProjectId select x;
 | 
				
			||||||
                var trustIn = from x in Funs.DB.View_TrustBathcIn where x.ProjectId == this.CurrUser.LoginProjectId select x;
 | 
					                var trustIn = from x in Funs.DB.View_TrustBathcIn where x.ProjectId == this.CurrUser.LoginProjectId select x;
 | 
				
			||||||
                var pipeList = from x in Funs.DB.Pipeline_Pipeline where x.ProjectId == this.CurrUser.LoginProjectId select x;
 | 
					                var pipeList = from x in Funs.DB.Pipeline_Pipeline where x.ProjectId == this.CurrUser.LoginProjectId select x;
 | 
				
			||||||
 | 
					                List<Model.TrustBatchImportErrorLog> logListData = new List<Model.TrustBatchImportErrorLog>();
 | 
				
			||||||
 | 
					                string BatchNo = DateTime.Now.ToString("yyyyMMddHHmmss");
 | 
				
			||||||
                for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
 | 
					                for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
 | 
					                    string result = string.Empty;
 | 
				
			||||||
 | 
					                    var log = new Model.TrustBatchImportErrorLog();
 | 
				
			||||||
                    string col0 = ds.Tables[0].Rows[i][0].ToString().Trim();
 | 
					                    string col0 = ds.Tables[0].Rows[i][0].ToString().Trim();
 | 
				
			||||||
                    string col1 = ds.Tables[0].Rows[i][1].ToString().Trim();
 | 
					                    string col1 = ds.Tables[0].Rows[i][1].ToString().Trim();
 | 
				
			||||||
                    string col2 = ds.Tables[0].Rows[i][2].ToString().Trim();
 | 
					                    string col2 = ds.Tables[0].Rows[i][2].ToString().Trim();
 | 
				
			||||||
| 
						 | 
					@ -107,18 +112,33 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage
 | 
				
			||||||
                    string col7 = ds.Tables[0].Rows[i][7].ToString().Trim();
 | 
					                    string col7 = ds.Tables[0].Rows[i][7].ToString().Trim();
 | 
				
			||||||
                    string col8 = ds.Tables[0].Rows[i][8].ToString().Trim();
 | 
					                    string col8 = ds.Tables[0].Rows[i][8].ToString().Trim();
 | 
				
			||||||
                    string col9 = ds.Tables[0].Rows[i][9].ToString().Trim();
 | 
					                    string col9 = ds.Tables[0].Rows[i][9].ToString().Trim();
 | 
				
			||||||
 | 
					                    log.Id = SQLHelper.GetNewID(typeof(TrustBatchImportErrorLog));
 | 
				
			||||||
 | 
					                    log.RowID = (i + 2);
 | 
				
			||||||
 | 
					                    log.BatchNo = BatchNo;
 | 
				
			||||||
 | 
					                    log.TrustBatchCode = col0;
 | 
				
			||||||
 | 
					                    log.InstallCode = col1;
 | 
				
			||||||
 | 
					                    log.AreaCode = col2;
 | 
				
			||||||
 | 
					                    log.PipelineCode = col3;
 | 
				
			||||||
 | 
					                    log.WeldJointCode = col4;
 | 
				
			||||||
 | 
					                    log.DetectionType = col5;
 | 
				
			||||||
 | 
					                    log.TrustDate = col6;
 | 
				
			||||||
 | 
					                    log.UnitCode = col7;
 | 
				
			||||||
 | 
					                    log.SurfaceState = col8;
 | 
				
			||||||
 | 
					                    log.Opportunity = col9;
 | 
				
			||||||
 | 
					                    log.CreatedTime = DateTime.Now;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    Model.Batch_BatchTrust t = new Model.Batch_BatchTrust();
 | 
					                    Model.Batch_BatchTrust t = new Model.Batch_BatchTrust();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    if (string.IsNullOrEmpty(col0))
 | 
					                    if (string.IsNullOrEmpty(col0))
 | 
				
			||||||
                    {
 | 
					                    {
 | 
				
			||||||
                        result += "第" + (i + 2).ToString() + "行," + "委托单号" + "," + "此项为必填项!" + "|";
 | 
					                        result += "委托单号此项为必填项!" + "|";
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                    else
 | 
					                    else
 | 
				
			||||||
                    {
 | 
					                    {
 | 
				
			||||||
                        var oldTrust = Funs.DB.Batch_BatchTrust.FirstOrDefault(x => x.TrustBatchCode == col0);
 | 
					                        var oldTrust = Funs.DB.Batch_BatchTrust.FirstOrDefault(x => x.TrustBatchCode == col0);
 | 
				
			||||||
                        if (oldTrust != null)
 | 
					                        if (oldTrust != null)
 | 
				
			||||||
                        {
 | 
					                        {
 | 
				
			||||||
                            result += "第" + (i + 2).ToString() + "行," + "委托单号" + "," + "[" + col0 + "]已存在!" + "|";
 | 
					                            result += "委托单号 [" + col0 + "]已存在!" + "|";
 | 
				
			||||||
                        }
 | 
					                        }
 | 
				
			||||||
                        else
 | 
					                        else
 | 
				
			||||||
                        {
 | 
					                        {
 | 
				
			||||||
| 
						 | 
					@ -132,7 +152,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage
 | 
				
			||||||
                        Model.Project_Installation ins = installation.FirstOrDefault(x => x.InstallationCode == col1);
 | 
					                        Model.Project_Installation ins = installation.FirstOrDefault(x => x.InstallationCode == col1);
 | 
				
			||||||
                        if (ins == null)
 | 
					                        if (ins == null)
 | 
				
			||||||
                        {
 | 
					                        {
 | 
				
			||||||
                            result += "第" + (i + 2).ToString() + "行," + "装置编号" + "," + "[" + col1 + "]不存在!" + "|";
 | 
					                            result += "装置编号 [" + col1 + "]不存在!" + "|";
 | 
				
			||||||
                        }
 | 
					                        }
 | 
				
			||||||
                        else
 | 
					                        else
 | 
				
			||||||
                        {
 | 
					                        {
 | 
				
			||||||
| 
						 | 
					@ -142,7 +162,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                    else
 | 
					                    else
 | 
				
			||||||
                    {
 | 
					                    {
 | 
				
			||||||
                        result += "第" + (i + 2).ToString() + "行," + "装置编号" + "," + "此项为必填项!" + "|";
 | 
					                        result += "装置编号此项为必填项!" + "|";
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    string workAreaId = string.Empty;
 | 
					                    string workAreaId = string.Empty;
 | 
				
			||||||
| 
						 | 
					@ -151,7 +171,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage
 | 
				
			||||||
                        Model.Project_WorkArea workArea = area.FirstOrDefault(x => x.WorkAreaCode == col2 && x.InstallationId == installationId);
 | 
					                        Model.Project_WorkArea workArea = area.FirstOrDefault(x => x.WorkAreaCode == col2 && x.InstallationId == installationId);
 | 
				
			||||||
                        if (workArea == null)
 | 
					                        if (workArea == null)
 | 
				
			||||||
                        {
 | 
					                        {
 | 
				
			||||||
                            result += "第" + (i + 2).ToString() + "行," + "区域编号" + "," + "[" + col2 + "]不存在!" + "|";
 | 
					                            result += "区域编号 [" + col2 + "]不存在!" + "|";
 | 
				
			||||||
                        }
 | 
					                        }
 | 
				
			||||||
                        else
 | 
					                        else
 | 
				
			||||||
                        {
 | 
					                        {
 | 
				
			||||||
| 
						 | 
					@ -161,7 +181,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                    else
 | 
					                    else
 | 
				
			||||||
                    {
 | 
					                    {
 | 
				
			||||||
                        result += "第" + (i + 2).ToString() + "行," + "区域编号" + "," + "此项为必填项!" + "|";
 | 
					                        result += "区域编号此项为必填项!" + "|";
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    string pipelineId = string.Empty;
 | 
					                    string pipelineId = string.Empty;
 | 
				
			||||||
| 
						 | 
					@ -170,7 +190,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage
 | 
				
			||||||
                        var pipe = pipeList.FirstOrDefault(x => x.PipelineCode == col3 && x.WorkAreaId == workAreaId);
 | 
					                        var pipe = pipeList.FirstOrDefault(x => x.PipelineCode == col3 && x.WorkAreaId == workAreaId);
 | 
				
			||||||
                        if (pipe == null)
 | 
					                        if (pipe == null)
 | 
				
			||||||
                        {
 | 
					                        {
 | 
				
			||||||
                            result += "第" + (i + 2).ToString() + "行," + "该区域管线号" + "," + "[" + col3 + "]不存在!" + "|";
 | 
					                            result += "该区域管线号 [" + col3 + "]不存在!" + "|";
 | 
				
			||||||
                        }
 | 
					                        }
 | 
				
			||||||
                        else
 | 
					                        else
 | 
				
			||||||
                        {
 | 
					                        {
 | 
				
			||||||
| 
						 | 
					@ -180,7 +200,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                    else
 | 
					                    else
 | 
				
			||||||
                    {
 | 
					                    {
 | 
				
			||||||
                        result += "第" + (i + 2).ToString() + "行," + "管线号" + "," + "此项为必填项!" + "|";
 | 
					                        result += "管线号此项为必填项!" + "|";
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    string weldJointId = string.Empty;
 | 
					                    string weldJointId = string.Empty;
 | 
				
			||||||
| 
						 | 
					@ -189,7 +209,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage
 | 
				
			||||||
                        var weldJoint = from x in Funs.DB.Pipeline_WeldJoint where x.PipelineId == pipelineId && x.WeldJointCode == col4 select x;
 | 
					                        var weldJoint = from x in Funs.DB.Pipeline_WeldJoint where x.PipelineId == pipelineId && x.WeldJointCode == col4 select x;
 | 
				
			||||||
                        if (weldJoint.Count() == 0)
 | 
					                        if (weldJoint.Count() == 0)
 | 
				
			||||||
                        {
 | 
					                        {
 | 
				
			||||||
                            result += "第" + (i + 2).ToString() + "行," + "焊口号" + "," + "[" + col4 + "]不存在!" + "|";
 | 
					                            result += "焊口号 [" + col4 + "]不存在!" + "|";
 | 
				
			||||||
                        }
 | 
					                        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                        else if (weldJoint.Count() == 1)
 | 
					                        else if (weldJoint.Count() == 1)
 | 
				
			||||||
| 
						 | 
					@ -200,12 +220,12 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage
 | 
				
			||||||
                        }
 | 
					                        }
 | 
				
			||||||
                        else
 | 
					                        else
 | 
				
			||||||
                        {
 | 
					                        {
 | 
				
			||||||
                            result += "第" + (i + 2).ToString() + "行," + "焊口号" + "," + "[" + col4 + "]重复!" + "|";
 | 
					                            result += "焊口号 [" + col4 + "]重复!" + "|";
 | 
				
			||||||
                        }
 | 
					                        }
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                    else
 | 
					                    else
 | 
				
			||||||
                    {
 | 
					                    {
 | 
				
			||||||
                        result += "第" + (i + 2).ToString() + "行," + "焊口号" + "," + "此项为必填项!" + "|";
 | 
					                        result += "焊口号此项为必填项!" + "|";
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    string ndeId = string.Empty;
 | 
					                    string ndeId = string.Empty;
 | 
				
			||||||
| 
						 | 
					@ -214,7 +234,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage
 | 
				
			||||||
                        var nde = Funs.DB.Base_DetectionType.FirstOrDefault(x => x.DetectionTypeCode == col5);
 | 
					                        var nde = Funs.DB.Base_DetectionType.FirstOrDefault(x => x.DetectionTypeCode == col5);
 | 
				
			||||||
                        if (nde == null)
 | 
					                        if (nde == null)
 | 
				
			||||||
                        {
 | 
					                        {
 | 
				
			||||||
                            result += "第" + (i + 2).ToString() + "行," + "探伤类型" + "," + "[" + col5 + "]错误!" + "|";
 | 
					                            result += "探伤类型[" + col5 + "]错误!" + "|";
 | 
				
			||||||
                        }
 | 
					                        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                        else
 | 
					                        else
 | 
				
			||||||
| 
						 | 
					@ -225,19 +245,19 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                    else
 | 
					                    else
 | 
				
			||||||
                    {
 | 
					                    {
 | 
				
			||||||
                        result += "第" + (i + 2).ToString() + "行," + "探伤类型" + "," + "此项为必填项!" + "|";
 | 
					                        result += "探伤类型此项为必填项!" + "|";
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    var pointBatchItem = trustIn.FirstOrDefault(x => x.InstallationId == installationId && x.WorkAreaId == workAreaId && x.PipelineId == pipelineId && x.WeldJointId == weldJointId && x.DetectionTypeId == ndeId);
 | 
					                    var pointBatchItem = trustIn.FirstOrDefault(x => x.InstallationId == installationId && x.WorkAreaId == workAreaId && x.PipelineId == pipelineId && x.WeldJointId == weldJointId && x.DetectionTypeId == ndeId);
 | 
				
			||||||
                    if (pointBatchItem == null)
 | 
					                    if (pointBatchItem == null)
 | 
				
			||||||
                    {
 | 
					                    {
 | 
				
			||||||
                        result += "第" + (i + 2).ToString() + "行," + "检验批中不存在对应焊口信息"  + "|";
 | 
					                        result += "检验批中不存在对应焊口信息" + "|";
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                    else
 | 
					                    else
 | 
				
			||||||
                    {
 | 
					                    {
 | 
				
			||||||
                        if (pointBatchItem.TrustBatchItemId != null)
 | 
					                        if (pointBatchItem.TrustBatchItemId != null)
 | 
				
			||||||
                        {
 | 
					                        {
 | 
				
			||||||
                            result += "第" + (i + 2).ToString() + "行," + "焊口已委托" + "|";
 | 
					                            result += "焊口已委托" + "|";
 | 
				
			||||||
                        }
 | 
					                        }
 | 
				
			||||||
                        else
 | 
					                        else
 | 
				
			||||||
                        {
 | 
					                        {
 | 
				
			||||||
| 
						 | 
					@ -254,12 +274,12 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage
 | 
				
			||||||
                        }
 | 
					                        }
 | 
				
			||||||
                        catch (Exception)
 | 
					                        catch (Exception)
 | 
				
			||||||
                        {
 | 
					                        {
 | 
				
			||||||
                            result += "第" + (i + 2).ToString() + "行," + "委托日期" + "," + "[" + col6 + "]错误!" + "|";
 | 
					                            result += "委托日期 [" + col6 + "]错误!" + "|";
 | 
				
			||||||
                        }
 | 
					                        }
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                    else
 | 
					                    else
 | 
				
			||||||
                    {
 | 
					                    {
 | 
				
			||||||
                        result += "第" + (i + 2).ToString() + "行," + "委托日期" + "," + "此项为必填项!" + "|";
 | 
					                        result += "委托日期此项为必填项!" + "|";
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    if (!string.IsNullOrEmpty(col7))
 | 
					                    if (!string.IsNullOrEmpty(col7))
 | 
				
			||||||
| 
						 | 
					@ -267,7 +287,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage
 | 
				
			||||||
                        Model.Base_Unit unit = Funs.DB.Base_Unit.FirstOrDefault(x => x.UnitCode == col7);
 | 
					                        Model.Base_Unit unit = Funs.DB.Base_Unit.FirstOrDefault(x => x.UnitCode == col7);
 | 
				
			||||||
                        if (unit == null)
 | 
					                        if (unit == null)
 | 
				
			||||||
                        {
 | 
					                        {
 | 
				
			||||||
                            result += "第" + (i + 2).ToString() + "行," + "检测单位编号" + "," + "[" + col7 + "]错误!" + "|";
 | 
					                            result += "检测单位编号[" + col7 + "]错误!" + "|";
 | 
				
			||||||
                        }
 | 
					                        }
 | 
				
			||||||
                        else
 | 
					                        else
 | 
				
			||||||
                        {
 | 
					                        {
 | 
				
			||||||
| 
						 | 
					@ -276,31 +296,35 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                    else
 | 
					                    else
 | 
				
			||||||
                    {
 | 
					                    {
 | 
				
			||||||
                        result += "第" + (i + 2).ToString() + "行," + "检测单位" + "," + "此项为必填项!" + "|";
 | 
					                        result += "检测单位此项为必填项!" + "|";
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    if (!string.IsNullOrEmpty(col8))
 | 
					                    if (!string.IsNullOrEmpty(col8))
 | 
				
			||||||
                    {
 | 
					                    {
 | 
				
			||||||
                        if (col8 != "打磨" && col8 != "机加工" && col8 != "喷砂" && col8 != "漆面")
 | 
					                        if (col8 != "打磨" && col8 != "机加工" && col8 != "喷砂" && col8 != "漆面")
 | 
				
			||||||
                        {
 | 
					                        {
 | 
				
			||||||
                            result += "第" + (i + 2).ToString() + "行," + "表面检测需录入:打磨、机加工、喷砂、漆面" + "|";
 | 
					                            result += "表面检测需录入:打磨、机加工、喷砂、漆面" + "|";
 | 
				
			||||||
                        }
 | 
					                        }
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                    if (!string.IsNullOrEmpty(col9))
 | 
					                    if (!string.IsNullOrEmpty(col9))
 | 
				
			||||||
                    {
 | 
					                    {
 | 
				
			||||||
                        if (col9 != "焊后" && col9 != "打磨后" && col9 != "热处理后" && col9 != "坡口准备" && col9 != "清根后" && col9 != "压力试验后" && col9 != "其他")
 | 
					                        if (col9 != "焊后" && col9 != "打磨后" && col9 != "热处理后" && col9 != "坡口准备" && col9 != "清根后" && col9 != "压力试验后" && col9 != "其他")
 | 
				
			||||||
                        {
 | 
					                        {
 | 
				
			||||||
                            result += "第" + (i + 2).ToString() + "行," + "检测时机需录入:焊后、打磨后、热处理后、坡口准备、清根后、压力试验后、其他" + "|";
 | 
					                            result += "检测时机需录入:焊后、打磨后、热处理后、坡口准备、清根后、压力试验后、其他" + "|";
 | 
				
			||||||
                        }
 | 
					                        }
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                    log.Remark = result;
 | 
				
			||||||
 | 
					                    logListData.Add(log);
 | 
				
			||||||
                    trustList.Add(t);
 | 
					                    trustList.Add(t);
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                var trustCodeList = trustList.Select(p => p.TrustBatchCode).Distinct();
 | 
					                var trustCodeList = trustList.Select(p => p.TrustBatchCode).Distinct();
 | 
				
			||||||
                foreach (var trustCode in trustCodeList)
 | 
					                foreach (var trustCode in trustCodeList)
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
 | 
					                    string result = string.Empty;
 | 
				
			||||||
                    var t = from x in trustList where x.TrustBatchCode == trustCode select x;
 | 
					                    var t = from x in trustList where x.TrustBatchCode == trustCode select x;
 | 
				
			||||||
 | 
					                    var logInfo = logListData.FirstOrDefault(x => x.TrustBatchCode == trustCode);
 | 
				
			||||||
                    if (t.Select(x => x.InstallationId).Distinct().Count() > 1)
 | 
					                    if (t.Select(x => x.InstallationId).Distinct().Count() > 1)
 | 
				
			||||||
                    {
 | 
					                    {
 | 
				
			||||||
                        result += "委托单" + trustCode + "装置不一至" + "|";
 | 
					                        result += "委托单" + trustCode + "装置不一至" + "|";
 | 
				
			||||||
| 
						 | 
					@ -329,17 +353,18 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage
 | 
				
			||||||
                    {
 | 
					                    {
 | 
				
			||||||
                        result += "委托单" + trustCode + "委托日期不一至" + "|";
 | 
					                        result += "委托单" + trustCode + "委托日期不一至" + "|";
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
 | 
					                    if (logInfo != null)
 | 
				
			||||||
 | 
					                    {
 | 
				
			||||||
 | 
					                        logInfo.Remark += result;
 | 
				
			||||||
 | 
					                    }
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                if (!string.IsNullOrEmpty(result))
 | 
					                if (logListData.Where(t => t.Remark != "").Any())
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
                    if (result.Contains("|"))
 | 
					                    Funs.DB.TrustBatchImportErrorLog.InsertAllOnSubmit(logListData);
 | 
				
			||||||
                    {
 | 
					                    Funs.DB.SubmitChanges();
 | 
				
			||||||
                        result = result.Substring(0, result.LastIndexOf("|"));
 | 
					                    this.Grid1.Hidden = false;
 | 
				
			||||||
                    }
 | 
					                    this.BindGrid1(BatchNo);
 | 
				
			||||||
                    errorInfos = result;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
                    lbResult.Text = result;
 | 
					 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
                else
 | 
					                else
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
| 
						 | 
					@ -350,6 +375,12 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        void BindGrid1(string batchNo)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            var result = Funs.DB.TrustBatchImportErrorLog.Where(t => t.BatchNo == batchNo).OrderBy(t => t.RowID).ToList();
 | 
				
			||||||
 | 
					            this.Grid1.DataSource = result;
 | 
				
			||||||
 | 
					            this.Grid1.DataBind();
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        #endregion
 | 
					        #endregion
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -112,5 +112,23 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage
 | 
				
			||||||
        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
 | 
					        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
 | 
				
			||||||
        /// </remarks>
 | 
					        /// </remarks>
 | 
				
			||||||
        protected global::FineUIPro.Label lbResult;
 | 
					        protected global::FineUIPro.Label lbResult;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        /// <summary>
 | 
				
			||||||
 | 
					        /// Grid1 控件。
 | 
				
			||||||
 | 
					        /// </summary>
 | 
				
			||||||
 | 
					        /// <remarks>
 | 
				
			||||||
 | 
					        /// 自动生成的字段。
 | 
				
			||||||
 | 
					        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
 | 
				
			||||||
 | 
					        /// </remarks>
 | 
				
			||||||
 | 
					        protected global::FineUIPro.Grid Grid1;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        /// <summary>
 | 
				
			||||||
 | 
					        /// lablRemark 控件。
 | 
				
			||||||
 | 
					        /// </summary>
 | 
				
			||||||
 | 
					        /// <remarks>
 | 
				
			||||||
 | 
					        /// 自动生成的字段。
 | 
				
			||||||
 | 
					        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
 | 
				
			||||||
 | 
					        /// </remarks>
 | 
				
			||||||
 | 
					        protected global::System.Web.UI.WebControls.Label lablRemark;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -227,7 +227,7 @@
 | 
				
			||||||
    </f:Window>
 | 
					    </f:Window>
 | 
				
			||||||
    <f:Window ID="Window4" Title="委托单导入" Hidden="true" EnableIFrame="true"
 | 
					    <f:Window ID="Window4" Title="委托单导入" Hidden="true" EnableIFrame="true"
 | 
				
			||||||
     EnableMaximize="true" Target="Parent" EnableResize="true" runat="server" IsModal="false" OnClose="Window4_Close" 
 | 
					     EnableMaximize="true" Target="Parent" EnableResize="true" runat="server" IsModal="false" OnClose="Window4_Close" 
 | 
				
			||||||
     CloseAction="HidePostBack" Width="1024px" Height="640px">
 | 
					     CloseAction="HidePostBack" Width="1200px" Height="640px">
 | 
				
			||||||
     </f:Window>
 | 
					     </f:Window>
 | 
				
			||||||
        <f:Menu ID="Menu1" runat="server">
 | 
					        <f:Menu ID="Menu1" runat="server">
 | 
				
			||||||
            <f:MenuButton ID="btnMenuCancel" OnClick="btnMenuCancel_Click" EnablePostBack="true"
 | 
					            <f:MenuButton ID="btnMenuCancel" OnClick="btnMenuCancel_Click" EnablePostBack="true"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -263,6 +263,9 @@ namespace Model
 | 
				
			||||||
    partial void InsertTemplate_Files(Template_Files instance);
 | 
					    partial void InsertTemplate_Files(Template_Files instance);
 | 
				
			||||||
    partial void UpdateTemplate_Files(Template_Files instance);
 | 
					    partial void UpdateTemplate_Files(Template_Files instance);
 | 
				
			||||||
    partial void DeleteTemplate_Files(Template_Files instance);
 | 
					    partial void DeleteTemplate_Files(Template_Files instance);
 | 
				
			||||||
 | 
					    partial void InsertTrustBatchImportErrorLog(TrustBatchImportErrorLog instance);
 | 
				
			||||||
 | 
					    partial void UpdateTrustBatchImportErrorLog(TrustBatchImportErrorLog instance);
 | 
				
			||||||
 | 
					    partial void DeleteTrustBatchImportErrorLog(TrustBatchImportErrorLog instance);
 | 
				
			||||||
    partial void InsertWelder_ProjectWelder(Welder_ProjectWelder instance);
 | 
					    partial void InsertWelder_ProjectWelder(Welder_ProjectWelder instance);
 | 
				
			||||||
    partial void UpdateWelder_ProjectWelder(Welder_ProjectWelder instance);
 | 
					    partial void UpdateWelder_ProjectWelder(Welder_ProjectWelder instance);
 | 
				
			||||||
    partial void DeleteWelder_ProjectWelder(Welder_ProjectWelder instance);
 | 
					    partial void DeleteWelder_ProjectWelder(Welder_ProjectWelder instance);
 | 
				
			||||||
| 
						 | 
					@ -928,6 +931,14 @@ namespace Model
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
 | 
							public System.Data.Linq.Table<TrustBatchImportErrorLog> TrustBatchImportErrorLog
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								get
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									return this.GetTable<TrustBatchImportErrorLog>();
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							
 | 
				
			||||||
		public System.Data.Linq.Table<View_Base_PipingClassDetail> View_Base_PipingClassDetail
 | 
							public System.Data.Linq.Table<View_Base_PipingClassDetail> View_Base_PipingClassDetail
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			get
 | 
								get
 | 
				
			||||||
| 
						 | 
					@ -22499,12 +22510,12 @@ namespace Model
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		private string _DetectionStandard;
 | 
							private string _DetectionStandard;
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		private string _Tabler;
 | 
					 | 
				
			||||||
		
 | 
					 | 
				
			||||||
		private string _Remark;
 | 
							private string _Remark;
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		private System.Nullable<System.DateTime> _CreatedTime;
 | 
							private System.Nullable<System.DateTime> _CreatedTime;
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
 | 
							private string _Tabler;
 | 
				
			||||||
 | 
							
 | 
				
			||||||
    #region 可扩展性方法定义
 | 
					    #region 可扩展性方法定义
 | 
				
			||||||
    partial void OnLoaded();
 | 
					    partial void OnLoaded();
 | 
				
			||||||
    partial void OnValidate(System.Data.Linq.ChangeAction action);
 | 
					    partial void OnValidate(System.Data.Linq.ChangeAction action);
 | 
				
			||||||
| 
						 | 
					@ -22523,12 +22534,12 @@ namespace Model
 | 
				
			||||||
    partial void OnUnitIdChanged();
 | 
					    partial void OnUnitIdChanged();
 | 
				
			||||||
    partial void OnDetectionStandardChanging(string value);
 | 
					    partial void OnDetectionStandardChanging(string value);
 | 
				
			||||||
    partial void OnDetectionStandardChanged();
 | 
					    partial void OnDetectionStandardChanged();
 | 
				
			||||||
    partial void OnTablerChanging(string value);
 | 
					 | 
				
			||||||
    partial void OnTablerChanged();
 | 
					 | 
				
			||||||
    partial void OnRemarkChanging(string value);
 | 
					    partial void OnRemarkChanging(string value);
 | 
				
			||||||
    partial void OnRemarkChanged();
 | 
					    partial void OnRemarkChanged();
 | 
				
			||||||
    partial void OnCreatedTimeChanging(System.Nullable<System.DateTime> value);
 | 
					    partial void OnCreatedTimeChanging(System.Nullable<System.DateTime> value);
 | 
				
			||||||
    partial void OnCreatedTimeChanged();
 | 
					    partial void OnCreatedTimeChanged();
 | 
				
			||||||
 | 
					    partial void OnTablerChanging(string value);
 | 
				
			||||||
 | 
					    partial void OnTablerChanged();
 | 
				
			||||||
    #endregion
 | 
					    #endregion
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		public PMI_Delegation()
 | 
							public PMI_Delegation()
 | 
				
			||||||
| 
						 | 
					@ -22596,7 +22607,7 @@ namespace Model
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
 | 
							[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")]
 | 
				
			||||||
		public string ProjectId
 | 
							public string ProjectId
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			get
 | 
								get
 | 
				
			||||||
| 
						 | 
					@ -22676,26 +22687,6 @@ namespace Model
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Tabler", DbType="NVarChar(50)")]
 | 
					 | 
				
			||||||
		public string Tabler
 | 
					 | 
				
			||||||
		{
 | 
					 | 
				
			||||||
			get
 | 
					 | 
				
			||||||
			{
 | 
					 | 
				
			||||||
				return this._Tabler;
 | 
					 | 
				
			||||||
			}
 | 
					 | 
				
			||||||
			set
 | 
					 | 
				
			||||||
			{
 | 
					 | 
				
			||||||
				if ((this._Tabler != value))
 | 
					 | 
				
			||||||
				{
 | 
					 | 
				
			||||||
					this.OnTablerChanging(value);
 | 
					 | 
				
			||||||
					this.SendPropertyChanging();
 | 
					 | 
				
			||||||
					this._Tabler = value;
 | 
					 | 
				
			||||||
					this.SendPropertyChanged("Tabler");
 | 
					 | 
				
			||||||
					this.OnTablerChanged();
 | 
					 | 
				
			||||||
				}
 | 
					 | 
				
			||||||
			}
 | 
					 | 
				
			||||||
		}
 | 
					 | 
				
			||||||
		
 | 
					 | 
				
			||||||
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remark", DbType="NVarChar(255)")]
 | 
							[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remark", DbType="NVarChar(255)")]
 | 
				
			||||||
		public string Remark
 | 
							public string Remark
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
| 
						 | 
					@ -22736,6 +22727,26 @@ namespace Model
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
 | 
							[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Tabler", DbType="NVarChar(50)")]
 | 
				
			||||||
 | 
							public string Tabler
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								get
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									return this._Tabler;
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								set
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									if ((this._Tabler != value))
 | 
				
			||||||
 | 
									{
 | 
				
			||||||
 | 
										this.OnTablerChanging(value);
 | 
				
			||||||
 | 
										this.SendPropertyChanging();
 | 
				
			||||||
 | 
										this._Tabler = value;
 | 
				
			||||||
 | 
										this.SendPropertyChanged("Tabler");
 | 
				
			||||||
 | 
										this.OnTablerChanged();
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							
 | 
				
			||||||
		public event PropertyChangingEventHandler PropertyChanging;
 | 
							public event PropertyChangingEventHandler PropertyChanging;
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		public event PropertyChangedEventHandler PropertyChanged;
 | 
							public event PropertyChangedEventHandler PropertyChanged;
 | 
				
			||||||
| 
						 | 
					@ -22775,10 +22786,10 @@ namespace Model
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		private int _Status;
 | 
							private int _Status;
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		private System.Nullable<System.DateTime> _CheckTime;
 | 
					 | 
				
			||||||
		
 | 
					 | 
				
			||||||
		private string _ReportNo;
 | 
							private string _ReportNo;
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
 | 
							private System.Nullable<System.DateTime> _CheckTime;
 | 
				
			||||||
 | 
							
 | 
				
			||||||
		private System.Nullable<System.DateTime> _ReportTime;
 | 
							private System.Nullable<System.DateTime> _ReportTime;
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
    #region 可扩展性方法定义
 | 
					    #region 可扩展性方法定义
 | 
				
			||||||
| 
						 | 
					@ -22797,10 +22808,10 @@ namespace Model
 | 
				
			||||||
    partial void OnAcceptanceChanged();
 | 
					    partial void OnAcceptanceChanged();
 | 
				
			||||||
    partial void OnStatusChanging(int value);
 | 
					    partial void OnStatusChanging(int value);
 | 
				
			||||||
    partial void OnStatusChanged();
 | 
					    partial void OnStatusChanged();
 | 
				
			||||||
    partial void OnCheckTimeChanging(System.Nullable<System.DateTime> value);
 | 
					 | 
				
			||||||
    partial void OnCheckTimeChanged();
 | 
					 | 
				
			||||||
    partial void OnReportNoChanging(string value);
 | 
					    partial void OnReportNoChanging(string value);
 | 
				
			||||||
    partial void OnReportNoChanged();
 | 
					    partial void OnReportNoChanged();
 | 
				
			||||||
 | 
					    partial void OnCheckTimeChanging(System.Nullable<System.DateTime> value);
 | 
				
			||||||
 | 
					    partial void OnCheckTimeChanged();
 | 
				
			||||||
    partial void OnReportTimeChanging(System.Nullable<System.DateTime> value);
 | 
					    partial void OnReportTimeChanging(System.Nullable<System.DateTime> value);
 | 
				
			||||||
    partial void OnReportTimeChanged();
 | 
					    partial void OnReportTimeChanged();
 | 
				
			||||||
    #endregion
 | 
					    #endregion
 | 
				
			||||||
| 
						 | 
					@ -22910,7 +22921,7 @@ namespace Model
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Status", DbType="Int NOT NULL")]
 | 
							[global::System.Data.Linq.Mapping.ColumnAttribute(Name="status", Storage="_Status", DbType="Int NOT NULL")]
 | 
				
			||||||
		public int Status
 | 
							public int Status
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			get
 | 
								get
 | 
				
			||||||
| 
						 | 
					@ -22930,26 +22941,6 @@ namespace Model
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		[global::System.Data.Linq.Mapping.ColumnAttribute(Name="checkTime", Storage="_CheckTime", DbType="DateTime")]
 | 
					 | 
				
			||||||
		public System.Nullable<System.DateTime> CheckTime
 | 
					 | 
				
			||||||
		{
 | 
					 | 
				
			||||||
			get
 | 
					 | 
				
			||||||
			{
 | 
					 | 
				
			||||||
				return this._CheckTime;
 | 
					 | 
				
			||||||
			}
 | 
					 | 
				
			||||||
			set
 | 
					 | 
				
			||||||
			{
 | 
					 | 
				
			||||||
				if ((this._CheckTime != value))
 | 
					 | 
				
			||||||
				{
 | 
					 | 
				
			||||||
					this.OnCheckTimeChanging(value);
 | 
					 | 
				
			||||||
					this.SendPropertyChanging();
 | 
					 | 
				
			||||||
					this._CheckTime = value;
 | 
					 | 
				
			||||||
					this.SendPropertyChanged("CheckTime");
 | 
					 | 
				
			||||||
					this.OnCheckTimeChanged();
 | 
					 | 
				
			||||||
				}
 | 
					 | 
				
			||||||
			}
 | 
					 | 
				
			||||||
		}
 | 
					 | 
				
			||||||
		
 | 
					 | 
				
			||||||
		[global::System.Data.Linq.Mapping.ColumnAttribute(Name="reportNo", Storage="_ReportNo", DbType="NVarChar(50)")]
 | 
							[global::System.Data.Linq.Mapping.ColumnAttribute(Name="reportNo", Storage="_ReportNo", DbType="NVarChar(50)")]
 | 
				
			||||||
		public string ReportNo
 | 
							public string ReportNo
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
| 
						 | 
					@ -22970,6 +22961,26 @@ namespace Model
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
 | 
							[global::System.Data.Linq.Mapping.ColumnAttribute(Name="checkTime", Storage="_CheckTime", DbType="DateTime")]
 | 
				
			||||||
 | 
							public System.Nullable<System.DateTime> CheckTime
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								get
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									return this._CheckTime;
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								set
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									if ((this._CheckTime != value))
 | 
				
			||||||
 | 
									{
 | 
				
			||||||
 | 
										this.OnCheckTimeChanging(value);
 | 
				
			||||||
 | 
										this.SendPropertyChanging();
 | 
				
			||||||
 | 
										this._CheckTime = value;
 | 
				
			||||||
 | 
										this.SendPropertyChanged("CheckTime");
 | 
				
			||||||
 | 
										this.OnCheckTimeChanged();
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							
 | 
				
			||||||
		[global::System.Data.Linq.Mapping.ColumnAttribute(Name="reportTime", Storage="_ReportTime", DbType="DateTime")]
 | 
							[global::System.Data.Linq.Mapping.ColumnAttribute(Name="reportTime", Storage="_ReportTime", DbType="DateTime")]
 | 
				
			||||||
		public System.Nullable<System.DateTime> ReportTime
 | 
							public System.Nullable<System.DateTime> ReportTime
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
| 
						 | 
					@ -32261,6 +32272,404 @@ namespace Model
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
 | 
						[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.TrustBatchImportErrorLog")]
 | 
				
			||||||
 | 
						public partial class TrustBatchImportErrorLog : INotifyPropertyChanging, INotifyPropertyChanged
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							
 | 
				
			||||||
 | 
							private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
 | 
				
			||||||
 | 
							
 | 
				
			||||||
 | 
							private string _Id;
 | 
				
			||||||
 | 
							
 | 
				
			||||||
 | 
							private string _BatchNo;
 | 
				
			||||||
 | 
							
 | 
				
			||||||
 | 
							private System.Nullable<int> _RowID;
 | 
				
			||||||
 | 
							
 | 
				
			||||||
 | 
							private string _TrustBatchCode;
 | 
				
			||||||
 | 
							
 | 
				
			||||||
 | 
							private string _InstallCode;
 | 
				
			||||||
 | 
							
 | 
				
			||||||
 | 
							private string _AreaCode;
 | 
				
			||||||
 | 
							
 | 
				
			||||||
 | 
							private string _PipelineCode;
 | 
				
			||||||
 | 
							
 | 
				
			||||||
 | 
							private string _WeldJointCode;
 | 
				
			||||||
 | 
							
 | 
				
			||||||
 | 
							private string _DetectionType;
 | 
				
			||||||
 | 
							
 | 
				
			||||||
 | 
							private string _TrustDate;
 | 
				
			||||||
 | 
							
 | 
				
			||||||
 | 
							private string _UnitCode;
 | 
				
			||||||
 | 
							
 | 
				
			||||||
 | 
							private string _SurfaceState;
 | 
				
			||||||
 | 
							
 | 
				
			||||||
 | 
							private string _Opportunity;
 | 
				
			||||||
 | 
							
 | 
				
			||||||
 | 
							private string _Remark;
 | 
				
			||||||
 | 
							
 | 
				
			||||||
 | 
							private System.Nullable<System.DateTime> _CreatedTime;
 | 
				
			||||||
 | 
							
 | 
				
			||||||
 | 
					    #region 可扩展性方法定义
 | 
				
			||||||
 | 
					    partial void OnLoaded();
 | 
				
			||||||
 | 
					    partial void OnValidate(System.Data.Linq.ChangeAction action);
 | 
				
			||||||
 | 
					    partial void OnCreated();
 | 
				
			||||||
 | 
					    partial void OnIdChanging(string value);
 | 
				
			||||||
 | 
					    partial void OnIdChanged();
 | 
				
			||||||
 | 
					    partial void OnBatchNoChanging(string value);
 | 
				
			||||||
 | 
					    partial void OnBatchNoChanged();
 | 
				
			||||||
 | 
					    partial void OnRowIDChanging(System.Nullable<int> value);
 | 
				
			||||||
 | 
					    partial void OnRowIDChanged();
 | 
				
			||||||
 | 
					    partial void OnTrustBatchCodeChanging(string value);
 | 
				
			||||||
 | 
					    partial void OnTrustBatchCodeChanged();
 | 
				
			||||||
 | 
					    partial void OnInstallCodeChanging(string value);
 | 
				
			||||||
 | 
					    partial void OnInstallCodeChanged();
 | 
				
			||||||
 | 
					    partial void OnAreaCodeChanging(string value);
 | 
				
			||||||
 | 
					    partial void OnAreaCodeChanged();
 | 
				
			||||||
 | 
					    partial void OnPipelineCodeChanging(string value);
 | 
				
			||||||
 | 
					    partial void OnPipelineCodeChanged();
 | 
				
			||||||
 | 
					    partial void OnWeldJointCodeChanging(string value);
 | 
				
			||||||
 | 
					    partial void OnWeldJointCodeChanged();
 | 
				
			||||||
 | 
					    partial void OnDetectionTypeChanging(string value);
 | 
				
			||||||
 | 
					    partial void OnDetectionTypeChanged();
 | 
				
			||||||
 | 
					    partial void OnTrustDateChanging(string value);
 | 
				
			||||||
 | 
					    partial void OnTrustDateChanged();
 | 
				
			||||||
 | 
					    partial void OnUnitCodeChanging(string value);
 | 
				
			||||||
 | 
					    partial void OnUnitCodeChanged();
 | 
				
			||||||
 | 
					    partial void OnSurfaceStateChanging(string value);
 | 
				
			||||||
 | 
					    partial void OnSurfaceStateChanged();
 | 
				
			||||||
 | 
					    partial void OnOpportunityChanging(string value);
 | 
				
			||||||
 | 
					    partial void OnOpportunityChanged();
 | 
				
			||||||
 | 
					    partial void OnRemarkChanging(string value);
 | 
				
			||||||
 | 
					    partial void OnRemarkChanged();
 | 
				
			||||||
 | 
					    partial void OnCreatedTimeChanging(System.Nullable<System.DateTime> value);
 | 
				
			||||||
 | 
					    partial void OnCreatedTimeChanged();
 | 
				
			||||||
 | 
					    #endregion
 | 
				
			||||||
 | 
							
 | 
				
			||||||
 | 
							public TrustBatchImportErrorLog()
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								OnCreated();
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							
 | 
				
			||||||
 | 
							[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
 | 
				
			||||||
 | 
							public string Id
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								get
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									return this._Id;
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								set
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									if ((this._Id != value))
 | 
				
			||||||
 | 
									{
 | 
				
			||||||
 | 
										this.OnIdChanging(value);
 | 
				
			||||||
 | 
										this.SendPropertyChanging();
 | 
				
			||||||
 | 
										this._Id = value;
 | 
				
			||||||
 | 
										this.SendPropertyChanged("Id");
 | 
				
			||||||
 | 
										this.OnIdChanged();
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							
 | 
				
			||||||
 | 
							[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BatchNo", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
 | 
				
			||||||
 | 
							public string BatchNo
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								get
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									return this._BatchNo;
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								set
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									if ((this._BatchNo != value))
 | 
				
			||||||
 | 
									{
 | 
				
			||||||
 | 
										this.OnBatchNoChanging(value);
 | 
				
			||||||
 | 
										this.SendPropertyChanging();
 | 
				
			||||||
 | 
										this._BatchNo = value;
 | 
				
			||||||
 | 
										this.SendPropertyChanged("BatchNo");
 | 
				
			||||||
 | 
										this.OnBatchNoChanged();
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							
 | 
				
			||||||
 | 
							[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RowID", DbType="Int")]
 | 
				
			||||||
 | 
							public System.Nullable<int> RowID
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								get
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									return this._RowID;
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								set
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									if ((this._RowID != value))
 | 
				
			||||||
 | 
									{
 | 
				
			||||||
 | 
										this.OnRowIDChanging(value);
 | 
				
			||||||
 | 
										this.SendPropertyChanging();
 | 
				
			||||||
 | 
										this._RowID = value;
 | 
				
			||||||
 | 
										this.SendPropertyChanged("RowID");
 | 
				
			||||||
 | 
										this.OnRowIDChanged();
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							
 | 
				
			||||||
 | 
							[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TrustBatchCode", DbType="NVarChar(50)")]
 | 
				
			||||||
 | 
							public string TrustBatchCode
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								get
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									return this._TrustBatchCode;
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								set
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									if ((this._TrustBatchCode != value))
 | 
				
			||||||
 | 
									{
 | 
				
			||||||
 | 
										this.OnTrustBatchCodeChanging(value);
 | 
				
			||||||
 | 
										this.SendPropertyChanging();
 | 
				
			||||||
 | 
										this._TrustBatchCode = value;
 | 
				
			||||||
 | 
										this.SendPropertyChanged("TrustBatchCode");
 | 
				
			||||||
 | 
										this.OnTrustBatchCodeChanged();
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							
 | 
				
			||||||
 | 
							[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InstallCode", DbType="NVarChar(50)")]
 | 
				
			||||||
 | 
							public string InstallCode
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								get
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									return this._InstallCode;
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								set
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									if ((this._InstallCode != value))
 | 
				
			||||||
 | 
									{
 | 
				
			||||||
 | 
										this.OnInstallCodeChanging(value);
 | 
				
			||||||
 | 
										this.SendPropertyChanging();
 | 
				
			||||||
 | 
										this._InstallCode = value;
 | 
				
			||||||
 | 
										this.SendPropertyChanged("InstallCode");
 | 
				
			||||||
 | 
										this.OnInstallCodeChanged();
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							
 | 
				
			||||||
 | 
							[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AreaCode", DbType="NVarChar(50)")]
 | 
				
			||||||
 | 
							public string AreaCode
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								get
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									return this._AreaCode;
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								set
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									if ((this._AreaCode != value))
 | 
				
			||||||
 | 
									{
 | 
				
			||||||
 | 
										this.OnAreaCodeChanging(value);
 | 
				
			||||||
 | 
										this.SendPropertyChanging();
 | 
				
			||||||
 | 
										this._AreaCode = value;
 | 
				
			||||||
 | 
										this.SendPropertyChanged("AreaCode");
 | 
				
			||||||
 | 
										this.OnAreaCodeChanged();
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							
 | 
				
			||||||
 | 
							[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineCode", DbType="NVarChar(50)")]
 | 
				
			||||||
 | 
							public string PipelineCode
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								get
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									return this._PipelineCode;
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								set
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									if ((this._PipelineCode != value))
 | 
				
			||||||
 | 
									{
 | 
				
			||||||
 | 
										this.OnPipelineCodeChanging(value);
 | 
				
			||||||
 | 
										this.SendPropertyChanging();
 | 
				
			||||||
 | 
										this._PipelineCode = value;
 | 
				
			||||||
 | 
										this.SendPropertyChanged("PipelineCode");
 | 
				
			||||||
 | 
										this.OnPipelineCodeChanged();
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							
 | 
				
			||||||
 | 
							[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WeldJointCode", DbType="NVarChar(50)")]
 | 
				
			||||||
 | 
							public string WeldJointCode
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								get
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									return this._WeldJointCode;
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								set
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									if ((this._WeldJointCode != value))
 | 
				
			||||||
 | 
									{
 | 
				
			||||||
 | 
										this.OnWeldJointCodeChanging(value);
 | 
				
			||||||
 | 
										this.SendPropertyChanging();
 | 
				
			||||||
 | 
										this._WeldJointCode = value;
 | 
				
			||||||
 | 
										this.SendPropertyChanged("WeldJointCode");
 | 
				
			||||||
 | 
										this.OnWeldJointCodeChanged();
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							
 | 
				
			||||||
 | 
							[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DetectionType", DbType="NVarChar(50)")]
 | 
				
			||||||
 | 
							public string DetectionType
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								get
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									return this._DetectionType;
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								set
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									if ((this._DetectionType != value))
 | 
				
			||||||
 | 
									{
 | 
				
			||||||
 | 
										this.OnDetectionTypeChanging(value);
 | 
				
			||||||
 | 
										this.SendPropertyChanging();
 | 
				
			||||||
 | 
										this._DetectionType = value;
 | 
				
			||||||
 | 
										this.SendPropertyChanged("DetectionType");
 | 
				
			||||||
 | 
										this.OnDetectionTypeChanged();
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							
 | 
				
			||||||
 | 
							[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TrustDate", DbType="NVarChar(50)")]
 | 
				
			||||||
 | 
							public string TrustDate
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								get
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									return this._TrustDate;
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								set
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									if ((this._TrustDate != value))
 | 
				
			||||||
 | 
									{
 | 
				
			||||||
 | 
										this.OnTrustDateChanging(value);
 | 
				
			||||||
 | 
										this.SendPropertyChanging();
 | 
				
			||||||
 | 
										this._TrustDate = value;
 | 
				
			||||||
 | 
										this.SendPropertyChanged("TrustDate");
 | 
				
			||||||
 | 
										this.OnTrustDateChanged();
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							
 | 
				
			||||||
 | 
							[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitCode", DbType="NVarChar(50)")]
 | 
				
			||||||
 | 
							public string UnitCode
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								get
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									return this._UnitCode;
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								set
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									if ((this._UnitCode != value))
 | 
				
			||||||
 | 
									{
 | 
				
			||||||
 | 
										this.OnUnitCodeChanging(value);
 | 
				
			||||||
 | 
										this.SendPropertyChanging();
 | 
				
			||||||
 | 
										this._UnitCode = value;
 | 
				
			||||||
 | 
										this.SendPropertyChanged("UnitCode");
 | 
				
			||||||
 | 
										this.OnUnitCodeChanged();
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							
 | 
				
			||||||
 | 
							[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SurfaceState", DbType="NVarChar(50)")]
 | 
				
			||||||
 | 
							public string SurfaceState
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								get
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									return this._SurfaceState;
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								set
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									if ((this._SurfaceState != value))
 | 
				
			||||||
 | 
									{
 | 
				
			||||||
 | 
										this.OnSurfaceStateChanging(value);
 | 
				
			||||||
 | 
										this.SendPropertyChanging();
 | 
				
			||||||
 | 
										this._SurfaceState = value;
 | 
				
			||||||
 | 
										this.SendPropertyChanged("SurfaceState");
 | 
				
			||||||
 | 
										this.OnSurfaceStateChanged();
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							
 | 
				
			||||||
 | 
							[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Opportunity", DbType="NVarChar(50)")]
 | 
				
			||||||
 | 
							public string Opportunity
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								get
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									return this._Opportunity;
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								set
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									if ((this._Opportunity != value))
 | 
				
			||||||
 | 
									{
 | 
				
			||||||
 | 
										this.OnOpportunityChanging(value);
 | 
				
			||||||
 | 
										this.SendPropertyChanging();
 | 
				
			||||||
 | 
										this._Opportunity = value;
 | 
				
			||||||
 | 
										this.SendPropertyChanged("Opportunity");
 | 
				
			||||||
 | 
										this.OnOpportunityChanged();
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							
 | 
				
			||||||
 | 
							[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remark", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)]
 | 
				
			||||||
 | 
							public string Remark
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								get
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									return this._Remark;
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								set
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									if ((this._Remark != value))
 | 
				
			||||||
 | 
									{
 | 
				
			||||||
 | 
										this.OnRemarkChanging(value);
 | 
				
			||||||
 | 
										this.SendPropertyChanging();
 | 
				
			||||||
 | 
										this._Remark = value;
 | 
				
			||||||
 | 
										this.SendPropertyChanged("Remark");
 | 
				
			||||||
 | 
										this.OnRemarkChanged();
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							
 | 
				
			||||||
 | 
							[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreatedTime", DbType="DateTime")]
 | 
				
			||||||
 | 
							public System.Nullable<System.DateTime> CreatedTime
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								get
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									return this._CreatedTime;
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								set
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									if ((this._CreatedTime != value))
 | 
				
			||||||
 | 
									{
 | 
				
			||||||
 | 
										this.OnCreatedTimeChanging(value);
 | 
				
			||||||
 | 
										this.SendPropertyChanging();
 | 
				
			||||||
 | 
										this._CreatedTime = value;
 | 
				
			||||||
 | 
										this.SendPropertyChanged("CreatedTime");
 | 
				
			||||||
 | 
										this.OnCreatedTimeChanged();
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							
 | 
				
			||||||
 | 
							public event PropertyChangingEventHandler PropertyChanging;
 | 
				
			||||||
 | 
							
 | 
				
			||||||
 | 
							public event PropertyChangedEventHandler PropertyChanged;
 | 
				
			||||||
 | 
							
 | 
				
			||||||
 | 
							protected virtual void SendPropertyChanging()
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								if ((this.PropertyChanging != null))
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									this.PropertyChanging(this, emptyChangingEventArgs);
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							
 | 
				
			||||||
 | 
							protected virtual void SendPropertyChanged(String propertyName)
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								if ((this.PropertyChanged != null))
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						
 | 
				
			||||||
	[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.View_Base_PipingClassDetail")]
 | 
						[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.View_Base_PipingClassDetail")]
 | 
				
			||||||
	public partial class View_Base_PipingClassDetail
 | 
						public partial class View_Base_PipingClassDetail
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
| 
						 | 
					@ -39146,6 +39555,8 @@ namespace Model
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		private string _ProjectId;
 | 
							private string _ProjectId;
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
 | 
							private System.Nullable<bool> _IsPMI;
 | 
				
			||||||
 | 
							
 | 
				
			||||||
		private string _PipelineCode;
 | 
							private string _PipelineCode;
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		private string _PipelineId;
 | 
							private string _PipelineId;
 | 
				
			||||||
| 
						 | 
					@ -39276,6 +39687,22 @@ namespace Model
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
 | 
							[global::System.Data.Linq.Mapping.ColumnAttribute(Name="isPMI", Storage="_IsPMI", DbType="Bit")]
 | 
				
			||||||
 | 
							public System.Nullable<bool> IsPMI
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								get
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									return this._IsPMI;
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								set
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									if ((this._IsPMI != value))
 | 
				
			||||||
 | 
									{
 | 
				
			||||||
 | 
										this._IsPMI = value;
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							
 | 
				
			||||||
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineCode", DbType="NVarChar(100)")]
 | 
							[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineCode", DbType="NVarChar(100)")]
 | 
				
			||||||
		public string PipelineCode
 | 
							public string PipelineCode
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
| 
						 | 
					@ -41284,8 +41711,6 @@ namespace Model
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		private string _PipingClassCode;
 | 
							private string _PipingClassCode;
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		private string _PIPClassCode;
 | 
					 | 
				
			||||||
		
 | 
					 | 
				
			||||||
		private string _WeldingDate;
 | 
							private string _WeldingDate;
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		private System.Nullable<bool> _IsCancel;
 | 
							private System.Nullable<bool> _IsCancel;
 | 
				
			||||||
| 
						 | 
					@ -41300,6 +41725,8 @@ namespace Model
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		private string _DetectionType;
 | 
							private string _DetectionType;
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
 | 
							private string _PIPClassCode;
 | 
				
			||||||
 | 
							
 | 
				
			||||||
		private string _PageNum;
 | 
							private string _PageNum;
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		public View_Pipeline_WeldJoint()
 | 
							public View_Pipeline_WeldJoint()
 | 
				
			||||||
| 
						 | 
					@ -42394,22 +42821,6 @@ namespace Model
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PIPClassCode", DbType="NVarChar(50)")]
 | 
					 | 
				
			||||||
		public string PIPClassCode
 | 
					 | 
				
			||||||
		{
 | 
					 | 
				
			||||||
			get
 | 
					 | 
				
			||||||
			{
 | 
					 | 
				
			||||||
				return this._PIPClassCode;
 | 
					 | 
				
			||||||
			}
 | 
					 | 
				
			||||||
			set
 | 
					 | 
				
			||||||
			{
 | 
					 | 
				
			||||||
				if ((this._PIPClassCode != value))
 | 
					 | 
				
			||||||
				{
 | 
					 | 
				
			||||||
					this._PIPClassCode = value;
 | 
					 | 
				
			||||||
				}
 | 
					 | 
				
			||||||
			}
 | 
					 | 
				
			||||||
		}
 | 
					 | 
				
			||||||
		
 | 
					 | 
				
			||||||
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WeldingDate", DbType="VarChar(100)")]
 | 
							[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WeldingDate", DbType="VarChar(100)")]
 | 
				
			||||||
		public string WeldingDate
 | 
							public string WeldingDate
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
| 
						 | 
					@ -42522,6 +42933,22 @@ namespace Model
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
 | 
							[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PIPClassCode", DbType="NVarChar(50)")]
 | 
				
			||||||
 | 
							public string PIPClassCode
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								get
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									return this._PIPClassCode;
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								set
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									if ((this._PIPClassCode != value))
 | 
				
			||||||
 | 
									{
 | 
				
			||||||
 | 
										this._PIPClassCode = value;
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							
 | 
				
			||||||
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PageNum", DbType="NVarChar(10)")]
 | 
							[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PageNum", DbType="NVarChar(10)")]
 | 
				
			||||||
		public string PageNum
 | 
							public string PageNum
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
| 
						 | 
					@ -47085,7 +47512,7 @@ namespace Model
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WelderIds", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)]
 | 
							[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WelderIds", DbType="VarChar(1000)")]
 | 
				
			||||||
		public string WelderIds
 | 
							public string WelderIds
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			get
 | 
								get
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue