<%@ page language="C#" masterpagefile="AdminIndexMaster.master" autoeventwireup="true" inherits="Admin_Admin_UserExpRecorde, mallz" title="积分明细" enableEventValidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <table class="nick">
        <tr>
            <td colspan="4" class="tit"><b>积分明细列表</b></td>
        </tr>
        <tr>
            <td class="ltd">帐户名称：</td>
            <td class="rtd" style="width: 35%;"><asp:TextBox ID="TxtUserName" runat="server"/>
                </td>
            <td class="ltd">&nbsp;类型：</td>
            <td class="rtd" style="width: 35%;">
                &nbsp;<asp:DropDownList ID="Dropincome_output" runat="server">
                    <asp:ListItem Value="">所有</asp:ListItem>
                    <asp:ListItem Value="1">获得</asp:ListItem>
                    <asp:ListItem Value="0">消耗</asp:ListItem>
                </asp:DropDownList>
                </td>
        </tr>
        <tr>
            <td class="ltd">起始日期：</td>
            <td class="rtd" style="width: 35%;">
               <asp:TextBox ID="TxtBeginDate" runat="server"/>
               
            </td>
            <td class="ltd">结束日期：</td>
            <td class="rtd" style="width: 35%;">
               <asp:TextBox ID="TxtEndDate" runat="server"/>
                <asp:Button runat="server" ID="but" OnClick="OnSearch" Text=" 查 找 " />
            </td>
        </tr>
    </table>
    <br />
    
    <asp:GridView ID="GridView1"  CssClass="adminlist" runat="server" AutoGenerateColumns="False"
        OnRowDataBound="GridView1_RowDataBound" DataKeyNames="ID">
        <Columns>
            <asp:TemplateField HeaderStyle-Width="4%">
                <HeaderTemplate>
                    <input value="0" name="selectall" type="checkbox" onclick="SelectAllCheckboxes(this,'IDS');" />
                </HeaderTemplate>
                <ItemTemplate>
                    <input value="<%#Eval("ID") %>" name="IDS" id="IDS" title="<%#"ID:"+Eval("ID") %>" type="checkbox" />
                </ItemTemplate>
            </asp:TemplateField>          
            <asp:HyperLinkField HeaderText="用户名" DataNavigateUrlFields="UserID" DataNavigateUrlFormatString="Admin_UserDetail.aspx?UserID={0}" DataTextField="UserName" HeaderStyle-Width="15%" />
            <asp:BoundField DataField="CreateTime" HeaderText="发生时间" HeaderStyle-Width="15%" />
            <asp:BoundField DataField="UserEp" HeaderText="发生额" HeaderStyle-Width="10%" />
            <asp:TemplateField HeaderText="方式" HeaderStyle-Width="8%" >
                <ItemTemplate>
                    <asp:Literal runat="server" ID="LitcType" Text='<%# (Eval("cType").ToString()=="1")?"获得":"消耗" %>' />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="Remark" HeaderText="备注" />
            <asp:TemplateField HeaderText="操作" HeaderStyle-Width="10%" >
                <ItemTemplate>
                    <asp:LinkButton runat="server" ID="ButDel" Text="删除" CommandArgument='<%# Eval("ID") %>' OnClientClick="return confirm('确定删除？')" OnCommand="DeleteOne" />
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <EmptyDataTemplate>
                <tr>
                    <th>ID</th>
                    <th>用户名</th>
                    <th>发生时间</th>
                    <th>发生额</th>
                    <th>方式</th>
                    <th>备注</th>
                    <th>操作</th>
                </tr>
                <tr><td colspan="8">暂无信息！</td></tr>
        </EmptyDataTemplate>
    </asp:GridView>
    <div class="page"><asp:Label runat="server" ID="PagePanel" /></div>
    <br />
    <asp:Button ID="Button1" runat="server" Text="批量删除" OnClick="DeleteAll" OnClientClick="return confirm('确定删除吗？')" />
    <br />
    
</asp:Content>

