<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" Inherits="Kesion.NET.WebSite.Admin_User_LogScore" Title="积分明细表" Codebehind="KS.LogScore.aspx.cs" %>
<%@ Import Namespace="Kesion.Cache" %>
<%@ Import Namespace="Kesion.Publics" %>
<asp:Content ID="Content1" ContentPlaceHolderID="KSContent" Runat="Server">
 
<div class="listedit">    
  	<ul>
    	<asp:Button ID="BtnDel" runat="server" Text="执行删除" OnClick="BtnDel_Click" CssClass="button" />
    </ul>
</div>
 
<div class="content-area mt20"> 
    <!--<div class="myTitle"><%=MyCache.GetCacheConfig(90)  %>明细记录管理</div>-->
    <div class="tabs_header">
       	<div class="fr headOperation ">
            <ul>
                <li class="fl"><asp:Button ID="BtnExportExcel" runat="server" Text="导出Excel" CssClass="button" OnClick="BtnExportExcel_Click"/></li>
                <li class="fl"><input type="button" class="button" value="打印本页" onclick="PrintPage('PrintBox')" /></li>
            </ul>
        </div>
		<%if (!string.IsNullOrEmpty(KSCMS.S("userName"))){ %>
                <span style="float:right;padding-right:10px;">查看用户<span style='color:red'><%=KSCMS.S("userName")%></span>的<%=MyCache.GetCacheConfig(90)  %>明细</span>
        <%} %>
        <ul class="tabs">
            <li><a href="KS.LogMoney.aspx"><span>资金明细</span></a></li>
                 <%if (MyCache.GetShopCommonConfig(98)=="1") { %>
            <li><a href="KS.Consumer.aspx"><span><%=MyCache.GetCacheConfig(49) %>明细</span></a></li>
                <%} %>
            <li class='active'><a href="KS.LogScore.aspx"><span><%=MyCache.GetCacheConfig(90)  %>明细</span></a></li>
        </ul>
    </div>
	<div class="quickSearch clearfix">
        <div class="SearchBox fl">
            <asp:DropDownList ID="DrpTJ" runat="server" style="margin-right:8px;">
                 <asp:ListItem Value="0">用户名</asp:ListItem>
                 <asp:ListItem Value="1">操作员</asp:ListItem>
                 <asp:ListItem Value="2">备注</asp:ListItem>
            </asp:DropDownList>
            <asp:TextBox ID="TxtKeyWord" runat="server" CssClass="textbox"/>
            <asp:DropDownList runat="server" ID="DrpInOrOut" style="margin-right:8px;">
                <asp:ListItem Value="0" Selected="true">所有</asp:ListItem>
                <asp:ListItem Value="1">收入</asp:ListItem>
                <asp:ListItem Value="2">支出</asp:ListItem>
            </asp:DropDownList>
            <asp:TextBox ID="TxtBeginDate" placeholder="格式：YYYY-MM-DD" Width="180px" runat="server"  onclick="WdatePicker({dateFmt:&#39;yyyy-MM-dd&#39;});" CssClass="textbox Wdate"></asp:TextBox>至&nbsp;&nbsp;
            <asp:TextBox ID="TxtEndDate" placeholder="格式：YYYY-MM-DD" Width="180px" 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" />
            
        </div>
    </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="IP" HeaderText="IP地址" >
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField DataField="Score" HeaderText="收入" HtmlEncode="False">
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField DataField="Score" HeaderText="支出" HtmlEncode="False">
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField DataField="InorOutFlag" HeaderText="摘要" >
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField DataField="Inputer" HeaderText="操作员" >
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            
            
            <asp:TemplateField HeaderText="余额">
            <itemstyle Height="30px" horizontalalign="Center" />
            <itemtemplate>
                累计<%# Eval("NowScore") %>分 可用<font color=green><%# Eval("AvailableScore")%></font>分
            </itemtemplate>
            </asp:TemplateField>
            
            <asp:TemplateField HeaderText="备注">
            <itemstyle horizontalalign="Left" width="300px"/>
            <itemtemplate>
                <div class="tips" style="word-break:break-all;"><%# Eval("Remark") %></div>
            </itemtemplate>
            </asp:TemplateField>
            
        </Columns>
</asp:GridView>
    </div>
     <KS:Page ID="Page1" runat="server" />
     
     <div class="message">
     	 <div class="Lheight36">
         	<strong>特别提醒：</strong> 如果明细表记录太多，影响了系统性能，可以删除一定时间段前的记录以加快速度。但可能会带来会员在查看以前收过费的信息时重复收费（这样会引发众多消费纠纷问题），无法通过明细记录来真实分析会员的消费习惯等问题。 
         </div>
         <div class="Lheight36">
            <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>
         </div>
     </div>
   </div>  
</asp:Content>


