<%
    //-----------------------------------------------------------
    // 文件名称: Promotions_GroupBuy_Manage.aspx
    // 页面名称: 团购管理
    //
    // 描    述:
    //
    // 创建标识: Add By 吴建春 2008-06-24
    //-----------------------------------------------------------
%>

<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.Admin.Promotions_GroupBuy_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 Src="control/PageBottom.ascx" TagName="PageBottom" TagPrefix="uc2" %>
<%@ Register Src="control/ManageHeader.ascx" TagName="ManageHeader" TagPrefix="uc3" %>
<%@ Register Assembly="V5Shop.Control" Namespace="V5Shop.Control" TagPrefix="cc1" %>
<!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">
        <div id='dhtmltooltip'>
            <img src="" alt="" /></div>
        <script language="javascript" type="text/javascript" src="js/showimg.js"></script>
        <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">
                    <asp:Label ID="lblAdminName" runat="server" meta:resourcekey="lblAdminNameResource" Text="团购名称:" />
                    <asp:TextBox ID="txtName" runat="server" Width="120px" />
                    <asp:Label ID="Label1" runat="server" meta:resourcekey="lblAdminNameResource" Text="开始时间:" />
                    <asp:TextBox ID="txtStart01" runat="server" Width="104px" onblur="return CheckDate(this, true, false);" />
                    <img id="imgStart01" alt="打开日历" src="images/calendar1.gif" title="打开日历" />
                    -
                    <asp:TextBox ID="txtEnd01" runat="server" Width="104px" onblur="return CheckDate(this, true, false);" />
                    <img id="imgEnd01" alt="打开日历" src="images/calendar1.gif" title="打开日历" /><br>
                    <asp:Label ID="Label5" runat="server" meta:resourcekey="lblAdminNameResource" Text="商品名称:" />
                    <asp:TextBox ID="txtProductName" runat="server" Width="120px" />
                    <asp:Label ID="Label7" runat="server" meta:resourcekey="lblAdminNameResource" Text="结束时间:" />
                    <asp:TextBox ID="txtStart02" runat="server" Width="104px" onblur="return CheckDate(this, true, false);" />
                    <img id="imgStart02" alt="打开日历" src="images/calendar1.gif" title="打开日历" />
                    -
                    <asp:TextBox ID="txtEnd02" runat="server" Width="104px" onblur="return CheckDate(this, true, false);" />
                    <img id="imgEnd02" alt="打开日历" src="images/calendar1.gif" title="打开日历" />
                    <asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text="查询" meta:resourcekey="btnSearchResource" 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" onclick="CheckAll()" type="checkbox" class="checkbox" /> 全选 &nbsp;&nbsp;
                    <asp:LinkButton ID="btnAdd" runat="server" ForeColor="#4B6888" meta:resourcekey="btnAddResource2" OnClick="btnAdd_Click" Width="60px"><img src="images/icon/key_add.gif" alt=""/> 添加</asp:LinkButton>
                    <asp:LinkButton ID="btnEdit" runat="server" ForeColor="#4B6888" meta:resourcekey="btnEditResource2" OnClick="btnEdit_Click" OnClientClick="return CheckEdit()" CausesValidation="False" Width="60px"><img src="images/icon/key_edit.gif" alt=""/> 编辑</asp:LinkButton>
                    <asp:LinkButton ID="btnDel" runat="server" CausesValidation="False" ForeColor="#4B6888" meta:resourcekey="btnDelResource2" OnClick="btnDel_Click" OnClientClick="return CheckDel()" Width="60px"><img src="images/icon/key_delete.gif" alt=""/> 删除</asp:LinkButton>
                    <asp:LinkButton ID="btnDetail" runat="server" CausesValidation="False" ForeColor="#4B6888" meta:resourcekey="btnDelResource2" OnClientClick="return CheckSelectOne()" OnClick="btnDetail_Click" Width="80px"><img src="images/icon/key_detail.gif" alt=""/> 查看订单</asp:LinkButton>
                    <asp:LinkButton ID="btnViewBuyLog" runat="server" CausesValidation="False" ForeColor="#4B6888" meta:resourcekey="btnDelResource2" OnClick="btnViewBuyLog_Click" OnClientClick="return CheckSelectOne()" Width="108px"><img src="images/icon/key_detail.gif" alt=""/> 查看出价记录</asp:LinkButton>
                    <asp:LinkButton ID="btnSetEnd" runat="server" CausesValidation="False" ForeColor="#4B6888" OnClientClick="return CheckSelectOne()" OnClick="btnSetEnd_Click" Width="80px"><img src="images/icon/key_stop.gif" alt=""/> 结束活动</asp:LinkButton>
                </div>
                <!-- 明细数据 -->
                <div class="listborder">
                    <cc1:V5ShopGridView ID="GridViewShow" runat="server" AllowPaging="True" PageSize ="10" AllowSorting="True" AutoGenerateColumns="False" CssClass="datalist" HeaderStyle-ForeColor="#000000" EmptyDataText="没有任何可用信息！">
                        <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" width="5%" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="ID" HeaderText="ID" SortExpression="ID">
                                <itemstyle width="5%" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="团购名称" SortExpression="Name">
                                <itemtemplate>
                                    <a target="_blank" href='../groupbuy.aspx?id=<%# Eval("ID") %>'>
                                        <asp:Label id="lblName" runat="server" text='<%# Eval("Name") %>' />
                                    </a>
                                </itemtemplate>
                                <itemstyle width="15%" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="商品名称" SortExpression="ProductName">
                                <itemtemplate>
                                    <a target="_blank" href='../product.aspx?id=<%# Eval("ProductID") %>'>
                                        <asp:Label id="lblProductName" runat="server" text='<%# Eval("ProductName") %>' />
                                    </a>
                                </itemtemplate>
                                <itemstyle width="15%" />
                            </asp:TemplateField>
                            <asp:TemplateField>
                                <headertemplate>小图</headertemplate>
                                <itemtemplate>
                                    <img src="images/icon-viewpic.gif" alt="" onmouseover="javascript:ddrivetip('<img src=../<%# Eval("SrcList") %>>','#ffffff')" onmouseout="hideddrivetip()" />
                                </itemtemplate>
                                <itemstyle horizontalalign="Center" width="5%" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="StartDate" HeaderText="开始时间" SortExpression="StartDate">
                                <itemstyle width="8%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="EndDate" HeaderText="结束时间" SortExpression="EndDate">
                                <itemstyle width="8%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="NeedPrice" HeaderText="保证金" SortExpression="NeedPrice">
                                <itemstyle width="5%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Price" HeaderText="团购价" SortExpression="Price">
                                <itemstyle width="5%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Storage" HeaderText="限购数量" SortExpression="Storage">
                                <itemstyle width="7%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="MaxCount" HeaderText="每人限购数量" SortExpression="MaxCount">
                                <itemstyle width="8%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="OrderCount" HeaderText="订单数" SortExpression="OrderCount">
                                <itemstyle width="5%" />
                            </asp:BoundField>
                        </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>
    </form>
</body>
</html>
