<%@ Page Language="C#" AutoEventWireup="false" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Controls" Assembly="Hishop.Web.Controls" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Management" Assembly="Hishop.Web.Management" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Validator" Assembly="Hishop.Web.Validator" %>
<%@ Import Namespace="Hishop.SystemServices" %>
<!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>
    <Hishop:HeadContainer ID="HeadContainer1" runat="server" />
    <Hishop:PageTitle ID="PageTitle1" runat="server" />
    <link rel="stylesheet" href="../../utility/validate/pagevalidator.css" type="text/css" />
    <link rel="stylesheet" href="../css/print.css" type="text/css" media="print" />
    <link rel="stylesheet" href="../css/screen.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="../css/Hishopv5.css" type="text/css" />
    <script type="text/javascript" src="../../utility/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="../../utility/validate/pagevalidator.js"></script> 
    <script type="text/javascript" src="../js/Hishopv5.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <Hishop:PrintPackingOrder ID="PrintPackingOrder" runat="server">
            <SkinTemplate>
                <div style="width: 96%; margin: auto; margin-top: 20px; margin-bottom: 20px;">
                    <!--订单组合信息-->
                    <table class="orderinfor" cellpadding="0" cellspacing="0" style="width: 100%">
                        <tr>
                            <th>订单号：</th>
                            <td>
                                <asp:Literal ID="litOrderId" runat="server"></asp:Literal>
                            </td>
                            <th>下单日期：</th>
                            <td>
                                <Hishop:FormatedTimeLabel ID="litDateTime" ShopTime="true" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <th>购买人：</th>
                            <td>
                                <asp:Literal ID="litPurchaserUsername" runat="server" />
                            </td>
                            <th>购买人手机号码：</th>
                            <td>
                                <asp:Literal ID="litPurchaserPhone" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <th>收货人：</th>
                            <td>
                                <asp:Literal ID="litUsername" runat="server" />
                            </td>
                            <th>收货人邮政编码：</th>
                            <td>
                                <asp:Literal ID="litZipcode" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <th>收货人电话号码：</th>
                            <td>
                                <asp:Literal ID="litTellphone" runat="server" />
                            </td>
                            <th>收货人手机号码：</th>
                            <td>
                                <asp:Literal ID="litPhone" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <th>收货人详细地址：</th>
                            <td colspan="3">
                                <asp:Literal ID="litRegion" runat="server" /><asp:Literal ID="litAddress" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <th>备注：</th>
                            <td colspan="3">
                                <asp:Literal ID="litRemark" runat="server" />
                            </td>
                        </tr>
                    </table>
                    
                    <!--订单的商品-->
                    <asp:DataList ID="dlOrderItems" runat="server" Width="100%" DataKeyField="ItemId" GridLines="None" 
                        CssClass="shoppinglist marginbottom" HeaderStyle-CssClass="tdliketh" style="text-align:center; vertical-align:middle">
                        <HeaderTemplate>
                            <div style="width:100%; text-align:center"><asp:Literal ID="Literal9" runat="server" Text="商品图片"></asp:Literal></div>
                            </td>
                            <td class="tdliketh" style="text-align:center; vertical-align:middle">
                            <asp:Literal ID="Literal3" runat="server" Text="货号"></asp:Literal>
                            </td>
                            <td class="tdliketh" style="text-align:center; vertical-align:middle">
                                <asp:Literal ID="Literal18" runat="server" Text="商品"></asp:Literal>
                            </td>
                            <td class="tdliketh" style="text-align:center; vertical-align:middle">
                                <asp:Literal ID="litProductQuantity" runat="server" Text="商品单价"></asp:Literal>
                            </td>
                            <td class="tdliketh" style="text-align:center; vertical-align:middle">
                                <asp:Literal ID="litPoints" runat="server" Text="购买数量"></asp:Literal>
                            </td>
                            <td class="tdliketh" style="text-align:center; vertical-align:middle">
                                <asp:Literal ID="litShipQuantity" runat="server" Text="发货数量"></asp:Literal>
                            </td>
                            <td class="tdliketh" style="text-align:center; vertical-align:middle">
                                <asp:Literal ID="litAllAmount" runat="server" Text="配货状态"></asp:Literal>
                            </td>
                        </HeaderTemplate>
                        <ItemTemplate>
                                 <Hishop:Common_Link_Product ID="Common_Link_Product1" runat="server" Target="_blank">
                                    <Hishop:Common_ProductThumbnail ID="Common_ProductThumbnail1" runat="server" DataField="ThumbnailsUrl" Width="80px" Height="80px" />
                                </Hishop:Common_Link_Product> 
                            </td>
                            <td style="text-align:center; vertical-align:middle">
                            <asp:Literal ID="litSKU" runat="server" Text='<%# Eval("sku") %>'></asp:Literal>
                            </td>
                            <td style="text-align:center; vertical-align:middle">
                                <span style="word-break: bresak-all;">
                                <Hishop:ProductNavigationDetails ID="productNavigationDetails1" ProductName='<%# Eval("ItemDescription") %>' ProductId='<%# Eval("ProductId") %>' runat="server" />
                                <%# Eval("ItemAttribute")%>
                            </td>
                            <td style="text-align:center; vertical-align:middle">
                                <Hishop:FormatedMoneyLabelForAdmin ID="lblAmount" runat="server" Money='<%# Eval("ItemListPrice") %>' />
                            </td>
                            <td style="text-align:center; vertical-align:middle">
                                <asp:Literal ID="litProductQuantity" runat="server" Text='<%# Eval("Quantity") %>'></asp:Literal>
                            </td>
                            <td style="text-align:center; vertical-align:middle">
                                <asp:Literal ID="litShipQuantity" runat="server" Text='<%# Eval("ShipmentQuantity") %>'></asp:Literal>
                            </td>
                            <td style="text-align:center; vertical-align:middle">
                                <div style="height:10pt;width:10pt;border:1pt solid #000"></div>
                            </td>
                        </ItemTemplate>
                    </asp:DataList>
                    
                    <div style="margin-top:20px">
                    <asp:GridView ID="grdOrderGift" runat="server" AutoGenerateColumns="false" ShowHeader="true"
                        CssClass="giftlist" GridLines="None" DataKeyNames="GiftId" Width="100%">
                        <Columns>
                            <asp:TemplateField HeaderText="礼品" ItemStyle-Width="50%">
                                <ItemTemplate>
                                    <asp:Label ID="lblGiftName" runat="server" Text='<%#Eval("GiftName") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <Hishop:MoneyColumnForAdmin HeaderText="礼品单价" DataField="AdjustedPrice" />
                        </Columns>
                    </asp:GridView></div>
                </div>
            </SkinTemplate>
        </Hishop:PrintPackingOrder>
        
        <div style="margin-left:25px; margin-top:50px"><h3>签字：</h3></div>
    </div>
    </form>
    <div class="btnbox" style="text-align: center; margin-bottom: 20px;">        
        <input id="Button1" runat="server" type="button" value="<%$ Resources:OrderDetails, IDS_Field_Print %>" onclick="window.print()" />
    </div>
</body>
</html>