<%
    //-----------------------------------------------------------
    // 文件名称: Order_Order_Add_Product.aspx
    // 页面名称: 订单添加 (商品选择)
    //
    // 描    述:
    //
    // 创建标识: Add By 吴建春 2008-07-16
    //-----------------------------------------------------------
%>

<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.Admin.Order_Order_Add_Product, 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 id='dhtmltooltip'>
            <img src="" alt="" /></div>
        <script language="javascript" type="text/javascript" src="js/showimg.js"></script>
        <div>
            <div class="OperateTitle">
                <div>
                    <asp:Label ID="lblAdd" runat="server" Text="【订单添加 (商品选择)】" /></div>
            </div>
            <div id="search" style="width: 760px;">
                <div style="padding-right: 20px; padding-left: 20px; padding-bottom: 20px; padding-top: 20px; border-bottom: #f7f7f7 4px solid">
                    <asp:Label ID="Label1" runat="server" Width="60px" Text="商品名称：" CssClass="label" /><asp:TextBox ID="txtName" runat="server" Width="120px" />
                    <asp:Label ID="Label2" runat="server" Width="60px" Text="商品编号：" CssClass="label" /><asp:TextBox ID="txtNumber" runat="server" Width="120px" />
                    <asp:Label ID="Label9" runat="server" Width="60px" Text="价格范围：" CssClass="label" /><asp:TextBox ID="txtPriceMin" runat="server" Width="51px" />
                    -
                    <asp:TextBox ID="txtPriceMax" runat="server" Width="52px" /><br />
                    <asp:Label ID="Label10" runat="server" Text="销售状态：" CssClass="label" /><asp:DropDownList ID="ddlIsOnSale" runat="server" Width="124px">
                        <asp:ListItem Value=" ">全部</asp:ListItem>
                        <asp:ListItem Value="1">销售中</asp:ListItem>
                        <asp:ListItem Value="0">未上架</asp:ListItem>
                    </asp:DropDownList>
                    <asp:Label ID="Label11" runat="server" Text="是否推荐：" CssClass="label" /><asp:DropDownList ID="ddlIsRecommond" runat="server" Width="124px">
                        <asp:ListItem Value=" ">全部</asp:ListItem>
                        <asp:ListItem Value="1">是</asp:ListItem>
                        <asp:ListItem Value="0">否</asp:ListItem>
                    </asp:DropDownList>
                    <asp:Label ID="Label3" runat="server" Width="60px" Text="商品分类：" CssClass="label" /><asp:DropDownList ID="ddlCategory" runat="server">
                        <asp:ListItem>全部</asp:ListItem>
                    </asp:DropDownList>
                    <asp:Button ID="btnSearch" OnClick="btnSearch_Click" runat="server" Text="查询" CssClass="button" />
                </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="全选" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:LinkButton ID="btnAddToCart" runat="server" ForeColor="#4B6888" OnClick="btnAddToCart_Click" OnClientClick="return CheckSelectOne();" Width="110px"><img src="images/icon/key_add2.gif" alt="" /> 添加到购物车</asp:LinkButton>
                    <asp:LinkButton ID="btnViewCart" runat="server" ForeColor="#4B6888" OnClick="btnViewCart_Click"><img src="images/icon/key_edit2.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" HeaderStyle-ForeColor="#000000" EmptyDataText="没有任何可用信息！" PageSize="10" CacheName="ProductInfo" BorderWidth="0px">
                        <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:TemplateField HeaderText="商品名称" SortExpression="Name">
                                <itemtemplate>
                                <a target="_blank" href='../product.aspx?id=<%# Eval("ID") %>'>
                                    <asp:Label id="lblName" runat="server" text='<%# Eval("Name") %>' />
                                </a>
                                </itemtemplate>
                            </asp:TemplateField>
                            <asp:TemplateField>
                                <headertemplate>商品图片</headertemplate>
                                <itemtemplate>
                                    <img src="images/icon-viewpic.gif" alt="" onmouseover="javascript:ddrivetip('<img src=../<%# Eval("SrcDetail") %>>','#ffffff')" onmouseout="hideddrivetip()" />
                                </itemtemplate>
                                <itemstyle horizontalalign="Center" width="8%" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="CategoryName" HeaderText="所属分类" SortExpression="CategoryName" />
                            <asp:BoundField DataField="Storage" HeaderText="库存" SortExpression="Storage" />
                            <asp:BoundField DataField="MemberPrice" HeaderText="商城价格" SortExpression="MemberPrice" />
                            <asp:BoundField DataField="MarketPrice" HeaderText="市场价格" SortExpression="MarketPrice" />
                        </Columns>
                        <HeaderStyle CssClass="category" ForeColor="Black" />
                    </V5:V5ShopGridView>
                    -->
                    <V5:V5ShopGridView ID="GridViewShow" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CssClass="datalist" HeaderStyle-ForeColor="#000000" EmptyDataText="没有任何可用信息！" PageSize="10" CacheName="ProductInfo" BorderWidth="0px">
                        <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="Number" HeaderText="商品编号" SortExpression="Number" />
                            <asp:TemplateField HeaderText="商品名称" SortExpression="Name">
                                <itemtemplate>
                                <a target="_blank" href='../product.aspx?id=<%# Eval("ID") %>'>
                                    <asp:Label id="lblName" runat="server" text='<%# Eval("Name") %>' />
                                </a>
                                </itemtemplate>
                            </asp:TemplateField>
                            <asp:TemplateField>
                                <headertemplate>商品图片</headertemplate>
                                <itemtemplate>
                                    <img src="images/icon-viewpic.gif" alt="" onmouseover="javascript:ddrivetip('<img src=../<%# Eval("SrcDetail") %>>','#ffffff')" onmouseout="hideddrivetip()" />
                                </itemtemplate>
                                <itemstyle horizontalalign="Center" width="8%" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="CategoryName" HeaderText="所属分类" SortExpression="CategoryName" />
                            <asp:BoundField DataField="Storage" HeaderText="库存" SortExpression="Storage" />
                            <asp:BoundField DataField="MemberPrice" HeaderText="商城价格" SortExpression="MemberPrice" />
                            <asp:BoundField DataField="MarketPrice" HeaderText="市场价格" SortExpression="MarketPrice" />
                        </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>
