This commit is contained in:
commit
03997c1773
|
|
@ -0,0 +1,6 @@
|
|||
Alter TABLE [dbo].[HJGL_PW_JointInfo] add
|
||||
[AttachSourceId] [nvarchar](50) NULL,
|
||||
[x] [nvarchar](50) NULL,
|
||||
[y] [nvarchar](50) NULL,
|
||||
[x2] [nvarchar](50) NULL,
|
||||
[y2] [nvarchar]
|
||||
|
|
@ -10,6 +10,7 @@
|
|||
using System.Web.UI.WebControls;
|
||||
using Model;
|
||||
using BLL;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public static class DataInTempService
|
||||
{
|
||||
|
|
@ -27,6 +28,60 @@
|
|||
/// 增加导入临时表记录
|
||||
/// </summary>
|
||||
/// <param name="dataInTemp">委托实体</param>
|
||||
public static void AddDataInTemp(List<Model.HJGL_Sys_DataInTemp >dataInTemps)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
foreach (var dataInTemp in dataInTemps)
|
||||
{
|
||||
Model.HJGL_Sys_DataInTemp newDataInTemp = new Model.HJGL_Sys_DataInTemp();
|
||||
newDataInTemp.TempId = dataInTemp.TempId;
|
||||
newDataInTemp.ProjectId = dataInTemp.ProjectId;
|
||||
newDataInTemp.UserId = dataInTemp.UserId;
|
||||
newDataInTemp.Time = dataInTemp.Time;
|
||||
newDataInTemp.RowNo = dataInTemp.RowNo;
|
||||
newDataInTemp.Type = dataInTemp.Type;
|
||||
newDataInTemp.Value1 = dataInTemp.Value1;
|
||||
newDataInTemp.Value2 = dataInTemp.Value2;
|
||||
newDataInTemp.Value3 = dataInTemp.Value3;
|
||||
newDataInTemp.Value4 = dataInTemp.Value4;
|
||||
newDataInTemp.Value5 = dataInTemp.Value5;
|
||||
newDataInTemp.Value6 = dataInTemp.Value6;
|
||||
newDataInTemp.Value7 = dataInTemp.Value7;
|
||||
newDataInTemp.Value8 = dataInTemp.Value8;
|
||||
newDataInTemp.Value9 = dataInTemp.Value9;
|
||||
newDataInTemp.Value10 = dataInTemp.Value10;
|
||||
newDataInTemp.Value11 = dataInTemp.Value11;
|
||||
newDataInTemp.Value12 = dataInTemp.Value12;
|
||||
newDataInTemp.Value13 = dataInTemp.Value13;
|
||||
newDataInTemp.Value14 = dataInTemp.Value14;
|
||||
newDataInTemp.Value15 = dataInTemp.Value15;
|
||||
newDataInTemp.Value16 = dataInTemp.Value16;
|
||||
newDataInTemp.Value17 = dataInTemp.Value17;
|
||||
newDataInTemp.Value18 = dataInTemp.Value18;
|
||||
newDataInTemp.Value19 = dataInTemp.Value19;
|
||||
newDataInTemp.Value20 = dataInTemp.Value20;
|
||||
newDataInTemp.Value21 = dataInTemp.Value21;
|
||||
newDataInTemp.Value22 = dataInTemp.Value22;
|
||||
newDataInTemp.Value23 = dataInTemp.Value23;
|
||||
newDataInTemp.Value24 = dataInTemp.Value24;
|
||||
newDataInTemp.Value25 = dataInTemp.Value25;
|
||||
newDataInTemp.Value26 = dataInTemp.Value26;
|
||||
newDataInTemp.Value27 = dataInTemp.Value27;
|
||||
newDataInTemp.Value28 = dataInTemp.Value28;
|
||||
newDataInTemp.Value29 = dataInTemp.Value29;
|
||||
newDataInTemp.Value30 = dataInTemp.Value30;
|
||||
newDataInTemp.Value31 = dataInTemp.Value31;
|
||||
newDataInTemp.Value32 = dataInTemp.Value32;
|
||||
newDataInTemp.Value33 = dataInTemp.Value33;
|
||||
newDataInTemp.Value34 = dataInTemp.Value34;
|
||||
newDataInTemp.Value35 = dataInTemp.Value35;
|
||||
newDataInTemp.ToopValue = dataInTemp.ToopValue;
|
||||
db.HJGL_Sys_DataInTemp.InsertOnSubmit(newDataInTemp);
|
||||
}
|
||||
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
public static void AddDataInTemp(Model.HJGL_Sys_DataInTemp dataInTemp)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
|
|
@ -77,6 +132,7 @@
|
|||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 修改导入临时表记录
|
||||
/// </summary>
|
||||
|
|
|
|||
|
|
@ -1156,14 +1156,7 @@
|
|||
<Content Include="HJGL\HotProessManage\HotProessTrustItemEdit.aspx" />
|
||||
<Content Include="HJGL\HotProessManage\RepairHotProessTrust.aspx" />
|
||||
<Content Include="HJGL\HotProessManage\RepairHotProessTrustEdit.aspx" />
|
||||
<Content Include="HJGL\JoinMarking\assets\main-DE8eQLmE.js" />
|
||||
<Content Include="HJGL\JoinMarking\assets\main-DSskaVYi.css" />
|
||||
<Content Include="HJGL\JoinMarking\assets\pdf-lib-D5zKcp81.js" />
|
||||
<Content Include="HJGL\JoinMarking\assets\pdfjs-HfNT2Y4W.js" />
|
||||
<Content Include="HJGL\JoinMarking\assets\styles-Bno-H3Kc.js" />
|
||||
<Content Include="HJGL\JoinMarking\assets\styles-CDHjsf7D.css" />
|
||||
<Content Include="HJGL\JoinMarking\assets\viewer-BilNgxa5.css" />
|
||||
<Content Include="HJGL\JoinMarking\assets\viewer-Dla4Cfl-.js" />
|
||||
<Content Include="HJGL\JoinMarking\DataInEdit.aspx" />
|
||||
<Content Include="HJGL\JoinMarking\JoinMarking.aspx" />
|
||||
<Content Include="HJGL\JoinMarking\JointShow.aspx" />
|
||||
<Content Include="HJGL\JoinMarking\PDFMarking.aspx" />
|
||||
|
|
@ -5892,6 +5885,13 @@
|
|||
<Compile Include="HJGL\HotProessManage\RepairHotProessTrustEdit.aspx.designer.cs">
|
||||
<DependentUpon>RepairHotProessTrustEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="HJGL\JoinMarking\DataInEdit.aspx.cs">
|
||||
<DependentUpon>DataInEdit.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="HJGL\JoinMarking\DataInEdit.aspx.designer.cs">
|
||||
<DependentUpon>DataInEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="HJGL\JoinMarking\JoinMarking.aspx.cs">
|
||||
<DependentUpon>JoinMarking.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
|
|
@ -5908,12 +5908,14 @@
|
|||
</Compile>
|
||||
<Compile Include="HJGL\JoinMarking\PDFMarking.aspx.cs">
|
||||
<DependentUpon>PDFMarking.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="HJGL\JoinMarking\PDFMarking.aspx.designer.cs">
|
||||
<DependentUpon>PDFMarking.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="HJGL\JoinMarking\PDFShow.aspx.cs">
|
||||
<DependentUpon>PDFShow.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="HJGL\JoinMarking\PDFShow.aspx.designer.cs">
|
||||
<DependentUpon>PDFShow.aspx</DependentUpon>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<UseIISExpress>true</UseIISExpress>
|
||||
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
|
||||
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
|
||||
<Use64BitIISExpress />
|
||||
<IISExpressSSLPort />
|
||||
<IISExpressAnonymousAuthentication />
|
||||
|
|
|
|||
|
|
@ -0,0 +1,158 @@
|
|||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DataInEdit.aspx.cs" Inherits="FineUIPro.Web.HJGL.JoinMarking.DataInEdit" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<title>导入信息维护</title>
|
||||
<link href="../../res/css/common.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
|
||||
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Right">
|
||||
<Items>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server"></f:ToolbarFill>
|
||||
<f:CheckBox ID="ckAll" runat="server" Checked="true" Text="是否批量修改"></f:CheckBox>
|
||||
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="提交" ValidateForms="SimpleForm1,SimpleForm2,SimpleForm3"
|
||||
OnClick="btnSave_Click" >
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea runat="server" Label="错误信息" ID="lbErrCout" Readonly="true" Height="50px" LabelWidth="120px"></f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtValue1" Label="单位代码" ShowRedStar="true" Required="true" runat="server" FocusOnPageLoad="true" MaxLength="100" LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtValue2" Label="工区编号" ShowRedStar="true" Required="true" runat="server" MaxLength="20" LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtValue3" Label="管线代号" ShowRedStar="true" Required="true" runat="server" MaxLength="50" LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtValue4" Label="焊口代号" ShowRedStar="true" Required="true" runat="server" MaxLength="50" LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtValue5" Label="材质1代号" ShowRedStar="true" Required="true" runat="server" MaxLength="50" LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtValue7" Label="探伤比例代号" ShowRedStar="true" Required="true" runat="server" MaxLength="20" LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtValue8" Label="焊缝类型代号" ShowRedStar="true" Required="true" runat="server" MaxLength="20" LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtValue13" Label="壁厚" ShowRedStar="true" Required="true" runat="server" MaxLength="20" LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:NumberBox ID="txtValue15" Label="试验压力" runat="server" NoNegative="true" DecimalPrecision="4" LabelWidth="120px">
|
||||
</f:NumberBox>
|
||||
<f:TextBox ID="txtValue18" Label="介质代号" runat="server" MaxLength="50" LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtValue19" Label="单线图号" runat="server" MaxLength="50" LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
<f:NumberBox ID="txtValue20" Label="设计压力" runat="server" NoNegative="true" DecimalPrecision="4" LabelWidth="120px">
|
||||
</f:NumberBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:NumberBox ID="txtValue21" Label="设计温度" runat="server" NoNegative="true" DecimalPrecision="4" LabelWidth="120px">
|
||||
</f:NumberBox>
|
||||
<f:TextBox ID="txtValue28" Label="所属管段" runat="server" MaxLength="50" LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtValue23" Label="管线等级代号" runat="server" MaxLength="20" LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtValue24" Label="组件一代号" runat="server" MaxLength="20" LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
<f:Form ID="SimpleForm2" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtValue9" Label="焊接区域" ShowRedStar="true" Required="true" runat="server" MaxLength="2" LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtValue10" Label="焊口属性" ShowRedStar="true" Required="true" runat="server" MaxLength="2" LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
<f:NumberBox ID="txtValue11" Label="寸径数" ShowRedStar="true" Required="true" runat="server" NoNegative="true" DecimalPrecision="4" LabelWidth="120px">
|
||||
</f:NumberBox>
|
||||
<f:TextBox ID="txtValue12" Label="规格(mm)" ShowRedStar="true" Required="true" runat="server" MaxLength="50" LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtValue6" Label="材质2代号" runat="server" MaxLength="50" LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtValue14" Label="焊接方法代码" ShowRedStar="true" Required="true" runat="server" MaxLength="20" LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtValue16" Label="焊条代号" runat="server" MaxLength="20" LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtValue17" Label="焊丝代号" runat="server" MaxLength="20" LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtValue22" Label="坡口代号" runat="server" MaxLength="20" ShowRedStar="true" Required="true" LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtValue25" Label="组件二代号" runat="server" MaxLength="20" LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtValue26" Label="炉批号一" runat="server" MaxLength="50" LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtValue27" Label="炉批号二" runat="server" MaxLength="50" LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:NumberBox ID="txtValue29" Label="预热温度" runat="server" NoNegative="true" DecimalPrecision="4" LabelWidth="120px">
|
||||
</f:NumberBox>
|
||||
<f:TextBox ID="txtValue30" Label="是否需热处理" runat="server" MaxLength="1" LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtValue31" Label="焊接位置" runat="server" MaxLength="2" ShowRedStar="true" Required="true" LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
<f:NumberBox ID="txtValue32" Label="外径" runat="server" NoNegative="true" DecimalPrecision="4" LabelWidth="120px">
|
||||
</f:NumberBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow ColumnWidths="25% 75%">
|
||||
<Items>
|
||||
<f:TextBox ID="txtValue33" Label="硬度检测比例" runat="server" MaxLength="20" LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
<f:Label runat="server" ID="labelTemp"></f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
<f:Form ID="SimpleForm3" ShowBorder="false" ShowHeader="false" AutoScroll="true" Hidden="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:NumberBox ID="txtValue34" Label="组件数量" runat="server" MaxLength="20" LabelWidth="120px" NoNegative="true">
|
||||
</f:NumberBox>
|
||||
<f:NumberBox ID="txtValue35" Label="公称直径" runat="server" MaxLength="20" LabelWidth="120px">
|
||||
</f:NumberBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,570 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using System.Linq;
|
||||
using BLL;
|
||||
namespace FineUIPro.Web.HJGL.JoinMarking
|
||||
{
|
||||
|
||||
|
||||
public partial class DataInEdit : PageBase
|
||||
{
|
||||
#region 定义项
|
||||
/// <summary>
|
||||
/// 临时表主键
|
||||
/// </summary>
|
||||
public string TempId
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["TempId"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["TempId"] = value;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 加载页面
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.TempId = Request.Params["TempId"];
|
||||
var dataInTemp = BLL.DataInTempService.GetDataInTempByTempId(this.TempId);
|
||||
if (dataInTemp != null)
|
||||
{
|
||||
this.txtValue1.Text = dataInTemp.Value1;
|
||||
this.txtValue2.Text = dataInTemp.Value2;
|
||||
this.txtValue3.Text = dataInTemp.Value3;
|
||||
this.txtValue4.Text = dataInTemp.Value4;
|
||||
this.txtValue5.Text = dataInTemp.Value5;
|
||||
this.txtValue6.Text = dataInTemp.Value6;
|
||||
this.txtValue7.Text = dataInTemp.Value7;
|
||||
this.txtValue8.Text = dataInTemp.Value8;
|
||||
this.txtValue9.Text = dataInTemp.Value9;
|
||||
this.txtValue10.Text = dataInTemp.Value10;
|
||||
this.txtValue11.Text = dataInTemp.Value11;
|
||||
this.txtValue12.Text = dataInTemp.Value12;
|
||||
this.txtValue13.Text = dataInTemp.Value13;
|
||||
this.txtValue14.Text = dataInTemp.Value14;
|
||||
this.txtValue15.Text = dataInTemp.Value15;
|
||||
this.txtValue16.Text = dataInTemp.Value16;
|
||||
this.txtValue17.Text = dataInTemp.Value17;
|
||||
this.txtValue18.Text = dataInTemp.Value18;
|
||||
this.txtValue19.Text = dataInTemp.Value19;
|
||||
this.txtValue20.Text = dataInTemp.Value20;
|
||||
this.txtValue21.Text = dataInTemp.Value21;
|
||||
this.txtValue22.Text = dataInTemp.Value22;
|
||||
this.txtValue23.Text = dataInTemp.Value23;
|
||||
this.txtValue24.Text = dataInTemp.Value24;
|
||||
this.txtValue25.Text = dataInTemp.Value25;
|
||||
this.txtValue26.Text = dataInTemp.Value26;
|
||||
this.txtValue27.Text = dataInTemp.Value27;
|
||||
this.txtValue28.Text = dataInTemp.Value28;
|
||||
this.txtValue29.Text = dataInTemp.Value29;
|
||||
this.txtValue30.Text = dataInTemp.Value30;
|
||||
this.txtValue31.Text = dataInTemp.Value31;
|
||||
this.txtValue32.Text = dataInTemp.Value32;
|
||||
this.txtValue33.Text = dataInTemp.Value33;
|
||||
this.txtValue34.Text = dataInTemp.Value34;
|
||||
this.txtValue35.Text = dataInTemp.Value35;
|
||||
this.lbErrCout.Text = dataInTemp.ToopValue;
|
||||
if (dataInTemp.Type == "1")
|
||||
{
|
||||
this.SimpleForm2.Hidden = true;
|
||||
this.SimpleForm3.Hidden = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.SimpleForm2.Hidden = false;
|
||||
this.SimpleForm3.Hidden = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 提交按钮
|
||||
/// <summary>
|
||||
/// 提交按钮
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
var dataInTemp = BLL.DataInTempService.GetDataInTempByTempId(this.TempId);
|
||||
if (this.ckAll.Checked)
|
||||
{
|
||||
var allDataInTemp = from x in Funs.DB.HJGL_Sys_DataInTemp where x.ProjectId == this.CurrUser.LoginProjectId && x.UserId == this.CurrUser.UserId select x;
|
||||
if (dataInTemp.Value1 != this.txtValue1.Text.Trim())
|
||||
{
|
||||
var tempValue1 = allDataInTemp.Where(x => x.Value1 == dataInTemp.Value1 || (x.Value1 == null && dataInTemp.Value1 == null));
|
||||
if (tempValue1 != null)
|
||||
{
|
||||
foreach (var item in tempValue1)
|
||||
{
|
||||
item.Value1 = this.txtValue1.Text.Trim();
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (dataInTemp.Value2 != this.txtValue2.Text.Trim())
|
||||
{
|
||||
var tempValue2 = allDataInTemp.Where(x => x.Value2 == dataInTemp.Value2 || (x.Value2 == null && dataInTemp.Value2 == null));
|
||||
if (tempValue2 != null)
|
||||
{
|
||||
foreach (var item in tempValue2)
|
||||
{
|
||||
item.Value2 = this.txtValue2.Text.Trim();
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (dataInTemp.Value3 != this.txtValue3.Text.Trim())
|
||||
{
|
||||
var tempValue3 = allDataInTemp.Where(x => x.Value3 == dataInTemp.Value3 || (x.Value3 == null && dataInTemp.Value3 == null));
|
||||
if (tempValue3 != null)
|
||||
{
|
||||
foreach (var item in tempValue3)
|
||||
{
|
||||
item.Value3 = this.txtValue3.Text.Trim();
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (dataInTemp.Value5 != this.txtValue5.Text.Trim())
|
||||
{
|
||||
var tempValue5 = allDataInTemp.Where(x => x.Value5 == dataInTemp.Value5 || (x.Value5 == null && dataInTemp.Value5 == null));
|
||||
if (tempValue5 != null)
|
||||
{
|
||||
foreach (var item in tempValue5)
|
||||
{
|
||||
item.Value5 = this.txtValue5.Text.Trim();
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (dataInTemp.Value6 != this.txtValue6.Text.Trim())
|
||||
{
|
||||
var tempValue6 = allDataInTemp.Where(x => x.Value6 == dataInTemp.Value6 || (x.Value6 == null && dataInTemp.Value6 == null));
|
||||
if (tempValue6 != null)
|
||||
{
|
||||
foreach (var item in tempValue6)
|
||||
{
|
||||
item.Value6 = this.txtValue6.Text.Trim();
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (dataInTemp.Value7 != this.txtValue7.Text.Trim())
|
||||
{
|
||||
var tempValue7 = allDataInTemp.Where(x => x.Value7 == dataInTemp.Value7 || (x.Value7 == null && dataInTemp.Value7 == null));
|
||||
if (tempValue7 != null)
|
||||
{
|
||||
foreach (var item in tempValue7)
|
||||
{
|
||||
item.Value7 = this.txtValue7.Text.Trim();
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (dataInTemp.Value8 != this.txtValue8.Text.Trim())
|
||||
{
|
||||
var tempValue8 = allDataInTemp.Where(x => x.Value8 == dataInTemp.Value8 || (x.Value8 == null && dataInTemp.Value8 == null));
|
||||
if (tempValue8 != null)
|
||||
{
|
||||
foreach (var item in tempValue8)
|
||||
{
|
||||
item.Value8 = this.txtValue8.Text.Trim();
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (dataInTemp.Value9 != this.txtValue9.Text.Trim())
|
||||
{
|
||||
var tempValue9 = allDataInTemp.Where(x => x.Value9 == dataInTemp.Value9 || (x.Value9 == null && dataInTemp.Value9 == null));
|
||||
if (tempValue9 != null)
|
||||
{
|
||||
foreach (var item in tempValue9)
|
||||
{
|
||||
item.Value9 = this.txtValue9.Text.Trim();
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (dataInTemp.Value10 != this.txtValue10.Text.Trim())
|
||||
{
|
||||
var tempValue10 = allDataInTemp.Where(x => x.Value10 == dataInTemp.Value10 || (x.Value10 == null && dataInTemp.Value10 == null));
|
||||
if (tempValue10 != null)
|
||||
{
|
||||
foreach (var item in tempValue10)
|
||||
{
|
||||
item.Value10 = this.txtValue10.Text.Trim();
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (dataInTemp.Value11 != this.txtValue11.Text.Trim())
|
||||
{
|
||||
var tempValue11 = allDataInTemp.Where(x => x.Value11 == dataInTemp.Value11 || (x.Value11 == null && dataInTemp.Value11 == null));
|
||||
if (tempValue11 != null)
|
||||
{
|
||||
foreach (var item in tempValue11)
|
||||
{
|
||||
item.Value11 = this.txtValue11.Text.Trim();
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (dataInTemp.Value12 != this.txtValue12.Text.Trim())
|
||||
{
|
||||
var tempValue12 = allDataInTemp.Where(x => x.Value12 == dataInTemp.Value12 || (x.Value12 == null && dataInTemp.Value12 == null));
|
||||
if (tempValue12 != null)
|
||||
{
|
||||
foreach (var item in tempValue12)
|
||||
{
|
||||
item.Value12 = this.txtValue12.Text.Trim();
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (dataInTemp.Value13 != this.txtValue13.Text.Trim())
|
||||
{
|
||||
var tempValue13 = allDataInTemp.Where(x => x.Value13 == dataInTemp.Value13 || (x.Value13 == null && dataInTemp.Value13 == null));
|
||||
if (tempValue13 != null)
|
||||
{
|
||||
foreach (var item in tempValue13)
|
||||
{
|
||||
item.Value13 = this.txtValue13.Text.Trim();
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (dataInTemp.Value14 != this.txtValue14.Text.Trim())
|
||||
{
|
||||
var tempValue14 = allDataInTemp.Where(x => x.Value14 == dataInTemp.Value14 || (x.Value14 == null && dataInTemp.Value14 == null));
|
||||
if (tempValue14 != null)
|
||||
{
|
||||
foreach (var item in tempValue14)
|
||||
{
|
||||
item.Value14 = this.txtValue14.Text.Trim();
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (dataInTemp.Value15 != this.txtValue15.Text.Trim())
|
||||
{
|
||||
var tempValue15 = allDataInTemp.Where(x => x.Value15 == dataInTemp.Value15 || (x.Value15 == null && dataInTemp.Value15 == null));
|
||||
if (tempValue15 != null)
|
||||
{
|
||||
foreach (var item in tempValue15)
|
||||
{
|
||||
item.Value15 = this.txtValue15.Text.Trim();
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (dataInTemp.Value16 != this.txtValue16.Text.Trim())
|
||||
{
|
||||
var tempValue16 = allDataInTemp.Where(x => x.Value16 == dataInTemp.Value16 || (x.Value16 == null && dataInTemp.Value16 == null));
|
||||
if (tempValue16 != null)
|
||||
{
|
||||
foreach (var item in tempValue16)
|
||||
{
|
||||
item.Value16 = this.txtValue16.Text.Trim();
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (dataInTemp.Value17 != this.txtValue17.Text.Trim())
|
||||
{
|
||||
var tempValue17 = allDataInTemp.Where(x => x.Value17 == dataInTemp.Value17 || (x.Value17 == null && dataInTemp.Value17 == null));
|
||||
if (tempValue17 != null)
|
||||
{
|
||||
foreach (var item in tempValue17)
|
||||
{
|
||||
item.Value17 = this.txtValue17.Text.Trim();
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (dataInTemp.Value18 != this.txtValue18.Text.Trim())
|
||||
{
|
||||
var tempValue18 = allDataInTemp.Where(x => x.Value18 == dataInTemp.Value18 || (x.Value18 == null && dataInTemp.Value18 == null));
|
||||
if (tempValue18 != null)
|
||||
{
|
||||
foreach (var item in tempValue18)
|
||||
{
|
||||
item.Value18 = this.txtValue18.Text.Trim();
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (dataInTemp.Value19 != this.txtValue19.Text.Trim())
|
||||
{
|
||||
var tempValue19 = allDataInTemp.Where(x => x.Value19 == dataInTemp.Value19 || (x.Value19 == null && dataInTemp.Value19 == null));
|
||||
if (tempValue19 != null)
|
||||
{
|
||||
foreach (var item in tempValue19)
|
||||
{
|
||||
item.Value19 = this.txtValue19.Text.Trim();
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (dataInTemp.Value20 != this.txtValue20.Text.Trim())
|
||||
{
|
||||
var tempValue20 = allDataInTemp.Where(x => x.Value20 == dataInTemp.Value20 || (x.Value20 == null && dataInTemp.Value20 == null));
|
||||
if (tempValue20 != null)
|
||||
{
|
||||
foreach (var item in tempValue20)
|
||||
{
|
||||
item.Value20 = this.txtValue20.Text.Trim();
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (dataInTemp.Value21 != this.txtValue21.Text.Trim())
|
||||
{
|
||||
var tempValue21 = allDataInTemp.Where(x => x.Value21 == dataInTemp.Value21 || (x.Value21 == null && dataInTemp.Value21 == null));
|
||||
if (tempValue21 != null)
|
||||
{
|
||||
foreach (var item in tempValue21)
|
||||
{
|
||||
item.Value21 = this.txtValue21.Text.Trim();
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (dataInTemp.Value22 != this.txtValue22.Text.Trim())
|
||||
{
|
||||
var tempValue22 = allDataInTemp.Where(x => x.Value22 == dataInTemp.Value22 || (x.Value22 == null && dataInTemp.Value22 == null));
|
||||
if (tempValue22 != null)
|
||||
{
|
||||
foreach (var item in tempValue22)
|
||||
{
|
||||
item.Value22 = this.txtValue22.Text.Trim();
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (dataInTemp.Value23 != this.txtValue23.Text.Trim())
|
||||
{
|
||||
var tempValue23 = allDataInTemp.Where(x => x.Value23 == dataInTemp.Value23 || (x.Value23 == null && dataInTemp.Value23 == null));
|
||||
if (tempValue23 != null)
|
||||
{
|
||||
foreach (var item in tempValue23)
|
||||
{
|
||||
item.Value23 = this.txtValue23.Text.Trim();
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (dataInTemp.Value24 != this.txtValue24.Text.Trim())
|
||||
{
|
||||
var tempValue24 = allDataInTemp.Where(x => x.Value24 == dataInTemp.Value24 || (x.Value24 == null && dataInTemp.Value24 == null));
|
||||
if (tempValue24 != null)
|
||||
{
|
||||
foreach (var item in tempValue24)
|
||||
{
|
||||
item.Value24 = this.txtValue24.Text.Trim();
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (dataInTemp.Value25 != this.txtValue25.Text.Trim())
|
||||
{
|
||||
var tempValue25 = allDataInTemp.Where(x => x.Value25 == dataInTemp.Value25 || (x.Value25 == null && dataInTemp.Value25 == null));
|
||||
if (tempValue25 != null)
|
||||
{
|
||||
foreach (var item in tempValue25)
|
||||
{
|
||||
item.Value25 = this.txtValue25.Text.Trim();
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (dataInTemp.Value26 != this.txtValue26.Text.Trim())
|
||||
{
|
||||
var tempValue26 = allDataInTemp.Where(x => x.Value26 == dataInTemp.Value26 || (x.Value26 == null && dataInTemp.Value26 == null));
|
||||
if (tempValue26 != null)
|
||||
{
|
||||
foreach (var item in tempValue26)
|
||||
{
|
||||
item.Value26 = this.txtValue26.Text.Trim();
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (dataInTemp.Value27 != this.txtValue27.Text.Trim())
|
||||
{
|
||||
var tempValue27 = allDataInTemp.Where(x => x.Value27 == dataInTemp.Value27 || (x.Value27 == null && dataInTemp.Value27 == null));
|
||||
if (tempValue27 != null)
|
||||
{
|
||||
foreach (var item in tempValue27)
|
||||
{
|
||||
item.Value27 = this.txtValue27.Text.Trim();
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (dataInTemp.Value28 != this.txtValue28.Text.Trim())
|
||||
{
|
||||
var tempValue28 = allDataInTemp.Where(x => x.Value28 == dataInTemp.Value28 || (x.Value28 == null && dataInTemp.Value28 == null));
|
||||
if (tempValue28 != null)
|
||||
{
|
||||
foreach (var item in tempValue28)
|
||||
{
|
||||
item.Value28 = this.txtValue28.Text.Trim();
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (dataInTemp.Value29 != this.txtValue29.Text.Trim())
|
||||
{
|
||||
var tempValue29 = allDataInTemp.Where(x => x.Value29 == dataInTemp.Value29 || (x.Value29 == null && dataInTemp.Value29 == null));
|
||||
if (tempValue29 != null)
|
||||
{
|
||||
foreach (var item in tempValue29)
|
||||
{
|
||||
item.Value29 = this.txtValue29.Text.Trim();
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (dataInTemp.Value30 != this.txtValue30.Text.Trim())
|
||||
{
|
||||
var tempValue30 = allDataInTemp.Where(x => x.Value30 == dataInTemp.Value30 || (x.Value30 == null && dataInTemp.Value30 == null));
|
||||
if (tempValue30 != null)
|
||||
{
|
||||
foreach (var item in tempValue30)
|
||||
{
|
||||
item.Value30 = this.txtValue30.Text.Trim();
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (dataInTemp.Value31 != this.txtValue31.Text.Trim())
|
||||
{
|
||||
var tempValue31 = allDataInTemp.Where(x => x.Value31 == dataInTemp.Value31 || (x.Value31 == null && dataInTemp.Value31 == null));
|
||||
if (tempValue31 != null)
|
||||
{
|
||||
foreach (var item in tempValue31)
|
||||
{
|
||||
item.Value31 = this.txtValue31.Text.Trim();
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (dataInTemp.Value32 != this.txtValue32.Text.Trim())
|
||||
{
|
||||
var tempValue32 = allDataInTemp.Where(x => x.Value32 == dataInTemp.Value32 || (x.Value32 == null && dataInTemp.Value32 == null));
|
||||
if (tempValue32 != null)
|
||||
{
|
||||
foreach (var item in tempValue32)
|
||||
{
|
||||
item.Value32 = this.txtValue32.Text.Trim();
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (dataInTemp.Value33 != this.txtValue33.Text.Trim())
|
||||
{
|
||||
var tempValue33 = allDataInTemp.Where(x => x.Value33 == dataInTemp.Value33 || (x.Value33 == null && dataInTemp.Value33 == null));
|
||||
if (tempValue33 != null)
|
||||
{
|
||||
foreach (var item in tempValue33)
|
||||
{
|
||||
item.Value33 = this.txtValue33.Text.Trim();
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (dataInTemp.Value34 != this.txtValue34.Text.Trim())
|
||||
{
|
||||
var tempValue34 = allDataInTemp.Where(x => x.Value34 == dataInTemp.Value34 || (x.Value34 == null && dataInTemp.Value34 == null));
|
||||
if (tempValue34 != null)
|
||||
{
|
||||
foreach (var item in tempValue34)
|
||||
{
|
||||
item.Value34 = this.txtValue34.Text.Trim();
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (dataInTemp.Value35 != this.txtValue35.Text.Trim())
|
||||
{
|
||||
var tempValue35 = allDataInTemp.Where(x => x.Value35 == dataInTemp.Value35 || (x.Value35 == null && dataInTemp.Value35 == null));
|
||||
if (tempValue35 != null)
|
||||
{
|
||||
foreach (var item in tempValue35)
|
||||
{
|
||||
item.Value35 = this.txtValue35.Text.Trim();
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Model.HJGL_Sys_DataInTemp newDataInTemp = new Model.HJGL_Sys_DataInTemp();
|
||||
newDataInTemp.ProjectId = this.CurrUser.LoginProjectId;
|
||||
newDataInTemp.UserId = this.CurrUser.UserId;
|
||||
newDataInTemp.Time = System.DateTime.Now;
|
||||
newDataInTemp.Value1 = this.txtValue1.Text.Trim();
|
||||
newDataInTemp.Value2 = this.txtValue2.Text.Trim();
|
||||
newDataInTemp.Value3 = this.txtValue3.Text.Trim();
|
||||
newDataInTemp.Value4 = this.txtValue4.Text.Trim();
|
||||
newDataInTemp.Value5 = this.txtValue5.Text.Trim();
|
||||
newDataInTemp.Value6 = this.txtValue6.Text.Trim();
|
||||
newDataInTemp.Value7 = this.txtValue7.Text.Trim();
|
||||
newDataInTemp.Value8 = this.txtValue8.Text.Trim();
|
||||
newDataInTemp.Value9 = this.txtValue9.Text.Trim();
|
||||
newDataInTemp.Value10 = this.txtValue10.Text.Trim();
|
||||
newDataInTemp.Value11 = this.txtValue11.Text.Trim();
|
||||
newDataInTemp.Value12 = this.txtValue12.Text.Trim();
|
||||
newDataInTemp.Value13 = this.txtValue13.Text.Trim();
|
||||
newDataInTemp.Value14 = this.txtValue14.Text.Trim();
|
||||
newDataInTemp.Value15 = this.txtValue15.Text.Trim();
|
||||
newDataInTemp.Value16 = this.txtValue16.Text.Trim();
|
||||
newDataInTemp.Value17 = this.txtValue17.Text.Trim();
|
||||
newDataInTemp.Value18 = this.txtValue18.Text.Trim();
|
||||
newDataInTemp.Value19 = this.txtValue19.Text.Trim();
|
||||
newDataInTemp.Value20 = this.txtValue20.Text.Trim();
|
||||
newDataInTemp.Value21 = this.txtValue21.Text.Trim();
|
||||
newDataInTemp.Value22 = this.txtValue22.Text.Trim();
|
||||
newDataInTemp.Value23 = this.txtValue23.Text.Trim();
|
||||
newDataInTemp.Value24 = this.txtValue24.Text.Trim();
|
||||
newDataInTemp.Value25 = this.txtValue25.Text.Trim();
|
||||
newDataInTemp.Value26 = this.txtValue26.Text.Trim();
|
||||
newDataInTemp.Value27 = this.txtValue27.Text.Trim();
|
||||
newDataInTemp.Value28 = this.txtValue28.Text.Trim();
|
||||
newDataInTemp.Value29 = this.txtValue29.Text.Trim();
|
||||
newDataInTemp.Value30 = this.txtValue30.Text.Trim();
|
||||
newDataInTemp.Value31 = this.txtValue31.Text.Trim();
|
||||
newDataInTemp.Value32 = this.txtValue32.Text.Trim();
|
||||
newDataInTemp.Value33 = this.txtValue33.Text.Trim();
|
||||
newDataInTemp.Value34 = this.txtValue34.Text.Trim();
|
||||
newDataInTemp.Value35 = this.txtValue35.Text.Trim();
|
||||
|
||||
if (!string.IsNullOrEmpty(this.TempId))
|
||||
{
|
||||
newDataInTemp.TempId = this.TempId;
|
||||
newDataInTemp.ToopValue = null;
|
||||
BLL.DataInTempService.UpdateDataInTemp(newDataInTemp);
|
||||
}
|
||||
}
|
||||
Alert.ShowInTop("信息修改完成!", MessageBoxIcon.Success);
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,431 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.HJGL.JoinMarking
|
||||
{
|
||||
|
||||
|
||||
public partial class DataInEdit
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form SimpleForm1;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
/// <summary>
|
||||
/// ckAll 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.CheckBox ckAll;
|
||||
|
||||
/// <summary>
|
||||
/// btnSave 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSave;
|
||||
|
||||
/// <summary>
|
||||
/// lbErrCout 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea lbErrCout;
|
||||
|
||||
/// <summary>
|
||||
/// txtValue1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtValue1;
|
||||
|
||||
/// <summary>
|
||||
/// txtValue2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtValue2;
|
||||
|
||||
/// <summary>
|
||||
/// txtValue3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtValue3;
|
||||
|
||||
/// <summary>
|
||||
/// txtValue4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtValue4;
|
||||
|
||||
/// <summary>
|
||||
/// txtValue5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtValue5;
|
||||
|
||||
/// <summary>
|
||||
/// txtValue7 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtValue7;
|
||||
|
||||
/// <summary>
|
||||
/// txtValue8 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtValue8;
|
||||
|
||||
/// <summary>
|
||||
/// txtValue13 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtValue13;
|
||||
|
||||
/// <summary>
|
||||
/// txtValue15 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtValue15;
|
||||
|
||||
/// <summary>
|
||||
/// txtValue18 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtValue18;
|
||||
|
||||
/// <summary>
|
||||
/// txtValue19 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtValue19;
|
||||
|
||||
/// <summary>
|
||||
/// txtValue20 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtValue20;
|
||||
|
||||
/// <summary>
|
||||
/// txtValue21 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtValue21;
|
||||
|
||||
/// <summary>
|
||||
/// txtValue28 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtValue28;
|
||||
|
||||
/// <summary>
|
||||
/// txtValue23 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtValue23;
|
||||
|
||||
/// <summary>
|
||||
/// txtValue24 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtValue24;
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form SimpleForm2;
|
||||
|
||||
/// <summary>
|
||||
/// txtValue9 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtValue9;
|
||||
|
||||
/// <summary>
|
||||
/// txtValue10 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtValue10;
|
||||
|
||||
/// <summary>
|
||||
/// txtValue11 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtValue11;
|
||||
|
||||
/// <summary>
|
||||
/// txtValue12 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtValue12;
|
||||
|
||||
/// <summary>
|
||||
/// txtValue6 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtValue6;
|
||||
|
||||
/// <summary>
|
||||
/// txtValue14 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtValue14;
|
||||
|
||||
/// <summary>
|
||||
/// txtValue16 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtValue16;
|
||||
|
||||
/// <summary>
|
||||
/// txtValue17 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtValue17;
|
||||
|
||||
/// <summary>
|
||||
/// txtValue22 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtValue22;
|
||||
|
||||
/// <summary>
|
||||
/// txtValue25 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtValue25;
|
||||
|
||||
/// <summary>
|
||||
/// txtValue26 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtValue26;
|
||||
|
||||
/// <summary>
|
||||
/// txtValue27 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtValue27;
|
||||
|
||||
/// <summary>
|
||||
/// txtValue29 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtValue29;
|
||||
|
||||
/// <summary>
|
||||
/// txtValue30 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtValue30;
|
||||
|
||||
/// <summary>
|
||||
/// txtValue31 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtValue31;
|
||||
|
||||
/// <summary>
|
||||
/// txtValue32 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtValue32;
|
||||
|
||||
/// <summary>
|
||||
/// txtValue33 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtValue33;
|
||||
|
||||
/// <summary>
|
||||
/// labelTemp 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label labelTemp;
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form SimpleForm3;
|
||||
|
||||
/// <summary>
|
||||
/// txtValue34 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtValue34;
|
||||
|
||||
/// <summary>
|
||||
/// txtValue35 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtValue35;
|
||||
}
|
||||
}
|
||||
|
|
@ -5,7 +5,7 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title><asp:Literal runat="server" Text="<%$ Resources:Lan,PipelineManage_PageTitle%>"/></title>
|
||||
<title><asp:Literal runat="server" Text="焊口标注"/></title>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
|
|
@ -13,11 +13,11 @@
|
|||
<f:Panel ID="Panel1" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
|
||||
<Items>
|
||||
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true"
|
||||
EnableCollapse="true" Width="300px" Title="<%$ Resources:Lan,PipelineManage_IsoPic_Label%>" ShowBorder="true" Layout="VBox"
|
||||
EnableCollapse="true" Width="300px" Title="焊口标注" ShowBorder="true" Layout="VBox"
|
||||
ShowHeader="true" AutoScroll="true" BodyPadding="5px" IconFont="ArrowCircleLeft">
|
||||
|
||||
<Items>
|
||||
<f:Tree ID="tvControlItem" ShowHeader="false" Height="500px" Title="<%$ Resources:Lan,PmiMaterialTemplate_tvControlItem_Title%>" OnNodeCommand="tvControlItem_NodeCommand"
|
||||
<f:Tree ID="tvControlItem" ShowHeader="false" Height="500px" Title="轴测图" OnNodeCommand="tvControlItem_NodeCommand"
|
||||
runat="server" ShowBorder="false" EnableCollapse="true" EnableSingleClickExpand="true" AutoLeafIdentification="true"
|
||||
EnableSingleExpand="true" EnableTextSelection="true">
|
||||
</f:Tree>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
using BLL;
|
||||
using FineUIPro.Web.SysManage;
|
||||
using Microsoft.Office.Interop.Word;
|
||||
|
||||
using Model;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
|
|
@ -100,21 +99,7 @@ namespace FineUIPro.Web.HJGL.JoinMarking
|
|||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#region 格式化字符串
|
||||
/// <summary>
|
||||
|
|
@ -126,7 +111,7 @@ namespace FineUIPro.Web.HJGL.JoinMarking
|
|||
{
|
||||
if (isoId != null)
|
||||
{
|
||||
var sizeSum = (from x in Funs.DB.PW_JointInfo where x.ISO_ID == isoId.ToString() select x.JOT_Size).Sum();
|
||||
var sizeSum = (from x in Funs.DB.HJGL_PW_JointInfo where x.ISO_ID == isoId.ToString() select x.JOT_Size).Sum();
|
||||
if (sizeSum != null)
|
||||
{
|
||||
return sizeSum.ToString();
|
||||
|
|
@ -144,11 +129,10 @@ namespace FineUIPro.Web.HJGL.JoinMarking
|
|||
{
|
||||
if (isoId != null)
|
||||
{
|
||||
var jotCount = (from x in Funs.DB.PW_JointInfo where x.ISO_ID == isoId.ToString() select x).Count();
|
||||
if (jotCount != null)
|
||||
{
|
||||
return jotCount.ToString();
|
||||
}
|
||||
var jotCount = (from x in Funs.DB.HJGL_PW_JointInfo where x.ISO_ID == isoId.ToString() select x).Count();
|
||||
|
||||
return jotCount.ToString();
|
||||
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@ using System.IO;
|
|||
using NPOI.XSSF.UserModel;
|
||||
using NPOI.SS.UserModel;
|
||||
using System.Runtime.Serialization;
|
||||
using FineUIPro.Web.ProjectData;
|
||||
using System.Configuration;
|
||||
|
||||
namespace FineUIPro.Web.HJGL.JoinMarking
|
||||
|
|
@ -43,6 +42,7 @@ namespace FineUIPro.Web.HJGL.JoinMarking
|
|||
|
||||
}
|
||||
#region 加载树装置-单位-工作区
|
||||
|
||||
/// <summary>
|
||||
/// 加载树
|
||||
/// </summary>
|
||||
|
|
@ -50,170 +50,36 @@ namespace FineUIPro.Web.HJGL.JoinMarking
|
|||
{
|
||||
this.tvControlItem.Nodes.Clear();
|
||||
TreeNode rootNode = new TreeNode();
|
||||
rootNode.Text = Resources.Lan.T_REST_ASPXCS_303;
|
||||
rootNode.Text = "管线列表";
|
||||
rootNode.NodeID = "0";
|
||||
rootNode.Expanded = true;
|
||||
this.tvControlItem.Nodes.Add(rootNode);
|
||||
////装置
|
||||
var pInstallation = (from x in Funs.DB.Project_Installation where x.ProjectId == this.CurrUser.LoginProjectId select x).ToList();
|
||||
////区域
|
||||
var pWorkArea = (from x in Funs.DB.ProjectData_WorkArea where x.ProjectId == this.CurrUser.LoginProjectId select x).ToList();
|
||||
////单位
|
||||
var pUnits = (from x in Funs.DB.Project_ProjectUnit where x.SysPermissions.Contains(Const.SysHJGL)&& x.ProjectId == this.CurrUser.LoginProjectId select x).ToList();
|
||||
|
||||
var workAreaIdList = (from x in BLL.Funs.DB.PW_IsoInfo
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId && x.ISO_IsoNo.Contains(this.txtIsono.Text.Trim())
|
||||
orderby x.ISO_IsoNo
|
||||
select x.WorkAreaId).Distinct().ToList();
|
||||
pWorkArea = pWorkArea.Where(x => workAreaIdList.Contains(x.WorkAreaId)).OrderBy(x => x.WorkAreaCode).ToList();
|
||||
pInstallation = (from x in pInstallation
|
||||
join y in pWorkArea on x.InstallationId equals y.InstallationId
|
||||
select x).Distinct().ToList();
|
||||
pUnits = (from x in pUnits
|
||||
join y in pWorkArea on x.UnitId equals y.UnitId
|
||||
select x).Distinct().ToList();
|
||||
this.BindNodes(rootNode, pInstallation, pWorkArea, pUnits);
|
||||
var iso = from x in Funs.DB.HJGL_PW_IsoInfo where x.ProjectId == this.CurrUser.LoginProjectId select x;
|
||||
if (!string.IsNullOrEmpty(this.txtIsono.Text))
|
||||
{
|
||||
iso = iso.Where(e => e.ISO_IsoNo.Contains(this.txtIsono.Text.Trim()));
|
||||
}
|
||||
iso = iso.OrderBy(x => x.ISO_IsoNo);
|
||||
if (iso.Count() > 0)
|
||||
{
|
||||
foreach (var q in iso)
|
||||
{
|
||||
TreeNode newNode = new TreeNode();
|
||||
newNode.NodeID = q.ISO_ID;
|
||||
newNode.Text = q.ISO_IsoNo;
|
||||
newNode.ToolTip = "管线";
|
||||
newNode.EnableClickEvent = true;
|
||||
rootNode.Nodes.Add(newNode);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 绑定树节点
|
||||
#endregion
|
||||
|
||||
#region 绑定树节点
|
||||
/// <summary>
|
||||
/// 绑定树节点
|
||||
/// </summary>
|
||||
/// <param name="node"></param>
|
||||
private void BindNodes(TreeNode node, List<Model.Project_Installation> pInstallation, List<Model.ProjectData_WorkArea> pWorkArea, List<Model.Project_ProjectUnit> pUnits)
|
||||
{
|
||||
if (string.IsNullOrEmpty(node.ToolTip))
|
||||
{
|
||||
List<Model.Project_Installation> installations = pInstallation;
|
||||
var pUnit = pUnits.FirstOrDefault(x => x.UnitId == this.CurrUser.UnitId);
|
||||
if (pUnit != null && pUnit.UnitType != Const.ProjectUnitType_1 && pUnit.UnitType != Const.ProjectUnitType_5)
|
||||
{
|
||||
installations = (from x in pInstallation
|
||||
join y in pWorkArea on x.InstallationId equals y.InstallationId
|
||||
where y.UnitId == this.CurrUser.UnitId
|
||||
orderby x.InstallationId
|
||||
select x).Distinct().ToList();
|
||||
}
|
||||
|
||||
foreach (var q in installations)
|
||||
{
|
||||
TreeNode newNode = new TreeNode();
|
||||
newNode.NodeID = q.InstallationId;
|
||||
newNode.Text = q.InstallationName;
|
||||
newNode.ToolTip = Resources.Lan.TCC_RE_CQMS_642;
|
||||
newNode.Expanded = true;
|
||||
node.Nodes.Add(newNode);
|
||||
this.BindNodes(newNode, pInstallation, pWorkArea, pUnits);
|
||||
}
|
||||
}
|
||||
else if (node.ToolTip == Resources.Lan.TCC_RE_CQMS_642)
|
||||
{
|
||||
List<Model.Project_ProjectUnit> units = null;
|
||||
var pUnitDepth = pUnits.FirstOrDefault(x => x.UnitId == this.CurrUser.UnitId);
|
||||
if (pUnitDepth == null || pUnitDepth.UnitType == Const.ProjectUnitType_1 || pUnitDepth.UnitType == Const.ProjectUnitType_5)
|
||||
{
|
||||
var uids = Funs.DB.Project_ProjectUnit.Where(x => x.ProjectId == CurrUser.LoginProjectId && x.SysPermissions.Contains(Const.SysHJGL)).Select(x => x.UnitId).ToList();
|
||||
units = (from x in pUnits
|
||||
join y in pWorkArea on x.UnitId equals y.UnitId
|
||||
where y.InstallationId == node.NodeID && x.UnitType == Const.ProjectUnitType_2 && uids.Contains(x.UnitId)
|
||||
select x).ToList();
|
||||
}
|
||||
else
|
||||
{
|
||||
units = (from x in pUnits
|
||||
join y in pWorkArea on x.UnitId equals y.UnitId
|
||||
where y.InstallationId == node.NodeID && x.UnitType == Const.ProjectUnitType_2 && x.UnitId == this.CurrUser.UnitId
|
||||
select x).ToList();
|
||||
}
|
||||
|
||||
units = units.OrderBy(x => x.InTime).Distinct().ToList();
|
||||
foreach (var q in units)
|
||||
{
|
||||
var unit = BLL.UnitService.GetUnitByUnitId(q.UnitId);
|
||||
if (unit != null)
|
||||
{
|
||||
TreeNode newNode = new TreeNode();
|
||||
newNode.Text = unit.UnitName;
|
||||
newNode.NodeID = q.UnitId + "|" + node.NodeID;
|
||||
newNode.ToolTip = Resources.Lan.TCC_RE_CQMS_304;
|
||||
node.Nodes.Add(newNode);
|
||||
this.BindNodes(newNode, pInstallation, pWorkArea, pUnits);
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (node.ToolTip == Resources.Lan.TCC_RE_CQMS_304)
|
||||
{
|
||||
var workAreas = (from x in pWorkArea
|
||||
where x.InstallationId == node.ParentNode.NodeID && x.UnitId == node.NodeID.Split('|')[0]
|
||||
select x);
|
||||
workAreas = workAreas.OrderByDescending(x => x.WorkAreaCode);
|
||||
|
||||
string strSql = @"select WorkAreaId,Is_Standard,COUNT(*) COUNT from PW_IsoInfo
|
||||
where ProjectId ='"+ this.CurrUser.LoginProjectId + @"' AND UnitId='"+ node.NodeID.Split('|')[0] + @"'
|
||||
group by WorkAreaId,Is_Standard";
|
||||
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, null);
|
||||
Dictionary<string, string> dic = new Dictionary<string, string>();
|
||||
if (tb != null)
|
||||
{
|
||||
foreach(DataRow item in tb.Rows)
|
||||
{
|
||||
dic.Add(item["WorkAreaId"].ToString()+ item["Is_Standard"].ToString(), item["COUNT"].ToString());
|
||||
}
|
||||
}
|
||||
foreach (var q in workAreas)
|
||||
{
|
||||
//int a = (from x in BLL.Funs.DB.PW_IsoInfo where x.ProjectId == this.CurrUser.LoginProjectId && x.UnitId == node.NodeID.Split('|')[0] && x.WorkAreaId == q.WorkAreaId && x.Is_Standard == true select x).Count();
|
||||
TreeNode newNode1 = new TreeNode();
|
||||
if (dic.ContainsKey(q.WorkAreaId + "True"))
|
||||
{
|
||||
newNode1.Text = q.WorkAreaCode + "【" + dic[q.WorkAreaId + "True"] + Resources.Lan.ASPXSC_2431;
|
||||
}
|
||||
else
|
||||
{
|
||||
newNode1.Text = q.WorkAreaCode + Resources.Lan.T_REST_ASPXCS_395;
|
||||
|
||||
}
|
||||
newNode1.NodeID = q.WorkAreaId + "_NoStandard";
|
||||
newNode1.EnableExpandEvent = true;
|
||||
newNode1.ToolTip = Resources.Lan.ASPXSC_2432;
|
||||
node.Nodes.Add(newNode1);
|
||||
// int b = (from x in BLL.Funs.DB.PW_IsoInfo where x.ProjectId == this.CurrUser.LoginProjectId && x.UnitId == node.NodeID.Split('|')[0] && x.WorkAreaId == q.WorkAreaId && x.Is_Standard != true select x).Count();
|
||||
TreeNode newNode2 = new TreeNode();
|
||||
if (dic.ContainsKey(q.WorkAreaId + "False"))
|
||||
{
|
||||
newNode2.Text = q.WorkAreaCode + "【" + dic[q.WorkAreaId + "False"] + Resources.Lan.ASPXSC_2433;
|
||||
}
|
||||
else
|
||||
{
|
||||
newNode2.Text = q.WorkAreaCode + Resources.Lan.T_REST_ASPXCS_396;
|
||||
|
||||
}
|
||||
newNode2.NodeID = q.WorkAreaId + "_Standard";
|
||||
newNode2.EnableExpandEvent = true;
|
||||
newNode2.ToolTip = Resources.Lan.ASPXSC_2434;
|
||||
node.Nodes.Add(newNode2);
|
||||
this.BindNodes(newNode1, pInstallation, pWorkArea, pUnits);
|
||||
this.BindNodes(newNode2, pInstallation, pWorkArea, pUnits);
|
||||
}
|
||||
}
|
||||
else if (node.ToolTip == Resources.Lan.ASPXSC_2432)
|
||||
{
|
||||
TreeNode newNode = new TreeNode();
|
||||
newNode.Text = Resources.Lan.ASPXSC_2435;
|
||||
newNode.NodeID = Resources.Lan.ASPXSC_2435;
|
||||
node.Nodes.Add(newNode);
|
||||
}
|
||||
else if (node.ToolTip == Resources.Lan.ASPXSC_2434)
|
||||
{
|
||||
TreeNode newNode = new TreeNode();
|
||||
newNode.Text = Resources.Lan.ASPXSC_2436;
|
||||
newNode.NodeID = Resources.Lan.ASPXSC_2436;
|
||||
node.Nodes.Add(newNode);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 树展开事件
|
||||
|
|
@ -224,116 +90,9 @@ namespace FineUIPro.Web.HJGL.JoinMarking
|
|||
/// <param name="e"></param>
|
||||
protected void tvControlItem_TreeNodeExpanded(object sender, TreeNodeEventArgs e)
|
||||
{
|
||||
if (e.Node.ToolTip == Resources.Lan.ASPXSC_2432)
|
||||
{
|
||||
e.Node.Nodes.Clear();
|
||||
List<Model.PW_IsoInfo> isoInfo = new List<Model.PW_IsoInfo>();
|
||||
isoInfo = (from x in BLL.Funs.DB.PW_IsoInfo
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId && x.WorkAreaId == e.Node.NodeID.Split('_')[0] && x.Is_Standard == true
|
||||
&& x.ISO_IsoNo.Contains(this.txtIsono.Text.Trim())
|
||||
orderby x.ISO_IsoNo
|
||||
select x).ToList();
|
||||
string strSql = @"select ISO_ID,COUNT(*) COUNT from PW_JointInfo
|
||||
where ProjectId ='" + this.CurrUser.LoginProjectId + @"' AND ISO_ID in('" + string.Join("','", isoInfo.Select(x => x.ISO_ID).ToList()) + @"')
|
||||
group by ISO_ID";
|
||||
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, null);
|
||||
Dictionary<string, string> dic = new Dictionary<string, string>();
|
||||
if (tb != null)
|
||||
{
|
||||
foreach (DataRow item in tb.Rows)
|
||||
{
|
||||
dic.Add(item["ISO_ID"].ToString(), item["COUNT"].ToString());
|
||||
}
|
||||
}
|
||||
foreach (var item in isoInfo)
|
||||
{
|
||||
// var jotCount = (from x in Funs.DB.PW_JointInfo where x.ISO_ID == item.ISO_ID select x).Count();
|
||||
TreeNode newNode = new TreeNode();
|
||||
if (!String.IsNullOrEmpty(item.ISO_Sheet))
|
||||
{
|
||||
newNode.Text = item.ISO_IsoNo + "(" + item.ISO_Sheet + ")";
|
||||
}
|
||||
else
|
||||
{
|
||||
newNode.Text = item.ISO_IsoNo;
|
||||
}
|
||||
if (dic.ContainsKey(item.ISO_IsoNo))
|
||||
{
|
||||
newNode.Text += "【" + dic[item.ISO_IsoNo] + Resources.Lan.ASPXSC_2437;
|
||||
}
|
||||
else
|
||||
{
|
||||
newNode.Text += Resources.Lan.T_REST_ASPXCS_397;
|
||||
|
||||
}
|
||||
newNode.ToolTip = Resources.Lan.T_REST_ASPXCS_398;
|
||||
newNode.NodeID = item.ISO_ID;
|
||||
newNode.EnableExpandEvent = true;
|
||||
//newNode.EnableClickEvent = true;
|
||||
e.Node.Nodes.Add(newNode);
|
||||
TreeNode newNodeTemp = new TreeNode();
|
||||
newNodeTemp.NodeID = Guid.NewGuid().ToString();
|
||||
newNode.Nodes.Add(newNodeTemp);
|
||||
}
|
||||
}
|
||||
else if (e.Node.ToolTip == Resources.Lan.ASPXSC_2434)
|
||||
{
|
||||
e.Node.Nodes.Clear();
|
||||
List<Model.PW_IsoInfo> isoInfo = new List<Model.PW_IsoInfo>();
|
||||
isoInfo = (from x in BLL.Funs.DB.PW_IsoInfo
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId && x.WorkAreaId == e.Node.NodeID.Split('_')[0] && x.Is_Standard == false
|
||||
&& x.ISO_IsoNo.Contains(this.txtIsono.Text.Trim())
|
||||
orderby x.ISO_IsoNo
|
||||
select x).ToList();
|
||||
string strSql = @"select ISO_ID,COUNT(*) COUNT from PW_JointInfo
|
||||
where ProjectId ='" + this.CurrUser.LoginProjectId + @"' AND ISO_ID in('" + string.Join("','", isoInfo.Select(x => x.ISO_ID).ToList()) + @"')
|
||||
group by ISO_ID";
|
||||
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, null);
|
||||
Dictionary<string, string> dic = new Dictionary<string, string>();
|
||||
if (tb != null)
|
||||
{
|
||||
foreach (DataRow item in tb.Rows)
|
||||
{
|
||||
dic.Add(item["ISO_ID"].ToString(), item["COUNT"].ToString());
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var item in isoInfo)
|
||||
{
|
||||
var jotCount = (from x in Funs.DB.PW_JointInfo where x.ISO_ID == item.ISO_ID select x).Count();
|
||||
TreeNode newNode = new TreeNode();
|
||||
if (!String.IsNullOrEmpty(item.ISO_Sheet))
|
||||
{
|
||||
newNode.Text = item.ISO_IsoNo + "(" + item.ISO_Sheet + ")";
|
||||
}
|
||||
else
|
||||
{
|
||||
newNode.Text = item.ISO_IsoNo;
|
||||
}
|
||||
if (dic.ContainsKey(item.ISO_ID))
|
||||
{
|
||||
newNode.Text += "【" + dic[item.ISO_ID] + Resources.Lan.ASPXSC_2437;
|
||||
}
|
||||
else
|
||||
{
|
||||
newNode.Text += Resources.Lan.T_REST_ASPXCS_397;
|
||||
|
||||
}
|
||||
|
||||
newNode.ToolTip = Resources.Lan.T_REST_ASPXCS_398;
|
||||
newNode.NodeID = item.ISO_ID;
|
||||
newNode.EnableExpandEvent = true;
|
||||
|
||||
//newNode.EnableClickEvent = true;
|
||||
e.Node.Nodes.Add(newNode);
|
||||
TreeNode newNodeTemp = new TreeNode();
|
||||
newNodeTemp.NodeID = Guid.NewGuid().ToString();
|
||||
newNode.Nodes.Add(newNodeTemp);
|
||||
}
|
||||
}
|
||||
else if (e.Node.ToolTip == Resources.Lan.T_REST_ASPXCS_398 )
|
||||
e.Node.Nodes.Clear();
|
||||
if (e.Node.ToolTip == "管线")
|
||||
{
|
||||
e.Node.Nodes.Clear();
|
||||
var attach = AttachFileService.GetAttachFile(e.Node.NodeID, BLL.Const.HJGL_PipelineManageMenuId);
|
||||
|
|
@ -358,7 +117,7 @@ namespace FineUIPro.Web.HJGL.JoinMarking
|
|||
}
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
|
||||
#region 点击TreeView
|
||||
/// <summary>
|
||||
|
|
|
|||
|
|
@ -48,152 +48,123 @@
|
|||
<f:ContentPanel ID="contentPanel" runat="server">
|
||||
<div id="app"></div>
|
||||
</f:ContentPanel>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="<%$ Resources:Lan,TCC_RE_CQMS_367%>" EnableCollapse="true" Hidden="true"
|
||||
runat="server" BoxFlex="1" DataKeyNames="TempId" AllowCellEditing="true" PageSize="15" OnPageIndexChange="Grid1_PageIndexChange"
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="焊口标注" EnableCollapse="true" Hidden="true"
|
||||
runat="server" BoxFlex="1" DataKeyNames="TempId" PageSize="15" OnPageIndexChange="Grid1_PageIndexChange"
|
||||
EnableColumnLines="true" ClicksToEdit="2" DataIDField="TempId" AllowSorting="true"
|
||||
SortField="RowNo" SortDirection="ASC" OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true"
|
||||
EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick" EnableTextSelection="True">
|
||||
<Columns>
|
||||
<f:RowNumberField EnablePagingNumber="true" HeaderText="<%$ Resources:Lan,TCC_RE_CQMS_015%>" Width="60px" HeaderTextAlign="Center" TextAlign="Center" />
|
||||
<f:RenderField Width="70px" HeaderText="<%$ Resources:Lan,UserIn_Grid1_RCount_HeaderText%>" ColumnID="RowNo" DataField="RowNo" SortField="RowNo"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" HeaderText="<%$ Resources:Lan,T_REST_ASPXCS_877%>" ColumnID="Value1" DataField="Value1" SortField="Value1"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" HeaderText="<%$ Resources:Lan,DataInTable_RenderField_Value2_HeaderText%>" ColumnID="Value2" DataField="Value2" SortField="Value2"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="220px" HeaderText="<%$ Resources:Lan,ASPXSC_2496%>" ColumnID="Value3" DataField="Value3" SortField="Value3"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:WindowField ColumnID="Value4" HeaderTextAlign="Center" TextAlign="Left" Width="120px" WindowID="Window1" HeaderText="<%$ Resources:Lan,ASPXSC_2455%>"
|
||||
DataTextField="Value4" DataIFrameUrlFields="TempId" DataIFrameUrlFormatString="DataInEdit.aspx?TempId={0}"
|
||||
Title="<%$ Resources:Lan,ASPXSC_2455%>" DataToolTipField="ToopValue" SortField="Value4">
|
||||
</f:WindowField>
|
||||
<f:RenderField Width="90px" HeaderText="<%$ Resources:Lan,DataInTable_RenderField_Value5_HeaderText%>" ColumnID="Value5" DataField="Value5" SortField="Value5"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="90px" HeaderText="<%$ Resources:Lan,DataInTable_RenderField_Value6_HeaderText%>" ColumnID="Value6" DataField="Value6" SortField="Value6"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="90px" HeaderText="<%$ Resources:Lan,DataInTable_RenderField_Value7_HeaderText%>" ColumnID="Value7" DataField="Value7" SortField="Value7"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" HeaderText="<%$ Resources:Lan,ASPXSC_3432%>" ColumnID="Value8" DataField="Value8" SortField="Value8"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" HeaderText="<%$ Resources:Lan,ASPXSC_3433%>" ColumnID="Value9" DataField="Value9" SortField="Value9"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" HeaderText="<%$ Resources:Lan,DataInTable_RenderField_Value10_HeaderText%>" ColumnID="Value10" DataField="Value10" SortField="Value10"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" HeaderText="<%$ Resources:Lan,DataInTable_RenderField_Value11_HeaderText%>" ColumnID="Value11" DataField="Value11" SortField="Value11"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" HeaderText="<%$ Resources:Lan,ASPXSC_2469%>" ColumnID="Value12" DataField="Value12" SortField="Value12"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" HeaderText="<%$ Resources:Lan,ASPXSC_2472%>" ColumnID="Value13" DataField="Value13" SortField="Value13"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" HeaderText="<%$ Resources:Lan,ASPXSC_2554%>" ColumnID="Value14" DataField="Value14" SortField="Value14"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Right">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="110px" HeaderText="<%$ Resources:Lan,PCFPipelineEdit_txtISO_Specification_Label%>" ColumnID="Value15" DataField="Value15" SortField="Value15"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" HeaderText="<%$ Resources:Lan,PCFJointEdit_txtSch_Label%>" ColumnID="Value16" DataField="Value16" SortField="Value16"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Right">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="120px" HeaderText="<%$ Resources:Lan,DataInTable_RenderField_Value17_HeaderText%>" ColumnID="Value17" DataField="Value17" SortField="Value17"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" HeaderText="<%$ Resources:Lan,ASPXSC_2515%>" ColumnID="Value18" DataField="Value18" SortField="Value18"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Right">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" HeaderText="<%$ Resources:Lan,ASPXSC_2468%>" ColumnID="Value19" DataField="Value19" SortField="Value19"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" HeaderText="<%$ Resources:Lan,ASPXSC_2467%>" ColumnID="Value20" DataField="Value20" SortField="Value20"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" HeaderText="<%$ Resources:Lan,ASPXSC_1916%>" ColumnID="Value21" DataField="Value21" SortField="Value21"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" HeaderText="<%$ Resources:Lan,ASPXSC_2503%>" ColumnID="Value22" DataField="Value22" SortField="Value22"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" HeaderText="<%$ Resources:Lan,ASPXSC_2513%>" ColumnID="Value23" DataField="Value23" SortField="Value23"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Right">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" HeaderText="<%$ Resources:Lan,ASPXSC_2514%>" ColumnID="Value24" DataField="Value24" SortField="Value24"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Right">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" HeaderText="<%$ Resources:Lan,DataInTable_RenderField_Value25_HeaderText%>" ColumnID="Value25" DataField="Value25" SortField="Value25"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" HeaderText="<%$ Resources:Lan,DataInTable_RenderField_Value26_HeaderText%>" ColumnID="Value26" DataField="Value26" SortField="Value26"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" HeaderText="<%$ Resources:Lan,DataInTable_RenderField_Value27_HeaderText%>" ColumnID="Value27" DataField="Value27" SortField="Value27"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" HeaderText="<%$ Resources:Lan,DataInTable_RenderField_Value28_HeaderText%>" ColumnID="Value28" DataField="Value28" SortField="Value28"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" HeaderText="<%$ Resources:Lan,DataInTable_RenderField_Value29_HeaderText%>" ColumnID="Value29" DataField="Value29" SortField="Value29"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" HeaderText="<%$ Resources:Lan,DataInTable_RenderField_Value30_HeaderText%>" ColumnID="Value30" DataField="Value30" SortField="Value30"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" HeaderText="<%$ Resources:Lan,ASPXSC_2483%>" ColumnID="Value31" DataField="Value31" SortField="Value31"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" HeaderText="<%$ Resources:Lan,BBL_Resource_458%>" ColumnID="Value32" DataField="Value32" SortField="Value32"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Right">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="90px" HeaderText="<%$ Resources:Lan,ASPXSC_2482%>" ColumnID="Value33" DataField="Value33" SortField="Value33"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" HeaderText="<%$ Resources:Lan,ShowHotHardSearch_Grid1_RenderField_HotProessNo_HeaderText%>" ColumnID="Value34" DataField="Value34" SortField="Value34"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" HeaderText="<%$ Resources:Lan,ASPXSC_1946%>" ColumnID="Value35" DataField="Value35" SortField="Value35"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Right">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="140px" HeaderText="<%$ Resources:Lan,PCFJointEdit_txtDia_Label%>" ColumnID="Value36" DataField="Value36" SortField="Value36"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Right">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="140px" HeaderText="<%$ Resources:Lan,DataInTable_RenderField_Value37_HeaderText%>" ColumnID="Value37" DataField="Value37" SortField="Value37"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Right">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="140px" HeaderText="<%$ Resources:Lan,ASPXSC_3429%>" ColumnID="Value38" DataField="Value38" SortField="Value38"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Right">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="140px" HeaderText="<%$ Resources:Lan,DataInTable_RenderField_Value39_HeaderText%>" ColumnID="Value39" DataField="Value39" SortField="Value39"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Right">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="140px" HeaderText="<%$ Resources:Lan,DataInTable_RenderField_Value40_HeaderText%>" ColumnID="Value40" DataField="Value40" SortField="Value40"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Right">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="140px" HeaderText="<%$ Resources:Lan,ASPXSC_3424%>" ColumnID="Value41" DataField="Value41" SortField="Value41"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Right">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="140px" HeaderText="<%$ Resources:Lan,ASPXSC_3434%>" ColumnID="Value42" DataField="Value42" SortField="Value42"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Right">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="140px" HeaderText="<%$ Resources:Lan,ASPXSC_3431%>" ColumnID="Value43" DataField="Value43" SortField="Value43"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Right">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="140px" HeaderText="<%$ Resources:Lan,ASPXSC_3425%>" ColumnID="Value44" DataField="Value44" SortField="Value44"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Right">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="140px" HeaderText="<%$ Resources:Lan,JointComprehensive_ISO_Type_HeaderText%>" ColumnID="Value45" DataField="Value45" SortField="Value45"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Right">
|
||||
</f:RenderField>
|
||||
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="60px" HeaderTextAlign="Center" TextAlign="Center"/>
|
||||
<f:RenderField Width="70px" HeaderText="行号" ColumnID="RowNo" DataField="RowNo" SortField="RowNo"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Center" >
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" HeaderText="单位代码" ColumnID="Value1" DataField="Value1" SortField="Value1"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" HeaderText="装置号" ColumnID="Value2" DataField="Value2" SortField="Value2"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="220px" HeaderText="管线代号" ColumnID="Value3" DataField="Value3" SortField="Value3"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:WindowField ColumnID="Value4" HeaderTextAlign="Center" TextAlign="Left" Width="120px" WindowID="Window1" HeaderText="焊口代号"
|
||||
DataTextField="Value4" DataIFrameUrlFields="TempId" DataIFrameUrlFormatString="DataInEdit.aspx?TempId={0}"
|
||||
Title="焊口代号" DataToolTipField="ToopValue" SortField="Value4">
|
||||
</f:WindowField>
|
||||
<f:RenderField Width="90px" HeaderText="材质1代号" ColumnID="Value5" DataField="Value5" SortField="Value5"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="90px" HeaderText="材质2代号" ColumnID="Value6" DataField="Value6" SortField="Value6"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" HeaderText="探伤比例代号" ColumnID="Value7" DataField="Value7" SortField="Value7"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" HeaderText="焊缝类型代号" ColumnID="Value8" DataField="Value8" SortField="Value8"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" HeaderText="焊接区域" ColumnID="Value9" DataField="Value9" SortField="Value9"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" HeaderText="焊口属性" ColumnID="Value10" DataField="Value10" SortField="Value10"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" HeaderText="寸径数" ColumnID="Value11" DataField="Value11" SortField="Value11"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Right">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" HeaderText="规格(mm)" ColumnID="Value12" DataField="Value12" SortField="Value12"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" HeaderText="壁厚" ColumnID="Value13" DataField="Value13" SortField="Value13"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Right">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" HeaderText="焊接方法代码" ColumnID="Value14" DataField="Value14" SortField="Value14"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" HeaderText="试验压力" ColumnID="Value15" DataField="Value15" SortField="Value15"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Right">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" HeaderText="焊条代号" ColumnID="Value16" DataField="Value16" SortField="Value16"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" HeaderText="焊丝代号" ColumnID="Value17" DataField="Value17" SortField="Value17"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" HeaderText="介质代号" ColumnID="Value18" DataField="Value18" SortField="Value18"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" HeaderText="单线图号" ColumnID="Value19" DataField="Value19" SortField="Value19"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" HeaderText="设计压力" ColumnID="Value20" DataField="Value20" SortField="Value20"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Right">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" HeaderText="设计温度" ColumnID="Value21" DataField="Value21" SortField="Value21"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Right">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" HeaderText="坡口代号" ColumnID="Value22" DataField="Value22" SortField="Value22"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" HeaderText="管线等级代号" ColumnID="Value23" DataField="Value23" SortField="Value23"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" HeaderText="组件一代号" ColumnID="Value24" DataField="Value24" SortField="Value24"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" HeaderText="组件二代号" ColumnID="Value25" DataField="Value25" SortField="Value25"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" HeaderText="炉批号一" ColumnID="Value26" DataField="Value26" SortField="Value26"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" HeaderText="炉批号二" ColumnID="Value27" DataField="Value27" SortField="Value27"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" HeaderText="所属管段" ColumnID="Value28" DataField="Value28" SortField="Value28"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" HeaderText="预热温度" ColumnID="Value29" DataField="Value29" SortField="Value29"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Right">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="90px" HeaderText="是否热处理" ColumnID="Value30" DataField="Value30" SortField="Value30"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" HeaderText="焊接位置" ColumnID="Value31" DataField="Value31" SortField="Value31"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" HeaderText="外径" ColumnID="Value32" DataField="Value32" SortField="Value32"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Right">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="140px" HeaderText="硬度检测比例(数值)" ColumnID="Value33" DataField="Value33" SortField="Value33"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Right">
|
||||
</f:RenderField>
|
||||
|
||||
<f:RenderField Width="80px" HeaderText="组件数量" ColumnID="Value34" DataField="Value34" SortField="Value34"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Right">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" HeaderText="公称直径" ColumnID="Value35" DataField="Value35" SortField="Value35"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Right">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
<Listeners>
|
||||
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
|
||||
|
|
@ -201,7 +172,7 @@
|
|||
<PageItems>
|
||||
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
|
||||
</f:ToolbarSeparator>
|
||||
<f:ToolbarText ID="ToolbarText1" runat="server" Text="<%$ Resources:Lan,TCC_RE_CQMS_026%>">
|
||||
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
|
||||
</f:ToolbarText>
|
||||
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
|
||||
OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
|
||||
|
|
@ -210,22 +181,22 @@
|
|||
<f:ListItem Text="20" Value="20" />
|
||||
<f:ListItem Text="25" Value="25" />
|
||||
</f:DropDownList>
|
||||
<f:Label Label="<%$ Resources:Lan,DataInTable_lbDataCout_Label%>" runat="server" ID="lbDataCout" CssClass="Label" LabelAlign="right" LabelWidth="120px"></f:Label>
|
||||
<f:Label Label="错误记录数" runat="server" ID="lbDataCout" CssClass="Label" LabelAlign="right" LabelWidth="120px"></f:Label>
|
||||
</PageItems>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</form>
|
||||
<f:Window ID="Window1" Title="<%$ Resources:Lan,CheckManageImport_Window1_Title%>" Hidden="true" EnableIFrame="true"
|
||||
<f:Window ID="Window1" Title="数据信息" Hidden="true" EnableIFrame="true"
|
||||
EnableMaximize="true" Target="Top" EnableResize="true" runat="server" OnClose="Window1_Close"
|
||||
IsModal="true" Width="1200px" Height="600px">
|
||||
</f:Window>
|
||||
<f:Menu ID="Menu1" ClientIDMode="Static" runat="server">
|
||||
<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" EnablePostBack="true"
|
||||
runat="server" Text="<%$ Resources:Lan,TCC_RE_CQMS_102%>" Icon="TableEdit">
|
||||
runat="server" Text="编辑" Icon="TableEdit">
|
||||
</f:MenuButton>
|
||||
<f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true"
|
||||
ConfirmText="<%$ Resources:Lan,TCC_RE_CQMS_794%>" ConfirmTarget="Top" runat="server" Text="<%$ Resources:Lan,TCC_RE_CQMS_031%>" Icon="Delete">
|
||||
ConfirmText="删除选中行?" ConfirmTarget="Top" runat="server" Text="删除" Icon="Delete">
|
||||
</f:MenuButton>
|
||||
</f:Menu>
|
||||
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
using BLL.Common;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using NPOI.POIFS.Properties;
|
||||
using Org.BouncyCastle.Asn1.Tsp;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
|
|
@ -71,7 +72,7 @@ namespace FineUIPro.Web.HJGL.JoinMarking
|
|||
|
||||
ISO_ID = Request.Params["ISO_ID"];
|
||||
FileId = Request.Params["FileId"];
|
||||
URL = Funs. SGGLUrl + Request.Params["pdfurl"];
|
||||
URL = Funs. HJGLUrl + Request.Params["pdfurl"];
|
||||
this.IsPDMS = "0";
|
||||
|
||||
}
|
||||
|
|
@ -85,7 +86,7 @@ namespace FineUIPro.Web.HJGL.JoinMarking
|
|||
string strSql = @"SELECT TempId,ProjectId,UserId,Time,RowNo,ToopValue,Value1,Value2,Value3,Value4,Value5,Value6,Value7,Value8,Value9,Value10"
|
||||
+ @" ,Value11,Value12,Value13,Value14,Value15,Value16,Value17,Value18,Value19,Value20,Value21,Value22,Value23,Value24,Value25,Value26,Value27,Value28,Value29,Value30"
|
||||
+ @" ,Value31,Value32,Value33,Value34,Value35,Value36,Value37,Value38,Value39,Value40,Value41,Value42,Value43,Value44,Value45,Value46,Value47,Value48,Value49,Value50,ToopValue,Type"
|
||||
+ @" FROM Sys_DataInTemp "
|
||||
+ @" FROM HJGL_Sys_DataInTemp "
|
||||
+ @" WHERE ProjectId=@ProjectId AND UserId=@UserId AND Type=@Type";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId));
|
||||
|
|
@ -99,7 +100,7 @@ namespace FineUIPro.Web.HJGL.JoinMarking
|
|||
var table = this.GetPagedDataTable(Grid1, tb);
|
||||
Grid1.DataSource = table;
|
||||
Grid1.DataBind();
|
||||
var dataInTempAll = from x in Funs.DB.Sys_DataInTemp
|
||||
var dataInTempAll = from x in Funs.DB.HJGL_Sys_DataInTemp
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId && x.UserId == this.CurrUser.UserId && x.Type == this.IsPDMS
|
||||
select x;
|
||||
for (int i = 0; i < Grid1.Rows.Count; i++)
|
||||
|
|
@ -117,32 +118,28 @@ namespace FineUIPro.Web.HJGL.JoinMarking
|
|||
{
|
||||
if (this.IsPDMS == "1") ///如果是PDMS
|
||||
{
|
||||
this.Grid1.Columns[7].Hidden = true;//材质2
|
||||
this.Grid1.Columns[10].Hidden = true;//焊接区域
|
||||
this.Grid1.Columns[11].Hidden = true;//焊口属性
|
||||
this.Grid1.Columns[12].Hidden = true;//达因数
|
||||
this.Grid1.Columns[13].Hidden = true;//规格
|
||||
this.Grid1.Columns[15].Hidden = true;//焊接方法代码
|
||||
this.Grid1.Columns[17].Hidden = true;//焊条代号
|
||||
this.Grid1.Columns[18].Hidden = true;//焊丝代号
|
||||
this.Grid1.Columns[19].HeaderText = Resources.Lan.ASPXSC_2080;
|
||||
this.Grid1.Columns[23].Hidden = true;//坡口代号
|
||||
this.Grid1.Columns[25].HeaderText = Resources.Lan.ASPXSC_2081;
|
||||
this.Grid1.Columns[26].Hidden = true;//组件二代号
|
||||
this.Grid1.Columns[27].Hidden = true;//炉批号1
|
||||
this.Grid1.Columns[28].Hidden = true;//炉批号2
|
||||
this.Grid1.Columns[30].Hidden = true;//预热温度
|
||||
this.Grid1.Columns[31].Hidden = true;//是否热处理
|
||||
this.Grid1.Columns[32].Hidden = true;//热处理编号
|
||||
this.Grid1.Columns[33].Hidden = true;//焊接位置
|
||||
this.Grid1.Columns[34].Hidden = true;//外径
|
||||
this.Grid1.Columns[35].Hidden = true;//硬度检测比例(数值)
|
||||
this.Grid1.Columns[36].Hidden = true;//焊接气体保护
|
||||
this.Grid1.Columns[7].Hidden = true;
|
||||
this.Grid1.Columns[10].Hidden = true;
|
||||
this.Grid1.Columns[12].Hidden = true;
|
||||
this.Grid1.Columns[13].Hidden = true;
|
||||
this.Grid1.Columns[15].Hidden = true;
|
||||
this.Grid1.Columns[17].Hidden = true;
|
||||
this.Grid1.Columns[18].Hidden = true;
|
||||
this.Grid1.Columns[23].Hidden = true;
|
||||
this.Grid1.Columns[26].Hidden = true;
|
||||
this.Grid1.Columns[27].Hidden = true;
|
||||
this.Grid1.Columns[28].Hidden = true;
|
||||
this.Grid1.Columns[30].Hidden = true;
|
||||
this.Grid1.Columns[31].Hidden = true;
|
||||
this.Grid1.Columns[32].Hidden = true;
|
||||
this.Grid1.Columns[33].Hidden = true;
|
||||
this.Grid1.Columns[34].Hidden = true;
|
||||
this.Grid1.Columns[25].HeaderText = "组件类型";
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Grid1.Columns[37].Hidden = true;//组件数量
|
||||
this.Grid1.Columns[38].Hidden = true;//公称直径
|
||||
this.Grid1.Columns[35].Hidden = true;
|
||||
this.Grid1.Columns[36].Hidden = true;
|
||||
}
|
||||
}
|
||||
var errData = from x in dataInTempAll where x.ToopValue != null select x;
|
||||
|
|
@ -159,7 +156,7 @@ namespace FineUIPro.Web.HJGL.JoinMarking
|
|||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||
{
|
||||
Alert.ShowInTop(Resources.Lan.T_REST_ASPXCS_370, MessageBoxIcon.Warning);
|
||||
Alert.ShowInTop("请选择一条记录", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_DataInMenuId, Const.BtnIn))
|
||||
|
|
@ -168,7 +165,7 @@ namespace FineUIPro.Web.HJGL.JoinMarking
|
|||
}
|
||||
else
|
||||
{
|
||||
ShowNotify(Resources.Lan.T_REST_ASPXCS_365, MessageBoxIcon.Warning);
|
||||
ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
|
@ -185,14 +182,14 @@ namespace FineUIPro.Web.HJGL.JoinMarking
|
|||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||
{
|
||||
Alert.ShowInTop(Resources.Lan.T_REST_ASPXCS_370, MessageBoxIcon.Warning);
|
||||
Alert.ShowInTop("请选择一条记录", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("DataInEdit.aspx?TempId={0}", Grid1.SelectedRowID, "维护 - ")));
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowNotify(Resources.Lan.T_REST_ASPXCS_365, MessageBoxIcon.Warning);
|
||||
ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -207,7 +204,7 @@ namespace FineUIPro.Web.HJGL.JoinMarking
|
|||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||
{
|
||||
Alert.ShowInTop(Resources.Lan.T_REST_ASPXCS_370, MessageBoxIcon.Warning);
|
||||
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -218,12 +215,12 @@ namespace FineUIPro.Web.HJGL.JoinMarking
|
|||
//BLL.Sys_LogService.AddLog(Const.System_7, this.CurrUser.LoginProjectId, this.CurrUser.UserId, Resources.Lan.ASPXSC_2047);
|
||||
}
|
||||
|
||||
ShowNotify(Resources.Lan.T_REST_ASPXCS_373, MessageBoxIcon.Success);
|
||||
ShowNotify("删除成功!", MessageBoxIcon.Success);
|
||||
this.BindGrid();
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop(Resources.Lan.T_REST_ASPXCS_365, MessageBoxIcon.Warning);
|
||||
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
@ -286,33 +283,32 @@ namespace FineUIPro.Web.HJGL.JoinMarking
|
|||
{
|
||||
//beginProgress();
|
||||
var units = from x in Funs.DB.Base_Unit
|
||||
join y in Funs.DB.Project_ProjectUnit on x.UnitId equals y.UnitId
|
||||
join y in Funs.DB.Project_Unit on x.UnitId equals y.UnitId
|
||||
where y.ProjectId == LoginProjectId
|
||||
select x;
|
||||
var workAreas = from x in Funs.DB.ProjectData_WorkArea where x.ProjectId == LoginProjectId select x;
|
||||
var steels = from x in Funs.DB.Base_Material select x;
|
||||
var materialTypes = from x in Funs.DB.Base_MaterialType select x;
|
||||
var rates = from x in Funs.DB.Base_DetectionRate select x;
|
||||
var types = from x in Funs.DB.Base_WeldType select x;
|
||||
var methods = from x in Funs.DB.Base_WeldingMethod select x;
|
||||
var materials = from x in Funs.DB.Base_Consumables select x;
|
||||
var services = from x in Funs.DB.Base_TestMedium select x;
|
||||
var slopeTypes = from x in Funs.DB.Base_GrooveType select x;
|
||||
var isoClasss = from x in Funs.DB.Base_PipingClass select x;
|
||||
var components = from x in Funs.DB.Base_Components select x;
|
||||
var dns = from x in Funs.DB.Base_DNCompare select x;
|
||||
var dataInTemp = from x in Funs.DB.Sys_DataInTemp
|
||||
where x.ProjectId == LoginProjectId && x.UserId == UserId && x.Type == IsPDMS
|
||||
var installs = from x in Funs.DB.Project_Installation where x.ProjectId == this.CurrUser.LoginProjectId select x;
|
||||
var steels = from x in Funs.DB.HJGL_BS_Steel select x;
|
||||
var rates = from x in Funs.DB.HJGL_BS_NDTRate select x;
|
||||
var types = from x in Funs.DB.HJGL_BS_JointType select x;
|
||||
var methods = from x in Funs.DB.HJGL_BS_WeldMethod select x;
|
||||
var materials = from x in Funs.DB.HJGL_BS_WeldMaterial select x;
|
||||
var services = from x in Funs.DB.HJGL_BS_Service select x;
|
||||
var slopeTypes = from x in Funs.DB.HJGL_BS_SlopeType select x;
|
||||
var isoClasss = from x in Funs.DB.HJGL_BS_IsoClass select x;
|
||||
var components = from x in Funs.DB.HJGL_BS_Component select x;
|
||||
var dns = from x in Funs.DB.HJGL_BS_SchTab select x;
|
||||
var dataInTemp = from x in Funs.DB.HJGL_Sys_DataInTemp
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId && x.UserId == this.CurrUser.UserId && x.Type == this.IsPDMS
|
||||
select x;
|
||||
|
||||
|
||||
var iosType = from x in Funs.DB.Sys_Const
|
||||
where x.GroupId == ConstValue.GroupId_ISOType
|
||||
select x;
|
||||
|
||||
int okCount = 0;
|
||||
int i = 0;
|
||||
int ir = dataInTemp.Count();
|
||||
string erreMessage = "";
|
||||
Model.HJGL_PW_IsoInfo isoInfo = Funs.DB.HJGL_PW_IsoInfo.FirstOrDefault(x=>x.ISO_ID==ISO_ID); ///管线
|
||||
|
||||
foreach (var tempData in dataInTemp)
|
||||
{
|
||||
|
||||
|
|
@ -320,7 +316,7 @@ namespace FineUIPro.Web.HJGL.JoinMarking
|
|||
{
|
||||
string errInfo = string.Empty;
|
||||
|
||||
Model.PW_JointInfo jointInfo = new Model.PW_JointInfo(); ///焊口
|
||||
Model.HJGL_PW_JointInfo jointInfo = new Model.HJGL_PW_JointInfo(); ///焊口
|
||||
jointInfo.JOT_JointStatus = "100";
|
||||
jointInfo.ISO_ID = this.ISO_ID;
|
||||
jointInfo.X = tempData.Value46;
|
||||
|
|
@ -331,7 +327,7 @@ namespace FineUIPro.Web.HJGL.JoinMarking
|
|||
|
||||
if (string.IsNullOrEmpty(tempData.Value4))
|
||||
{
|
||||
errInfo += Resources.Lan.ASPXSC_2056;
|
||||
errInfo += "焊口代号此项为必填项!";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -341,126 +337,147 @@ namespace FineUIPro.Web.HJGL.JoinMarking
|
|||
|
||||
if (!string.IsNullOrEmpty(tempData.Value5))
|
||||
{
|
||||
var materialType = materialTypes.FirstOrDefault(x => x.MaterialTypeCode == tempData.Value5);
|
||||
if (materialType == null)
|
||||
var steel = steels.FirstOrDefault(x => x.STE_Code == tempData.Value5);
|
||||
if (steel == null)
|
||||
{
|
||||
errInfo += Resources.Lan.ASPXSC_2083 + tempData.Value5 + Resources.Lan.ASPXSC_2016;
|
||||
errInfo += "材质1[" + tempData.Value5 + "]不存在;";
|
||||
}
|
||||
else
|
||||
{
|
||||
jointInfo.MaterialType = materialType.MaterialTypeId;
|
||||
isoInfo.STE_ID = steel.STE_ID;
|
||||
jointInfo.STE_ID = steel.STE_ID;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
errInfo += "材质1为必填项;";
|
||||
}
|
||||
if (!string.IsNullOrEmpty(tempData.Value8))
|
||||
{
|
||||
jointInfo.Material1 = tempData.Value8;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(tempData.Value9))
|
||||
{
|
||||
jointInfo.Material2 = tempData.Value9;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(tempData.Value6))
|
||||
{
|
||||
var steel = steels.FirstOrDefault(x => x.MaterialCode == tempData.Value6);
|
||||
if (steel == null)
|
||||
{
|
||||
errInfo += Resources.Lan.TTC_RE_CS_HSSE_121 + tempData.Value6 + Resources.Lan.ASPXSC_2016;
|
||||
}
|
||||
else
|
||||
{
|
||||
jointInfo.MaterialId = steel.MaterialId;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
errInfo += Resources.Lan.TTC_RE_CS_HSSE_122;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(tempData.Value41) && tempData.Value41.Trim() == Resources.Lan.TCC_RE_CQMS_011)
|
||||
{
|
||||
jointInfo.Extend_Length = tempData.Value43;
|
||||
if (!string.IsNullOrEmpty(tempData.Value10))
|
||||
{
|
||||
var rate = rates.FirstOrDefault(x => x.DetectionRateCode == tempData.Value10);
|
||||
if (rate == null)
|
||||
{
|
||||
errInfo += Resources.Lan.ASPXSC_2084 + tempData.Value10 + Resources.Lan.ASPXSC_2016;
|
||||
}
|
||||
else
|
||||
{
|
||||
jointInfo.DetectionRateId = rate.DetectionRateId;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
errInfo += Resources.Lan.ASPXSC_2085;
|
||||
}
|
||||
}
|
||||
|
||||
if (string.IsNullOrEmpty(tempData.Value16))
|
||||
{
|
||||
errInfo += Resources.Lan.ASPXSC_2091;
|
||||
}
|
||||
else
|
||||
{
|
||||
jointInfo.JOT_Sch = tempData.Value16;
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(tempData.Value45))
|
||||
{
|
||||
var type = iosType.FirstOrDefault(x => x.ConstValue == tempData.Value45);
|
||||
var type = types.FirstOrDefault(x => x.JOTY_Code == tempData.Value8);
|
||||
if (type == null)
|
||||
{
|
||||
errInfo += Resources.Lan.ASPXSC_2093 + tempData.Value45 + Resources.Lan.ASPXSC_2016;
|
||||
errInfo += "焊缝类型代号[" + tempData.Value8 + "]不存在;";
|
||||
}
|
||||
else
|
||||
{
|
||||
jointInfo.ISO_Type = type.ConstValue;
|
||||
jointInfo.JOTY_ID = type.JOTY_ID;
|
||||
}
|
||||
}
|
||||
jointInfo.JOT_BelongPipe = tempData.Value31;
|
||||
jointInfo.WallBoard = tempData.Value42;
|
||||
else
|
||||
{
|
||||
errInfo += "焊缝类型代号为必填项;";
|
||||
}
|
||||
if (string.IsNullOrEmpty(tempData.Value13))
|
||||
{
|
||||
errInfo += "壁厚此项为必填项!";
|
||||
}
|
||||
else
|
||||
{
|
||||
jointInfo.JOT_Sch = tempData.Value13;
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(tempData.Value15))
|
||||
{
|
||||
try
|
||||
{
|
||||
decimal testPress = Convert.ToDecimal(tempData.Value15);
|
||||
isoInfo.ISO_TestPress = testPress;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
errInfo += "试验压力[" + tempData.Value15 + "]错误;";
|
||||
}
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(tempData.Value18))
|
||||
{
|
||||
var service = services.FirstOrDefault(x => x.SER_Code == tempData.Value18);
|
||||
if (service == null)
|
||||
{
|
||||
errInfo += "介质代号[" + tempData.Value18 + "]不存在;";
|
||||
}
|
||||
else
|
||||
{
|
||||
isoInfo.SER_ID = service.SER_ID;
|
||||
}
|
||||
}
|
||||
if (!string.IsNullOrEmpty(tempData.Value20))
|
||||
{
|
||||
try
|
||||
{
|
||||
decimal testPress = Convert.ToDecimal(tempData.Value20);
|
||||
isoInfo.ISO_DesignPress = testPress;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
errInfo += "设计压力[" + tempData.Value20 + "]错误;";
|
||||
}
|
||||
}
|
||||
if (!string.IsNullOrEmpty(tempData.Value21))
|
||||
{
|
||||
try
|
||||
{
|
||||
decimal testPress = Convert.ToDecimal(tempData.Value21);
|
||||
isoInfo.ISO_DesignTemperature = testPress;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
errInfo += "设计温度[" + tempData.Value21 + "]错误;";
|
||||
}
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(tempData.Value23))
|
||||
{
|
||||
var isoClass = isoClasss.FirstOrDefault(x => x.ISC_IsoCode == tempData.Value23);
|
||||
if (isoClass == null)
|
||||
{
|
||||
errInfo += "管线等级代号[" + tempData.Value23 + "]不存在;";
|
||||
}
|
||||
else
|
||||
{
|
||||
isoInfo.ISC_ID = isoClass.ISC_ID;
|
||||
}
|
||||
}
|
||||
if (!string.IsNullOrEmpty(tempData.Value24))
|
||||
{
|
||||
var component = components.FirstOrDefault(x => x.COM_Code == tempData.Value24);
|
||||
if (component == null)
|
||||
{
|
||||
errInfo += "组件一代号[" + tempData.Value24 + "]不存在;";
|
||||
}
|
||||
else
|
||||
{
|
||||
jointInfo.JOT_Component1 = component.COM_ID;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
if (this.IsPDMS == "0") ////非PDMS 模板
|
||||
{
|
||||
#region 非PDMS 模板
|
||||
if (!string.IsNullOrEmpty(tempData.Value7))
|
||||
if (!string.IsNullOrEmpty(tempData.Value6))
|
||||
{
|
||||
var steel = steels.FirstOrDefault(x => x.MaterialCode == tempData.Value7);
|
||||
var steel = steels.FirstOrDefault(x => x.STE_Code == tempData.Value6);
|
||||
if (steel == null)
|
||||
{
|
||||
errInfo += Resources.Lan.TTC_RE_CS_HSSE_123 + tempData.Value7 + Resources.Lan.ASPXSC_2016;
|
||||
errInfo += "材质2[" + tempData.Value6 + "]不存在;";
|
||||
}
|
||||
else
|
||||
{
|
||||
jointInfo.MaterialId = steel.MaterialId;
|
||||
jointInfo.STE_ID2 = steel.STE_ID;
|
||||
}
|
||||
}
|
||||
if (!string.IsNullOrEmpty(tempData.Value11))
|
||||
if (!string.IsNullOrEmpty(tempData.Value9))
|
||||
{
|
||||
var type = types.FirstOrDefault(x => x.WeldTypeCode == tempData.Value11);
|
||||
if (type == null)
|
||||
if (tempData.Value9 != "安装" && tempData.Value9 != "预制")
|
||||
{
|
||||
errInfo += Resources.Lan.ASPXSC_2094 + tempData.Value11 + Resources.Lan.ASPXSC_2016;
|
||||
errInfo += "焊接区域[" + tempData.Value9 + "]不存在;";
|
||||
}
|
||||
else
|
||||
{
|
||||
jointInfo.JOTY_ID = type.WeldTypeId;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
errInfo += Resources.Lan.ASPXSC_2095;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(tempData.Value12))
|
||||
{
|
||||
if (tempData.Value12 != Resources.Lan.mainProject0_Installation && tempData.Value12 != Resources.Lan.RE_Remained_945)
|
||||
{
|
||||
errInfo += Resources.Lan.ASPXSC_2096 + tempData.Value12 + Resources.Lan.ASPXSC_2016;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (tempData.Value12 == Resources.Lan.mainProject0_Installation)
|
||||
if (tempData.Value9 == "安装")
|
||||
{
|
||||
jointInfo.WLO_Code = "F";
|
||||
}
|
||||
|
|
@ -472,151 +489,137 @@ namespace FineUIPro.Web.HJGL.JoinMarking
|
|||
}
|
||||
else
|
||||
{
|
||||
errInfo += Resources.Lan.ASPXSC_2097;
|
||||
errInfo += "焊接区域为必填项;";
|
||||
}
|
||||
if (!string.IsNullOrEmpty(tempData.Value13))
|
||||
if (!string.IsNullOrEmpty(tempData.Value10))
|
||||
{
|
||||
if (tempData.Value13 != Resources.Lan.RE_Remained_947 && tempData.Value13 != Resources.Lan.RE_Remained_946)
|
||||
if (tempData.Value10 != "固定" && tempData.Value10 != "活动")
|
||||
{
|
||||
errInfo += Resources.Lan.ASPXSC_2098 + tempData.Value13 + Resources.Lan.ASPXSC_2016;
|
||||
errInfo += "焊口属性[" + tempData.Value10 + "]不存在;";
|
||||
}
|
||||
else
|
||||
{
|
||||
jointInfo.JOT_JointAttribute = tempData.Value13;
|
||||
jointInfo.JOT_JointAttribute = tempData.Value10;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
errInfo += Resources.Lan.ASPXSC_2099;
|
||||
errInfo += "焊口属性为必填项;";
|
||||
}
|
||||
if (!string.IsNullOrEmpty(tempData.Value14))
|
||||
if (!string.IsNullOrEmpty(tempData.Value11))
|
||||
{
|
||||
try
|
||||
{
|
||||
decimal doneDin = Convert.ToDecimal(tempData.Value14);
|
||||
decimal doneDin = Convert.ToDecimal(tempData.Value11);
|
||||
jointInfo.JOT_Size = doneDin;
|
||||
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
errInfo += Resources.Lan.ASPXSC_2100 + tempData.Value14 + Resources.Lan.ASPXSC_2087;
|
||||
errInfo += "寸径数[" + tempData.Value11 + "]错误;";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
errInfo += Resources.Lan.ASPXSC_2101;
|
||||
errInfo += "寸径数为必填项;";
|
||||
}
|
||||
if (string.IsNullOrEmpty(tempData.Value15))
|
||||
if (string.IsNullOrEmpty(tempData.Value12))
|
||||
{
|
||||
errInfo += Resources.Lan.ASPXSC_2102;
|
||||
errInfo += "规格此项为必填项!";
|
||||
}
|
||||
else
|
||||
{
|
||||
jointInfo.JOT_JointDesc = tempData.Value15;
|
||||
jointInfo.JOT_JointDesc = tempData.Value12;
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(tempData.Value17))
|
||||
if (!string.IsNullOrEmpty(tempData.Value14))
|
||||
{
|
||||
var method = methods.FirstOrDefault(x => x.WeldingMethodCode == tempData.Value17);
|
||||
var method = methods.FirstOrDefault(x => x.WME_Code == tempData.Value14);
|
||||
if (method == null)
|
||||
{
|
||||
errInfo += Resources.Lan.ASPXSC_2103 + tempData.Value17 + Resources.Lan.ASPXSC_2016;
|
||||
errInfo += "焊接方法代号[" + tempData.Value14 + "]不存在;";
|
||||
}
|
||||
else
|
||||
{
|
||||
jointInfo.WME_ID = method.WeldingMethodId;
|
||||
jointInfo.WME_ID = method.WME_ID;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
errInfo += Resources.Lan.ASPXSC_2104;
|
||||
errInfo += "焊接方法代号为必填项;";
|
||||
}
|
||||
if (!string.IsNullOrEmpty(tempData.Value19))
|
||||
if (!string.IsNullOrEmpty(tempData.Value16))
|
||||
{
|
||||
var material = materials.FirstOrDefault(x => x.ConsumablesCode == tempData.Value19 && x.ConsumablesType == "2");
|
||||
var material = materials.FirstOrDefault(x => x.WMT_MatCode == tempData.Value16 && x.WMT_MatType == "2");
|
||||
if (material == null)
|
||||
{
|
||||
errInfo += Resources.Lan.ASPXSC_2105 + tempData.Value19 + Resources.Lan.ASPXSC_2016;
|
||||
errInfo += "焊条代号[" + tempData.Value16 + "]不存在;";
|
||||
}
|
||||
else
|
||||
{
|
||||
jointInfo.JOT_WeldMat = material.ConsumablesId;
|
||||
jointInfo.JOT_WeldMat = material.WMT_ID;
|
||||
}
|
||||
}
|
||||
if (!string.IsNullOrEmpty(tempData.Value20))
|
||||
if (!string.IsNullOrEmpty(tempData.Value17))
|
||||
{
|
||||
var material = materials.FirstOrDefault(x => x.ConsumablesCode == tempData.Value20 && x.ConsumablesType == "1");
|
||||
var material = materials.FirstOrDefault(x => x.WMT_MatCode == tempData.Value17 && x.WMT_MatType == "1");
|
||||
if (material == null)
|
||||
{
|
||||
errInfo += Resources.Lan.ASPXSC_2106 + tempData.Value20 + Resources.Lan.ASPXSC_2016;
|
||||
errInfo += "焊丝代号[" + tempData.Value17 + "]不存在;";
|
||||
}
|
||||
else
|
||||
{
|
||||
jointInfo.JOT_WeldSilk = material.ConsumablesId;
|
||||
jointInfo.JOT_WeldSilk = material.WMT_ID;
|
||||
}
|
||||
}
|
||||
if (!string.IsNullOrEmpty(tempData.Value22))
|
||||
{
|
||||
var slopeType = slopeTypes.FirstOrDefault(x => x.JST_Code == tempData.Value22);
|
||||
if (slopeType == null)
|
||||
{
|
||||
errInfo += "坡口代号[" + tempData.Value22 + "]不存在;";
|
||||
}
|
||||
else
|
||||
{
|
||||
jointInfo.JST_ID = slopeType.JST_ID;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
errInfo += "坡口代号必填项;";
|
||||
}
|
||||
if (!string.IsNullOrEmpty(tempData.Value25))
|
||||
{
|
||||
var slopeType = slopeTypes.FirstOrDefault(x => x.GrooveTypeCode == tempData.Value25);
|
||||
if (slopeType == null)
|
||||
{
|
||||
errInfo += Resources.Lan.ASPXSC_2107 + tempData.Value25 + Resources.Lan.ASPXSC_2016;
|
||||
}
|
||||
else
|
||||
{
|
||||
jointInfo.JST_ID = slopeType.GrooveTypeId;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
errInfo += Resources.Lan.ASPXSC_2108;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(tempData.Value27))
|
||||
{
|
||||
var component = components.FirstOrDefault(x => x.ComponentsCode == tempData.Value27);
|
||||
var component = components.FirstOrDefault(x => x.COM_Code == tempData.Value25);
|
||||
if (component == null)
|
||||
{
|
||||
errInfo += Resources.Lan.ASPXSC_2109 + tempData.Value27 + Resources.Lan.ASPXSC_2016;
|
||||
errInfo += "组件二代号[" + tempData.Value25 + "]不存在;";
|
||||
}
|
||||
else
|
||||
{
|
||||
jointInfo.JOT_Component1 = component.ComponentsId;
|
||||
jointInfo.JOT_Component2 = component.COM_ID;
|
||||
}
|
||||
}
|
||||
if (!string.IsNullOrEmpty(tempData.Value28))
|
||||
{
|
||||
var component = components.FirstOrDefault(x => x.ComponentsCode == tempData.Value28);
|
||||
if (component == null)
|
||||
{
|
||||
errInfo += Resources.Lan.ASPXSC_2110 + tempData.Value28 + Resources.Lan.ASPXSC_2016;
|
||||
}
|
||||
else
|
||||
{
|
||||
jointInfo.JOT_Component2 = component.ComponentsId;
|
||||
}
|
||||
}
|
||||
jointInfo.JOT_HeartNo1 = tempData.Value29;
|
||||
jointInfo.JOT_HeartNo2 = tempData.Value30;
|
||||
if (!string.IsNullOrEmpty(tempData.Value32))
|
||||
if (!string.IsNullOrEmpty(tempData.Value29))
|
||||
{
|
||||
try
|
||||
{
|
||||
decimal testPress = Convert.ToDecimal(tempData.Value32);
|
||||
decimal testPress = Convert.ToDecimal(tempData.Value29);
|
||||
jointInfo.JOT_PrepareTemp = testPress;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
errInfo += Resources.Lan.ASPXSC_2111 + tempData.Value32 + Resources.Lan.ASPXSC_2087;
|
||||
errInfo += "预热温度[" + tempData.Value29 + "]错误;";
|
||||
}
|
||||
}
|
||||
if (!string.IsNullOrEmpty(tempData.Value33))
|
||||
if (!string.IsNullOrEmpty(tempData.Value30))
|
||||
{
|
||||
if (tempData.Value33 != Resources.Lan.TCC_RE_CQMS_011 && tempData.Value33 != Resources.Lan.TCC_RE_CQMS_012)
|
||||
if (tempData.Value30 != "是" && tempData.Value30 != "否")
|
||||
{
|
||||
errInfo += Resources.Lan.ASPXSC_2112 + tempData.Value33 + Resources.Lan.ASPXSC_2087;
|
||||
errInfo += "是否热处理[" + tempData.Value30 + "]错误;";
|
||||
}
|
||||
else
|
||||
{
|
||||
if (tempData.Value33 == Resources.Lan.TCC_RE_CQMS_011)
|
||||
if (tempData.Value30 == "是")
|
||||
{
|
||||
jointInfo.IS_Proess = "1";
|
||||
}
|
||||
|
|
@ -626,141 +629,164 @@ namespace FineUIPro.Web.HJGL.JoinMarking
|
|||
}
|
||||
}
|
||||
}
|
||||
jointInfo.JOT_HotRpt = tempData.Value34;
|
||||
if (!string.IsNullOrEmpty(tempData.Value35))
|
||||
if (!string.IsNullOrEmpty(tempData.Value31))
|
||||
{
|
||||
if (tempData.Value35 != "1G" && tempData.Value35 != "2G" && tempData.Value35 != "3G" && tempData.Value35 != "4G" && tempData.Value35 != "5G" && tempData.Value35 != "6G" && tempData.Value35 != "1F" && tempData.Value35 != "2F" && tempData.Value35 != "2FR"
|
||||
&& tempData.Value35 != "4F" && tempData.Value35 != "5F" && tempData.Value35 != "5FG" && tempData.Value35 != "6FG" && tempData.Value35 != "2FG" && tempData.Value35 != "4FG")
|
||||
if (tempData.Value31 != "1G" && tempData.Value31 != "2G" && tempData.Value31 != "3G"
|
||||
&& tempData.Value31 != "4G" && tempData.Value31 != "5G" && tempData.Value31 != "6G"
|
||||
&& tempData.Value31 != "1F" && tempData.Value31 != "2F" && tempData.Value31 != "2FR"
|
||||
&& tempData.Value31 != "4F" && tempData.Value31 != "5F")
|
||||
{
|
||||
errInfo += Resources.Lan.ASPXSC_2113 + tempData.Value35 + Resources.Lan.ASPXSC_2016;
|
||||
errInfo += "焊接位置[" + tempData.Value31 + "]不存在;";
|
||||
}
|
||||
else
|
||||
{
|
||||
jointInfo.JOT_Location = tempData.Value35;
|
||||
jointInfo.JOT_Location = tempData.Value31;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
errInfo += Resources.Lan.ASPXSC_2114;
|
||||
errInfo += "焊接位置必填项;";
|
||||
}
|
||||
if (!string.IsNullOrEmpty(tempData.Value36))
|
||||
if (!string.IsNullOrEmpty(tempData.Value32))
|
||||
{
|
||||
try
|
||||
{
|
||||
decimal testPress = Convert.ToDecimal(tempData.Value36);
|
||||
decimal testPress = Convert.ToDecimal(tempData.Value32);
|
||||
jointInfo.JOT_Dia = testPress;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
errInfo += Resources.Lan.ASPXSC_2115 + tempData.Value36 + Resources.Lan.ASPXSC_2087;
|
||||
errInfo += "外径[" + tempData.Value32 + "]错误;";
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
else
|
||||
{
|
||||
#region PDMS模板
|
||||
if (!string.IsNullOrEmpty(tempData.Value40))
|
||||
// 生成坡口形式
|
||||
if (tempData.Value8 == "BW") // BW的坡口形式为V
|
||||
{
|
||||
var slopeType = slopeTypes.FirstOrDefault(x => x.JST_Code == "V");
|
||||
if (slopeType != null)
|
||||
{
|
||||
jointInfo.JST_ID = slopeType.JST_ID;
|
||||
}
|
||||
}
|
||||
if (tempData.Value8 == "SW") // SW的坡口形式为I
|
||||
{
|
||||
var slopeType = slopeTypes.FirstOrDefault(x => x.JST_Code == "I");
|
||||
if (slopeType != null)
|
||||
{
|
||||
jointInfo.JST_ID = slopeType.JST_ID;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
if (!string.IsNullOrEmpty(tempData.Value27))
|
||||
{
|
||||
var component = components.FirstOrDefault(x => x.ComponentsCode == tempData.Value27);
|
||||
if (component == null)
|
||||
{
|
||||
errInfo += Resources.Lan.ASPXSC_2119 + tempData.Value27 + Resources.Lan.ASPXSC_2016;
|
||||
}
|
||||
else
|
||||
{
|
||||
jointInfo.JOT_Component1 = component.ComponentsId;
|
||||
}
|
||||
}
|
||||
if (string.IsNullOrEmpty(tempData.Value39))
|
||||
{
|
||||
errInfo += Resources.Lan.TTC_RE_CS_HSSE_124;
|
||||
}
|
||||
else
|
||||
{
|
||||
jointInfo.ComponentNum = tempData.Value39;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(tempData.Value11))
|
||||
{
|
||||
var type = types.FirstOrDefault(x => x.WeldTypeCode == tempData.Value11);
|
||||
if (type == null)
|
||||
{
|
||||
errInfo += Resources.Lan.ASPXSC_2120 + tempData.Value11 + Resources.Lan.ASPXSC_2016;
|
||||
}
|
||||
else
|
||||
{
|
||||
jointInfo.JOTY_ID = type.WeldTypeId;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
errInfo += Resources.Lan.ASPXSC_2121;
|
||||
}
|
||||
jointInfo.WLO_Code = "S";
|
||||
jointInfo.JOT_JointAttribute = Resources.Lan.RE_Remained_946;
|
||||
jointInfo.JOT_JointAttribute = "活动";
|
||||
jointInfo.JOT_Location = "1G";
|
||||
jointInfo.JOT_Size = BLL.Base_DNCompareService.GetSizeByDn(tempData.Value40); // 生成尺寸
|
||||
if (Funs.GetNewIntOrZero(tempData.Value40) <= 50) // 生成焊接方法
|
||||
jointInfo.JOT_Size = BLL.HJGL_ControlService.GetSizeByDn(tempData.Value35); // 生成尺寸
|
||||
if (Funs.GetNewIntOrZero(tempData.Value35) <= 50) // 生成焊接方法
|
||||
{
|
||||
var m = methods.FirstOrDefault(x => x.WeldingMethodCode.Contains("GTAW"));
|
||||
var m = methods.FirstOrDefault(x => x.WME_Code.Contains("GTAW"));
|
||||
if (m != null)
|
||||
{
|
||||
jointInfo.WME_ID = m.WeldingMethodId;
|
||||
jointInfo.WME_ID = m.WME_ID;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
var m = methods.FirstOrDefault(x => x.WeldingMethodCode.Contains("GTAW") && x.WeldingMethodCode.Contains("SMAW"));
|
||||
var m = methods.FirstOrDefault(x => x.WME_Code.Contains("GTAW") && x.WME_Code.Contains("SMAW"));
|
||||
if (m != null)
|
||||
{
|
||||
jointInfo.WME_ID = m.WeldingMethodId;
|
||||
jointInfo.WME_ID = m.WME_ID;
|
||||
}
|
||||
}
|
||||
if (!string.IsNullOrEmpty(tempData.Value40) && !string.IsNullOrEmpty(tempData.Value16))
|
||||
|
||||
if (!string.IsNullOrEmpty(tempData.Value35) && !string.IsNullOrEmpty(tempData.Value13))
|
||||
{
|
||||
jointInfo.JOT_JointDesc = tempData.Value40 + "×" + tempData.Value16;
|
||||
jointInfo.JOT_JointDesc = tempData.Value35 + "×" + tempData.Value13;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(tempData.Value16))
|
||||
|
||||
if (!string.IsNullOrEmpty(tempData.Value13))
|
||||
{
|
||||
jointInfo.JOT_Sch = tempData.Value16;
|
||||
jointInfo.JOT_Sch = tempData.Value13;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(tempData.Value27))
|
||||
|
||||
var mc = BLL.HJGL_MaterialCompareService.GetMaterialCompare(jointInfo.STE_ID, jointInfo.WME_ID);
|
||||
if (mc != null)
|
||||
{
|
||||
var component = components.FirstOrDefault(x => x.ComponentsName.Contains(tempData.Value27));
|
||||
jointInfo.JOT_WeldSilk = mc.WMT_ID1;
|
||||
jointInfo.JOT_WeldMat = mc.WMT_ID2;
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(tempData.Value24))
|
||||
{
|
||||
var component = components.FirstOrDefault(x => x.COM_Name.Contains(tempData.Value24));
|
||||
if (component != null)
|
||||
{
|
||||
jointInfo.JOT_Component1 = component.ComponentsId;
|
||||
jointInfo.JOT_Component1 = component.COM_ID;
|
||||
jointInfo.JOT_Component2 = jointInfo.JOT_Component1;
|
||||
}
|
||||
}
|
||||
if (!string.IsNullOrEmpty(tempData.Value35))
|
||||
{
|
||||
var dn = dns.FirstOrDefault(x => x.BST_DN == tempData.Value35);
|
||||
if (dn == null)
|
||||
{
|
||||
errInfo += "公称直径[" + tempData.Value35 + "]基础表中不存在错误;";
|
||||
}
|
||||
else
|
||||
{
|
||||
try
|
||||
{
|
||||
int count = Convert.ToInt32(tempData.Value35);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
errInfo += "公称直径[" + tempData.Value35 + "]错误;";
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
if (string.IsNullOrEmpty(errInfo)) ////所有信息正确的话 这插入管线焊口
|
||||
{
|
||||
isoInfo.ProjectId = this.CurrUser.LoginProjectId;
|
||||
jointInfo.ProjectId = this.CurrUser.LoginProjectId;
|
||||
|
||||
var isExitJotNoValue = Funs.DB.View_JointInfoAndIsoInfo.FirstOrDefault(x => x.ProjectId == this.CurrUser.LoginProjectId && x.UnitCode == tempData.Value1
|
||||
&& x.WorkAreaCode == tempData.Value2 && x.ISO_IsoNo == tempData.Value3 && x.JOT_JointNo == tempData.Value4 && x.JOT_JointStatus != "104");
|
||||
var isExitISOValue = Funs.DB.HJGL_View_JointInfoAndIsoInfo.FirstOrDefault(x => x.ProjectId == this.CurrUser.LoginProjectId && x.UnitCode == tempData.Value1
|
||||
&& x.InstallationCode == tempData.Value2 && x.ISO_IsoNo == tempData.Value3);
|
||||
if (isExitISOValue != null) ///管线已存在
|
||||
{
|
||||
isoInfo.ISO_ID = isExitISOValue.ISO_ID;
|
||||
jointInfo.ISO_ID = isExitISOValue.ISO_ID;
|
||||
BLL.HJGL_PW_IsoInfoService.UpdateIsoInfo(isoInfo);
|
||||
}
|
||||
else
|
||||
{
|
||||
isoInfo.ISO_ID = SQLHelper.GetNewID(typeof(Model.HJGL_PW_IsoInfo));
|
||||
jointInfo.ISO_ID = isoInfo.ISO_ID;
|
||||
BLL.HJGL_PW_IsoInfoService.AddIsoInfo(isoInfo);
|
||||
}
|
||||
var isExitJotNoValue = Funs.DB.HJGL_View_JointInfoAndIsoInfo.FirstOrDefault(x => x.ProjectId == this.CurrUser.LoginProjectId && x.UnitCode == tempData.Value1
|
||||
&& x.InstallationCode == tempData.Value2 && x.ISO_IsoNo == tempData.Value3 && x.JOT_JointNo == tempData.Value4);
|
||||
if (isExitJotNoValue == null)
|
||||
{
|
||||
BLL.PW_JointInfoService.AddJointInfo(jointInfo);
|
||||
jointInfo.JOT_ID = SQLHelper.GetNewID(typeof(Model.HJGL_PW_JointInfo));
|
||||
BLL.HJGL_PW_JointInfoService.AddJointInfo(jointInfo);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (string.IsNullOrEmpty(isExitJotNoValue.DReportID))
|
||||
{
|
||||
jointInfo.JOT_ID = isExitJotNoValue.JOT_ID;
|
||||
BLL.PW_JointInfoService.UpdateJointInfo(jointInfo);
|
||||
BLL.HJGL_PW_JointInfoService.UpdateJointInfo(jointInfo);
|
||||
}
|
||||
}
|
||||
|
||||
BLL.DataInTempService.DeleteDataInTempByDataInTempID(tempData.TempId);
|
||||
okCount++;
|
||||
okCount++;
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -793,73 +819,32 @@ namespace FineUIPro.Web.HJGL.JoinMarking
|
|||
{
|
||||
var jsonObc = JObject.Parse(json);
|
||||
var jsonArray = jsonObc.Value<JObject>("annotations").Value<JArray>("1");
|
||||
var iso = Funs.DB.PW_IsoInfo.FirstOrDefault(x => x.ISO_ID == ISO_ID);
|
||||
var iso = Funs.DB.HJGL_PW_IsoInfo.FirstOrDefault(x => x.ISO_ID == ISO_ID);
|
||||
if (iso != null)
|
||||
{
|
||||
var workArea = Funs.DB.ProjectData_WorkArea.FirstOrDefault(x => x.ProjectId == iso.ProjectId && x.WorkAreaId == iso.WorkAreaId);
|
||||
var unit = Funs.DB.Base_Unit.FirstOrDefault(x => x.UnitId == iso.UnitId);
|
||||
List<Model.Sys_DataInTemp> newDataInTempList = new List<Model.Sys_DataInTemp>();
|
||||
var unit = Funs.DB.Base_Unit.FirstOrDefault(x => x.UnitId == iso.BSU_ID);
|
||||
List<Model.HJGL_Sys_DataInTemp> newDataInTempList = new List<Model.HJGL_Sys_DataInTemp>();
|
||||
for (int i = 0; i < jsonArray.Count; i++)
|
||||
{
|
||||
JObject item = jsonArray[i] as JObject;
|
||||
|
||||
//if (!string.IsNullOrEmpty(pds.Rows[i][3].ToString()))
|
||||
{
|
||||
Model.Sys_DataInTemp newDataInTemp = new Model.Sys_DataInTemp();
|
||||
newDataInTemp.TempId = SQLHelper.GetNewID(typeof(Model.Sys_DataInTemp));
|
||||
Model.HJGL_Sys_DataInTemp newDataInTemp = new Model.HJGL_Sys_DataInTemp();
|
||||
newDataInTemp.TempId = SQLHelper.GetNewID(typeof(Model.HJGL_Sys_DataInTemp));
|
||||
newDataInTemp.ProjectId = this.CurrUser.LoginProjectId;
|
||||
newDataInTemp.UserId = this.CurrUser.UserId;
|
||||
newDataInTemp.Time = System.DateTime.Now;
|
||||
newDataInTemp.Type = this.IsPDMS;
|
||||
newDataInTemp.RowNo = i + 2;
|
||||
newDataInTemp.Value1 = unit.UnitCode;
|
||||
newDataInTemp.Value2 = workArea.WorkAreaCode;
|
||||
newDataInTemp.Value1 = unit!=null? unit.UnitCode:null;
|
||||
newDataInTemp.Value3 = iso.ISO_IsoNo;
|
||||
newDataInTemp.Value4 = item.Value<string>("label");
|
||||
newDataInTemp.Value46 = item.Value<string>("x");
|
||||
newDataInTemp.Value47 = item.Value<string>("y");
|
||||
newDataInTemp.Value48 = item.Value<string>("x2");
|
||||
newDataInTemp.Value49 = item.Value<string>("y2");
|
||||
//newDataInTemp.Value4 = pds.Rows[i][3].ToString().Trim();//焊口号
|
||||
//newDataInTemp.Value5 = pds.Rows[i][4].ToString().Trim();//材质类型代号
|
||||
//newDataInTemp.Value6 = pds.Rows[i][5].ToString().Trim();//材质1代号
|
||||
//newDataInTemp.Value7 = pds.Rows[i][6].ToString().Trim();//材质2代号
|
||||
//newDataInTemp.Value8 = pds.Rows[i][7].ToString().Trim();//材料1
|
||||
//newDataInTemp.Value9 = pds.Rows[i][8].ToString().Trim();//材料2
|
||||
//newDataInTemp.Value10 = pds.Rows[i][9].ToString().Trim();//探伤比例代号
|
||||
//newDataInTemp.Value11 = pds.Rows[i][10].ToString().Trim();//焊缝类型代号
|
||||
//newDataInTemp.Value12 = pds.Rows[i][11].ToString().Trim();//焊接区域
|
||||
//newDataInTemp.Value13 = pds.Rows[i][12].ToString().Trim();//焊口属性
|
||||
//newDataInTemp.Value14 = pds.Rows[i][13].ToString().Trim();//达因数
|
||||
//newDataInTemp.Value15 = pds.Rows[i][14].ToString().Trim();//规格
|
||||
//newDataInTemp.Value16 = pds.Rows[i][15].ToString().Trim();//壁厚
|
||||
//newDataInTemp.Value17 = pds.Rows[i][16].ToString().Trim();//焊接方法代码
|
||||
//newDataInTemp.Value18 = pds.Rows[i][17].ToString().Trim();//试验压力
|
||||
//newDataInTemp.Value19 = pds.Rows[i][18].ToString().Trim();//焊条代号
|
||||
//newDataInTemp.Value20 = pds.Rows[i][19].ToString().Trim();//焊丝代号
|
||||
//newDataInTemp.Value21 = pds.Rows[i][20].ToString().Trim();//介质代号
|
||||
//newDataInTemp.Value22 = pds.Rows[i][21].ToString().Trim();//单线图号
|
||||
//newDataInTemp.Value23 = pds.Rows[i][22].ToString().Trim();//设计压力
|
||||
//newDataInTemp.Value24 = pds.Rows[i][23].ToString().Trim();//设计温度
|
||||
//newDataInTemp.Value25 = pds.Rows[i][24].ToString().Trim();//坡口代号
|
||||
//newDataInTemp.Value26 = pds.Rows[i][25].ToString().Trim();//管线等级代号
|
||||
//newDataInTemp.Value27 = pds.Rows[i][26].ToString().Trim(); //组件一代号
|
||||
//newDataInTemp.Value28 = pds.Rows[i][27].ToString().Trim();//组件二代号
|
||||
//newDataInTemp.Value29 = pds.Rows[i][28].ToString().Trim();//炉批号一
|
||||
//newDataInTemp.Value30 = pds.Rows[i][29].ToString().Trim();//炉批号二
|
||||
//newDataInTemp.Value31 = pds.Rows[i][30].ToString().Trim();//所属管段
|
||||
//newDataInTemp.Value32 = pds.Rows[i][31].ToString().Trim();//预热温度
|
||||
//newDataInTemp.Value33 = pds.Rows[i][32].ToString().Trim();//是否需热处理(是,否)
|
||||
//newDataInTemp.Value34 = pds.Rows[i][33].ToString().Trim();//热处理编号
|
||||
//newDataInTemp.Value35 = pds.Rows[i][34].ToString().Trim();//硬度检测比例(数值)
|
||||
//newDataInTemp.Value38 = pds.Rows[i][37].ToString().Trim();//外径
|
||||
//newDataInTemp.Value39 = pds.Rows[i][36].ToString().Trim();//焊接位置(1G/2G/3G/4G/5G/6G)
|
||||
//newDataInTemp.Value40 = pds.Rows[i][35].ToString().Trim();//焊接气体保护
|
||||
//newDataInTemp.Value41 = pds.Rows[i][38].ToString().Trim();//是否非标(是/否)
|
||||
//newDataInTemp.Value42 = pds.Rows[i][39].ToString().Trim();//壁板号
|
||||
//newDataInTemp.Value43 = pds.Rows[i][40].ToString().Trim();//延长米
|
||||
//newDataInTemp.Value44 = pds.Rows[i][41].ToString().Trim();//管道长度
|
||||
//newDataInTemp.Value45 = pds.Rows[i][42].ToString().Trim();//管道类别号
|
||||
|
||||
newDataInTempList.Add(newDataInTemp);
|
||||
}
|
||||
}
|
||||
|
|
@ -880,7 +865,7 @@ namespace FineUIPro.Web.HJGL.JoinMarking
|
|||
{ ////先删除临时表中 该人员以前导入的数据
|
||||
BLL.DataInTempService.DeleteDataInTempByProjectIdUserId(this.CurrUser.LoginProjectId, this.CurrUser.UserId, this.IsPDMS);
|
||||
this.BindGrid();
|
||||
ShowNotify(Resources.Lan.T_REST_ASPXCS_373, MessageBoxIcon.Success);
|
||||
ShowNotify("删除成功!", MessageBoxIcon.Success);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,8 @@
|
|||
using BLL;
|
||||
using BLL.Common;
|
||||
using FineUIPro.Web.HJGL.HotProcessHard;
|
||||
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using NPOI.POIFS.Properties;
|
||||
using RestSharp.Serialization.Json;
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
|
|
@ -80,24 +78,24 @@ namespace FineUIPro.Web.HJGL.JoinMarking
|
|||
|
||||
ISO_ID = Request.Params["ISO_ID"];
|
||||
FileId = Request.Params["FileId"];
|
||||
URL = Funs.SGGLUrl + Request.Params["pdfurl"];
|
||||
URL = Funs.HJGLUrl + Request.Params["pdfurl"];
|
||||
|
||||
var iso = Funs.DB.PW_IsoInfo.FirstOrDefault(x => x.ISO_ID == ISO_ID);
|
||||
var iso = Funs.DB.HJGL_PW_IsoInfo.FirstOrDefault(x => x.ISO_ID == ISO_ID);
|
||||
if (iso != null)
|
||||
{
|
||||
UnitName = Funs.DB.Base_Unit.FirstOrDefault(x => x.UnitId == iso.UnitId)?.UnitName;
|
||||
UnitName = Funs.DB.Base_Unit.FirstOrDefault(x => x.UnitId == iso.BSU_ID)?.UnitName;
|
||||
}
|
||||
|
||||
var jotids = Funs.DB.PW_JointInfo.Where(x => x.ISO_ID == ISO_ID && x.AttachSourceId == FileId).Select(x => x.JOT_ID).ToList();
|
||||
var jotids = Funs.DB.HJGL_PW_JointInfo.Where(x => x.ISO_ID == ISO_ID && x.AttachSourceId == FileId).Select(x => x.JOT_ID).ToList();
|
||||
|
||||
string sqlData = @"select a.JOT_ID ,a.JOT_JointNo,c.WED_Code,JOT_Location,b.JOT_WeldDate ,'/' DetectionTypeCode ,'/' IsRepair,'/' IsHotProcess,x,y,x2,y2
|
||||
,(case a.JOT_JointStatus
|
||||
when '100' then '正常'
|
||||
when '102' then '扩透'
|
||||
when '101' then '点口'
|
||||
when '104' then '已切除' end) as JOT_JointStatus from PW_JointInfo a
|
||||
left join BO_WeldReportMain b on a.DReportID=b.DReportID
|
||||
left join bs_welder AS c ON a.JOT_FloorWelder = c.wed_id
|
||||
when '104' then '已切除' end) as JOT_JointStatus from HJGL_PW_JointInfo a
|
||||
left join HJGL_BO_WeldReportMain b on a.DReportID=b.DReportID
|
||||
left join HJGL_bs_welder AS c ON a.JOT_FloorWelder = c.wed_id
|
||||
WHERE a.ProjectId = @ProjectId and a.JOT_ID in ('" + string.Join("','", jotids) + "') ";
|
||||
SqlParameter[] parameter1 = new SqlParameter[] { new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId) };
|
||||
DataTable tb1 = SQLHelper.GetDataTableRunText(sqlData, parameter1);
|
||||
|
|
|
|||
|
|
@ -124,6 +124,10 @@
|
|||
<f:RenderField HeaderText="备注" ColumnID="ISO_Remark" DataField="ISO_Remark" SortField="ISO_Remark"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
|
||||
</f:RenderField>
|
||||
<f:WindowField TextAlign="Left" Width="90px" WindowID="Window4" HeaderText="焊口标注"
|
||||
Text="焊口标注" ToolTip="焊口标注"
|
||||
DataIFrameUrlFields="ISO_ID" DataIFrameUrlFormatString="../JoinMarking/JoinMarking.aspx?ISO_ID={0}"
|
||||
HeaderTextAlign="Center" />
|
||||
<f:TemplateField HeaderText="编辑CAD" Width="80px">
|
||||
<ItemTemplate>
|
||||
<a href='<%# "../../FileManage/editCAD.aspx?officetype=1&url=" + Eval("ISO_ID") %>'
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
<FineUIPro DebugMode="false" Theme="Cupertino"/>
|
||||
<appSettings>
|
||||
<!--连接字符串-->
|
||||
<add key="ConnectionString" value="Server=.\SQL2022;Database=HJGLDB_DS;Integrated Security=False;User ID=sa;Password=1111;MultipleActiveResultSets=true;Max Pool Size = 1000;Connect Timeout=1200"/>
|
||||
<add key="ConnectionString" value="Server=.\MSSQLSERVER2022;Database=HJGLDB_DS;Integrated Security=False;User ID=sa;Password=1111;MultipleActiveResultSets=true;Max Pool Size = 1000;Connect Timeout=1200"/>
|
||||
<!--系统名称-->
|
||||
<add key="SystemName" value="诺必达焊接管理系统"/>
|
||||
<add key="ChartImageHandler" value="storage=file;timeout=20;url=~/Images/;"/>
|
||||
|
|
|
|||
|
|
@ -48670,6 +48670,16 @@ namespace Model
|
|||
|
||||
private System.Nullable<bool> _IsGold;
|
||||
|
||||
private string _AttachSourceId;
|
||||
|
||||
private string _X;
|
||||
|
||||
private string _Y;
|
||||
|
||||
private string _X2;
|
||||
|
||||
private string _Y2;
|
||||
|
||||
private EntityRef<HJGL_BO_BatchDetail> _HJGL_BO_BatchDetail;
|
||||
|
||||
private EntitySet<HJGL_BO_PreWeldReportMain> _HJGL_BO_PreWeldReportMain;
|
||||
|
|
@ -48924,6 +48934,16 @@ namespace Model
|
|||
partial void OnJot_WeldingDateChanged();
|
||||
partial void OnIsGoldChanging(System.Nullable<bool> value);
|
||||
partial void OnIsGoldChanged();
|
||||
partial void OnAttachSourceIdChanging(string value);
|
||||
partial void OnAttachSourceIdChanged();
|
||||
partial void OnXChanging(string value);
|
||||
partial void OnXChanged();
|
||||
partial void OnYChanging(string value);
|
||||
partial void OnYChanged();
|
||||
partial void OnX2Changing(string value);
|
||||
partial void OnX2Changed();
|
||||
partial void OnY2Changing(string value);
|
||||
partial void OnY2Changed();
|
||||
#endregion
|
||||
|
||||
public HJGL_PW_JointInfo()
|
||||
|
|
@ -50936,6 +50956,106 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AttachSourceId", DbType="NVarChar(50)")]
|
||||
public string AttachSourceId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._AttachSourceId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._AttachSourceId != value))
|
||||
{
|
||||
this.OnAttachSourceIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._AttachSourceId = value;
|
||||
this.SendPropertyChanged("AttachSourceId");
|
||||
this.OnAttachSourceIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="x", Storage="_X", DbType="NVarChar(50)")]
|
||||
public string X
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._X;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._X != value))
|
||||
{
|
||||
this.OnXChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._X = value;
|
||||
this.SendPropertyChanged("X");
|
||||
this.OnXChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="y", Storage="_Y", DbType="NVarChar(50)")]
|
||||
public string Y
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Y;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Y != value))
|
||||
{
|
||||
this.OnYChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Y = value;
|
||||
this.SendPropertyChanged("Y");
|
||||
this.OnYChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="x2", Storage="_X2", DbType="NVarChar(50)")]
|
||||
public string X2
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._X2;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._X2 != value))
|
||||
{
|
||||
this.OnX2Changing(value);
|
||||
this.SendPropertyChanging();
|
||||
this._X2 = value;
|
||||
this.SendPropertyChanged("X2");
|
||||
this.OnX2Changed();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="y2", Storage="_Y2", DbType="NVarChar(1)")]
|
||||
public string Y2
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Y2;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Y2 != value))
|
||||
{
|
||||
this.OnY2Changing(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Y2 = value;
|
||||
this.SendPropertyChanged("Y2");
|
||||
this.OnY2Changed();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_HJGL_BO_BatchDetail_HJGL_PW_JointInfo", Storage="_HJGL_BO_BatchDetail", ThisKey="JOT_ID", OtherKey="JOT_ID", IsUnique=true, IsForeignKey=false, DeleteRule="NO ACTION")]
|
||||
public HJGL_BO_BatchDetail HJGL_BO_BatchDetail
|
||||
{
|
||||
|
|
@ -131797,6 +131917,8 @@ namespace Model
|
|||
|
||||
private EntityRef<Base_Project> _Base_Project;
|
||||
|
||||
private EntityRef<Weld_WeldInfo> _Weld_WeldInfo;
|
||||
|
||||
#region 可扩展性方法定义
|
||||
partial void OnLoaded();
|
||||
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
||||
|
|
@ -131818,6 +131940,7 @@ namespace Model
|
|||
public Weld_ProjectPlan()
|
||||
{
|
||||
this._Base_Project = default(EntityRef<Base_Project>);
|
||||
this._Weld_WeldInfo = default(EntityRef<Weld_WeldInfo>);
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
|
|
@ -131876,6 +131999,10 @@ namespace Model
|
|||
{
|
||||
if ((this._WeldId != value))
|
||||
{
|
||||
if (this._Weld_WeldInfo.HasLoadedOrAssignedValue)
|
||||
{
|
||||
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
|
||||
}
|
||||
this.OnWeldIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._WeldId = value;
|
||||
|
|
@ -131979,6 +132106,40 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Weld_ProjectPlan_Weld_WeldInfo", Storage="_Weld_WeldInfo", ThisKey="WeldId", OtherKey="WeldId", IsForeignKey=true)]
|
||||
public Weld_WeldInfo Weld_WeldInfo
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Weld_WeldInfo.Entity;
|
||||
}
|
||||
set
|
||||
{
|
||||
Weld_WeldInfo previousValue = this._Weld_WeldInfo.Entity;
|
||||
if (((previousValue != value)
|
||||
|| (this._Weld_WeldInfo.HasLoadedOrAssignedValue == false)))
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
if ((previousValue != null))
|
||||
{
|
||||
this._Weld_WeldInfo.Entity = null;
|
||||
previousValue.Weld_ProjectPlan.Remove(this);
|
||||
}
|
||||
this._Weld_WeldInfo.Entity = value;
|
||||
if ((value != null))
|
||||
{
|
||||
value.Weld_ProjectPlan.Add(this);
|
||||
this._WeldId = value.WeldId;
|
||||
}
|
||||
else
|
||||
{
|
||||
this._WeldId = default(string);
|
||||
}
|
||||
this.SendPropertyChanged("Weld_WeldInfo");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public event PropertyChangingEventHandler PropertyChanging;
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
|
@ -132232,6 +132393,8 @@ namespace Model
|
|||
|
||||
private EntityRef<Weld_UsingPlan> _Weld_UsingPlan;
|
||||
|
||||
private EntityRef<Weld_WeldInfo> _Weld_WeldInfo;
|
||||
|
||||
#region 可扩展性方法定义
|
||||
partial void OnLoaded();
|
||||
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
||||
|
|
@ -132280,6 +132443,7 @@ namespace Model
|
|||
this._Weld_Storeman = default(EntityRef<Weld_Storeman>);
|
||||
this._Weld_UsingMat = default(EntityRef<Weld_UsingMat>);
|
||||
this._Weld_UsingPlan = default(EntityRef<Weld_UsingPlan>);
|
||||
this._Weld_WeldInfo = default(EntityRef<Weld_WeldInfo>);
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
|
|
@ -132358,6 +132522,10 @@ namespace Model
|
|||
{
|
||||
if ((this._WeldId != value))
|
||||
{
|
||||
if (this._Weld_WeldInfo.HasLoadedOrAssignedValue)
|
||||
{
|
||||
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
|
||||
}
|
||||
this.OnWeldIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._WeldId = value;
|
||||
|
|
@ -132795,6 +132963,40 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Weld_RecycleMat_Weld_WeldInfo", Storage="_Weld_WeldInfo", ThisKey="WeldId", OtherKey="WeldId", IsForeignKey=true)]
|
||||
public Weld_WeldInfo Weld_WeldInfo
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Weld_WeldInfo.Entity;
|
||||
}
|
||||
set
|
||||
{
|
||||
Weld_WeldInfo previousValue = this._Weld_WeldInfo.Entity;
|
||||
if (((previousValue != value)
|
||||
|| (this._Weld_WeldInfo.HasLoadedOrAssignedValue == false)))
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
if ((previousValue != null))
|
||||
{
|
||||
this._Weld_WeldInfo.Entity = null;
|
||||
previousValue.Weld_RecycleMat.Remove(this);
|
||||
}
|
||||
this._Weld_WeldInfo.Entity = value;
|
||||
if ((value != null))
|
||||
{
|
||||
value.Weld_RecycleMat.Add(this);
|
||||
this._WeldId = value.WeldId;
|
||||
}
|
||||
else
|
||||
{
|
||||
this._WeldId = default(string);
|
||||
}
|
||||
this.SendPropertyChanged("Weld_WeldInfo");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public event PropertyChangingEventHandler PropertyChanging;
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
|
@ -132858,6 +133060,8 @@ namespace Model
|
|||
|
||||
private EntityRef<Weld_UsingPlan> _Weld_UsingPlan;
|
||||
|
||||
private EntityRef<Weld_WeldInfo> _Weld_WeldInfo;
|
||||
|
||||
#region 可扩展性方法定义
|
||||
partial void OnLoaded();
|
||||
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
||||
|
|
@ -132898,6 +133102,7 @@ namespace Model
|
|||
this._Weld_Storeman = default(EntityRef<Weld_Storeman>);
|
||||
this._Weld_UsingMat = default(EntityRef<Weld_UsingMat>);
|
||||
this._Weld_UsingPlan = default(EntityRef<Weld_UsingPlan>);
|
||||
this._Weld_WeldInfo = default(EntityRef<Weld_WeldInfo>);
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
|
|
@ -132976,6 +133181,10 @@ namespace Model
|
|||
{
|
||||
if ((this._WeldId != value))
|
||||
{
|
||||
if (this._Weld_WeldInfo.HasLoadedOrAssignedValue)
|
||||
{
|
||||
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
|
||||
}
|
||||
this.OnWeldIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._WeldId = value;
|
||||
|
|
@ -133333,6 +133542,40 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Weld_RecycleMatTop_Weld_WeldInfo", Storage="_Weld_WeldInfo", ThisKey="WeldId", OtherKey="WeldId", IsForeignKey=true)]
|
||||
public Weld_WeldInfo Weld_WeldInfo
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Weld_WeldInfo.Entity;
|
||||
}
|
||||
set
|
||||
{
|
||||
Weld_WeldInfo previousValue = this._Weld_WeldInfo.Entity;
|
||||
if (((previousValue != value)
|
||||
|| (this._Weld_WeldInfo.HasLoadedOrAssignedValue == false)))
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
if ((previousValue != null))
|
||||
{
|
||||
this._Weld_WeldInfo.Entity = null;
|
||||
previousValue.Weld_RecycleMatTop.Remove(this);
|
||||
}
|
||||
this._Weld_WeldInfo.Entity = value;
|
||||
if ((value != null))
|
||||
{
|
||||
value.Weld_RecycleMatTop.Add(this);
|
||||
this._WeldId = value.WeldId;
|
||||
}
|
||||
else
|
||||
{
|
||||
this._WeldId = default(string);
|
||||
}
|
||||
this.SendPropertyChanged("Weld_WeldInfo");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public event PropertyChangingEventHandler PropertyChanging;
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
|
@ -134253,6 +134496,8 @@ namespace Model
|
|||
|
||||
private System.Nullable<decimal> _Weight;
|
||||
|
||||
private EntityRef<Weld_WeldInfo> _Weld_WeldInfo;
|
||||
|
||||
#region 可扩展性方法定义
|
||||
partial void OnLoaded();
|
||||
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
||||
|
|
@ -134269,6 +134514,7 @@ namespace Model
|
|||
|
||||
public Weld_StockInit()
|
||||
{
|
||||
this._Weld_WeldInfo = default(EntityRef<Weld_WeldInfo>);
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
|
|
@ -134303,6 +134549,10 @@ namespace Model
|
|||
{
|
||||
if ((this._WeldId != value))
|
||||
{
|
||||
if (this._Weld_WeldInfo.HasLoadedOrAssignedValue)
|
||||
{
|
||||
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
|
||||
}
|
||||
this.OnWeldIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._WeldId = value;
|
||||
|
|
@ -134352,6 +134602,40 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Weld_StockInit_Weld_WeldInfo", Storage="_Weld_WeldInfo", ThisKey="WeldId", OtherKey="WeldId", IsForeignKey=true)]
|
||||
public Weld_WeldInfo Weld_WeldInfo
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Weld_WeldInfo.Entity;
|
||||
}
|
||||
set
|
||||
{
|
||||
Weld_WeldInfo previousValue = this._Weld_WeldInfo.Entity;
|
||||
if (((previousValue != value)
|
||||
|| (this._Weld_WeldInfo.HasLoadedOrAssignedValue == false)))
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
if ((previousValue != null))
|
||||
{
|
||||
this._Weld_WeldInfo.Entity = null;
|
||||
previousValue.Weld_StockInit.Remove(this);
|
||||
}
|
||||
this._Weld_WeldInfo.Entity = value;
|
||||
if ((value != null))
|
||||
{
|
||||
value.Weld_StockInit.Add(this);
|
||||
this._WeldId = value.WeldId;
|
||||
}
|
||||
else
|
||||
{
|
||||
this._WeldId = default(string);
|
||||
}
|
||||
this.SendPropertyChanged("Weld_WeldInfo");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public event PropertyChangingEventHandler PropertyChanging;
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
|
@ -135262,6 +135546,8 @@ namespace Model
|
|||
|
||||
private EntityRef<Weld_UsingPlan> _Weld_UsingPlan;
|
||||
|
||||
private EntityRef<Weld_WeldInfo> _Weld_WeldInfo;
|
||||
|
||||
#region 可扩展性方法定义
|
||||
partial void OnLoaded();
|
||||
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
||||
|
|
@ -135317,6 +135603,7 @@ namespace Model
|
|||
this._Base_Project = default(EntityRef<Base_Project>);
|
||||
this._Weld_Storeman = default(EntityRef<Weld_Storeman>);
|
||||
this._Weld_UsingPlan = default(EntityRef<Weld_UsingPlan>);
|
||||
this._Weld_WeldInfo = default(EntityRef<Weld_WeldInfo>);
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
|
|
@ -135395,6 +135682,10 @@ namespace Model
|
|||
{
|
||||
if ((this._WeldId != value))
|
||||
{
|
||||
if (this._Weld_WeldInfo.HasLoadedOrAssignedValue)
|
||||
{
|
||||
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
|
||||
}
|
||||
this.OnWeldIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._WeldId = value;
|
||||
|
|
@ -135880,6 +136171,40 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Weld_UsingMat_Weld_WeldInfo", Storage="_Weld_WeldInfo", ThisKey="WeldId", OtherKey="WeldId", IsForeignKey=true)]
|
||||
public Weld_WeldInfo Weld_WeldInfo
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Weld_WeldInfo.Entity;
|
||||
}
|
||||
set
|
||||
{
|
||||
Weld_WeldInfo previousValue = this._Weld_WeldInfo.Entity;
|
||||
if (((previousValue != value)
|
||||
|| (this._Weld_WeldInfo.HasLoadedOrAssignedValue == false)))
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
if ((previousValue != null))
|
||||
{
|
||||
this._Weld_WeldInfo.Entity = null;
|
||||
previousValue.Weld_UsingMat.Remove(this);
|
||||
}
|
||||
this._Weld_WeldInfo.Entity = value;
|
||||
if ((value != null))
|
||||
{
|
||||
value.Weld_UsingMat.Add(this);
|
||||
this._WeldId = value.WeldId;
|
||||
}
|
||||
else
|
||||
{
|
||||
this._WeldId = default(string);
|
||||
}
|
||||
this.SendPropertyChanged("Weld_WeldInfo");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public event PropertyChangingEventHandler PropertyChanging;
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
|
@ -135989,6 +136314,8 @@ namespace Model
|
|||
|
||||
private EntitySet<Weld_UsingMat> _Weld_UsingMat;
|
||||
|
||||
private EntityRef<Weld_WeldInfo> _Weld_WeldInfo;
|
||||
|
||||
#region 可扩展性方法定义
|
||||
partial void OnLoaded();
|
||||
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
||||
|
|
@ -136052,6 +136379,7 @@ namespace Model
|
|||
this._Weld_RecycleMat = new EntitySet<Weld_RecycleMat>(new Action<Weld_RecycleMat>(this.attach_Weld_RecycleMat), new Action<Weld_RecycleMat>(this.detach_Weld_RecycleMat));
|
||||
this._Weld_RecycleMatTop = new EntitySet<Weld_RecycleMatTop>(new Action<Weld_RecycleMatTop>(this.attach_Weld_RecycleMatTop), new Action<Weld_RecycleMatTop>(this.detach_Weld_RecycleMatTop));
|
||||
this._Weld_UsingMat = new EntitySet<Weld_UsingMat>(new Action<Weld_UsingMat>(this.attach_Weld_UsingMat), new Action<Weld_UsingMat>(this.detach_Weld_UsingMat));
|
||||
this._Weld_WeldInfo = default(EntityRef<Weld_WeldInfo>);
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
|
|
@ -136086,6 +136414,10 @@ namespace Model
|
|||
{
|
||||
if ((this._WeldId != value))
|
||||
{
|
||||
if (this._Weld_WeldInfo.HasLoadedOrAssignedValue)
|
||||
{
|
||||
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
|
||||
}
|
||||
this.OnWeldIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._WeldId = value;
|
||||
|
|
@ -136614,6 +136946,40 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Weld_UsingPlan_Weld_WeldInfo", Storage="_Weld_WeldInfo", ThisKey="WeldId", OtherKey="WeldId", IsForeignKey=true)]
|
||||
public Weld_WeldInfo Weld_WeldInfo
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Weld_WeldInfo.Entity;
|
||||
}
|
||||
set
|
||||
{
|
||||
Weld_WeldInfo previousValue = this._Weld_WeldInfo.Entity;
|
||||
if (((previousValue != value)
|
||||
|| (this._Weld_WeldInfo.HasLoadedOrAssignedValue == false)))
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
if ((previousValue != null))
|
||||
{
|
||||
this._Weld_WeldInfo.Entity = null;
|
||||
previousValue.Weld_UsingPlan.Remove(this);
|
||||
}
|
||||
this._Weld_WeldInfo.Entity = value;
|
||||
if ((value != null))
|
||||
{
|
||||
value.Weld_UsingPlan.Add(this);
|
||||
this._WeldId = value.WeldId;
|
||||
}
|
||||
else
|
||||
{
|
||||
this._WeldId = default(string);
|
||||
}
|
||||
this.SendPropertyChanged("Weld_WeldInfo");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public event PropertyChangingEventHandler PropertyChanging;
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
|
@ -136903,7 +137269,7 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SteelType", DbType="NVarChar(50)")]
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SteelType", DbType="NVarChar(10)")]
|
||||
public string SteelType
|
||||
{
|
||||
get
|
||||
|
|
@ -137284,6 +137650,18 @@ namespace Model
|
|||
|
||||
private System.Nullable<bool> _IsLock;
|
||||
|
||||
private EntitySet<Weld_ProjectPlan> _Weld_ProjectPlan;
|
||||
|
||||
private EntitySet<Weld_RecycleMat> _Weld_RecycleMat;
|
||||
|
||||
private EntitySet<Weld_RecycleMatTop> _Weld_RecycleMatTop;
|
||||
|
||||
private EntitySet<Weld_StockInit> _Weld_StockInit;
|
||||
|
||||
private EntitySet<Weld_UsingMat> _Weld_UsingMat;
|
||||
|
||||
private EntitySet<Weld_UsingPlan> _Weld_UsingPlan;
|
||||
|
||||
private EntityRef<Weld_WeldType> _Weld_WeldType;
|
||||
|
||||
#region 可扩展性方法定义
|
||||
|
|
@ -137316,6 +137694,12 @@ namespace Model
|
|||
|
||||
public Weld_WeldInfo()
|
||||
{
|
||||
this._Weld_ProjectPlan = new EntitySet<Weld_ProjectPlan>(new Action<Weld_ProjectPlan>(this.attach_Weld_ProjectPlan), new Action<Weld_ProjectPlan>(this.detach_Weld_ProjectPlan));
|
||||
this._Weld_RecycleMat = new EntitySet<Weld_RecycleMat>(new Action<Weld_RecycleMat>(this.attach_Weld_RecycleMat), new Action<Weld_RecycleMat>(this.detach_Weld_RecycleMat));
|
||||
this._Weld_RecycleMatTop = new EntitySet<Weld_RecycleMatTop>(new Action<Weld_RecycleMatTop>(this.attach_Weld_RecycleMatTop), new Action<Weld_RecycleMatTop>(this.detach_Weld_RecycleMatTop));
|
||||
this._Weld_StockInit = new EntitySet<Weld_StockInit>(new Action<Weld_StockInit>(this.attach_Weld_StockInit), new Action<Weld_StockInit>(this.detach_Weld_StockInit));
|
||||
this._Weld_UsingMat = new EntitySet<Weld_UsingMat>(new Action<Weld_UsingMat>(this.attach_Weld_UsingMat), new Action<Weld_UsingMat>(this.detach_Weld_UsingMat));
|
||||
this._Weld_UsingPlan = new EntitySet<Weld_UsingPlan>(new Action<Weld_UsingPlan>(this.attach_Weld_UsingPlan), new Action<Weld_UsingPlan>(this.detach_Weld_UsingPlan));
|
||||
this._Weld_WeldType = default(EntityRef<Weld_WeldType>);
|
||||
OnCreated();
|
||||
}
|
||||
|
|
@ -137464,7 +137848,7 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SteelType", DbType="NVarChar(50)")]
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SteelType", DbType="NVarChar(10)")]
|
||||
public string SteelType
|
||||
{
|
||||
get
|
||||
|
|
@ -137544,6 +137928,84 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Weld_ProjectPlan_Weld_WeldInfo", Storage="_Weld_ProjectPlan", ThisKey="WeldId", OtherKey="WeldId", DeleteRule="NO ACTION")]
|
||||
public EntitySet<Weld_ProjectPlan> Weld_ProjectPlan
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Weld_ProjectPlan;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._Weld_ProjectPlan.Assign(value);
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Weld_RecycleMat_Weld_WeldInfo", Storage="_Weld_RecycleMat", ThisKey="WeldId", OtherKey="WeldId", DeleteRule="NO ACTION")]
|
||||
public EntitySet<Weld_RecycleMat> Weld_RecycleMat
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Weld_RecycleMat;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._Weld_RecycleMat.Assign(value);
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Weld_RecycleMatTop_Weld_WeldInfo", Storage="_Weld_RecycleMatTop", ThisKey="WeldId", OtherKey="WeldId", DeleteRule="NO ACTION")]
|
||||
public EntitySet<Weld_RecycleMatTop> Weld_RecycleMatTop
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Weld_RecycleMatTop;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._Weld_RecycleMatTop.Assign(value);
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Weld_StockInit_Weld_WeldInfo", Storage="_Weld_StockInit", ThisKey="WeldId", OtherKey="WeldId", DeleteRule="NO ACTION")]
|
||||
public EntitySet<Weld_StockInit> Weld_StockInit
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Weld_StockInit;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._Weld_StockInit.Assign(value);
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Weld_UsingMat_Weld_WeldInfo", Storage="_Weld_UsingMat", ThisKey="WeldId", OtherKey="WeldId", DeleteRule="NO ACTION")]
|
||||
public EntitySet<Weld_UsingMat> Weld_UsingMat
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Weld_UsingMat;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._Weld_UsingMat.Assign(value);
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Weld_UsingPlan_Weld_WeldInfo", Storage="_Weld_UsingPlan", ThisKey="WeldId", OtherKey="WeldId", DeleteRule="NO ACTION")]
|
||||
public EntitySet<Weld_UsingPlan> Weld_UsingPlan
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Weld_UsingPlan;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._Weld_UsingPlan.Assign(value);
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Weld_WeldInfo_Weld_WeldType", Storage="_Weld_WeldType", ThisKey="WeldTypeId", OtherKey="WeldTypeId", IsForeignKey=true)]
|
||||
public Weld_WeldType Weld_WeldType
|
||||
{
|
||||
|
|
@ -137597,6 +138059,78 @@ namespace Model
|
|||
this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
||||
}
|
||||
}
|
||||
|
||||
private void attach_Weld_ProjectPlan(Weld_ProjectPlan entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Weld_WeldInfo = this;
|
||||
}
|
||||
|
||||
private void detach_Weld_ProjectPlan(Weld_ProjectPlan entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Weld_WeldInfo = null;
|
||||
}
|
||||
|
||||
private void attach_Weld_RecycleMat(Weld_RecycleMat entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Weld_WeldInfo = this;
|
||||
}
|
||||
|
||||
private void detach_Weld_RecycleMat(Weld_RecycleMat entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Weld_WeldInfo = null;
|
||||
}
|
||||
|
||||
private void attach_Weld_RecycleMatTop(Weld_RecycleMatTop entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Weld_WeldInfo = this;
|
||||
}
|
||||
|
||||
private void detach_Weld_RecycleMatTop(Weld_RecycleMatTop entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Weld_WeldInfo = null;
|
||||
}
|
||||
|
||||
private void attach_Weld_StockInit(Weld_StockInit entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Weld_WeldInfo = this;
|
||||
}
|
||||
|
||||
private void detach_Weld_StockInit(Weld_StockInit entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Weld_WeldInfo = null;
|
||||
}
|
||||
|
||||
private void attach_Weld_UsingMat(Weld_UsingMat entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Weld_WeldInfo = this;
|
||||
}
|
||||
|
||||
private void detach_Weld_UsingMat(Weld_UsingMat entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Weld_WeldInfo = null;
|
||||
}
|
||||
|
||||
private void attach_Weld_UsingPlan(Weld_UsingPlan entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Weld_WeldInfo = this;
|
||||
}
|
||||
|
||||
private void detach_Weld_UsingPlan(Weld_UsingPlan entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Weld_WeldInfo = null;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Weld_WeldType")]
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
|
||||
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
|
||||
<NameOfLastUsedPublishProfile>FolderProfile</NameOfLastUsedPublishProfile>
|
||||
<UseIISExpress>true</UseIISExpress>
|
||||
<Use64BitIISExpress />
|
||||
|
|
|
|||
Loading…
Reference in New Issue