<%@ page language="C#" masterpagefile="AdminIndexMaster.master" autoeventwireup="true" inherits="HL_Admin_Admin_UserExpRecorde, WebApp_deploy" title="Untitled Page" enableEventValidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script src="Js/Function.js" type="text/javascript"></script> 
    <table class="adminheading">
   <tr>
      <th valign="middle" class="menus" align="left">积分明细管理</th>
      <td align="right">
      <div style="width:400px">
                          
      </div></td>
      <td class="rtdw"></td>          
   </tr>                     
</table>

    <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" OnTextChanged="OnSearch" AutoPostBack="True"/>
                </td>
            <td class="ltd">&nbsp;类型：</td>
            <td class="rtd" style="width: 35%;">
                &nbsp;<asp:DropDownList ID="Dropincome_output" runat="server" OnSelectedIndexChanged="OnSearch" AutoPostBack="True">
                    <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"   ReadOnly="true"/>
               
            </td>
            <td class="ltd">结束日期：</td>
            <td class="rtd" style="width: 35%;">
               <asp:TextBox ID="TxtEndDate" runat="server"  ReadOnly="true" />
                <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="40px">
                <HeaderTemplate>
                    <input value="0" name="selectall" type="checkbox" onclick="SelectAllCheckboxes(this,'IDS');" />
                </HeaderTemplate>
                <ItemTemplate>
                    <input value="<%#Eval("ID") %>" name="IDS" id="IDS" type="checkbox" />
                </ItemTemplate>
            </asp:TemplateField>          
            <asp:HyperLinkField HeaderText="用户名" DataNavigateUrlFields="UserID" DataNavigateUrlFormatString="Admin_UserDetail.aspx?UserID={0}" DataTextField="UserName"   />
            <asp:BoundField DataField="CreateTime" HeaderText="发生时间" >
                <HeaderStyle Width="15%" />
            </asp:BoundField>
            <asp:BoundField DataField="UserEp" HeaderText="发生额">
                <HeaderStyle Width="10%" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="方式">
                <ItemTemplate>
                    <asp:Literal runat="server" ID="LitcType" Text='<%# (Eval("cType").ToString()=="1")?"获得":"消耗" %>' />
                </ItemTemplate>
                <HeaderStyle Width="8%" />
            </asp:TemplateField>
            <asp:BoundField DataField="Remark" HeaderText="备注" />
            <asp:TemplateField HeaderText="操作">
                <ItemTemplate>
                    <asp:LinkButton runat="server" ID="ButDel" Text="删除" CommandArgument='<%# Eval("ID") %>' OnClientClick="return confirm('确定删除？')" OnCommand="DeleteOne" />
                </ItemTemplate>
                <HeaderStyle Width="8%" />
            </asp:TemplateField>
        </Columns>
        <EmptyDataTemplate>
                <tr>
                    <th>用户名</th>
                    <th>发生时间</th>
                    <th>发生额</th>
                    <th>方式</th>
                    <th>备注</th>
                    <th>操作</th>
                </tr>
                <tr><td colspan="8">暂无信息！</td></tr>
        </EmptyDataTemplate>
    </asp:GridView>
    <br />
    <asp:Button ID="Button1" runat="server" Text="批量删除" OnClick="DeleteAll" OnClientClick="return confirm('确定删除吗？')" />
    <br />
    <asp:Label runat="server" ID="PagePanel" />
</asp:Content>

