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

<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.Admin.Order_Order_Edit_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">
                    <!-- Add by 吴建春 2008-10-28 START -->
                    <!--
                    <V5:V5ShopGridView ID="V5ShopGridView1" 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="CheckBox1" 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="Name" HeaderText="商品名称" SortExpression="Name" />
                            <asp:BoundField DataField="CategoryID" HeaderText="所属分类" SortExpression="CategoryID" />
                            <asp:BoundField DataField="MarketPrice" HeaderText="市场价格" SortExpression="MarketPrice" />
                            <asp:BoundField DataField="OrderPrice" HeaderText="购买价格" SortExpression="OrderPrice" />
                            <asp:BoundField DataField="Storage" HeaderText="库存数量" SortExpression="Storage" />
                            <asp:TemplateField HeaderText="购买数量">
                                <itemtemplate>
                                    <asp:Textbox id="txtCount" runat="server" Text='<%# Eval("Count") %>' ReadOnly='<%# Convert.ToInt32(Eval("GroupBuyID")) > 0 %>' MaxLength="8" /> 
                                </itemtemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="TotalPrice" HeaderText="小计" SortExpression="TotalPrice" />
                        </Columns>
                        <HeaderStyle CssClass="category" ForeColor="Black" />
                    </V5:V5ShopGridView>
                    -->
                    <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="CategoryID" HeaderText="所属分类" SortExpression="CategoryID" />
                            <asp:BoundField DataField="MarketPrice" HeaderText="市场价格" SortExpression="MarketPrice" />
                            <asp:BoundField DataField="OrderPrice" HeaderText="购买价格" SortExpression="OrderPrice" />
                            <asp:BoundField DataField="Storage" HeaderText="库存数量" SortExpression="Storage" />
                            <asp:TemplateField HeaderText="购买数量">
                                <itemtemplate>
                                    <asp:Textbox id="txtCount" runat="server" Text='<%# Eval("Count") %>' ReadOnly='<%# Convert.ToInt32(Eval("GroupBuyID")) > 0 %>' MaxLength="8" /> 
                                </itemtemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="TotalPrice" HeaderText="小计" SortExpression="TotalPrice" />
                        </Columns>
                        <HeaderStyle CssClass="category" ForeColor="Black" />
                    </V5:V5ShopGridView>
                    <!-- Add by 吴建春 2008-10-28 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>
