<%@ Page language="c#" Codebehind="CaseEPCGeneration.aspx.cs" AutoEventWireup="false" Inherits="Microsoft.RFIDLab.EPCISDemo.CaseEPCGeneration" %>
<%@ Register TagPrefix="uc2" TagName="Footer" Src="UserControls/Footer.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Header" Src="UserControls/Header.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>EPC Generation for Cases</title>
		<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
		<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="lblOrderNumber" runat="server">Order Number</asp:label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</P>
			<P><asp:datagrid id="dgCaseEPCDetails" runat="server" AutoGenerateColumns="False" CellPadding="4"
					BackColor="White" BorderWidth="1px" BorderStyle="None" BorderColor="#3366CC" Width="90%">
					<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="Order #" HeaderText="Order #"></asp:BoundColumn>
						<asp:BoundColumn DataField="Product ID" HeaderText="Prod uct ID"></asp:BoundColumn>
						<asp:BoundColumn DataField="Description" HeaderText="Descr iption"></asp:BoundColumn>
						<asp:BoundColumn DataField="UPC" HeaderText="UPC"></asp:BoundColumn>
						<asp:BoundColumn DataField="Quantity" HeaderText="Quan tity"></asp:BoundColumn>
						<asp:BoundColumn DataField="UOM" HeaderText="UOM"></asp:BoundColumn>
						<asp:BoundColumn DataField="Count of Cases" HeaderText="Count of Cases"></asp:BoundColumn>
						<asp:TemplateColumn HeaderText="EPC Information">
							<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
							<ItemTemplate>
								<asp:DataGrid ID="DataGrid3" Runat="server" BorderColor="White" BorderStyle="None" BorderWidth="1px" BackColor="White" CellPadding="4" AutoGenerateColumns="False" DataSource="<%#GetEPCInformation(Container.Cells[0].Text.ToString(),Container.Cells[1].Text.ToString(), Container.Cells[3].Text.ToString(),Container.Cells[2].Text.ToString(), Convert.ToInt32(Container.Cells[6].Text.ToString()))%>">
									<Columns>
										<asp:BoundColumn DataField="EPC" HeaderText=""></asp:BoundColumn>
										<asp:BoundColumn DataField="EPCURI" HeaderText=""></asp:BoundColumn>
										<asp:HyperLinkColumn HeaderText="" DataTextField="EPCURI" DataTextFormatString="View EPC IS Events Information for {0}"
											DataNavigateUrlField="EPCURI" DataNavigateUrlFormatString="javascript:var w=window.open('ViewCaseEPCISInformation.aspx?uri={0}','','width=700,height=350,resizable=yes,scrollbars=yes');" />
										<asp:HyperLinkColumn HeaderText="" DataTextField="EPCURI" DataTextFormatString="Log Custom Event In EPC IS for {0}"
											DataNavigateUrlField="EPCURI" DataNavigateUrlFormatString="javascript:var w=window.open('LogCustomEPCISEventInformation.aspx?uri={0}','','width=500,height=330,resizable=yes,scrollbars=yes');" />
									</Columns>
								</asp:DataGrid>
							</ItemTemplate>
						</asp:TemplateColumn>
					</Columns>
					<PagerStyle HorizontalAlign="Left" ForeColor="#003399" BackColor="#99CCCC" Mode="NumericPages"></PagerStyle>
				</asp:datagrid></P>
			<P>&nbsp;</P>
			<P><asp:button id="btnPrint" runat="server" CssClass="Normal" Text="Step 3 : Print Case Labels"></asp:button>&nbsp;&nbsp;&nbsp;&nbsp;
				<asp:button id="btnSaveToEPCIS" runat="server" CssClass="Normal" Text="Step 4 : Save to EPC IS (All Cases)"></asp:button>&nbsp;
				<asp:button id="btnStartPalletization" runat="server" CssClass="Normal" Text="Step 4 : Start Palletization"></asp:button></P>
			<P><asp:checkbox id="chkEnablePrint" runat="server" AutoPostBack="True"></asp:checkbox></P>
			<P>
				<asp:Label id="lblStatus" runat="server"></asp:Label></P>
			<P><uc2:footer id="Footer1" runat="server"></uc2:footer></P>
		</form>
	</body>
</HTML>
