<%@ Register TagPrefix="cc1" Namespace="OpenDoubleListBox" Assembly="OpenDoubleListBox" %>
<%@ Register TagPrefix="uc1" TagName="Header" Src="UserControls/Header.ascx" %>
<%@ Register TagPrefix="uc2" TagName="Footer" Src="UserControls/Footer.ascx" %>
<%@ Page language="c#" Codebehind="Palletization.aspx.cs" AutoEventWireup="false" Inherits="Microsoft.RFIDLab.EPCISDemo.Palletization" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>Palletization</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<LINK href="Styles.css" rel="stylesheet">
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">
			<P><uc1:header id="Header1" runat="server"></uc1:header></P>
			<P><asp:label id="lblCasesToPalletize" runat="server" CssClass="NormalVerySmall"></asp:label></P>
			<P class="Normal">
				<table width="100%" height="300" runat="server" id="tblDoubleListBox">
					<tr width="100%">
						<td width="100%"><cc1:doublelistbox id="DoubleListBox1" runat="server" RemoveButtonToolTip="Remove highlighted cases from pallet"
								RemoveAllButtonToolTip="Remove all cases from pallet" AddButtonToolTip="Add highlighted cases to pallet" AddAllButtonToolTip="Add all cases to pallet"
								Style="FONT-WEIGHT: normal; FONT-SIZE: 8pt; FONT-STYLE: normal; FONT-FAMILY: Tahoma, Verdana, Arial, Helvetica"
								Width="1000px" Height="250px"></cc1:doublelistbox></td>
					</tr>
				</table>
			</P>
			<P><asp:literal id="Literal1" runat="server"></asp:literal></P>
			<P><asp:button id="btnCreatePallet" runat="server" Text="Step 5 : Create Pallet &amp; Save to EPC IS"
					CssClass="Normal"></asp:button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<asp:Button id="btnGenerateASN" runat="server" Text="Step 6 : Generate ASN" CssClass="Normal"></asp:Button></P>
			<P>
				<asp:DataGrid id="palletEPCDatagrid" runat="server" BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px"
					BackColor="White" CellPadding="4" AutoGenerateColumns="False">
					<FooterStyle ForeColor="#003399" BackColor="#99CCCC"></FooterStyle>
					<SelectedItemStyle Font-Bold="True" ForeColor="#CCFF99" BackColor="#009999"></SelectedItemStyle>
					<ItemStyle ForeColor="#003399" BackColor="White"></ItemStyle>
					<HeaderStyle Font-Bold="True" ForeColor="#CCCCFF" BackColor="#003399"></HeaderStyle>
					<Columns>
						<asp:BoundColumn DataField="PalletEPC" HeaderText="Pallet EPC"></asp:BoundColumn>
						<asp:BoundColumn DataField="PalletEPCURI" HeaderText="Pallet EPC URI"></asp:BoundColumn>
						<asp:HyperLinkColumn HeaderText="EPC IS Information" DataTextField="PalletEPCURI" DataTextFormatString="View Containment details In EPC IS for {0}"
							DataNavigateUrlField="PalletEPCURI" DataNavigateUrlFormatString="javascript:var w=window.open('ViewContainmentEPCISDetails.aspx?uri={0}','','width=500,height=330,resizable=yes,scrollbars=yes');" />
						<asp:TemplateColumn HeaderText="Associated Cases">
							<ItemTemplate>
								<asp:DataGrid ID="DataGrid3" Runat="server" BorderColor="White" BorderStyle="None" BorderWidth="1px" BackColor="White" CellPadding="4" AutoGenerateColumns="False" DataSource="<%#GetAssociatedCasesEPCInformation(Container.Cells[0].Text.ToString())%>">
									<Columns>
										<asp:BoundColumn DataField="TagId" HeaderText=""></asp:BoundColumn>
										<asp:BoundColumn DataField="TagIdURI" HeaderText=""></asp:BoundColumn>
										<asp:BoundColumn DataField="Description" HeaderText=""></asp:BoundColumn>
									</Columns>
								</asp:DataGrid>
							</ItemTemplate>
						</asp:TemplateColumn>
					</Columns>
					<PagerStyle HorizontalAlign="Left" ForeColor="#003399" BackColor="#99CCCC" Mode="NumericPages"></PagerStyle>
				</asp:DataGrid></P>
			<P><uc2:Footer id="Footer1" runat="server"></uc2:Footer></P>
		</form>
	</body>
</HTML>
