<%
    //-----------------------------------------------------------
    // 文件名称: Order_Order_Add_Cart.aspx
    // 页面名称: 订单添加 (购物车操作)
    //
    // 描    述:
    //
    // 创建标识: Add By 吴建春 2008-07-17
    //-----------------------------------------------------------
%>

<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.Admin.Order_Order_Add_Cart, V5Shop.Shop.Order" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Src="control/HiddenField.ascx" TagName="HiddenField" TagPrefix="uc1" %>
<%@ Register Src="control/PageBottom.ascx" TagName="PageBottom" TagPrefix="uc2" %>
<%@ Register Assembly="V5Shop.Control" Namespace="V5Shop.Control" TagPrefix="V5" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="css/css.css" rel="stylesheet" type="text/css" />
    <link href="css/control.css" rel="stylesheet" type="text/css" />
    <link href="js/calendar-system.css" rel="stylesheet" type="text/css" />
    <link href="css/css_list.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" language="javascript" src="js/Common.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <div class="OperateTitle">
                <div>
                    <asp:Label ID="lblAdd" runat="server" Text="【订单添加 (购物车操作)】" />
                </div>
            </div>
            <div id="content">
                <!-- 明细数据编辑栏 -->
                <div style="padding-right: 25px; padding-left: 25px; padding-bottom: 3px; color: #4b6888; padding-top: 3px; border-bottom: #cccccc 1px solid">
                    <input id="CheckAllBox" class="checkbox" onclick="CheckAll()" type="checkbox" /><asp:Label ID="lblSelectAll" runat="server" Text="全选" />
                    <asp:LinkButton ID="btnDel" runat="server" ForeColor="#4B6888" OnClick="btnDel_Click" OnClientClick="return CheckDel();" Width="60px"><img src="images/icon/key_delete.gif" alt="" /> 清除</asp:LinkButton>
                    <asp:LinkButton ID="btnClear" runat="server" ForeColor="#4B6888" OnClick="btnClear_Click" Width="100px"><img src="images/icon/key_clearcart.gif" alt="" /> 清空购物车</asp:LinkButton>
                    <asp:LinkButton ID="btnUpdateCart" runat="server" ForeColor="#4B6888" OnClick="btnUpdateCart_Click" Width="100px"><img src="images/icon/key_fash.gif" alt="" /> 更新购物车</asp:LinkButton>
                    <asp:LinkButton ID="btnAddProduct" runat="server" ForeColor="#4B6888" OnClick="btnAddProduct_Click" Width="110px"><img src="images/icon/key_cart.gif" alt="" /> 继续添加商品</asp:LinkButton>
                    <asp:LinkButton ID="btnNextPage" runat="server" ForeColor="#4B6888" OnClick="btnNextPage_Click"><img src="images/icon/key_next.gif" alt="" /> 下一步</asp:LinkButton>
                </div>
                <!-- 明细数据 -->
                <div class="listborder">
                    <!-- //MOD by 吴建春 2008-12-09 START -->
                    <V5:V5ShopGridView ID="GridViewShow" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CssClass="datalist" PageSize="12" HeaderStyle-ForeColor="#000000" EmptyDataText="没有任何可用信息！" BorderWidth="0px" CacheName="TableCache_" GridLines="None" TableName="" Width="100%">
                        <PagerSettings Mode="NumericFirstLast" />
                        <Columns>
                            <asp:TemplateField meta:resourcekey="DetilData">
                                <itemtemplate>
                                <input runat="server" value='<%# Eval("ID") %>' id="CheckBoxID" type="checkbox" class="checkbox"
                                    onmouseover="this.mouse='over'" onmouseout="this.mouse='out'" />
                                </itemtemplate>
                                <itemstyle horizontalalign="Center" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="ID" HeaderText="ID" SortExpression="ID" />
                            <asp:BoundField DataField="Number" HeaderText="商品编号" SortExpression="Number" />
                            <asp:BoundField DataField="Name" HeaderText="商品名称" SortExpression="Name" />
                            <asp:BoundField DataField="CategoryName" HeaderText="所属分类" SortExpression="CategoryName" />
                            <asp:BoundField DataField="MarketPrice" HeaderText="市场价格" SortExpression="MarketPrice" />
                            <asp:BoundField DataField="MemberPrice" HeaderText="购买价格" SortExpression="MemberPrice" />
                            <asp:BoundField DataField="Storage" HeaderText="库存数量" SortExpression="Storage" />
                            <asp:TemplateField HeaderText="购买数量">
                                <itemtemplate>
                                    <asp:Textbox id="txtCount" runat="server" Text='<%# Eval("Count") %>' MaxLength="8"></asp:Textbox> 
                                </itemtemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="TotalPrice" HeaderText="小计" SortExpression="TotalPrice" />
                        </Columns>
                        <HeaderStyle CssClass="category" ForeColor="Black" />
                    </V5:V5ShopGridView>
                    <!-- //MOD by 吴建春 2008-12-09 END -->
                </div>
            </div>
            <uc2:PageBottom ID="PageBottom" runat="server" />
            <div id="hiddenfield">
                <asp:HiddenField ID="CheckedIDS" runat="server" Value="0" />
                <asp:HiddenField ID="PageIndex" runat="server" Value="0" />
                <asp:HiddenField ID="MaxPageIndex" runat="server" Value="0" />
                <uc1:HiddenField ID="Alert" runat="server" />
                <V5:ActiveControl ID="ActiveControl" runat="server" />
            </div>
        </div>
    </form>
</body>
</html>
