20260428 批量修改焊口属性
This commit is contained in:
parent
fd061665d8
commit
e4111cee3c
|
|
@ -1211,6 +1211,7 @@
|
||||||
<Content Include="HJGL\TrustManage\TrustManageItemEdit.aspx" />
|
<Content Include="HJGL\TrustManage\TrustManageItemEdit.aspx" />
|
||||||
<Content Include="HJGL\WeldingManage\CompleteReportDateEdit.aspx" />
|
<Content Include="HJGL\WeldingManage\CompleteReportDateEdit.aspx" />
|
||||||
<Content Include="HJGL\WeldingManage\DetectionPoint.aspx" />
|
<Content Include="HJGL\WeldingManage\DetectionPoint.aspx" />
|
||||||
|
<Content Include="HJGL\WeldingManage\JointInfoBatchUpdate.aspx" />
|
||||||
<Content Include="HJGL\WeldingManage\JointInfoCopy.aspx" />
|
<Content Include="HJGL\WeldingManage\JointInfoCopy.aspx" />
|
||||||
<Content Include="HJGL\WeldingManage\JointInfoOut.aspx" />
|
<Content Include="HJGL\WeldingManage\JointInfoOut.aspx" />
|
||||||
<Content Include="HJGL\WeldingManage\IsoInfoFrame.aspx" />
|
<Content Include="HJGL\WeldingManage\IsoInfoFrame.aspx" />
|
||||||
|
|
@ -6270,6 +6271,13 @@
|
||||||
<Compile Include="HJGL\WeldingManage\DetectionPoint.aspx.designer.cs">
|
<Compile Include="HJGL\WeldingManage\DetectionPoint.aspx.designer.cs">
|
||||||
<DependentUpon>DetectionPoint.aspx</DependentUpon>
|
<DependentUpon>DetectionPoint.aspx</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="HJGL\WeldingManage\JointInfoBatchUpdate.aspx.cs">
|
||||||
|
<DependentUpon>JointInfoBatchUpdate.aspx</DependentUpon>
|
||||||
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="HJGL\WeldingManage\JointInfoBatchUpdate.aspx.designer.cs">
|
||||||
|
<DependentUpon>JointInfoBatchUpdate.aspx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="HJGL\WeldingManage\JointInfoCopy.aspx.cs">
|
<Compile Include="HJGL\WeldingManage\JointInfoCopy.aspx.cs">
|
||||||
<DependentUpon>JointInfoCopy.aspx</DependentUpon>
|
<DependentUpon>JointInfoCopy.aspx</DependentUpon>
|
||||||
<SubType>ASPXCodeBehind</SubType>
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
|
|
||||||
|
|
@ -62,15 +62,17 @@
|
||||||
<f:Label runat="server" Width="20px"></f:Label>
|
<f:Label runat="server" Width="20px"></f:Label>
|
||||||
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||||
</f:ToolbarFill>
|
</f:ToolbarFill>
|
||||||
<f:Button ID="btnNew" Text="增加" Icon="Add" runat="server" OnClick="btnNew_Click">
|
<f:Button ID="btnNew" Text="增加" ToolTip="增加" Icon="Add" runat="server" OnClick="btnNew_Click">
|
||||||
</f:Button>
|
</f:Button>
|
||||||
<f:Button ID="btnBatchAdd" Text="批量增加" Icon="TableAdd" runat="server" OnClick="btnBatchAdd_Click">
|
<f:Button ID="btnBatchAdd" Text="批量增加" ToolTip="批量增加" Icon="TableAdd" runat="server" OnClick="btnBatchAdd_Click">
|
||||||
</f:Button>
|
</f:Button>
|
||||||
<f:Button ID="btnBatchDel" Text="批量删除" Icon="Delete" runat="server" OnClick="btnBatchDel_Click">
|
<f:Button ID="btnBatchModify" Text="批量修改" ToolTip="批量修改焊口属性" Icon="TableAdd" runat="server" OnClick="btnBatchModify_Click">
|
||||||
</f:Button>
|
</f:Button>
|
||||||
<f:Button ID="btnOut" runat="server" Text="导出" Icon="FolderUp" OnClick="btnOut_Click">
|
<f:Button ID="btnBatchDel" Text="批量删除" ToolTip="批量删除" Icon="Delete" runat="server" OnClick="btnBatchDel_Click">
|
||||||
</f:Button>
|
</f:Button>
|
||||||
<f:Button ID="btnFileName" Text="文档名" Icon="TableEdit" runat="server" OnClick="btnFileName_Click">
|
<f:Button ID="btnOut" runat="server" Text="导出" ToolTip="导出" Icon="FolderUp" OnClick="btnOut_Click">
|
||||||
|
</f:Button>
|
||||||
|
<f:Button ID="btnFileName" Text="文档名" ToolTip="文档名" Icon="TableEdit" runat="server" OnClick="btnFileName_Click">
|
||||||
</f:Button>
|
</f:Button>
|
||||||
|
|
||||||
<f:HiddenField ID="hdColumn" runat="server"></f:HiddenField>
|
<f:HiddenField ID="hdColumn" runat="server"></f:HiddenField>
|
||||||
|
|
@ -373,6 +375,10 @@
|
||||||
Target="Parent" EnableResize="true" runat="server" IsModal="true" OnClose="Window8_Close"
|
Target="Parent" EnableResize="true" runat="server" IsModal="true" OnClose="Window8_Close"
|
||||||
Width="600px" Height="300px">
|
Width="600px" Height="300px">
|
||||||
</f:Window>
|
</f:Window>
|
||||||
|
<f:Window ID="Window9" Title="批量修改焊口属性" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||||
|
Target="top" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true"
|
||||||
|
Width="800px" Height="650px">
|
||||||
|
</f:Window>
|
||||||
|
|
||||||
<f:Menu ID="Menu1" runat="server">
|
<f:Menu ID="Menu1" runat="server">
|
||||||
<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" EnablePostBack="true"
|
<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" EnablePostBack="true"
|
||||||
|
|
|
||||||
|
|
@ -1441,7 +1441,32 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 批量修改焊口属性
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void btnBatchModify_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_JointInfoMenuId, Const.BtnModify))
|
||||||
|
{
|
||||||
|
var isoInfo = BLL.HJGL_PW_IsoInfoService.GetIsoInfoByIsoInfoId(tvControlItem.SelectedNodeID);
|
||||||
|
if (isoInfo != null)
|
||||||
|
{
|
||||||
|
PageContext.RegisterStartupScript(Window9.GetShowReference(String.Format("JointInfoBatchUpdate.aspx?ISO_ID={0}", this.tvControlItem.SelectedNodeID, "新增 - ")));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Alert.ShowInTop("请先选择管线!", MessageBoxIcon.Warning);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,10 +7,12 @@
|
||||||
// </自动生成>
|
// </自动生成>
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
namespace FineUIPro.Web.HJGL.WeldingManage {
|
namespace FineUIPro.Web.HJGL.WeldingManage
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
public partial class JointInfo {
|
public partial class JointInfo
|
||||||
|
{
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Head1 控件。
|
/// Head1 控件。
|
||||||
|
|
@ -174,6 +176,15 @@ namespace FineUIPro.Web.HJGL.WeldingManage {
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.Button btnBatchAdd;
|
protected global::FineUIPro.Button btnBatchAdd;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnBatchModify 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Button btnBatchModify;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// btnBatchDel 控件。
|
/// btnBatchDel 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -498,6 +509,15 @@ namespace FineUIPro.Web.HJGL.WeldingManage {
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.Window Window8;
|
protected global::FineUIPro.Window Window8;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Window9 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Window Window9;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Menu1 控件。
|
/// Menu1 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,96 @@
|
||||||
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="JointInfoBatchUpdate.aspx.cs" Inherits="FineUIPro.Web.HJGL.WeldingManage.JointInfoBatchUpdate" %>
|
||||||
|
|
||||||
|
<!DOCTYPE html>
|
||||||
|
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head runat="server">
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
|
<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="SimpleForm1" runat="server" />
|
||||||
|
<f:Form ID="SimpleForm1" ShowBorder="true" 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:Label ID="lbUnitName" Label="单位" runat="server" LabelWidth="85px" LabelAlign="Right">
|
||||||
|
</f:Label>
|
||||||
|
<f:Label ID="txtISONO" Label="管线号" runat="server" LabelWidth="85px" LabelAlign="Right">
|
||||||
|
</f:Label>
|
||||||
|
<f:Label ID="lblIsoId" runat="server" Hidden="true"></f:Label>
|
||||||
|
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||||
|
</f:ToolbarFill>
|
||||||
|
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="提交" ValidateForms="SimpleForm1"
|
||||||
|
OnClick="btnSave_Click">
|
||||||
|
</f:Button>
|
||||||
|
</Items>
|
||||||
|
</f:Toolbar>
|
||||||
|
</Toolbars>
|
||||||
|
<Rows>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="焊口信息" EnableCollapse="true"
|
||||||
|
runat="server" BoxFlex="1" DataKeyNames="JOT_ID" AllowCellEditing="true"
|
||||||
|
EnableColumnLines="true" ClicksToEdit="1" DataIDField="JOT_ID" AllowSorting="true"
|
||||||
|
SortField="JOTY_Group,Sort1,Sort2,Sort3,Sort4,Sort5" SortDirection="ASC" OnSort="Grid1_Sort"
|
||||||
|
EnableTextSelection="True" AutoScroll="true">
|
||||||
|
<Columns>
|
||||||
|
<f:RenderField HeaderText="焊口号" ColumnID="JOT_JointNo" DataField="JOT_JointNo"
|
||||||
|
SortField="JOT_JointNo" FieldType="String" HeaderTextAlign="Center" TextAlign="Left"
|
||||||
|
Width="90px">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField HeaderText="焊口属性" ColumnID="JOT_JointAttribute" DataField="JOT_JointAttribute"
|
||||||
|
SortField="JOT_JointAttribute" FieldType="String" HeaderTextAlign="Center" TextAlign="Left"
|
||||||
|
Width="120px">
|
||||||
|
<Editor>
|
||||||
|
<f:DropDownList ID="ddlJointAttribute" runat="server">
|
||||||
|
<f:ListItem Value="活动" Text="活动" />
|
||||||
|
<f:ListItem Value="固定" Text="固定" />
|
||||||
|
</f:DropDownList>
|
||||||
|
</Editor>
|
||||||
|
</f:RenderField>
|
||||||
|
<%-- <f:RenderCheckField Width="75px" ColumnID="Is_hj" DataField="Is_hj" EnableColumnEdit="false" HeaderText="是否焊接"
|
||||||
|
TextAlign="Center" HeaderTextAlign="Center" />
|
||||||
|
<f:RenderField HeaderText="材质" ColumnID="STE_Name" DataField="STE_Name" SortField="STE_Name"
|
||||||
|
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField HeaderText="焊口规格" ColumnID="JOT_JointDesc" DataField="JOT_JointDesc"
|
||||||
|
SortField="JOT_JointDesc" FieldType="String" HeaderTextAlign="Center" TextAlign="Left"
|
||||||
|
Width="120px">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField HeaderText="焊缝类型" ColumnID="JOTY_Name" DataField="JOTY_Name" SortField="JOTY_Name"
|
||||||
|
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="90px">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField HeaderText="坡口类型" ColumnID="JST_Name" DataField="JST_Name" SortField="JST_Name"
|
||||||
|
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="80px">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField HeaderText="焊接方法" ColumnID="WME_Name" DataField="WME_Name" SortField="WME_Name"
|
||||||
|
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="150px">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField HeaderText="外径" ColumnID="JOT_Dia" DataField="JOT_Dia" SortField="JOT_Dia"
|
||||||
|
FieldType="Double" HeaderTextAlign="Center" TextAlign="Left" Width="90px">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField HeaderText="尺寸" ColumnID="JOT_Size" DataField="JOT_Size" SortField="JOT_Size"
|
||||||
|
FieldType="Double" HeaderTextAlign="Center" TextAlign="Left" Width="90px">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField HeaderText="壁厚" ColumnID="JOT_Sch" DataField="JOT_Sch" SortField="JOT_Sch"
|
||||||
|
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="90px">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField HeaderText="焊接区域" ColumnID="WLO_Name" DataField="WLO_Name" SortField="WLO_Name"
|
||||||
|
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="80px">
|
||||||
|
</f:RenderField>--%>
|
||||||
|
<f:RenderField HeaderText="主键" ColumnID="JOT_ID" DataField="JOT_ID" SortField="JOT_ID"
|
||||||
|
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="140px" Hidden="true">
|
||||||
|
</f:RenderField>
|
||||||
|
</Columns>
|
||||||
|
</f:Grid>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
</Rows>
|
||||||
|
</f:Form>
|
||||||
|
</form>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
@ -0,0 +1,134 @@
|
||||||
|
using BLL;
|
||||||
|
using Model;
|
||||||
|
using Newtonsoft.Json.Linq;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Data;
|
||||||
|
using System.Data.SqlClient;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Web;
|
||||||
|
using System.Web.UI;
|
||||||
|
using System.Web.UI.WebControls;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.HJGL.WeldingManage
|
||||||
|
{
|
||||||
|
public partial class JointInfoBatchUpdate : PageBase
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 定义集合
|
||||||
|
/// </summary>
|
||||||
|
private static List<Model.HJGL_PW_JointInfo> jointInfoLists = new List<HJGL_PW_JointInfo>();
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 加载页面
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (!IsPostBack)
|
||||||
|
{
|
||||||
|
//焊口属性
|
||||||
|
//this.ddlJointAttribute.DataTextField = "Text";
|
||||||
|
//this.ddlJointAttribute.DataValueField = "Value";
|
||||||
|
//this.ddlJointAttribute.DataSource = BLL.DropListService.HJGL_JointAttributeItem();
|
||||||
|
//this.ddlJointAttribute.DataBind();
|
||||||
|
//Funs.FineUIPleaseSelect(this.ddlJointAttribute);
|
||||||
|
|
||||||
|
lblIsoId.Text = Request.Params["ISO_ID"];
|
||||||
|
if (!string.IsNullOrEmpty(lblIsoId.Text.Trim()))
|
||||||
|
{
|
||||||
|
var iso = BLL.HJGL_PW_IsoInfoService.GetIsoInfoByIsoInfoId(lblIsoId.Text.Trim());
|
||||||
|
if (iso != null)
|
||||||
|
{
|
||||||
|
this.txtISONO.Text = iso.ISO_IsoNo;
|
||||||
|
if (!string.IsNullOrEmpty(iso.BSU_ID))
|
||||||
|
{
|
||||||
|
this.lbUnitName.Text = BLL.Base_UnitService.GetUnitNameByUnitId(iso.BSU_ID);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
BindGrid();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void BindGrid()
|
||||||
|
{
|
||||||
|
string strSql = @"SELECT JOT_ID,ProjectId,JOT_JointNo,Sort1,Sort2,Sort3,Sort4,Sort5,JOTY_Group
|
||||||
|
,ISO_ID,ISO_IsoNo,JOT_JointAttribute,Is_hj,(CASE WHEN STE_Name1 IS NOT NULL AND STE_Name2 IS NOT NULL and STE_Name1!=STE_Name2 THEN STE_Name1 + '/' + STE_Name2
|
||||||
|
WHEN STE_Name1 IS NOT NULL THEN STE_Name1 ELSE ISNULL(STE_Name2,'') END) AS STE_Name,JOT_JointDesc,JOTY_Name,JST_Name,WME_Name,JOT_Dia,JOT_Size,JOT_Sch,WLO_Name
|
||||||
|
FROM HJGL_View_JointInfo WHERE ProjectId= @ProjectId";
|
||||||
|
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||||
|
listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId));
|
||||||
|
strSql += " AND ISO_ID =@ISO_ID";
|
||||||
|
listStr.Add(new SqlParameter("@ISO_ID", this.lblIsoId.Text.Trim()));
|
||||||
|
SqlParameter[] parameter = listStr.ToArray();
|
||||||
|
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||||
|
|
||||||
|
// 2.获取当前分页数据
|
||||||
|
//var table = this.GetPagedDataTable(Grid1, tb1);
|
||||||
|
Grid1.RecordCount = tb.Rows.Count;
|
||||||
|
//this.Grid1.PageIndex = 0;
|
||||||
|
//tb = GetFilteredTable(Grid1.FilteredData, tb);
|
||||||
|
var table = this.GetPagedDataTable(Grid1, tb);
|
||||||
|
Grid1.DataSource = table;
|
||||||
|
Grid1.DataBind();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 排序
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void Grid1_Sort(object sender, GridSortEventArgs e)
|
||||||
|
{
|
||||||
|
BindGrid();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 保存
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void btnSave_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (!string.IsNullOrEmpty(this.lblIsoId.Text.Trim()))
|
||||||
|
{
|
||||||
|
JArray teamGroupData = Grid1.GetMergedData();
|
||||||
|
foreach (JObject teamGroupRow in teamGroupData)
|
||||||
|
{
|
||||||
|
JObject values = teamGroupRow.Value<JObject>("values");
|
||||||
|
//int rowIndex = teamGroupRow.Value<int>("index");
|
||||||
|
|
||||||
|
string jotId = values.Value<string>("JOT_ID");
|
||||||
|
if (!string.IsNullOrEmpty(jotId))
|
||||||
|
{
|
||||||
|
var jointInfo = BLL.HJGL_PW_JointInfoService.GetJointInfoByJotID(jotId);
|
||||||
|
if (jointInfo != null)
|
||||||
|
{
|
||||||
|
jointInfo.JOT_JointAttribute = values.Value<string>("JOT_JointAttribute");
|
||||||
|
if (jointInfo.JOT_JointAttribute == "固定")
|
||||||
|
{
|
||||||
|
if (jointInfo.JOT_JointNo.Last() != 'G')
|
||||||
|
{
|
||||||
|
jointInfo.JOT_JointNo = jointInfo.JOT_JointNo + "G";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (jointInfo.JOT_JointNo.Last() == 'G')
|
||||||
|
{
|
||||||
|
jointInfo.JOT_JointNo = jointInfo.JOT_JointNo.Replace("G", "");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Funs.DB.SubmitChanges();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
ShowNotify("焊口属性修改成功!", MessageBoxIcon.Success);
|
||||||
|
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
116
HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/JointInfoBatchUpdate.aspx.designer.cs
generated
Normal file
116
HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/JointInfoBatchUpdate.aspx.designer.cs
generated
Normal file
|
|
@ -0,0 +1,116 @@
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <自动生成>
|
||||||
|
// 此代码由工具生成。
|
||||||
|
//
|
||||||
|
// 对此文件的更改可能导致不正确的行为,如果
|
||||||
|
// 重新生成代码,则所做更改将丢失。
|
||||||
|
// </自动生成>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.HJGL.WeldingManage
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
public partial class JointInfoBatchUpdate
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <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>
|
||||||
|
/// lbUnitName 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Label lbUnitName;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtISONO 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Label txtISONO;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblIsoId 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Label lblIsoId;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// ToolbarFill1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnSave 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Button btnSave;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Grid1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Grid Grid1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// ddlJointAttribute 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.DropDownList ddlJointAttribute;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue