<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" CodeBehind="KS.TcScore.aspx.cs" Inherits="Kesion.NET.WebSite.Course.Admin.Course.KS_TcScore" %>
<%@ Import Namespace="Kesion.Cache" %>
<%@ Import Namespace="Kesion.Publics" %>
<asp:Content ID="Content1" ContentPlaceHolderID="KSContent" Runat="Server">
 
 <div id="manage_top" class="menu_top_fixed">&nbsp;
 &nbsp;&nbsp;<strong>用户名：</strong><asp:TextBox ID="TxtKeyWord" Width="100" runat="server" CssClass="textbox" />
<asp:DropDownList runat="server" ID="DrpInOrOut">
 <asp:ListItem Value="0" Selected="true">所有</asp:ListItem>
 <asp:ListItem Value="1">收入</asp:ListItem>
 <asp:ListItem Value="2">支出</asp:ListItem>
</asp:DropDownList> &nbsp;&nbsp;<strong>时间：</strong>
   <asp:TextBox ID="TxtBeginDate" placeholder="格式：YYYY-MM-DD" Width="150px" runat="server"  onclick="WdatePicker({dateFmt:&#39;yyyy-MM-dd&#39;});" CssClass="textbox Wdate"></asp:TextBox>至
   <asp:TextBox ID="TxtEndDate" placeholder="格式：YYYY-MM-DD" Width="150px" runat="server" onclick="WdatePicker({dateFmt:&#39;yyyy-MM-dd&#39;});"  CssClass="textbox Wdate"></asp:TextBox>
<asp:Button ID="BtnSearch" runat="server" Text="快速搜索" CssClass="button" onclick="BtnSearch_Click" />
     <asp:Button ID="BtnExportExcel" runat="server" Text="导出Excel" CssClass="button" OnClick="BtnExportExcel_Click"  />
  <input type="button" class="button" value="打印本页" onclick="PrintPage('PrintBox')" />
</div>
 <div class="menu_top_fixed_height"></div>  
<div class="content-area">
 	
    <div class="myTitle">教师信誉积分明细管理
   <%if (!string.IsNullOrEmpty(KSCMS.S("userName"))){ %>
            <span style="float:right;padding-right:10px; font-size:12px;">查看用户<span style='color:red'><%=KSCMS.S("userName")%></span>的信誉积分明细</span>
      <%} %>
   
	</div>
    <div id="PrintBox">
    <asp:GridView runat="server" ID="grvList" CssClass="CTable" AutoGenerateColumns="False" EmptyDataText="没有教师的信誉积分明细记录！" GridLines="None"  Width="99%" OnRowDataBound="grvList_RowDataBound" ShowFooter="True">
            <HeaderStyle CssClass="CTitle" />
        <EmptyDataRowStyle CssClass="emptycss" />
        <Columns>
            <asp:BoundField DataField="UserName" HeaderText="用户名" >
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField DataField="AddDate" HeaderText="发生时间" >
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField DataField="UserIP" HeaderText="IP" >
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField DataField="Score" HeaderText="增加" HtmlEncode="False">
                <ItemStyle HorizontalAlign="Left" />
            </asp:BoundField>
            <asp:BoundField DataField="Score" HeaderText="减少" HtmlEncode="False">
                <ItemStyle HorizontalAlign="Left" />
            </asp:BoundField>
            <asp:BoundField DataField="CaozuoType" HeaderText="摘要" >
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>

            
            
            <asp:TemplateField HeaderText="余额">
            <itemstyle Height="30px" horizontalalign="Center" />
            <itemtemplate>
                累计<%# Eval("CurrentScore") %>分 
            </itemtemplate>
            </asp:TemplateField>
            
            <asp:TemplateField HeaderText="备注">
            <itemstyle horizontalalign="Left" width="300px"/>
            <itemtemplate>
                <span class="tips"><%# Eval("Remark") %></span>
            </itemtemplate>
            </asp:TemplateField>
            
        </Columns>
</asp:GridView>
    </div>
     <KS:Page ID="Page1" runat="server" />
     
     <div style="border:1px dashed #cccccc; background-color:#f0f9fe; margin-top:10px;padding:10px; text-align: left; font-size: 12px;">
     <strong>特别提醒：</strong> 如果明细表记录太多，影响了系统性能，可以删除一定时间段前的记录以加快速度。但可能会带来会员在查看以前收过费的信息时重复收费（这样会引发众多消费纠纷问题），无法通过明细记录来真实分析会员的消费习惯等问题。 
     <div>
     <strong>删除范围：</strong><asp:RadioButtonList ID="RdbDelType" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
      <asp:ListItem Value="1">10天前</asp:ListItem>
      <asp:ListItem Value="2">1个月前</asp:ListItem>
      <asp:ListItem Value="3">2个月前</asp:ListItem>
      <asp:ListItem Value="4">3个月前</asp:ListItem>
      <asp:ListItem Value="5">6个月前</asp:ListItem>
      <asp:ListItem Value="6" Selected>1年前</asp:ListItem>
         </asp:RadioButtonList>
         <asp:Button ID="BtnDel" runat="server" Text="执行删除" OnClick="BtnDel_Click" CssClass="button" /></div>
     </div>
  </div>   
</asp:Content>