<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" Inherits="Kesion.NET.WebSite.Admin.ExportAggregate.KS_LogMoneyExport" CodeBehind="KS.LogMoneyExport.aspx.cs" %>

<%@ Import Namespace="Kesion.Cache" %>
<%@ Import Namespace="Kesion.APPCode" %>
<%@ Import Namespace="Kesion.BLL" %>
<%@ Import Namespace="Kesion.Publics" %>
<asp:Content ID="Content1" ContentPlaceHolderID="KSContent" runat="server">
    <div class="content-area mt20">
        <asp:Panel ID="InportPanel" runat="server" Width="100%">
            <script>
                function SelectAll(f) {
                    jQuery("#" + f + " option").each(function () {
                        jQuery(this).attr("selected", true);
                    });
                }
                function UnSelectAll(f) {
                    jQuery("#" + f + " option").each(function () {
                        jQuery(this).attr("selected", false);
                    });
                }
            </script>
            <div class="myTitle">
                数据导出 
            </div>
            <table width="100%" border="0" cellpadding="1" cellspacing="1" class="CTable no-borderTable">
                <tr>
                    <td style="width: 200px">
                        <strong>选择要导出的字段：</strong><br />
                        <asp:ListBox ID="LstField" runat="server" SelectionMode="Multiple" Width="200px" Height="320px">
                            <asp:ListItem Value="用户账号">用户账号</asp:ListItem>
                            <asp:ListItem Value="用户名">用户名</asp:ListItem>
                            <asp:ListItem Value="消费时间">消费时间</asp:ListItem>
                            <asp:ListItem Value="IP地址">IP地址</asp:ListItem>
                            <asp:ListItem Value="收入">收入</asp:ListItem>
                            <asp:ListItem Value="支出">支出</asp:ListItem>
                            <asp:ListItem Value="摘要">摘要</asp:ListItem>
                            <asp:ListItem Value="操作员">操作员</asp:ListItem>
                            <asp:ListItem Value="余额">余额</asp:ListItem>
                            <asp:ListItem Value="备注">备注</asp:ListItem>
                        </asp:ListBox>
                        <br />
                        <font color="red">提示：</font>可以按住“Shift”或“Ctrl”键多选
                    </td>
                    <td style="width: 150px" valign="bottom">
                        <input onclick="SelectAll('<%=this.LstField.ClientID %>')" type="button" class="button" value="选定所有字段" name="Submit" /><br />
                        <input onclick="UnSelectAll('<%=this.LstField.ClientID %>')" type="button" value="取消选定字段" class="button" name="Submit" />
                    </td>
                    <td valign="top">
                        <h3>导出条件</h3>
                        <br />
                        <span>导出数量：</span>
                        <asp:TextBox ID="TxtNum" runat="server" Text="0" CssClass="textbox" Style="text-align: center; width: 50px" />
                        件 <span class="tips">不限制请输入“0”。</span><br />
                        <br />
                        <span>日期范围：</span>
                        <input type="radio" name="limitDate" value="1" onclick="jQuery('#showdate').show();" />限制
                        <input type="radio" name="limitDate" value="0" onclick="jQuery('#showdate').hide();" checked="checked" />不限制

                                <div id="showdate" style="display: none">
                                    添加日期从：<asp:TextBox onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'});" Width="200px" ID="TxtBeginDate" CssClass="textbox" runat="server"></asp:TextBox>至
                                <asp:TextBox onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'});" ID="TxtEndDate" Width="200px" CssClass="textbox" runat="server" />
                                </div>
                        <div class="layout-left-right mt20">
                            <span class="layout-left">摘要：</span>
                            <asp:RadioButtonList ID="R_complete" runat="server" RepeatDirection="Horizontal" Height="24px">
                                <asp:ListItem Value="-1" Selected="True">所有状态</asp:ListItem>
                                <asp:ListItem Value="1">收入</asp:ListItem>
                                <asp:ListItem Value="2">支出</asp:ListItem>
                            </asp:RadioButtonList>
                        </div>
                        <div class="layout-left-right mt20">
                            <span>限制条件:</span>
                            <asp:DropDownList ID="Condition" runat="server" Style="margin-right: 8px;" AutoPostBack="true">
                                <asp:ListItem Value="1">用户名</asp:ListItem>
                            </asp:DropDownList>
                            <asp:TextBox Style="color: #ccc" CssClass="textbox" ID="KeyWord" runat="server" Width="180px"></asp:TextBox>
                        </div>
                    </td>
                    <td></td>
                    <td></td>
                </tr>
            </table>
            <asp:Panel ID="Panel1" runat="server" Width="100%" CssClass="main-button">
                &nbsp;&nbsp;
                <asp:Button ID="InsetFoot" CssClass="button" runat="server" Text="确定导出" OnClick="InsetFoot_Click" />&nbsp;
                      <%if (KSCMS.S("type") == "1")
                          { %>
                <a href="../User/KS.LogMoney.aspx" class="button">取消返回</a>
                <%}
                    else if (KSCMS.S("type") == "2")
                    { %>
                <a href="../User/KS.Consumer.aspx" class="button">取消返回</a>
                <%}
                    else if (KSCMS.S("type") == "3")
                    { %>
                <a href="../User/KS.LogScore.aspx" class="button">取消返回</a>
                <%} %>
            </asp:Panel>
        </asp:Panel>
    </div>
</asp:Content>
