<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" Inherits="Kesion.NET.WebSite.Plus.ExportAggregate.KS_UserReturnDetailExport" Codebehind="KS.UserReturnDetailExport.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" CssClass="mt20">
                            <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: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;padding-bottom: 65px;" valign="bottom">
                        <input onclick="SelectAll('<%=this.LstField.ClientID %>')" type="button" class="button" value="选定所有字段" name="Submit" />
                        <input onclick="UnSelectAll('<%=this.LstField.ClientID %>')" type="button" value="取消选定字段" class="button" name="Submit" style="margin-top:10px;"/>
                    </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" CssClass="layout-right">
                                <asp:ListItem Value="-1" Selected="True">所有类型</asp:ListItem>
                                <asp:ListItem Value="2">分享浏览收益</asp:ListItem>
                                <asp:ListItem Value="1">佣金收益</asp:ListItem>
                            </asp:RadioButtonList>

                        </div>
						<div class="layout-left-right mt20">
                            <span class="layout-left">学习设备：</span>
                            <asp:RadioButtonList ID="R_equipment" runat="server" RepeatDirection="Horizontal" Height="24px" CssClass="layout-right">
                                <asp:ListItem Value="-1" Selected="True">状态</asp:ListItem>
                                <asp:ListItem Value="0">未支付</asp:ListItem>
                                <asp:ListItem Value="1">已支付</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;
                        <a href="../Plus.ShareReturn/KS.UserReturnDetail.aspx?userid=<%=KSCMS.S("userid") %>" class="button">取消返回</a>
            </asp:Panel>
        </asp:Panel>
    </div>
</asp:Content>

