<%@ page language="C#" autoeventwireup="true" inherits="GroupByAdmin_MemberMoneyBack_List, GroupTGWeb_deploy" %>

<%@ Register Assembly="ShopNum1.Control" Namespace="ShopNum1.Control" TagPrefix="cc1" %>
<%@ Register Src="UserControl/MessageShow.ascx" TagName="MessageShow" TagPrefix="ShopNum1" %>
<!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>Untitled Page</title>
    <link type="text/css" rel="Stylesheet" href="css/index.css" />

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

</head>
<body style="padding: 0; background-image: url(images/Bg_right.gif); background-repeat: repeat;">
    <form id="form1" runat="server">
    <div class="navigator">
        【 会员返利管理 】</div>
    <table style="width: 100%">
        <tr>
            <td style="width: 100%" align="left">
                <div class="query">
                    <table cellpadding="0" cellspacing="0" width="100%" border="0">
                        <tr>
                            <td width="20%">
                                会员ID：<asp:TextBox ID="textBoxID" runat="server" Width="100" CssClass="input1"></asp:TextBox>
                                推荐人：<asp:TextBox ID="TextBoxCommondID" runat="server"  Width="100" CssClass="input1"></asp:TextBox>
                                活动名称：<asp:TextBox ID="TextBoxActiveName" runat="server"  Width="100" CssClass="input1"></asp:TextBox>
                                活动Guid：<asp:TextBox ID="TextBoxActiveGuid" runat="server"  Width="100" CssClass="input1"></asp:TextBox>
                                <asp:Button ID="ButtonSearch" runat="server" OnClick="ButtonSearch_Click" Text="查询"
                                    CssClass="bt2" />
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
        <tr>
            <td style="width: 100%" align="left">
                <cc1:Num1GridView ID="num1GridiewShow" runat="server" AllowPaging="True" AllowSorting="True"
                    DataSourceID="ObjectDataSourceData" Width="100%" AscendingImageUrl="~/images/SortAsc.gif"
                    DescendingImageUrl="~/images/SortDesc.gif" Font-Size="Small" Font-Bold="False"
                    AddSequenceColumn="False" AllowMultiColumnSorting="False" BorderColor="#CCDDEF"
                    BorderStyle="Solid" BorderWidth="1px" CellPadding="4" Del="False" DeletePromptText="确实要删除指定的记录吗？"
                    Edit="False" FixHeader="False" GridViewSortDirection="Ascending" PagingStyle="None"
                    Style="margin-left: 2px;" TableName="" AutoGenerateColumns="False">
                    <HeaderStyle HorizontalAlign="Center" BackColor="#6699CC" Font-Bold="True" ForeColor="#FFFFFF">
                    </HeaderStyle>
                    <PagerStyle HorizontalAlign="Left" BackColor="#EEEEEE" ForeColor="#6699CC"></PagerStyle>
                    <Columns>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <input id="checkboxAll" onclick="javascript:SelectAllCheckboxes(this);" type="checkbox" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <input id="checkboxItem" type="checkbox" value='<%# Eval("Guid") %>' />
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" Width="30px" />
                            <ItemStyle HorizontalAlign="Center" Width="30px" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="Guid" HeaderText="GUID" SortExpression="Guid" Visible="False" />
                        <asp:BoundField DataField="Name" HeaderText="会员ID" SortExpression="Name">
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="CommondID" HeaderText="推荐人" SortExpression="CommondID">
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="ActiveName" HeaderText="团购活动" SortExpression="ActiveName">
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="ActiveGuid" HeaderText="活动guid" SortExpression="ActiveGuid" />
                        <asp:BoundField DataField="BackMoney" HeaderText="返利金额" SortExpression="BackMoney">
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="BackScore" HeaderText="返利积分" SortExpression="BackScore">
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="SureTime" HeaderText="返利时间" SortExpression="SureTime">
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                    </Columns>
                </cc1:Num1GridView>
            </td>
        </tr>
        <tr>
            <td style="width: 100%" align="left">
                <div class="vote">
                    <asp:Button ID="ButtonDelete" runat="server" Text="删除" OnClientClick="return DeleteButton()"
                        OnClick="ButtonDelete_Click" CssClass="bt2" />
                    <ShopNum1:MessageShow ID="MessageShow" runat="server" Visible="False" />
                </div>
            </td>
        </tr>
    </table>
    <asp:ObjectDataSource ID="ObjectDataSourceData" runat="server" SelectMethod="Search"
        TypeName="GroupFlyTG.BusinessLogic.GroupFlyTG_MemberMoneyBack_Action" OldValuesParameterFormatString="original_{0}">
        <SelectParameters>
            <asp:ControlParameter ControlID="textBoxID" Name="name" PropertyName="Text" Type="String" />
            <asp:ControlParameter ControlID="TextBoxCommondID" Name="CommondID" PropertyName="Text"
                Type="String" />
            <asp:ControlParameter ControlID="TextBoxActiveGuid" Name="ActiveGuid" PropertyName="Text"
                Type="String" />
            <asp:ControlParameter ControlID="TextBoxActiveName" Name="ActiveName" PropertyName="Text"
                Type="String" />
            <asp:Parameter DefaultValue="0" Name="isDelete" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <asp:HiddenField ID="CheckGuid" runat="server" Value="0" />
    </form>
</body>
</html>
