iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
thanks!
I just posted the code behind and the page - couldn't make it any simpler
other than a few context variables, self-contained - store number chief parameter
actually, as most of the heavy lifting is done on the client it could be possible that even an item grid with something in it could throw a javascript error
thanks
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ItemsNew.aspx.cs" Inherits="ItemsNew" %><%@ Register Src="ShipData.ascx" TagName="ShipData" TagPrefix="shipping" %><%@ Register Assembly="ISNet.WebUI.WebGrid" Namespace="ISNet.WebUI.WebGrid" TagPrefix="ISWebGrid" %><!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>Order System</title> <script type="text/javascript" language="JavaScript" src="javascripts/calendar1.js"></script> <script type="text/javascript" language="JavaScript" src="javascripts/calendar2.js"></script></head><body> <form id="form1" runat="server"> <asp:ScriptManager id="ScriptManager1" runat="server"></asp:ScriptManager> <table border="0" style="width: 90%"> <tr> <td><asp:HiddenField ID="txtStoreHidden" runat="server" /></td> <td><asp:HiddenField ID="txtPWDHidden" runat="server" /></td> <td><asp:HiddenField ID="txtFullServ" runat="server" /></td> <td><asp:HiddenField ID="txtParent" runat="server" /></td> <td><asp:HiddenField ID="txtNetCost" runat="server" /></td> <td><asp:HiddenField ID="txtStoreCount" runat="server" /></td> <td><asp:HiddenField ID="txtShipping" runat="server" /></td> <td><asp:HiddenField id="txtItemID" runat="server" /></td> <td><asp:HiddenField id="txtVendor" runat="server" /></td> <td><asp:HiddenField id="txtChain" runat="server" /></td> <td><asp:HiddenField id="txtBoothNumber" runat="server" /></td> <td><asp:HiddenField id="txtConsolid" runat="server" /></td> <td><asp:HiddenField id="txtPageHidden" runat="server" /></td> </tr> </table> <div> <asp:UpdatePanel id="UpdatePanel1" runat="server" UpdateMode="Conditional"><contenttemplate> <table border="0" cellpadding="1" cellspacing="1" style="width: 1015px" > <tr> <!--td style="width: 62px"><span style="font-size: 8pt; color: #0000cc; text-decoration: underline;"><strong>Booth #</strong></span></td> <td style="width: 93px"><asp:DropDownList ID="cmbBooth" runat="server" OnSelectedIndexChanged="cmbBooth_SelectedIndexChanged" Font-Names="Verdana" Font-Size="X-Small" Height="10px" ForeColor="Black" Width="90px" Font-Bold="False"></asp:DropDownList></td--> <td style="width: 73px"><span style="font-size: 8pt; color: #0000cc; text-decoration: underline;"><strong>Order Code</strong></span></td> <td style="width: 115px"><asp:TextBox ID="txtOrderCode" runat="server" Font-Names="Verdana" Font-Size="X-Small" Height="12px" Width="54px"></asp:TextBox> <asp:ImageButton ID="cmdOrderCode" runat="server" Height="11px" ImageUrl="~/Images/up.gif" Width="18px" OnClick="cmdOrderCode_Click" /></td> <td style="width: 46px"><span style="font-size: 8pt; color: #0000cc; text-decoration: underline;"><strong>Page #</strong></span></td> <td style="width: 140px" ><asp:TextBox ID="txtPage" runat="server" Height="12px" Width="54px" Font-Names="Verdana" Font-Size="X-Small"></asp:TextBox> <asp:ImageButton ID="cmdPage" runat="server" Height="11px" ImageUrl="~/Images/up.gif" Width="18px" OnClick="cmdPage_Click" /> </td> <td style="width: 125px; background-color: #e6e6fa;" valign="middle"><a id="lnkShowOrder" href="#" style="font-size: 8pt; font-family: arial; color: #0000cc" onclick="javascript:return GetReport()">| View Show Reports</a></td> <td style="width: 127px; background-color: #e6e6fa;" valign="bottom"><asp:LinkButton ID="lnkConsOrder" runat="server" Font-Bold="False" Font-Names="Arial" Font-Size="8pt" Font-Underline="True" ForeColor="#0033CC" Width="125px" OnClick="lnkConsOrder_Click" Height="18px">| Consolidated Order</asp:LinkButton></td> <td style="width: 117px; background-color: #e6e6fa;" valign="middle"><a id="lnkChainOrder" href="#" style="font-size: 8pt; font-family: arial; color: #0000cc" onclick="javascript:return GetChainOrder()">| Chain Stores Order</a></td> <td style="width: 85px; background-color: #e6e6fa;" valign="middle"><a id="lnkInstruction" href="#" style="font-size: 8pt; font-family: arial; color: #0000cc" onclick="javascript:return GetInstruct()">| Instructions</a></td> </tr></table> <div> <ISWebGrid:WebGrid id="wgItems" runat="server" height="207px" width="1014px" TabIndex="11"> <RootTable Caption="Items"> <Columns> <ISWebGrid:WebGridColumn Caption="Description" DataMember="ItemDescription" EditType="NoEdit" Name="ItemDescription" Width="200px"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Pack" DataMember="Pack" DataType="System.Int32" EditType="NoEdit" Name="Pack" Width="50px"> <CellStyle HorizontalAlign="Right"> </CellStyle> <HeaderStyle HorizontalAlign="Right" Width="50px" /> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Size" DataMember="ItemSize" EditType="NoEdit" Name="ItemSize" Width="60px"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="UPC" DataMember="UPC" EditType="NoEdit" Name="UPC" Width="100px"> <HeaderStyle Width="100px" /> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="List Cost" DataFormatString="0.00" DataMember="Cost" DataType="System.Float" EditType="NoEdit" Name="Cost" Width="70px"> <CellStyle HorizontalAlign="Right"> </CellStyle> <HeaderStyle HorizontalAlign="Right" Width="60px" /> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Off Inv" DataFormatString="0.00" DataMember="Allow1" DataType="System.Float" EditType="NoEdit" Name="Allow1" Width="60px"> <CellStyle HorizontalAlign="Right"> </CellStyle> <HeaderStyle HorizontalAlign="Right" Width="60px" /> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Rebate" DataFormatString="0.00" DataMember="Rebate1" DataType="System.Float" EditType="NoEdit" Name="Rebate1" Width="60px"> <CellStyle HorizontalAlign="Right"> </CellStyle> <HeaderStyle HorizontalAlign="Right" Width="60px" /> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Show Alw" DataFormatString="0.00" DataMember="Rebate2" DataType="System.Float" EditType="NoEdit" Name="Rebate2" Width="70px"> <CellStyle HorizontalAlign="Right"> </CellStyle> <HeaderStyle HorizontalAlign="Right" Width="70px" /> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Net Cost" DataFormatString="0.00" DataMember="NetCost" DataType="System.Float" EditType="NoEdit" Name="NetCost" Width="60px"> <CellStyle HorizontalAlign="Right"> </CellStyle> <HeaderStyle HorizontalAlign="Right" Width="60px" /> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Unit Net" DataFormatString="0.00" DataMember="UnitCost" DataType="System.Float" EditType="NoEdit" Name="UnitCost" Width="70px"> <CellStyle HorizontalAlign="Right"> </CellStyle> <HeaderStyle HorizontalAlign="Right" Width="100px" /> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="MLT" DataMember="MLT" DataType="System.Int32" EditType="NoEdit" Name="MLT" Width="60px"> <CellStyle HorizontalAlign="Right"> </CellStyle> <HeaderStyle HorizontalAlign="Right" Width="60px" /> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="SRP" DataFormatString="0.00" DataMember="Retail" DataType="System.Float" EditType="NoEdit" Name="Retail" Width="60px"> <CellStyle HorizontalAlign="Right"> </CellStyle> <HeaderStyle HorizontalAlign="Right" Width="60px" /> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Item" DataMember="ItemID" DataType="System.Int32" EditType="NoEdit" Name="ItemID" Width="50px"> <CellStyle HorizontalAlign="Right"> </CellStyle> <HeaderStyle HorizontalAlign="Right" Width="50px" /> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Ad Date" DataFormatString="MM/dd/yy" DataMember="AdDate1" EditType="NoEdit" Name="AdDate1" Width="80px"> <HeaderStyle Width="80px" /> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Ad Date" DataFormatString="MM/dd/yy" DataMember="AdDate1" EditType="NoEdit" Name="AdDate2" Width="80px"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Ad Date" DataFormatString="MM/dd/yy" DataMember="AdDate3" Name="AdDate3" Width="80px"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Del Start(1)" DataFormatString="MM/dd/yy" DataMember="ShipStart1" EditType="NoEdit" Name="ShipStart1" Width="80px"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Del End(1)" DataFormatString="MM/dd/yy" DataMember="ShipEnd1" EditType="NoEdit" Name="ShipEnd1" Width="80px"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Del Start(2)" DataFormatString="MM/dd/yy" DataMember="ShipStart2" EditType="NoEdit" Name="ShipStart2" Width="80px"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Del End(2)" DataFormatString="MM/dd/yy" DataMember="ShipEnd2" EditType="NoEdit" Name="ShipEnd2" Width="80px"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Del Start(3)" DataFormatString="MM/dd/yy" DataMember="ShipStart3" EditType="NoEdit" Name="ShipStart3" Width="80px"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Del End(3)" DataFormatString="MM/dd/yy" DataMember="ShipEnd3" EditType="NoEdit" Name="ShipEnd3" Width="80px"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Page No" DataMember="PageNumber" DataType="System.Int32" EditType="NoEdit" Name="PageNumber" Width="100px"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Booth" DataMember="BoothNumber" DataType="System.Int32" EditType="NoEdit" Name="BoothNumber" Width="100px"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Vendor" DataMember="VendorNumber" DataType="System.Float" EditType="NoEdit" Name="VendorNumber" Width="100px"> </ISWebGrid:WebGridColumn> </Columns> </RootTable> <LayoutSettings AllowColumnFreezing="Yes" AllowEdit="Yes" RowHeightDefault="16px" GridLineColor="236, 233, 216" RowHighlightType="BackgroundOnly" AllowContextMenu="False"> <FreezePaneSettings ActiveFrozenColumns="1" ShowSplitterLine="False" SplitterLineWidth="0" MaxFrozenColumns="1" /> <ClientSideEvents OnRowSelect="wgItems_OnRowSelect" OnLostFocus="ClearSelectedItem" OnAfterInitialize="GetFirstRow"/> <FrameStyle Font-Size="XX-Small" HorizontalAlign="Left" BackColor="White" BorderColor="DarkGray" BorderStyle="Solid" BorderWidth="1px"> </FrameStyle> <RowStyle BackColor="White" CustomRules="text-overflow: ellipsis; overflow-x: hidden" Font-Names="Verdana" Font-Size="X-Small" ForeColor="#404040" /> <HeaderStyle BackColor="DarkGray" BackColor2="183, 184, 211" BorderColor="#ACA899" BorderStyle="Solid" BorderWidth="1px" CustomRules="border-right: solid 1px white; border-bottom: solid 1px white" Font-Bold="True" Font-Names="Verdana" Font-Size="8pt" ForeColor="White" GradientType="Vertical" Height="20px"> <Padding Bottom="4px" Left="2px" Right="2px" Top="4px" /> <BorderSettings> <Bottom Color="183, 184, 211" Width="1px" /> </BorderSettings> </HeaderStyle> <FocusCellStyle BorderColor="DimGray" BorderStyle="Solid" BorderWidth="1px" /> <PreviewRowStyle ForeColor="#0000C0"> </PreviewRowStyle> <StatusBarCommandStyle> <Active BackColor="RoyalBlue" BaseStyle="Over"> </Active> <Over BackColor="CornflowerBlue" BorderColor="Navy" BorderStyle="Solid" BorderWidth="1px"> </Over> <Normal> <Padding Bottom="1px" Left="1px" Right="1px" Top="1px" /> </Normal> </StatusBarCommandStyle> <GroupRowInfoStyle BackColor="#F1EFE2" BorderColor="White" BorderStyle="Solid" BorderWidth="1px" CustomRules="border-bottom-color: Silver; border-right-color: Silver" Font-Bold="True" Font-Names="Verdana" Font-Size="8pt" ForeColor="#676896"> <BorderSettings> <Bottom Color="144, 145, 182" Width="2px" /> <Right Color="Silver" /> </BorderSettings> </GroupRowInfoStyle> <GroupByBox> <LabelStyle BackColor="White" BorderColor="Navy" BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" Font-Size="8pt" ForeColor="Navy" /> <Style BackColor="Gray" BackColor2="199, 199, 221" BorderColor="Peru" BorderWidth="1px"></Style> </GroupByBox> <EditTextboxStyle BorderStyle="None" BorderWidth="0px" Font-Names="Verdana" Font-Size="8pt"> </EditTextboxStyle> <RowHeaderStyle BackColor="White" BackColor2="183, 184, 211" GradientType="Vertical"> <Padding Bottom="4px" Left="2px" Right="6px" Top="4px" /> <BorderSettings> <Bottom Color="183, 184, 211" Width="1px" /> </BorderSettings> </RowHeaderStyle> <SelectedRowStyle BackColor="Gray" ForeColor="White" /> <AlternatingRowStyle BackColor="WhiteSmoke" CustomRules="text-overflow: ellipsis; overflow-x: hidden" Font-Names="Verdana" Font-Size="X-Small" ForeColor="#404040" /> <StatusBarStyle BackColor="LightGray" BackColor2="199, 199, 221" BorderColor="DarkGray" BorderStyle="Solid" BorderWidth="1px" CustomRules="border-bottom-width: 0px" Font-Names="Verdana" Font-Size="8pt" ForeColor="Black"> <Padding Bottom="2px" Left="2px" Right="2px" Top="2px" /> </StatusBarStyle> <FooterStyle BackColor="PeachPuff" ForeColor="Navy" /> <NewRowStyle BackColor="White" Font-Names="Verdana" Font-Size="8pt" ForeColor="DarkGray"> </NewRowStyle> </LayoutSettings> </ISWebGrid:WebGrid></contenttemplate> <Triggers> <asp:PostBackTrigger ControlID="lnkConsOrder" /> </Triggers> </asp:UpdatePanel> </div> <div><asp:UpdatePanel id="UpdatePanel2" runat="server" UpdateMode="Conditional"> <contenttemplate><table><tr><td colspan="9"><input style="FONT-SIZE: 10px; WIDTH: 595px; BORDER-TOP-STYLE: none; FONT-FAMILY: Verdana; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none; font-weight: bold; color: navy;" id="lblInfo" readonly type="text" /></td></tr><tr><td><span style="font-size: 8pt; color: #000099; font-family: Verdana">Del Wnd 1</span></td><td><asp:TextBox ID="txtStart1" runat="server" BackColor="Gainsboro" BorderStyle="Solid" Font-Names="Verdana" Font-Size="X-Small" ForeColor="Black" Height="12px" ReadOnly="True" Width="69px" BorderColor="Navy" BorderWidth="1px"></asp:TextBox></td><td><asp:TextBox ID="txtEnd1" runat="server" BackColor="Gainsboro" BorderStyle="Solid" Font-Names="Verdana" Font-Size="X-Small" ForeColor="Black" Height="12px" ReadOnly="True" Width="69px" BorderColor="Navy" BorderWidth="1px"></asp:TextBox></td><td><span style="font-size: 8pt; color: #000099; font-family: Verdana">Del Wnd 2</span></td><td><asp:TextBox ID="txtStart2" runat="server" BackColor="Gainsboro" BorderStyle="Solid" Font-Names="Verdana" Font-Size="X-Small" ForeColor="Black" Height="12px" ReadOnly="True" Width="69px" BorderColor="Navy" BorderWidth="1px"></asp:TextBox></td><td><asp:TextBox ID="txtEnd2" runat="server" BackColor="Gainsboro" BorderStyle="Solid" Font-Names="Verdana" Font-Size="X-Small" ForeColor="Black" Height="12px" ReadOnly="True" Width="69px" BorderColor="Navy" BorderWidth="1px"></asp:TextBox></td><td><span style="font-size: 8pt; color: #000099; font-family: Verdana">Del Wnd 3</span></td><td><asp:TextBox ID="txtStart3" runat="server" BackColor="Gainsboro" BorderStyle="Solid" Font-Names="Verdana" Font-Size="X-Small" ForeColor="Black" Height="12px" ReadOnly="True" Width="69px" BorderColor="Navy" BorderWidth="1px"></asp:TextBox></td><td><asp:TextBox ID="txtEnd3" runat="server" BackColor="Gainsboro" BorderStyle="Solid" Font-Names="Verdana" Font-Size="X-Small" ForeColor="Black" Height="12px" ReadOnly="True" Width="69px" BorderColor="Navy" BorderWidth="1px"></asp:TextBox></td></tr></table><asp:Table id="tblShip" runat="server" Width="900px" BorderStyle="Solid"> <asp:TableRow ID="TableRow1" runat="server"> <asp:TableCell ID="TableCell1" runat="server"><span style="font-size: 8pt; color: #000099; font-family: Verdana">Ship Date</span><a href="javascript:cal1.popup();"><img height="16" alt="Click Here to Pick up the date" src="img/cal.gif" width="16" /></a><asp:TextBox id="del1" runat="server" Width="75px" Height="14px" Font-Size="X-Small" Font-Names="Verdana" BorderWidth="1px"></asp:TextBox></asp:TableCell> <asp:TableCell ID="TableCell2" runat="server"><span style="font-size: 8pt; color: #000099; font-family: Verdana">Ship Date</span><a href="javascript:cal2.popup();"><img height="16" alt="Click Here to Pick up the date" src="img/cal.gif" width="16" /></a><asp:TextBox id="del2" runat="server" Width="75px" Height="14px" Font-Size="X-Small" Font-Names="Verdana" BorderWidth="1px"></asp:TextBox></asp:TableCell> <asp:TableCell ID="TableCell3" runat="server"><span style="font-size: 8pt; color: #000099; font-family: Verdana">Ship Date</span><a href="javascript:cal3.popup();"><img height="16" alt="Click Here to Pick up the date" src="img/cal.gif" width="16" /></a><asp:TextBox id="del3" runat="server" Width="75px" Height="14px" Font-Size="X-Small" Font-Names="Verdana" BorderWidth="1px"></asp:TextBox></asp:TableCell> <asp:TableCell ID="TableCell4" runat="server"><span style="FONT-SIZE: 8pt; FONT-FAMILY: Verdana"><span style="color: #000099">Ship Date</span><a href="javascript:cal4.popup();"><img height="16" alt="Click Here to Pick up the date" src="img/cal.gif" width="16" style="font-size: 12pt; font-family: Times New Roman" /></a><asp:TextBox id="del4" runat="server" Width="75px" Height="14px" Font-Size="X-Small" Font-Names="Verdana" BorderWidth="1px"></asp:TextBox></asp:TableCell> <asp:TableCell ID="TableCell5" runat="server"><span style="font-size: 8pt; color: #000099; font-family: Verdana">Ship Date</span><a href="javascript:cal5.popup();"><img height="16" alt="Click Here to Pick up the date" src="img/cal.gif" width="16" /></a> <asp:TextBox id="del5" runat="server" Width="75px" Height="14px" Font-Size="X-Small" Font-Names="Verdana" BorderWidth="1px"></asp:TextBox></asp:TableCell> <asp:TableCell ID="TableCell6" runat="server"><span style="font-size: 8pt; color: #000099; font-family: Verdana">Ship Date</span><a href="javascript:cal6.popup();"><img height="16" alt="Click Here to Pick up the date" src="img/cal.gif" width="16" /></a> <asp:TextBox id="del6" runat="server" Width="75px" Height="14px" Font-Size="X-Small" Font-Names="Verdana" BorderWidth="1px"></asp:TextBox></asp:TableCell> </asp:TableRow></asp:Table></contenttemplate></asp:UpdatePanel></div><div><asp:UpdatePanel id="UpdatePanel3" runat="server" UpdateMode="Conditional"> <contenttemplate><table><tr><td><asp:ImageButton id="cmdAdd" onclick="cmdAdd_Click" runat="server" Width="170px" Height="22px" ImageUrl="~/Images/addto.bmp" BorderWidth="1px"></asp:ImageButton></td><td><asp:ImageButton id="cmdDelete" onclick="cmdDelete_Click" runat="server" Width="173px" Height="22px" ImageUrl="~/Images/deletefrom.bmp" BorderWidth="1px"></asp:ImageButton></td><td style="width: 229px"> <span style="font-size: 8pt; font-family: Verdana; color: #000099">Find Item by Order Code</span><asp:TextBox ID="txtFindCode" runat="server" Font-Names="Verdana" Font-Size="X-Small" Height="12px " Width="54px"></asp:TextBox><asp:Button ID="cmdFindItem" runat="server" BackColor="Plum" BorderColor="Black" BorderStyle="Inset" BorderWidth="1px" Height="18px" Width="20px" OnClick="cmdFindItem_Click" /></td><td><asp:ImageButton id="cmdFinalize" onclick="cmdFinalize_Click" runat="server" Width="170px" Height="22px" ImageUrl="~/Images/viewex.bmp" BorderWidth="1px"></asp:ImageButton></td><td><asp:HiddenField id="lblDelivery" runat="server" /></td><td><asp:HiddenField id="lblStore" runat="server" /></td></tr></table><ISWebGrid:WebGrid id="wgOrder" runat="server" Width="1000px" Height="208px" UseDefaultStyle="True"> <RootTable> <Columns> <ISWebGrid:WebGridColumn Caption="Store" DataFormatString="0" DataMember="StoreNumber" DataType="System.Float" EditType="NoEdit" Name="StoreNumber" Width="50px"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Booth" DataFormatString="0" DataMember="BoothNumber" DataType="System.Int32" EditType="NoEdit" Name="BoothNumber" Width="60px"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Item" DataFormatString="0" DataMember="ItemID" DataType="System.Int32" EditType="NoEdit" Name="ItemID" Width="80px"> <CellStyle HorizontalAlign="Right"> </CellStyle> <HeaderStyle HorizontalAlign="Right" ></HeaderStyle> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Description" DataMember="ItemDescription" EditType="NoEdit" Name="ItemDescription" Width="200px"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Ship Date" DataFormatString="MM/dd/yy" DataMember="ShipDate" EditType="NoEdit" Name="ShipDate" Width="80px"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Cases" DataFormatString="0" DataMember="Qty" DataType="System.Int32" EditType="NoEdit" Name="Qty" Width="80px"> <CellStyle HorizontalAlign="Right"> </CellStyle> <HeaderStyle HorizontalAlign="Right" ></HeaderStyle> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Net Cost" DataFormatString="0.00" DataMember="NetCost" DataType="System.Float" EditType="NoEdit" Name="NetCost" Width="80px"> <CellStyle HorizontalAlign="Right"> </CellStyle> <HeaderStyle HorizontalAlign="Right" ></HeaderStyle> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Total" DataFormatString="0.00" DataMember="ItemTotal" DataType="System.Float" EditType="NoEdit" Name="ItemTotal" Width="90px"> <CellStyle HorizontalAlign="Right"> </CellStyle> <HeaderStyle HorizontalAlign="Right" ></HeaderStyle> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Page" DataMember="PageNumber" DataType="System.Int32" EditType="NoEdit" Name="PageNumber" Width="100px"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Vendor" DataMember="VendorNumber" DataType="System.Float" EditType="NoEdit" Name="VendorNumber" Width="100px"> </ISWebGrid:WebGridColumn> </Columns> </RootTable> <LayoutSettings AllowColumnFreezing="Yes" RowHeightDefault="18px" AllowContextMenu="False"> <ClientSideEvents OnRowSelect="wgOrder_OnRowSelect" OnLostFocus="ClearSelectedObject"/> </LayoutSettings> </ISWebGrid:WebGrid> </contenttemplate> <Triggers> <asp:PostBackTrigger ControlID="cmdFinalize" /> </Triggers> </asp:UpdatePanel> </div> </form> <script language="javascript" type="text/javascript"> <!-- var cal1 = new calendar2(document.form1.elements['del1']); cal1.year_scroll = true; cal1.time_comp = false; var cal2 = new calendar2(document.form1.elements['del2']); cal2.year_scroll = true; cal2.time_comp = false; var cal3 = new calendar2(document.form1.elements['del3']); cal3.year_scroll = true; cal3.time_comp = false; var cal4 = new calendar2(document.form1.elements['del4']); cal4.year_scroll = true; cal4.time_comp = false; var cal5 = new calendar2(document.form1.elements['del5']); cal5.year_scroll = true; cal5.time_comp = false; var cal6 = new calendar2(document.form1.elements['del6']); cal6.year_scroll = true; cal6.time_comp = false; function wgItems_OnRowSelect(controlId, tblName, rowIndex, rowEl) { var wgItems = ISGetObject(controlId); var row = wgItems.GetSelectedObject().GetRowObject(); var cells=row.GetCells(); // populate order form's fields var vItemID = cells[12].Text; var ShipStart1 = cells[16].Text; var ShipEnd1 = cells[17].Text; var ShipStart2 = cells[18].Text; var ShipEnd2 = cells[19].Text; var ShipStart3 = cells[20].Text; var ShipEnd3 = cells[21].Text; var descr = cells[0].Text; //form1.txtItemID.value = vItemID; form1.txtItemID.value = cells[12].Text; form1.lblInfo.value=descr+' '+vItemID; form1.lblDelivery.value=""; //var netcost = cells[8].Text; form1.txtNetCost.value = cells[8].Text; form1.txtPage.value = cells[22].Text; form1.txtPageHidden.value = cells[22].Text; form1.txtBoothNumber.value = cells[23].Text; form1.txtVendor.value = cells[24].Text; form1.txtStart1.value=ShipStart1; form1.txtStart2.value=ShipStart2; form1.txtStart3.value=ShipStart3; form1.txtEnd1.value=ShipEnd1; form1.txtEnd2.value=ShipEnd2; form1.txtEnd3.value=ShipEnd3; var i=0; var j=0; for(j=0;j<6;j++) { for(i=0;i<form1.txtStoreCount.value;i++) { var m_qty=document.getElementById("sd"+j+i+"_qty"); m_qty.value=""; } } form1.txtOrderCode.value=""; return true; } function ClearSelectedObject() { // retrieves WebGrid's object var grid = ISGetObject("wgOrder"); grid.ClearSelectedObject(); // clear selected object return true; } function ClearSelectedItem() { // retrieves WebGrid's object var grid = ISGetObject("wgItems"); grid.ClearSelectedObject(); // clear selected object return true; } function wgOrder_OnRowSelect(controlId, tblName, rowIndex, rowEl) { var wgOrder = ISGetObject(controlId); var row = wgOrder.GetSelectedObject().GetRowObject(); var cells=row.GetCells(); // populate order form's fields var descr = cells[3].Text; form1.lblStore.value = cells[0].Text; var qty = cells[5].Text; form1.txtItemID.value = cells[2].Text; form1.lblInfo.value=descr+' '+ cells[2].Text; form1.txtNetCost.value = cells[6].Text; form1.txtBoothNumber.value = cells[1].Text; //form1.del1.value=cells[4].Text; form1.txtPage.value=cells[8].Text; form1.txtPageHidden.value = cells[8].Text; form1.txtVendor.value=cells[9].Text; form1.lblDelivery.value=cells[4].Text; var i=0 var j=0; for(j=0;j<6;j++) { for(i=0;i<form1.txtStoreCount.value;i++) { var m_store=document.getElementById("sd"+j+i+"_lblStore"); var m_qty = document.getElementById("sd"+j+i+"_qty"); if (j==0) { if(m_store.innerHTML==form1.lblStore.value) { m_qty.value=qty; } else { m_qty.value=""; } } else { m_qty.value=""; } } } form1.txtStart1.value=''; form1.txtStart2.value=''; form1.txtStart3.value=''; form1.txtEnd1.value=''; form1.txtEnd2.value=''; form1.txtEnd3.value=''; return true; } function numonly() { var key = ''; var i = 0; var strCheck = '0123456789'; var whichCode = event.keyCode; if (whichCode == 13) return true; key = String.fromCharCode(whichCode); if (strCheck.indexOf(key) == -1) return false; return true; } function dateonly() { var key = ''; var i = 0; var strCheck = '0123456789/'; var whichCode = event.keyCode; if (whichCode == 13) return true; key = String.fromCharCode(whichCode); if (strCheck.indexOf(key) == -1) return false; return true; } function check_page() { var vpage=document.getElementById('txtPage'); if(vpage.value=='') { //alert('Enter Page Number'); return (false); } return (true); } function check_oneitem() { var voneitem=document.getElementById('txtOrderCode'); if(voneitem.value=='') { return (false); } return (true); } function check_finditem() { var vfinditem=document.getElementById('txtFindCode'); if(vfinditem.value=='' || vfinditem.value=='0' ) { return (false); } return (true); } function check_consolid() { if(form1.txtConsolid.value=='1') { return (true); } else { if(form1.txtParent.value=='0') { return (false); } else { return (true); } } } function check_delete() { if(form1.txtItemID.value =='') return (false); if(form1.txtStart1.value !='') return false; if(form1.txtStart2.value !='') return false; if(form1.txtStart3.value !='') return false; if(form1.txtPageHidden.value == '') return false; if(confirm("Do you want to Delete Item " + form1.lblInfo.value)) { return true; } else return false; } function check_chain() { if(form1.txtChain.value=='') return false; return true; } function check_input() { var strItemId=document.getElementById('txtItemID'); if(strItemId.value==''){return (false);} if(form1.txtPageHidden.value == "") {return (false);} var strShipDate1=document.getElementById('del1'); var strShipDate2=document.getElementById('del2'); var strShipDate3=document.getElementById('del3'); var strShipDate4=document.getElementById('del4'); var strShipDate5=document.getElementById('del5'); var strShipDate6=document.getElementById('del6'); ///check ship dates var strDate = strShipDate1.value+strShipDate2.value+strShipDate3.value+strShipDate4.value+strShipDate5.value+strShipDate6.value if (strDate == '') { alert('Please Enter Delivery Date'); return (false); } ///////// var i=0; var j=0; var strShipText = ""; var checkDate=""; var bQty = 0; for(j=0;j<6;j++) { if(eval('strShipDate'+(j+1)).value =='') continue; checkDate=format_dates(eval('strShipDate'+(j+1)).value); for(i=0;i<form1.txtStoreCount.value;i++) { var m_qty = document.getElementById("sd"+j+i+"_qty"); var m_store = document.getElementById("sd"+j+i+"_lblStore"); if(m_qty.value != "") { bQty=1; if(checkDate == "") { alert('Invalid Delivery Date'); eval('strShipDate'+(j+1)).value = ""; eval('strShipDate'+(j+1)).focus(); return (false); } if(!delivery_ok(checkDate)) { alert('Ship Date Outside Delivery Windows'); eval('strShipDate'+(j+1)).value = ""; eval('strShipDate'+(j+1)).focus(); return (false); } //strShipText += eval('strShipDate'+(j+1)).value + "=" + m_store.innerHTML + "=" + m_qty.value + "|"; strShipText += checkDate + "=" + m_store.innerHTML + "=" + m_qty.value + "|"; } //if(m_qty.value != "") bQty=1; } } form1.txtShipping.value = strShipText; ////////// if (bQty == 0) { alert('Please Enter Number of Cases'); return (false); } return (true); } function format_dates(strDate) { var i=0; var arrDate; for (i = 0; i < 3; i++) { if (strDate.indexOf("/") != -1) { arrDate = strDate.split("/"); if (arrDate.length != 3) { return ""; } } else { return ""; } } var ye = "20" + arrDate[2].substring(arrDate[2].length-2); var month = Number(arrDate[0]); var day = Number(arrDate[1]) if (month < 1 || month > 12) {return "";} if (day < 1 || day > 31) {return "";} if ((month==4 || month==6 || month==9 || month==11) && day==31) { return ""; } if (month == 2) { var isleap = (ye % 4 == 0 && (ye % 100 != 0 || ye % 400 == 0)); if (day > 29 || (day==29 && !isleap)) {return "";} } var strD = Number(arrDate[0]) + "/" + Number(arrDate[1]) + "/" + ye; return strD; } function delivery_ok(strSD) { var endDate1=document.getElementById('txtEnd1'); var endDate2=document.getElementById('txtEnd2'); var endDate3=document.getElementById('txtEnd3'); var startDate1=document.getElementById('txtStart1'); var startDate2=document.getElementById('txtStart2'); var startDate3=document.getElementById('txtStart3'); var vDate1 = format_dates(startDate1.value); var vDate2 = format_dates(startDate2.value); var vDate3 = format_dates(startDate3.value); var vEnd1 = format_dates(endDate1.value); var vEnd2 = format_dates(endDate2.value); var vEnd3 = format_dates(endDate3.value); if(vDate1 !='') { if(Date.parse(strSD)>=Date.parse(vDate1) && Date.parse(strSD)<=Date.parse(vEnd1)) { return true; } } if(vDate2 !='') { if(Date.parse(strSD)>=Date.parse(vDate2) && Date.parse(strSD)<=Date.parse(vEnd2)) { return true; } } if(vDate3 !='') { if(Date.parse(strSD)>=Date.parse(vDate3) && Date.parse(strSD)<=Date.parse(vEnd3)) { return true; } } return false; } function GetFirstRow() { var grid; var rows; try { grid = ISGetObject("wgItems"); } catch(err) { return false; } rows = grid.TotalLoadedRows; if(rows == 1) { var rootTable = grid.RootTable; var firstRow = rootTable.GetRow(0); //firstRow.Select(); rootTable.SelectRow(0); } return true; }function GetInstruct(){ window.open("ItemsManual.htm","Instructions"); return true;}function GetReport(){ var strQuery = "?Store=" + form1.txtStoreHidden.value + "&Chain=" + form1.txtChain.value; window.open("ShowOrder.aspx"+strQuery,"Report"); return true;}function GetChainOrder(){ if(form1.txtChain.value=="") return false; var strQuery = "?Store=" + form1.txtStoreHidden.value; window.open("ChainOrder.aspx"+strQuery,"ChainOrder"); return true;} //--></script></body></html>
using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;using System.Reflection;public partial class ItemsNew : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) { //string controlName = Request.Params.Get("__EVENTTARGET"); if (!this.IsPostBack) { // update //WSOrderSystem.WSOrders wsOrder = new WSOrderSystem.WSOrders(); //string wsURL = System.Configuration.ConfigurationManager.AppSettings["WSURL"].ToString(); //wsOrder.Url = wsURL; WsOrderSystem wsOrder = new WsOrderSystem(); Session.RemoveAll(); Session.Add("PageView", (DataSet)null); Session.Add("OrderView", (DataSet)null); if (Request.Form["storeNumber"] != null) { txtStoreHidden.Value = Request.Form["StoreNumber"].ToString(); } else { txtStoreHidden.Value = Context.Items["StoreNumber"].ToString(); } txtFullServ.Value = Context.Items["FullServ"].ToString(); txtConsolid.Value = Context.Items["ConsOrder"].ToString(); txtParent.Value = Context.Items["ParentStore"].ToString(); txtChain.Value = Context.Items["ChainID"].ToString(); DataSet dsBooth = new System.Data.DataSet(); // uncomment out next few lines //dsBooth = wsOrder.GetBooth(); //if (dsBooth == (DataSet)null) //{ // cmbBooth.Items.Clear(); // return; //} //try //{ // //fill booth // cmbBooth.DataSource = dsBooth.Tables["Booth"]; // cmbBooth.DataValueField = dsBooth.Tables["Booth"].Columns[0].ToString(); // cmbBooth.DataTextField = dsBooth.Tables["Booth"].Columns[1].ToString(); // cmbBooth.DataBind(); // cmbBooth.SelectedIndex = -1; //} //catch //{ // cmbBooth.Items.Clear(); //} // uncomment out next few lines //fill chain stores dsBooth = (DataSet)null; if (txtChain.Value.Trim() != "") { dsBooth = wsOrder.get_chain_user(txtChain.Value); // update wsOrder = new WsOrderSystem(); } write_stores(dsBooth); /////////end chain stores //fill order dsBooth = (DataSet)null; dsBooth = wsOrder.GetOrder(txtStoreHidden.Value, txtChain.Value, false); if (dsBooth != (DataSet)null) { wgOrder.DataSource = dsBooth; } else wgOrder.DataSource = (DataSet)null; wgOrder.DataBind(); Session["OrderView"] = dsBooth; // update // wsOrder.Dispose(); wsOrder = null; //// } else { if (wgOrder.DataSource == (DataSet)null) { wgOrder.DataSource = Session["OrderView"]; wgOrder.DataBind(); } } //client scripts txtPage.Attributes.Add("onkeypress", "return numonly()"); txtOrderCode.Attributes.Add("onkeypress", "return numonly()"); txtFindCode.Attributes.Add("onkeypress", "return numonly()"); del1.Attributes.Add("onkeypress", "return dateonly()"); del2.Attributes.Add("onkeypress", "return dateonly()"); del3.Attributes.Add("onkeypress", "return dateonly()"); del4.Attributes.Add("onkeypress", "return dateonly()"); del5.Attributes.Add("onkeypress", "return dateonly()"); del6.Attributes.Add("onkeypress", "return dateonly()"); cmdAdd.OnClientClick = "if(!check_input())return false;"; cmdPage.OnClientClick = "if(!check_page()) return false;"; cmdDelete.OnClientClick = "if(!check_delete()) return false;"; lnkConsOrder.OnClientClick = "if(!check_consolid()) return false;"; cmdOrderCode.OnClientClick = "if(!check_oneitem()) return false;"; cmdFindItem.OnClientClick = "if(!check_finditem()) return false;"; //////////// Context.Items["StoreNumber"] = txtStoreHidden.Value; Context.Items["PWD"] = txtPWDHidden.Value; Context.Items["FullServ"] = txtFullServ.Value; Context.Items["ConsOrder"] = txtConsolid.Value; Context.Items["ParentStore"] = txtParent.Value ; Context.Items["ChainID"] = txtChain.Value; //////////////// } protected void cmbBooth_SelectedIndexChanged(object sender, EventArgs e) { if (this.IsPostBack) { DataSet ds = LoadItems(); if (ds != (DataSet)null) { wgItems.DataSource = ds; Session["PageView"] = ds; wgItems.Visible = true; } else { wgItems.DataSource = (DataSet)null; //wgItems.Visible = false; } wgItems.DataBind(); del1.Text = ""; del2.Text = ""; del3.Text = ""; del4.Text = ""; del5.Text = ""; del6.Text = ""; txtOrderCode.Text = ""; txtPage.Text = ""; txtPageHidden.Value = ""; } } protected DataSet LoadItems() { DataSet dsItems = new DataSet(); // if (cmbBooth.Text == "") return (DataSet)null; // // update // //WSOrderSystem.WSOrders wsOrder = new WSOrderSystem.WSOrders(); // //string wsURL = System.Configuration.ConfigurationManager.AppSettings["WSURL"].ToString(); // //wsOrder.Url = wsURL; // WsOrderSystem wsOrder = new WsOrderSystem(); // dsItems = wsOrder.GetItems(cmbBooth.SelectedValue.ToString(), txtFullServ.Value); // // update // // wsOrder.Dispose(); // wsOrder = null; return dsItems; } protected void cmdPage_Click(object sender, ImageClickEventArgs e) { if (txtPage.Text.Trim() == "") return; if (this.IsPostBack) { DataSet ds = LoadPageItems(); if (ds != (DataSet)null) { wgItems.DataSource = ds; Session["PageView"] = ds; wgItems.Visible = true; } else { wgItems.DataSource = (DataSet)null; } wgItems.DataBind(); del1.Text = ""; del2.Text = ""; del3.Text = ""; del4.Text = ""; del5.Text = ""; del6.Text = ""; txtOrderCode.Text = ""; // uncomment this out // cmbBooth.SelectedIndex = -1; } } protected void cmdOrderCode_Click(object sender, ImageClickEventArgs e) { if (txtOrderCode.Text.Trim() == "") return; if (this.IsPostBack) { DataSet ds = LoadOneItem(); if (ds != (DataSet)null) { wgItems.DataSource = ds; Session["PageView"] = ds; wgItems.Visible = true; } else { wgItems.DataSource = (DataSet)null; } wgItems.DataBind(); del1.Text = ""; del2.Text = ""; del3.Text = ""; del4.Text = ""; del5.Text = ""; del6.Text = ""; txtPage.Text = ""; txtPageHidden.Value = ""; // uncomment this out // cmbBooth.SelectedIndex = -1; } } protected DataSet LoadOneItem() { DataSet dsItems = new DataSet(); if (txtOrderCode.Text.Trim() == "") return (DataSet)null; // update //WSOrderSystem.WSOrders wsOrder = new WSOrderSystem.WSOrders(); //string wsURL = System.Configuration.ConfigurationManager.AppSettings["WSURL"].ToString(); //wsOrder.Url = wsURL; WsOrderSystem wsOrder = new WsOrderSystem(); dsItems = wsOrder.GetOneItem(txtOrderCode.Text.Trim(), txtFullServ.Value); // update // wsOrder.Dispose(); wsOrder = null; return dsItems; } protected DataSet LoadPageItems() { DataSet dsItems = new DataSet(); if (txtPage.Text.Trim() == "") return (DataSet)null; // update //WSOrderSystem.WSOrders wsOrder = new WSOrderSystem.WSOrders(); //string wsURL = System.Configuration.ConfigurationManager.AppSettings["WSURL"].ToString(); //wsOrder.Url = wsURL; WsOrderSystem wsOrder = new WsOrderSystem(); dsItems = wsOrder.GetPageItems(txtPage.Text.Trim(), txtFullServ.Value); // update // wsOrder.Dispose(); wsOrder = null; return dsItems; } protected void lnkConsOrder_Click(object sender, EventArgs e) { Server.Transfer("ConsolidOrder.aspx", true); } protected void cmdAdd_Click(object sender, ImageClickEventArgs e) { int iBooth = Convert.ToInt32(txtBoothNumber.Value.Trim()); //int iPage = Convert.ToInt32(txtPage.Text.Trim()); int iPage = Convert.ToInt32(txtPageHidden.Value); double dNetCost = Convert.ToDouble(txtNetCost.Value.Trim()); double dVendor = Convert.ToDouble(txtVendor.Value); bool bAdd = false; string dItem = txtItemID.Value; DataSet dsOrder = new DataSet(); // update //WSOrderSystem.WSOrders wsOrder = new WSOrderSystem.WSOrders(); //string wsURL = System.Configuration.ConfigurationManager.AppSettings["WSURL"].ToString(); //wsOrder.Url = wsURL; WsOrderSystem wsOrder = new WsOrderSystem(); string strQty = txtShipping.Value; if (strQty.Trim() == "") return; string[] arrData = strQty.Split('|'); bAdd = wsOrder.AddToOrderMult(arrData, iBooth, iPage, dVendor, dNetCost, Convert.ToDouble(txtItemID.Value),Convert.ToInt32(txtConsolid.Value)); // update need new object (connection closed above) wsOrder = null; wsOrder = new WsOrderSystem(); // end of new code dsOrder = wsOrder.GetUpdatedOrder(txtStoreHidden.Value, txtChain.Value, txtItemID.Value); if (dsOrder != (DataSet)null) { wgOrder.DataSource = dsOrder; wgOrder.DataBind(); Session["OrderView"] = dsOrder; } if (lblDelivery.Value != "") { del1.Text = ""; } lblDelivery.Value = ""; lblStore.Value = ""; // update // wsOrder.Dispose(); wsOrder = null; } protected void cmdDelete_Click(object sender, ImageClickEventArgs e) { if (lblDelivery.Value == "") { return; } if (lblStore.Value == "") { return; } // update //WSOrderSystem.WSOrders wsOrder = new WSOrderSystem.WSOrders(); //string wsURL = System.Configuration.ConfigurationManager.AppSettings["WSURL"].ToString(); //wsOrder.Url = wsURL; WsOrderSystem wsOrder = new WsOrderSystem(); DataSet ds = wsOrder.DeleteOrderItem(lblStore.Value, txtPageHidden.Value, txtItemID.Value, lblDelivery.Value, txtVendor.Value); if (ds != (DataSet)null) { wgOrder.DataSource = ds; wgOrder.DataBind(); Session["OrderView"] = ds; } lblDelivery.Value = ""; lblStore.Value = ""; } protected void cmdFinalize_Click(object sender, ImageClickEventArgs e) { Server.Transfer("EditOrder.aspx",true); } protected void write_stores(DataSet ds) { TableRow trow; TableCell tcell; int i = 0; int j = 0; int iRecords; string strStore=""; if (ds == (DataSet)null) { strStore = txtStoreHidden.Value; iRecords = 1; } else iRecords = ds.Tables[0].Rows.Count; txtStoreCount.Value = iRecords.ToString(); trow = new TableRow(); for (j = 0; j < 6; j++) { tcell = new TableCell(); tcell.Width = 263; for (i = 0; i < iRecords; i++) { System.Web.UI.UserControl sd = (UserControl)Page.LoadControl("ShipData.ascx"); Type ut = sd.GetType(); System.Reflection.PropertyInfo pi = ut.GetProperty("StoreNumber"); sd.ID = "sd" + j.ToString() + i.ToString(); if (strStore == "") { pi.SetValue(sd, ds.Tables[0].Rows[i][0].ToString(), null); } else pi.SetValue(sd, strStore, null); tcell.Controls.Add(sd); } trow.Cells.Add(tcell); } tblShip.Rows.Add(trow); } protected void cmdFindItem_Click(object sender, EventArgs e) { // update //WSOrderSystem.WSOrders wsOrder = new WSOrderSystem.WSOrders(); //string wsURL = System.Configuration.ConfigurationManager.AppSettings["WSURL"].ToString(); //wsOrder.Url = wsURL; WsOrderSystem wsOrder = new WsOrderSystem(); string strItem = txtFindCode.Text.Trim(); DataSet ds = new DataSet(); ds = wsOrder.GetUpdatedOrder(txtStoreHidden.Value, txtChain.Value, strItem); if (ds != (DataSet)null) { wgOrder.DataSource = ds; wgOrder.DataBind(); Session["OrderView"] = ds; } // update // wsOrder.Dispose(); wsOrder = null; if (lblDelivery.Value != "") { del1.Text = ""; } lblDelivery.Value = ""; } }
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname