可能没描述清楚我的问题,这是前台代码- <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BOXNUMBER.aspx.cs" Inherits="ZXWMS.WebSite.WebPage.ComeEnterWarehouse.BOXNUMBER" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head runat="server">
- <title>合并上架(选择库管员)</title>
- <style type="text/css">
- </style>
- </head>
- <body>
- <form id="form1" runat="server">
- <x:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server">
- </x:PageManager>
- <x:Panel ID="Panel1" runat="server" BoxConfigAlign="Stretch" BoxConfigPosition="Start"
- BoxConfigChildMargin="0 2 0 0" BodyPadding="0px" ShowBorder="false" ShowHeader="False"
- Layout="HBox">
- <Toolbars>
- <x:Toolbar ID="Toolbar1" runat="server">
- <Items>
- <x:Button runat="server" Text="确定" ID="btn_submit" ValidateForms="from1" OnClick="btn_submit_Click">
- </x:Button>
- <x:Button ID="btn_close" runat="server" Text="取消" OnClick="btn_close_Click">
- </x:Button>
- </Items>
- </x:Toolbar>
- </Toolbars>
- <Items>
-
- <x:Panel ID="Panel4" runat="server" BodyPadding="0px" ShowBorder="false" BoxFlex="6"
- ShowHeader="false" Layout="VBox" Title="货位列表" BoxConfigAlign="Stretch" BoxConfigPosition="Start"
- BoxConfigChildMargin="0 0 0 0">
- <Items>
- <x:Panel ID="Panel52" BoxFlex="1" Title="ww" runat="server" ShowBorder="false" ShowHeader="false"
- Layout="Fit">
- <Items>
- <x:TabStrip ID="TabStrip1" ActiveTabIndex="0" runat="server" ShowBorder="false" AutoPostBack="true"
- OnTabIndexChanged="TabStrip1_TabIndexChanged">
- <Tabs>
- <x:Tab ID="Tab1" Title="货位表格" runat="server" Layout="VBox" BodyPadding="0px" EnableIFrame="false">
- <Items>
- <x:Grid runat="server" ID="GridHW" BoxFlex="1" ShowHeader="false" ShowBorder="true"
- OnPageIndexChange="GridHW_PageIndexChange" IsDatabasePaging="true" AllowPaging="true"
- PageSize="10" DataKeyNames="KEYID,USABLETANKAGE" DataIDField="KEYID" EnableCheckBoxSelect="false"
- ClearSelectionsBeforePaging="false" KeepCurrentSelection="true" EnableRowClickEvent="true"
- OnRowClick="GridHW_RowClick">
- <Columns>
-
- <x:BoundField DataField="TANKAGE" HeaderText="总容量" TextAlign="Center" Width="120px" />
- <x:BoundField DataField="USETANKAGE" HeaderText="已用数量" TextAlign="Center" Width="120px" />
- <x:BoundField ColumnID="USABLETANKAGE" DataField="USABLETANKAGE" HeaderText="剩余数量"
- TextAlign="Center" Width="120px" />
- </Columns>
- </x:Grid>
- <x:HiddenField ID="HW_SelectID" runat="server">
- </x:HiddenField>
- </Items>
- </x:Tab>
- <x:Tab ID="Tab5" EnableIFrame="true" BodyPadding="0px" Title="货位2D视图" runat="server">
- </x:Tab>
- </Tabs>
- </x:TabStrip>
- </Items>
- </x:Panel>
- </Items>
- </x:Panel>
-
- </Items>
- </x:Panel>
- <x:Window ID="Window4" IconUrl="~/res/images/16/11.png" runat="server" Hidden="true"
- IsModal="true" Target="Top" EnableMaximize="false" EnableResize="true" Title="Popup Window 1"
- CloseAction="HidePostBack" EnableIFrame="true" Height="623px" Width="1000px">
- </x:Window>
- </body>
- </html>
复制代码 这是后台代码
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- using System.Data;
- using FineUI;
- using Newtonsoft.Json.Linq;
- using System.Text;
- using Leafing.Data;
- using ZXWMS.Buss;
- using ZXWMS.DBObject;
- using ZXWMS.Common;
- using Newtonsoft.Json;
- using System.Web.Script.Serialization;
- namespace ZXWMS.WebSite.WebPage.ComeEnterWarehouse
- {
- public partial class BOXNUMBER : BasePage
- {
- protected void Page_Load(object sender, EventArgs e)
- {
- if (!IsPostBack)
- {
-
- BangDingKGY();
-
- GetGridHW();
-
- }
-
- }
-
-
- /// <summary>
- /// 绑定货位表格数据
- /// </summary>
- private void GetGridHW()
- {
- List<VB_GOODSMANAGER> OrganizationList=null;
- string currentIDS = Session["SeleJson"].ToSafeString();//接收Json
- JavaScriptSerializer jsonSerializer = new JavaScriptSerializer();
- List<TO_WH_INTRANS> DeseSelectJson = jsonSerializer.Deserialize<List<TO_WH_INTRANS>>(currentIDS);
-
- long count = 0;
- Condition con = Condition.Empty;
- con = con = con & CK.K["CUSTOMERID"] == DeseSelectJson[0].TASK_ID.ToIntZero();//客户ID
- con = con & CK.K["CKKEYID"] == DeseSelectJson[0].WHID.ToIntZero();//仓库ID
- List<VO_CLENT_LEVEL> lse = BL.SearchList<VO_CLENT_LEVEL>(con);
- if (lse.Count <= 0)
- {
- Condition CONS = Condition.Empty;
- CONS = CONS & CK.K["STORAGE_ID"] == DeseSelectJson[0].WHID.ToIntZero();//仓库ID
- CONS = CONS & CK.K["ISENABLE"] == 1;//状态启用
- CONS = CONS & CK.K["GOODSTYPE"] == 0;//货位类型为存储区
- OrganizationList = BL.SearchList<VB_GOODSMANAGER>(CONS, (ASC)"KEYID", GridHW.PageSize, GridHW.PageIndex, out count);
- }
- else
- {
- Condition consd = Condition.Empty;
- foreach (var item in lse)
- {
- consd = consd && CK.K["KEYID"] == item.HWKEYID;
- }
- OrganizationList = BL.SearchList<VB_GOODSMANAGER>(consd, (ASC)"KEYID", GridHW.PageSize, GridHW.PageIndex, out count);
- }
- GridHW.RecordCount = Convert.ToInt32(count);
- GridHW.DataSource = OrganizationList;
- GridHW.DataBind();
-
-
- }
-
- /// <summary>
- /// 选项卡回发
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- protected void TabStrip1_TabIndexChanged(object sender, EventArgs e)
- {
- string currentIDS = Session["SeleJson"].ToSafeString();//接收Json
- JavaScriptSerializer jsonSerializer = new JavaScriptSerializer();
- List<TO_WH_INTRANS> DeseSelectJson = jsonSerializer.Deserialize<List<TO_WH_INTRANS>>(currentIDS);
- if (TabStrip1.ActiveTabIndex == 0)
- {
- SyncSelectedRowIDArrayToHiddenField_HW();
- GetGridHW();
- UpdateSelectedRowIDArray_HW();
- }
- if (TabStrip1.ActiveTabIndex == 1)
- {
- SyncSelectedRowIDArrayToHiddenField_HW();
- UpdateSelectedRowIDArray_HW();
- var mJObj = JArray.Parse(HW_SelectID.Text.Trim());//选中货位的ID
- Tab5.IFrameUrl = "../Market/2DView.aspx?WHID=" + DeseSelectJson[0].WHID + "";
- Label1.Text = "";//货位可用量清空
- HW_SelectID.Text = "";//选中货位ID清空
- }
- }
-
-
- }
- }
复制代码 如上,我点击第一个选项卡,他会跳转到第二个选项卡,把值传过去, 但是我点击第二个选项卡的时候执行选项卡切换,我这时候要把第二个选项卡的一些信息回发到这个切换事件中,怎么获取第二个选项的信息,,不知道大神明白我的问题了麽? |