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

<%@ Register Src="control/ManageHeader.ascx" TagName="ManageHeader" TagPrefix="uc3" %>
<%@ Register Src="control/PageBottom.ascx" TagName="PageBottom" TagPrefix="uc2" %>
<%@ Register Src="control/HiddenField.ascx" TagName="HiddenField" TagPrefix="uc1" %>
<%@ Register TagPrefix="V5Shop" Namespace="V5Shop.Control" Assembly="V5Shop.Control" %>
<!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 id="Head1" runat="server">
    <title>商品管理</title>
    <link href="css/css.css" rel="stylesheet" type="text/css" />
    <link href="css/css_list.css" rel="stylesheet" type="text/css" />
    <link href="css/control.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" language="javascript" src="js/Common.js"></script>

    <script type="text/javascript" language="javascript" src="js/Control_Calendar.js"></script>

</head>
<body>
    <form id="form1" runat="server">
        <uc3:ManageHeader ID="ManageHeader1" runat="server" />
        <div>
            <div id="search">
                <div style="padding: 10px 20px; border: 1px #eeeeee solid; background: #f7f7f7">
                    <asp:Label ID="lblName" runat="server" Text="商品名称："></asp:Label><asp:TextBox ID="txtName" runat="server"></asp:TextBox>
                    <asp:Label ID="lblNumber" runat="server" Text="商品编号："></asp:Label><asp:TextBox ID="txtNumber" runat="server"></asp:TextBox>
                    <asp:Label ID="lblCategoryId" runat="server" Text="商品分类："></asp:Label><asp:DropDownList ID="ddlCategoryId" runat="server">
                    </asp:DropDownList>
                    <asp:Button ID="btnSearch" runat="server" Text="查询" CssClass="button" OnClick="btnSearch_Click" />
                </div>
            </div>
            <div id="content">
                <div style="padding: 3px 25px; color: #4B6888; border-bottom: 1px #CCCCCC solid">
                    <input type="checkbox" id="CheckAllBox" onclick="CheckAll()" class="checkbox" />
                    全选
　
<asp:LinkButton ID="btnAdd" runat="server" ForeColor="#4B6888" OnClick="btnAdd_Click"><img src="images/icon/key_add.gif" /> 添加</asp:LinkButton>
　
<asp:LinkButton ID="btnEdit" runat="server" ForeColor="#4B6888" OnClick="btnEdit_Click"
                        OnClientClick="return CheckEdit()"><img src="images/icon/key_edit.gif" /> 编辑</asp:LinkButton>
　
<asp:LinkButton ID="btnDel" runat="server" ForeColor="#4B6888" OnClick="btnDel_Click"
                        OnClientClick="return CheckDel()"><img src="images/icon/key_delete.gif" /> 删除</asp:LinkButton>
　
<asp:LinkButton ID="btnUp" runat="server" ForeColor="#4B6888" OnClick="btnUp_Click"
                        OnClientClick="return CheckUp()"><img src="images/icon/key_top.gif" /> 向上</asp:LinkButton>
　
<asp:LinkButton ID="btnDown" runat="server" ForeColor="#4B6888" OnClick="btnDown_Click"
                        OnClientClick="return CheckDown()"><img src="images/icon/key_down.gif" /> 向下</asp:LinkButton>
　
<asp:LinkButton
                            ID="btnChangeNormalProduct" runat="server" ForeColor="#4B6888" OnClick="btnChangeNormalProduct_Click"
                            OnClientClick="return CheckSelect()"><img src="images/icon/key_output.gif" /> 转为普通商品</asp:LinkButton></div>
                <div class="listborder">
                    <V5Shop:NewV5ShopGridView ID="GridViewShow" runat="server" AllowPaging="True" AllowSorting="True"
                        AutoGenerateColumns="False" CssClass="datalist" HeaderStyle-Height="18px" HeaderStyle-ForeColor="#000"
                        EmptyDataText="没有查询到任何记录" TableName="Product" CacheName="Product" PageSize="12"
                        BorderWidth="0px" GridLines="None" Width="100%">
                        <Columns>
                            <asp:TemplateField>
                                <itemstyle horizontalalign="Center" width="3%" />
                                <itemtemplate>
                            <input runat="server" Value='<%# Eval("ID") %>' ID="CheckBoxID" type="checkbox" onmouseover="this.mouse='over'" onmouseout="this.mouse='out'" mouse="out" class="checkbox">
</itemtemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="ID" SortExpression="ID">
                                <itemstyle width="6%" />
                                <itemtemplate>
<asp:Label runat="server" Text='<%# Bind("ID") %>' id="ID"></asp:Label>
</itemtemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="Number" SortExpression="Number" HeaderText="商品编号">
                                <itemstyle width="12%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Name" SortExpression="Name" HeaderText="商品名称">
                                <itemstyle width="28%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="CategoryName" SortExpression="CategoryId" HeaderText="商品分类">
                                <itemstyle width="10%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Storage" SortExpression="Storage" HeaderText="库存">
                                <itemstyle width="5%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="MemberPrice" SortExpression="MemberPrice" HeaderText="价格">
                                <itemstyle width="10%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="NeedPrice" HeaderText="订单满足金额" SortExpression="NeedPrice" />
                            <asp:BoundField DataField="OrderID" HeaderText="排序" SortExpression="OrderID" />
                        </Columns>
                        <PagerSettings Mode="NumericFirstLast" />
                        <HeaderStyle CssClass="category" ForeColor="Black" Height="18px" />
                    </V5Shop:NewV5ShopGridView>
                </div>
            </div>
            <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" />
            </div>
            <uc2:PageBottom ID="PageBottom1" runat="server" />
        </div>
    </form>
</body>
</html>
