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

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ 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="V5Shop" %>
<!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 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="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">
    <asp:ScriptManager runat="server" ID="scriptManager"></asp:ScriptManager>
    <div>
        <div class="OperateTitle">
            <div>
                <asp:Label ID="lblAdd" runat="server" Text="【捆绑销售管理】" /></div>
        </div>
        <div id="content1" runat="server">
            <div>
        <div id="tool">
          <input class="checkbox" type="checkbox" id="CheckAllBox" onclick="CheckAll()" /> <label for="CheckAllBox">全选</label>
    　    <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>
        </div>
        <div class="listborder">
        <asp:UpdatePanel ID="UpdatePanel2" runat="server">
          <ContentTemplate>
            <V5Shop:V5ShopGridView ID="GridViewShow" runat="server"
                AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CssClass="datalist" DataKeyNames="ID"
                HeaderStyle-Height="28px" PageSize="10" HeaderStyle-ForeColor="#000" EmptyDataText="没有查询到任何记录" TableName="Notice">
            	    <rowstyle height="28px"></rowstyle>
                    <Columns>
                        <asp:TemplateField ItemStyle-Width="5%">
                            <ItemTemplate>
                                <input class="checkbox" runat="server" Value='<%# Eval("ID") %>' ID="CheckBoxID" type="checkbox" onmouseover="this.mouse='over'" onmouseout="this.mouse='out'" mouse="out">
                            </ItemTemplate>
                            <itemstyle horizontalalign="Center"  />
                        </asp:TemplateField>
                        <asp:BoundField DataField="BindingName" SortExpression="BindingName" HeaderText="捆绑商品名称" ItemStyle-Width="15%" />
                        <asp:BoundField DataField="Unit" SortExpression="Unit" HeaderText="单位" ItemStyle-Width="5%"/>
                        <asp:BoundField DataField="MarketPrice" SortExpression="MarketPrice" HeaderText="市场价格"  ItemStyle-Width="10%"/>
                        <asp:BoundField DataField="MemberPrice" SortExpression="MemberPrice" HeaderText="会员价格"  ItemStyle-Width="10%"/>
                        <asp:BoundField DataField="IsOnSale" SortExpression="IsOnSale" HeaderText="是否上架"  ItemStyle-Width="5%"/>
                        <asp:BoundField DataField="HitCount" HeaderText="访问次数" ItemStyle-Width="5%" SortExpression="HitCount" />
                        <asp:BoundField DataField="BuyCount" HeaderText="购买次数" ItemStyle-Width="5%" SortExpression="BuyCount" />
                        <asp:BoundField DataField="Score" HeaderText="赠送积分" ItemStyle-Width="5%" SortExpression="Score" />
                        <asp:BoundField DataField="CreationDate" SortExpression="CreationDate" DataFormatString="{0:yyyy-MM-dd}" HeaderText="创建日期" ItemStyle-Width="20%"/>
                    </Columns>
            </V5Shop:V5ShopGridView>
            </ContentTemplate>
    　  </asp:UpdatePanel>
        </div>
            </div>
        </div>

        <uc2:PageBottom ID="PageBottom" runat="server" />
        <div id="hiddenfield">
            <asp:HiddenField ID="TheDate" runat="server" />
            <asp:HiddenField ID="TheUnionID" runat="server" />
            <asp:HiddenField ID="CheckedIDS" runat="server" Value="0" />
            <asp:HiddenField ID="PageIndex" runat="server" Value="0" />
            <asp:HiddenField ID="MaxPageIndex" runat="server" Value="0" />
            <asp:HiddenField ID="OldOrderStatus" runat="server" Value="0" />
            <uc1:HiddenField ID="Alert" runat="server" />
            <V5Shop:ActiveControl ID="ActiveControl" runat="server" />
        </div>
    </div>
    </form>
</body>
</html>
