<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" Inherits="Kesion.NET.WebSite.Course.Admin.Course.KS_ExportExcel" Codebehind="KS.CsOrderExportExcel.aspx.cs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="KSContent" runat="server">
    <%@ Import Namespace="Kesion.Cache" %>

    <ks:topnav id="TopNav1" runat="server" text="订单导出Excel" xmlns:ks="kesion.controls" />
    <div class="content-area">
    <table class="Border" cellspacing="1" cellpadding="2" width="99%" align="center" border="0">
        <tr class="Title" align="middle">
            <td height="25"><b>需要导出的字段</b></td>
            <td height="25"><b>导出条件</b></td>
        </tr>
        <tr class="tdbg">
            <td style="text-align: center; width: 350px; line-height: 38px;">
                <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>
                <asp:ListBox ID="LstField" runat="server" SelectionMode="Multiple" Width="250px" Height="280px">
                    <asp:ListItem Value="OrderID" Selected="True">订单编号</asp:ListItem>
                    <asp:ListItem Value="status" Selected="True">订单状态</asp:ListItem>
                    <asp:ListItem Value="cName" Selected="True">课程名称</asp:ListItem>
                    <asp:ListItem Value="OrderTotalPrice" Selected="True">成交单价</asp:ListItem>
                    <asp:ListItem Value="business" Selected="True">发布者</asp:ListItem>
                    <asp:ListItem Value="UserName" Selected="True">购买学员</asp:ListItem>
                    <asp:ListItem Value="RealName" Selected="True">联系人</asp:ListItem>
                    <asp:ListItem Value="Mobile" Selected="True">联系电话</asp:ListItem>
                    <asp:ListItem Value="InputTime" Selected="True">下单时间</asp:ListItem>
                      <asp:ListItem Value="address" Selected="True">联系地址</asp:ListItem>
                      <asp:ListItem Value="remark" Selected="True">备注</asp:ListItem>
                     <asp:ListItem Value="PaymentPlatId" Selected="True">支付方式</asp:ListItem>
                     <asp:ListItem Value="courseorder" Selected="True">商户号</asp:ListItem>
                     <asp:ListItem Value="paytime" Selected="True">支付时间</asp:ListItem>
                </asp:ListBox>
                <br />
                <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" />
                <div class="tips">TIPS：按Ctrl或是Shift可以多选。</div>
            </td>
            <td valign="top" style="line-height: 36px;">
                <strong>订单类型：</strong>
                <asp:RadioButtonList ID="RdbOrderType" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                    <asp:ListItem Value="-1" Selected="True">不限</asp:ListItem>
                    <asp:ListItem Value="0">网授订单</asp:ListItem>
                    <asp:ListItem Value="1">面授订单</asp:ListItem>
                    <asp:ListItem Value="5">直播订单</asp:ListItem>
                    <asp:ListItem Value="2">抢购订单</asp:ListItem>
                    <asp:ListItem Value="3">团购订单</asp:ListItem> 
                    <asp:ListItem Value="7">组合订单</asp:ListItem>
                    <asp:ListItem Value="4">套餐订单</asp:ListItem>
                </asp:RadioButtonList> 

                <br />
                <strong>日期范围：</strong>
                <input type="radio" name="limitDate" value="1" onclick="jQuery('#showdate').show();" checked="checked" />限制
        <input type="radio" name="limitDate" value="0" onclick="jQuery('#showdate').hide();" />不限制

       <div id="showdate">
           <strong>下单日期：</strong>从<asp:TextBox onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'});" ID="TxtBeginDate" CssClass="textbox Wdate" runat="server"></asp:TextBox>至
       <asp:TextBox onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'});" ID="TxtEndDate" CssClass="textbox Wdate" runat="server" />
       </div>
                <div>
                    <strong>付款状态：</strong>
                    <asp:RadioButtonList ID="RdbPayFlag" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                        <asp:ListItem Value="0" Selected="True">不限</asp:ListItem>
                        <asp:ListItem Value="1">仅导出已付款</asp:ListItem>
                        <asp:ListItem Value="2">仅导出未付款</asp:ListItem>
                    </asp:RadioButtonList>
                </div>
                <div>
                    <strong>订单来源：</strong>
                    <asp:RadioButtonList ID="rdbOrderDevice" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                        <asp:ListItem Value="-1" Selected="True">不限</asp:ListItem>
                        <asp:ListItem Value="0">PC端</asp:ListItem>
                        <asp:ListItem Value="1">手机端</asp:ListItem>
                        <asp:ListItem Value="2">微信</asp:ListItem>
                        <asp:ListItem Value="3">app</asp:ListItem>
                    </asp:RadioButtonList>
                </div> 
                <strong>限定条件：</strong>
                <asp:DropDownList ID="DrpPaymentPlat" runat="server">
                    <asp:ListItem Value="-1">-选择支付方式-</asp:ListItem>
                    <asp:ListItem Value="0"> 余额支付</asp:ListItem>
                </asp:DropDownList>
                <asp:DropDownList ID="DrpExportTJ" runat="server">
                    <asp:ListItem Value="1">订单号</asp:ListItem>
                    <asp:ListItem Value="2">购买学员</asp:ListItem>
                    <asp:ListItem Value="3">联系人</asp:ListItem>
                    <asp:ListItem Value="3">手机号</asp:ListItem>
                </asp:DropDownList>
                <asp:TextBox Style="color: #ccc" Text="" CssClass="textbox" ID="TxtExportKey" runat="server"></asp:TextBox>

                <br />
                <strong>导出类型：</strong>
                <asp:RadioButtonList ID="RdbExportType" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                    <asp:ListItem Value="0" Selected="True">Excel（xls）</asp:ListItem>
                    <asp:ListItem Value="1">Word（doc）</asp:ListItem>
                </asp:RadioButtonList>
            </td> 
        </tr>
         
        <tr class="tdbg" align="middle">
            <td colspan="2" height="30">
                <asp:Button ID="BtnSave" runat="server" Text="确定导出" CssClass="button" OnClick="BtnSave_Click" />
                &nbsp;
        <input class="button" onclick="history.back();" type="button" value="取消返回" name="Submit"></td>
        </tr>
    </table>
    </div>
</asp:Content>
