<%
    //-----------------------------------------------------------
    // 文件名称: Promotions_WholeSale_Manage.aspx
    // 页面名称: 批发方案管理
    //
    // 描    述:
    //
    // 创建标识: Add By 吴建春 2008-06-26
    //-----------------------------------------------------------
%>

<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.Admin.Promotions_WholeSale_Manage, V5Shop.Shop.Promotions" culture="auto" uiculture="auto" meta:resourcekey="PageResource1" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Src="control/HiddenField.ascx" TagName="HiddenField" TagPrefix="uc1" %>
<%@ Register Assembly="V5Shop.Control" Namespace="V5Shop.Control" TagPrefix="cc1" %>
<%@ Register Src="control/PageBottom.ascx" TagName="PageBottom" TagPrefix="uc2" %>
<%@ Register Src="control/ManageHeader.ascx" TagName="ManageHeader" TagPrefix="uc3" %>

<!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="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>
    <script type="text/javascript" language="javascript" src="Js/Calendar.js"></script>
    <script type="text/javascript" language="javascript" src="Js/Calendar-Setup.js"></script>
    <script type="text/javascript" language="javascript" src="Js/Calendar-zh.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <uc3:ManageHeader ID="PageHead" runat="server" />
            <div id="search">
                <!-- 查询部 -->
                <div style="padding-right: 20px; padding-left: 20px; padding-bottom: 20px; padding-top: 20px; border-bottom: #f7f7f7 4px solid">
                    <table>
                        <tr>
                            <td style="text-align: right">
                                &nbsp;<asp:Label ID="lblAdminName" runat="server" meta:resourcekey="lblAdminNameResource" Text="方案名称:"></asp:Label></td>
                            <td style="text-align: left">
                                <asp:TextBox ID="txtName" runat="server" Width="104px"></asp:TextBox>&nbsp;</td>
                            <td style="text-align: right">
                                &nbsp;<asp:Label ID="Label2" runat="server" meta:resourcekey="lblAdminNameResource" Text="是否启用:"></asp:Label></td>
                            <td style="text-align: left">
                                <asp:DropDownList ID="ddlIsAct" runat="server">
                                    <asp:ListItem Selected="True" Value="-1">全部</asp:ListItem>
                                    <asp:ListItem Value="1">启用</asp:ListItem>
                                    <asp:ListItem Value="0">未启用</asp:ListItem>
                                </asp:DropDownList>&nbsp;</td>
                            <td style="text-align: right">
                                &nbsp;<asp:Label ID="Label1" runat="server" meta:resourcekey="lblAdminNameResource" Text="添加时间:"></asp:Label></td>
                            <td style="text-align: left">
                                <asp:TextBox ID="txtStartDate" runat="server" Width="104px" onblur="return CheckDate(this, true, false);" /><img id="imgStartDate" alt="打开日历" src="images/calendar1.gif" title="打开日历" />
                                -
                                <asp:TextBox ID="txtEndDate" runat="server" Width="104px" onblur="return CheckDate(this, true, false);" /><img id="imgEndDate" alt="打开日历" src="images/calendar1.gif" title="打开日历" />&nbsp;</td>
                        </tr>
                        <tr>
                            <td style="text-align: right">
                                <asp:Label ID="Label5" runat="server" meta:resourcekey="lblAdminNameResource" Text="方案描述:"></asp:Label></td>
                            <td style="text-align: left">
                                <asp:TextBox ID="txtDescription" runat="server" Width="104px"></asp:TextBox></td>
                            <td style="text-align: right">
                                <asp:Label ID="Label3" runat="server" meta:resourcekey="lblAdminNameResource" Text="适用会员等级:"></asp:Label></td>
                            <td style="text-align: left">
                                <asp:DropDownList ID="ddlUserGroup" runat="server">
                                    <asp:ListItem Selected="True" Value="-1">全部</asp:ListItem>
                                </asp:DropDownList>&nbsp;</td>
                            <td style="text-align: center">
                                <asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text="查询" meta:resourcekey="btnSearchResource" CssClass="button" /></td>
                            <td>
                                </td>
                        </tr>
                    </table>
                    <!-- 查询按钮 -->
                </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" onclick="CheckAll()" type="checkbox" class="checkbox" />全选
　
<asp:LinkButton ID="btnAdd" runat="server" ForeColor="#4B6888" meta:resourcekey="btnAddResource2" OnClick="btnAdd_Click"><img src="images/icon/key_add.gif" alt="Read/Write Property"/> 添加</asp:LinkButton>
　
<asp:LinkButton ID="btnEdit" runat="server" ForeColor="#4B6888" meta:resourcekey="btnEditResource2" OnClick="btnEdit_Click" OnClientClick="return CheckEdit()" CausesValidation="False"><img src="images/icon/key_edit.gif" alt="Read/Write Property"/> 编辑</asp:LinkButton>
　
<asp:LinkButton ID="btnDel" runat="server" CausesValidation="False" ForeColor="#4B6888" meta:resourcekey="btnDelResource2" OnClick="btnDel_Click" OnClientClick="return CheckDel()"><img src="images/icon/key_delete.gif" alt="Read/Write Property"/> 删除</asp:LinkButton></div>
                <!-- 明细数据 -->
                <div class="listborder">
                    <cc1:V5ShopGridView ID="GridViewShow" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" 
                        CssClass="datalist" PageSize="15" HeaderStyle-ForeColor="#000000" EmptyDataText="没有任何可用信息！" BorderWidth="0px" CacheName="TableCache_" GridLines="None" TableName="" Width="100%">
                        <PagerSettings Mode="NumericFirstLast" />
                        <Columns>
                            <asp:TemplateField meta:resourcekey="DetilData">
                                <itemtemplate>
                                    <INPUT id="CheckBoxID" onmouseover="this.mouse='over'" class="checkbox" onmouseout="this.mouse='out'" type=checkbox value='<%# Eval("ID") %>' runat="server" />
                                </itemtemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="ID" HeaderText="ID" SortExpression="ID" />
                            <asp:BoundField DataField="Name" HeaderText="方案名称" SortExpression="Name" />
                            <asp:BoundField DataField="Description" HeaderText="方案描述" SortExpression="Description" />
                            <asp:BoundField DataField="Date" HeaderText="添加时间" SortExpression="Date"/>
                            <asp:BoundField DataField="UserGroupList" HeaderText="适用会员等级" SortExpression="UserGroupList"/>
                            <asp:BoundField DataField="IsAct" HeaderText="是否启用" SortExpression="IsAct"/>
                        </Columns>
                        <HeaderStyle CssClass="category" ForeColor="Black" />
                    </cc1:V5ShopGridView>
                </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>
        <script language="javascript" type="text/javascript">
        Calendar.setup({
	        inputField     :    "txtStartDate",
	        ifFormat       :    "%Y-%m-%d", 
	        button         :    "imgStartDate",
	        align          :    "Br",
	        singleClick    :    true
        });
        Calendar.setup({
	        inputField     :    "txtEndDate",
	        ifFormat       :    "%Y-%m-%d", 
	        button         :    "imgEndDate",
	        align          :    "Br",
	        singleClick    :    true
        });
        </script>
    </form>
</body>
</html>
