InitBasfTcc11

This commit is contained in:
2024-05-08 16:27:28 +08:00
commit f1000143a0
3754 changed files with 382456 additions and 0 deletions
@@ -0,0 +1,294 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DataIn.aspx.cs" Inherits="FineUIPro.Web.WeldingProcess.DataIn.DataIn" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>数据导入</title>
<style type="text/css">
.f-grid-row.color1,
.f-grid-row.color1 .f-icon,
.f-grid-row.color1 a {
background-color: red;
color: #fff;
}
/*定义父容器*/
.content {
width: 550px;
height: 30px;
background: #E4F1FB;
margin: 0 auto;
}
/*定义进度条*/
.box {
width: 0px;
height: 30px;
line-height: 30px;
text-align: center;
background: #3BAAE3;
color: #fff;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
<f:HiddenField ID="id" ClientIDMode="Static" runat="server" ></f:HiddenField>
<f:Panel ID="Panel1" runat="server" Margin="2px" BodyPadding="2px" ShowBorder="false"
ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch">
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Right">
<Items>
<f:FileUpload ID="FileExcel" runat="server" Label="数据文件" EmptyText="请上传EXCEl格式文件"
Width="400px" LabelWidth="90px" LabelAlign="Right">
</f:FileUpload>
<f:Button ID="imgbtnImport" runat="server" Text="上传" ToolTip="文件上传!" OnClick="imgbtnImport_Click">
</f:Button>
<f:ToolbarFill ID="ToolbarFill1" runat="server">
</f:ToolbarFill>
<f:CheckBox ID="ckUpdate" runat="server" Text="更新导入">
</f:CheckBox>
<f:Button ID="btnSave" runat="server" Text="审核提交" Icon="SystemSave" OnClick="btnSave_Click">
</f:Button>
<f:Button ID="btnRefresh" runat="server" ClientIDMode="Static" Text="刷新" Icon="SystemSave" OnClick="btnRefresh_Click" Hidden="true"></f:Button>
<f:Button ID="btnAllDelete" runat="server" Icon="Delete" Text="删除记录" ToolTip="删除当前人所有临时导入记录"
ConfirmText="删除当前人所有临时导入记录?" ConfirmTarget="Top" OnClick="btnAllDelete_Click">
</f:Button>
<f:Button ID="imgbtnUpload" runat="server" Icon="DiskDownload" Text="模板下载" OnClick="imgbtnUpload_Click"
EnableAjaxLoading="false">
</f:Button>
<f:Button ID="lkAchievements" runat="server" Icon="DiskDownload" Text="导入说明" OnClick="lkAchievements_Click"
EnableAjaxLoading="false">
</f:Button>
<f:HiddenField ID="hidFileName" runat="server"></f:HiddenField>
</Items>
</f:Toolbar>
</Toolbars>
<Toolbars>
<f:Toolbar ID="Toolbar3" Position="Top" runat="server" ToolbarAlign="Left">
<Items>
<f:TextBox ID="txtValue1" runat="server" Label="单位代码" EmptyText="输入查询条件" AutoPostBack="true"
OnTextChanged="TextBox_TextChanged" Width="200px" LabelWidth="80px">
</f:TextBox>
<f:TextBox ID="txtValue2" runat="server" Label="区域" LabelAlign="Right" EmptyText="输入查询条件" AutoPostBack="true"
OnTextChanged="TextBox_TextChanged" Width="200px" LabelWidth="80px">
</f:TextBox>
<f:TextBox ID="txtValue3" runat="server" Label="管线代号" EmptyText="输入查询条件" AutoPostBack="true"
OnTextChanged="TextBox_TextChanged" Width="200px" LabelWidth="80px">
</f:TextBox>
<f:TextBox ID="txtValue4" runat="server" Label="焊口代号" EmptyText="输入查询条件" AutoPostBack="true"
OnTextChanged="TextBox_TextChanged" Width="200px" LabelWidth="80px">
</f:TextBox>
<f:DropDownList ID="drpIsError" runat="server" Label="是否有错" AutoPostBack="true"
OnSelectedIndexChanged ="TextBox_TextChanged" Width="200px" LabelWidth="80px">
<f:ListItem text="" Value="0"/>
<f:ListItem text="是" Value="1"/>
<f:ListItem text="否" Value="2"/>
</f:DropDownList>
<f:TextBox ID="txtToopValue" runat="server" Label="错误信息" EmptyText="输入查询条件" AutoPostBack="true"
OnTextChanged="TextBox_TextChanged" Width="200px" LabelWidth="80px">
</f:TextBox>
</Items>
</f:Toolbar>
</Toolbars>
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="数据导入" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="TempId" AllowCellEditing="true" 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="序号" 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"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="90px" HeaderText="材质2代号" ColumnID="Value6" DataField="Value6"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="100px" HeaderText="管道等级" ColumnID="Value7" DataField="Value7"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="100px" HeaderText="压力管道分级" ColumnID="Value8" DataField="Value8"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="100px" HeaderText="介质代号" ColumnID="Value9" DataField="Value9"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="80px" HeaderText="管线规格" ColumnID="Value10" DataField="Value10"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="80px" HeaderText="单线图号" ColumnID="Value11" DataField="Value11"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="80px" HeaderText="工作包号" ColumnID="Value12" DataField="Value12"
FieldType="String" HeaderTextAlign="Center" TextAlign="Right">
</f:RenderField>
<f:RenderField Width="80px" HeaderText="系统号" ColumnID="Value13" DataField="Value13"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="80px" HeaderText="分系统号" ColumnID="Value14" DataField="Value14"
FieldType="String" HeaderTextAlign="Center" TextAlign="Right">
</f:RenderField>
<f:RenderField Width="100px" HeaderText="所属管段" ColumnID="Value15" DataField="Value15"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="80px" HeaderText="页数" ColumnID="Value16" DataField="Value16"
FieldType="String" HeaderTextAlign="Center" TextAlign="Right">
</f:RenderField>
<f:RenderField Width="80px" HeaderText="图纸版次" ColumnID="Value17" DataField="Value17"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="80px" HeaderText="设计温度" ColumnID="Value18" DataField="Value18"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="80px" HeaderText="试验压力" ColumnID="Value19" DataField="Value19"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="80px" HeaderText="设计压力" ColumnID="Value20" DataField="Value20"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="80px" HeaderText="焊缝类型" ColumnID="Value21" DataField="Value21"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="80px" HeaderText="管径" ColumnID="Value22" DataField="Value22"
FieldType="String" HeaderTextAlign="Center" TextAlign="Right">
</f:RenderField>
<f:RenderField Width="80px" HeaderText="美标壁厚" ColumnID="Value23" DataField="Value23"
FieldType="String" HeaderTextAlign="Center" TextAlign="Right">
</f:RenderField>
<f:RenderField Width="90px" HeaderText="焊接方法" ColumnID="Value24" DataField="Value24"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="80px" HeaderText="炉批号一" ColumnID="Value25" DataField="Value25"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="80px" HeaderText="炉批号二" ColumnID="Value26" DataField="Value26"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="80px" HeaderText="坡口类型" ColumnID="Value27" DataField="Value27"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="80px" HeaderText="焊口属性" ColumnID="Value28" DataField="Value28"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="80px" HeaderText="组件1号" ColumnID="Value29" DataField="Value29"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="80px" HeaderText="组件2号" ColumnID="Value30" DataField="Value30"
FieldType="String" HeaderTextAlign="Center" TextAlign="Right">
</f:RenderField>
<f:RenderField Width="80px" HeaderText="是否热处理" ColumnID="Value31" DataField="Value31"
FieldType="String" HeaderTextAlign="Center" TextAlign="Right">
</f:RenderField>
<f:RenderField Width="80px" HeaderText="是否酸洗" ColumnID="Value32" DataField="Value32"
FieldType="String" HeaderTextAlign="Center" TextAlign="Right">
</f:RenderField>
<f:RenderField Width="80px" HeaderText="焊接位置" ColumnID="Value33" DataField="Value33"
FieldType="String" HeaderTextAlign="Center" TextAlign="Right">
</f:RenderField>
<f:RenderField Width="80px" HeaderText="探伤比例" ColumnID="Value34" DataField="Value34"
FieldType="String" HeaderTextAlign="Center" TextAlign="Right">
</f:RenderField>
<f:RenderField Width="80px" HeaderText="探伤类型" ColumnID="Value35" DataField="Value35"
FieldType="String" HeaderTextAlign="Center" TextAlign="Right">
</f:RenderField>
<f:RenderField Width="80px" HeaderText="WPS编号" ColumnID="Value36" DataField="Value36"
FieldType="String" HeaderTextAlign="Center" TextAlign="Right">
</f:RenderField>
<f:RenderField Width="80px" HeaderText="焊丝" ColumnID="Value37" DataField="Value37"
FieldType="String" HeaderTextAlign="Center" TextAlign="Right">
</f:RenderField>
<f:RenderField Width="80px" HeaderText="焊条" ColumnID="Value38" DataField="Value38"
FieldType="String" HeaderTextAlign="Center" TextAlign="Right">
</f:RenderField>
<f:RenderField Width="80px" HeaderText="Coode1" ColumnID="Value39" DataField="Value39"
FieldType="String" HeaderTextAlign="Center" TextAlign="Right">
</f:RenderField>
<f:RenderField Width="80px" HeaderText="Coode2" ColumnID="Value40" DataField="Value40"
FieldType="String" HeaderTextAlign="Center" TextAlign="Right">
</f:RenderField>
</Columns>
<Listeners>
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
</Listeners>
<PageItems>
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
</f:ToolbarSeparator>
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
</f:ToolbarText>
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
<f:ListItem Text="10" Value="10" />
<f:ListItem Text="15" Value="15" Selected="true" />
<f:ListItem Text="20" Value="20" />
<f:ListItem Text="25" Value="25" />
</f:DropDownList>
<f:Label Label="错误记录数" runat="server" ID="lbDataCout" CssClass="Label" LabelAlign="right">
</f:Label>
</PageItems>
</f:Grid>
</Items>
</f:Panel>
<f:Window ID="Window1" Title="数据信息" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Top" EnableResize="true" runat="server" IsModal="true" Width="1200px"
Height="600px">
</f:Window>
<f:Menu ID="Menu1" runat="server">
<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" EnablePostBack="true"
runat="server" Text="编辑" Icon="TableEdit">
</f:MenuButton>
<f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true"
ConfirmText="删除选中行?" ConfirmTarget="Top" runat="server" Text="删除" Icon="Delete">
</f:MenuButton>
</f:Menu>
<f:Window ID="WindowImport" Hidden="true" runat="server" MinHeight="30px"
Target="Parent" ShowHeader="false" BodyPadding="0" Margin="0"
IsModal="true" Width="550px" Height="30px">
<Items>
<f:ContentPanel ShowBorder="false" Height="30px" ShowHeader="false" ID="ContentPanel3" runat="server">
<div class="content" id="content">
<div class="box" id="box"></div>
</div>
</f:ContentPanel>
</Items>
</f:Window>
<asp:ScriptManager ID="ScriptManager2" runat="server" EnablePageMethods="true">
<Scripts>
<asp:ScriptReference Path="~/res/DataInTable.js" />
</Scripts>
</asp:ScriptManager>
</form>
<script type="text/javascript">
var menuID = '<%= Menu1.ClientID %>';
// 返回false,来阻止浏览器右键菜单
function onRowContextMenu(event, rowId) {
F(menuID).show(); //showAt(event.pageX, event.pageY);
return false;
}
function reloadGrid() {
__doPostBack(null, 'reloadGrid');
}
</script>
</body>
</html>
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,321 @@
//------------------------------------------------------------------------------
// <自动生成>
// 此代码由工具生成。
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.WeldingProcess.DataIn {
public partial class DataIn {
/// <summary>
/// form1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// PageManager1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.PageManager PageManager1;
/// <summary>
/// id 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.HiddenField id;
/// <summary>
/// Panel1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel Panel1;
/// <summary>
/// Toolbar1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar1;
/// <summary>
/// FileExcel 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.FileUpload FileExcel;
/// <summary>
/// imgbtnImport 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button imgbtnImport;
/// <summary>
/// ToolbarFill1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarFill ToolbarFill1;
/// <summary>
/// ckUpdate 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.CheckBox ckUpdate;
/// <summary>
/// btnSave 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnSave;
/// <summary>
/// btnRefresh 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnRefresh;
/// <summary>
/// btnAllDelete 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnAllDelete;
/// <summary>
/// imgbtnUpload 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button imgbtnUpload;
/// <summary>
/// lkAchievements 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button lkAchievements;
/// <summary>
/// hidFileName 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.HiddenField hidFileName;
/// <summary>
/// Toolbar3 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar3;
/// <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>
/// drpIsError 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpIsError;
/// <summary>
/// txtToopValue 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtToopValue;
/// <summary>
/// Grid1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Grid Grid1;
/// <summary>
/// ToolbarSeparator1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
/// <summary>
/// ToolbarText1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarText ToolbarText1;
/// <summary>
/// ddlPageSize 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList ddlPageSize;
/// <summary>
/// lbDataCout 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label lbDataCout;
/// <summary>
/// Window1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Window Window1;
/// <summary>
/// Menu1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Menu Menu1;
/// <summary>
/// btnMenuEdit 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.MenuButton btnMenuEdit;
/// <summary>
/// btnMenuDelete 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.MenuButton btnMenuDelete;
/// <summary>
/// WindowImport 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Window WindowImport;
/// <summary>
/// ContentPanel3 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ContentPanel ContentPanel3;
/// <summary>
/// ScriptManager2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.ScriptManager ScriptManager2;
}
}
@@ -0,0 +1,176 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DataInEdit.aspx.cs" Inherits="FineUIPro.Web.WeldingProcess.DataIn.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"
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" LabelWidth="120px">
</f:TextBox>
<f:TextBox ID="txtValue2" Label="工区编号" ShowRedStar="true" Required="true" runat="server"
LabelWidth="120px">
</f:TextBox>
<f:TextBox ID="txtValue3" Label="管线代号" ShowRedStar="true" Required="true" runat="server"
LabelWidth="120px">
</f:TextBox>
<f:TextBox ID="txtValue4" Label="焊口代号" ShowRedStar="true" Required="true" runat="server"
LabelWidth="120px">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtValue5" Label="材质1代号" ShowRedStar="true" Required="true" runat="server"
LabelWidth="120px">
</f:TextBox>
<f:TextBox ID="txtValue6" Label="材质2代号" ShowRedStar="true" Required="true" runat="server"
LabelWidth="120px">
</f:TextBox>
<f:TextBox ID="txtValue7" Label="管道等级" runat="server" LabelWidth="120px">
</f:TextBox>
<f:TextBox ID="txtValue8" Label="压力管道分级" runat="server" LabelWidth="120px">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtValue9" Label="介质代号" runat="server" LabelWidth="120px">
</f:TextBox>
<f:TextBox ID="txtValue10" Label="管线规格" runat="server" LabelWidth="120px">
</f:TextBox>
<f:TextBox ID="txtValue11" Label="单线图号" runat="server" LabelWidth="120px">
</f:TextBox>
<f:TextBox ID="txtValue12" Label="工作包号" runat="server" LabelWidth="120px">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtValue13" Label="系统号" runat="server" LabelWidth="120px">
</f:TextBox>
<f:TextBox ID="txtValue14" Label="分系统号" runat="server" LabelWidth="120px">
</f:TextBox>
<f:TextBox ID="txtValue15" Label="所属管段" runat="server" LabelWidth="120px">
</f:TextBox>
<f:TextBox ID="txtValue16" Label="页数" runat="server" LabelWidth="120px">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtValue17" Label="图纸版次" runat="server" LabelWidth="120px">
</f:TextBox>
<f:TextBox ID="txtValue18" Label="设计温度" runat="server" LabelWidth="120px">
</f:TextBox>
<f:TextBox ID="txtValue19" Label="试验压力" runat="server" LabelWidth="120px">
</f:TextBox>
<f:TextBox ID="txtValue20" Label="设计压力" runat="server" LabelWidth="120px">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtValue21" Label="焊缝类型" runat="server" LabelWidth="120px">
</f:TextBox>
<f:NumberBox ID="txtValue22" Label="管径" runat="server" NoNegative="true" LabelWidth="120px">
</f:NumberBox>
<f:TextBox ID="txtValue23" Label="美标壁厚" runat="server" LabelWidth="120px">
</f:TextBox>
<f:TextBox ID="txtValue24" Label="焊接方法" runat="server" LabelWidth="120px">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtValue25" Label="炉批号一" runat="server" LabelWidth="120px">
</f:TextBox>
<f:TextBox ID="txtValue26" Label="炉批号二" runat="server" LabelWidth="120px">
</f:TextBox>
<f:TextBox ID="txtValue27" Label="坡口类型" runat="server" LabelWidth="120px">
</f:TextBox>
<f:TextBox ID="txtValue28" Label="焊口属性" runat="server" LabelWidth="120px">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtValue29" Label="组件1号" runat="server" LabelWidth="120px">
</f:TextBox>
<f:TextBox ID="txtValue30" Label="组件2号" runat="server" LabelWidth="120px">
</f:TextBox>
<f:TextBox ID="txtValue31" Label="是否热处理" runat="server" LabelWidth="120px">
</f:TextBox>
<f:TextBox ID="txtValue32" Label="是否酸洗" runat="server" LabelWidth="120px">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow >
<Items>
<f:TextBox ID="txtValue33" Label="焊接位置" runat="server" LabelWidth="120px">
</f:TextBox>
<f:TextBox ID="txtValue34" Label="检测比例" runat="server" LabelWidth="120px">
</f:TextBox>
<f:TextBox ID="txtValue35" Label="探伤类型" runat="server" LabelWidth="120px">
</f:TextBox>
<f:TextBox ID="txtValue36" Label="焊丝" runat="server" LabelWidth="120px">
</f:TextBox>
<f:TextBox ID="txtValue37" Label="焊条" runat="server" LabelWidth="120px">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtValue38" Label="WPS编号" runat="server" LabelWidth="120px">
</f:TextBox>
<f:TextBox ID="txtValue39" Label="Coode1" runat="server" LabelWidth="120px">
</f:TextBox>
<f:TextBox ID="txtValue40" Label="Coode2" runat="server" LabelWidth="120px">
</f:TextBox>
<f:Label runat="server"></f:Label>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</form>
</body>
</html>
@@ -0,0 +1,641 @@
using System;
using System.Linq;
using BLL;
namespace FineUIPro.Web.WeldingProcess.DataIn
{
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.txtValue36.Text = dataInTemp.Value36;
this.txtValue37.Text = dataInTemp.Value37;
this.txtValue38.Text = dataInTemp.Value38;
this.txtValue39.Text = dataInTemp.Value39;
this.txtValue40.Text = dataInTemp.Value40;
this.lbErrCout.Text = dataInTemp.ToopValue;
}
}
}
#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.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.Value4!=this.txtValue4.Text.Trim())
{
var tempValue4 = allDataInTemp.Where(x => x.Value4 == dataInTemp.Value4 || (x.Value4 == null && dataInTemp.Value4 == null));
if (tempValue4 != null)
{
foreach (var item in tempValue4)
{
item.Value4 = this.txtValue4.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();
}
}
}
if (dataInTemp.Value36 != this.txtValue36.Text.Trim())
{
var tempValue36 = allDataInTemp.Where(x => x.Value36 == dataInTemp.Value36 || (x.Value36 == null && dataInTemp.Value36 == null));
if (tempValue36 != null)
{
foreach (var item in tempValue36)
{
item.Value36 = this.txtValue36.Text.Trim();
Funs.DB.SubmitChanges();
}
}
}
if (dataInTemp.Value37 != this.txtValue37.Text.Trim())
{
var tempValue37 = allDataInTemp.Where(x => x.Value37 == dataInTemp.Value37 || (x.Value37 == null && dataInTemp.Value37 == null));
if (tempValue37 != null)
{
foreach (var item in tempValue37)
{
item.Value37 = this.txtValue37.Text.Trim();
Funs.DB.SubmitChanges();
}
}
}
if (dataInTemp.Value38 != this.txtValue38.Text.Trim())
{
var tempValue38 = allDataInTemp.Where(x => x.Value38 == dataInTemp.Value38 || (x.Value38 == null && dataInTemp.Value38 == null));
if (tempValue38 != null)
{
foreach (var item in tempValue38)
{
item.Value38 = this.txtValue38.Text.Trim();
Funs.DB.SubmitChanges();
}
}
}
if (dataInTemp.Value39 != this.txtValue39.Text.Trim())
{
var tempValue39 = allDataInTemp.Where(x => x.Value39 == dataInTemp.Value39 || (x.Value39 == null && dataInTemp.Value39 == null));
if (tempValue39 != null)
{
foreach (var item in tempValue39)
{
item.Value39 = this.txtValue39.Text.Trim();
Funs.DB.SubmitChanges();
}
}
}
if (dataInTemp.Value40 != this.txtValue40.Text.Trim())
{
var tempValue40 = allDataInTemp.Where(x => x.Value40 == dataInTemp.Value40 || (x.Value40 == null && dataInTemp.Value40 == null));
if (tempValue40 != null)
{
foreach (var item in tempValue40)
{
item.Value40 = this.txtValue40.Text.Trim();
Funs.DB.SubmitChanges();
}
}
}
}
else
{
Model.Sys_DataInTemp newDataInTemp = new Model.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();
newDataInTemp.Value36 = this.txtValue36.Text.Trim();
newDataInTemp.Value37 = this.txtValue37.Text.Trim();
newDataInTemp.Value38 = this.txtValue38.Text.Trim();
newDataInTemp.Value39 = this.txtValue39.Text.Trim();
newDataInTemp.Value40 = this.txtValue40.Text.Trim();
if (!string.IsNullOrEmpty(this.TempId))
{
newDataInTemp.TempId = this.TempId;
newDataInTemp.ToopValue = null;
BLL.DataInTempService.UpdateDataInTemp(newDataInTemp);
}
}
ShowNotify(Resources.Lan.SaveSuccessfully, MessageBoxIcon.Success);
PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
}
#endregion
}
}
@@ -0,0 +1,447 @@
//------------------------------------------------------------------------------
// <自动生成>
// 此代码由工具生成。
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.WeldingProcess.DataIn {
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>
/// txtValue6 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtValue6;
/// <summary>
/// txtValue7 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtValue7;
/// <summary>
/// txtValue8 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtValue8;
/// <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.TextBox txtValue11;
/// <summary>
/// txtValue12 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtValue12;
/// <summary>
/// txtValue13 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtValue13;
/// <summary>
/// txtValue14 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtValue14;
/// <summary>
/// txtValue15 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtValue15;
/// <summary>
/// txtValue16 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtValue16;
/// <summary>
/// txtValue17 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtValue17;
/// <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.TextBox txtValue20;
/// <summary>
/// txtValue21 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtValue21;
/// <summary>
/// txtValue22 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtValue22;
/// <summary>
/// txtValue23 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtValue23;
/// <summary>
/// txtValue24 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtValue24;
/// <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>
/// txtValue28 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtValue28;
/// <summary>
/// txtValue29 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox 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.TextBox txtValue32;
/// <summary>
/// txtValue33 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtValue33;
/// <summary>
/// txtValue34 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtValue34;
/// <summary>
/// txtValue35 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtValue35;
/// <summary>
/// txtValue36 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtValue36;
/// <summary>
/// txtValue37 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtValue37;
/// <summary>
/// txtValue38 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtValue38;
/// <summary>
/// txtValue39 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtValue39;
/// <summary>
/// txtValue40 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtValue40;
}
}