<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OrderExchangeManage.aspx.cs" Inherits="JRAPI.Web.User.OrderExchangeManage" %>
<%@ Register src="Foot.ascx" tagname="Foot" tagprefix="uc2" %>
<%@ Register Src="Top.ascx" TagName="Top" TagPrefix="uctop" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>订单管理</title>    
    <link href="css/style.css" rel="stylesheet" type="text/css" />
    <script src="js/jquery-1.6.4.min.js" type="text/javascript"></script>
    <script src="../DatePicker/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $(".showOther").parent().parent().next().hide();
            $(".showOther").click(function () {
                $obj = $(this).parent().parent().next();
                if ($obj.is(':hidden')) {
                    $obj.show();
                }
                else {
                    $obj.hide();
                }

            });
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <uctop:Top ID="top1" runat="server" hoverNum="2"/>
    <div id="content">
        <div class="box" id="ddgl">
            <p class="title">
                <b>销卡订单管理</b></p>
            <div class="cxtj">
                <div class="time">
                    支付时间<asp:TextBox ID="txtStartTime" runat="server" onClick="WdatePicker({startDate:'%y-%M-01 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})" CssClass="Wdate"></asp:TextBox>至<asp:TextBox
                        ID="txtEndTime" runat="server" onClick="WdatePicker({startDate:'%y-%M-01 23:59:59',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})" CssClass="Wdate"></asp:TextBox>订单流水号：<asp:TextBox  ID="BillNO" runat="server" style="border: solid 1px #CCCCCC"></asp:TextBox>
                    卡号：<asp:TextBox ID="txtCardNo" runat="server" style="border: solid 1px #CCCCCC"></asp:TextBox> </div>
               
                <div style="float: left;width: 94%;margin: 10px 0px 10px 0px">                    
                    <asp:Button ID="btnSearch" style="float: right; margin-left:100px;" 
                        class="btn" runat="server" Text="开始查询" onclick="btnSearch_Click" />
                        &nbsp;&nbsp;
                    <!---<asp:Button ID="btnSaveExcel" style="float: right" class="btn" runat="server" 
                        Text="导出Excel" onclick="btnSaveExcel_Click" />--->
                </div>
                
               
            </div>
            <asp:Panel ID="pnlInfo" runat="server">
                <table class="table">
                    <tr>
                        <th>
                            订单号码
                        </th>
                        <th>
                            充值卡号
                        </th>
                        <th>
                            订单金额
                        </th>
                        <th>
                            实际金额
                        </th>
                        <th>
                            用户金额
                        </th>
                        <th>
                            支付通道
                        </th>
                        <th>
                            支付时间
                        </th>
                        <th>
                            订单状态
                        </th>
                        <th>
                            详细
                        </th>

                    </tr>
                    <asp:Repeater ID="repInfo" runat="server">
                        <ItemTemplate>
                            <tr>
                                <td>
                                    <%# Eval("BillNO")%>
                                </td>
                                <td>
                                    <%# Eval("CardNumber")%>
                                </td>
                                <td>
                                    <%# Eval("OrderMoney")%>
                                </td>
                                <td>
                                    <%# Eval("Realmoney")%>
                                </td>
                                <td>
                                    <%# Eval("UserMoney")%>
                                </td>
                                <td>
                                    <%# Eval("ChannelName")%>
                                </td>
                                <td>
                                    <%# Eval("PayDate")%>
                                </td>
                                <td align="center">
                                    <%# getStatus(Eval("OrderStatus").ToString())%>
                                </td>
                                <td>
                                    <a href="javascript:void(1);" class="showOther">查看</a>
                                </td>
                            </tr>
                            <tr><td colspan="9" style=" text-align:left; text-indent:100px; background-color:#efffff"><font color="red">详细信息：</font>商户号：<%# Eval("UserID") %>&nbsp;&nbsp;系统流水号：<%#Eval("BillNO")%>&nbsp;&nbsp;卡号：<%# Eval("CardNumber")%>&nbsp;&nbsp;卡密：<%# Eval("CardPass")%></td></tr>
                        </ItemTemplate>
                        <FooterTemplate>
                            <tr class="tableB">
                                <th align="center">
                                    本页查询总计
                                </th>
                                <th>
                                    <b>
                                        <%=orderMoney%></b>
                                </th>
                                <th>
                                    <b>
                                        <%=orderRealMoney%></b>
                                </th>
                                <th>
                                    <b>
                                        <%=orderUserMoney%></b>
                                </th>
                                <th>
                                </th>
                                <th>
                                </th>
                                <th align="center">
                                </th>
                                <th>
                                </th>
                                <th>
                                </th>
                            </tr>
                        </FooterTemplate>
                    </asp:Repeater>
                </table>
            </asp:Panel>
            
            <table runat="server" id="tbcount" visible="false">
                <tr>
                    <td style="line-height: 18px">
                    </td>
                </tr>
            </table>
            <!-- pagination -->
            <div class="page">
                <webdiyer:AspNetPager ID="AspNetPager1" runat="server" FirstPageText="首页" LastPageText="尾页"
                    NextPageText="下一页" PrevPageText="上一页" AlwaysShow="True" PageSize="10" UrlPageIndexName="pageindex"
                    UrlPaging="False" CustomInfoHTML="<span>共有%RecordCount%条数据,每页%PageSize%条,当前第%CurrentPageIndex%页,共%PageCount%页</span>"
                    ShowCustomInfoSection="Right" CssClass="pager" CustomInfoClass="results" CurrentPageButtonClass="current"
                    MoreButtonsClass="" Width="100%" PagingButtonLayoutType="UnorderedList" OnPageChanging="AspNetPager1_PageChanging"
                    NumericButtonCount="5">
                </webdiyer:AspNetPager>
            </div>
            <!-- end pagination -->
        </div>
    </div>
    <script type="text/javascript">        setTab('one', 2, 5);</script>
    <uc2:Foot ID="Foot1" runat="server" />
    </form>
</body>
</html>