<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" Inherits="Kesion.NET.WebSite.Admin_User_LogMoney" Title="Untitled Page" Codebehind="KS.LogMoney.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="fr button" />
     </ul>
</div>
<div class="content-area mt20">
	<!--<div class="myTitle">资金明细记录管理</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>的消费明细</span>
      	<%} %>
        <ul class="tabs">
            <li class='active'><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><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:ListItem Value="3">订单号</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" cssclass="CTable" EmptyDataText="没有预付款明细记录！" ID="grvList" AutoGenerateColumns="False" 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="PayTime" HeaderText="消费时间" >
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField DataField="IP" HeaderText="IP地址" >
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField DataField="money" HeaderText="收入（元）" HtmlEncode="False" DataFormatString="{0:n2}">
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField DataField="money" HeaderText="支出（元）"  HtmlEncode="False" DataFormatString="{0:n2}">
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField DataField="InComeorPayOut" HeaderText="摘要" >
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField DataField="Inputer" HeaderText="操作员" >
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField DataField="currmoney" HeaderText="余额（元）" HtmlEncode="False" DataFormatString="{0:n2}">
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
           	<asp:TemplateField HeaderText="备注">
                <itemstyle horizontalalign="Left" Height="30px" 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="True">1年前</asp:ListItem>
             </asp:RadioButtonList>
             
         </div>
    </div>
 </div>  
</asp:Content>


