<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SaleOrder.aspx.cs" Inherits="JRAPI.Admin.OrderForm.SaleOrder" %>
<%@ Register src="../Controls/SubPageTop.ascx" tagname="SubPageTop" tagprefix="uc1" %>
<%@ Register assembly="AspNetPager" namespace="Wuqi.Webdiyer" tagprefix="webdiyer" %>
<uc1:SubPageTop ID="SubPageTop1" runat="server" />
<body>
<form id="Form1" runat="server">
<style type="text/css">
	html{_overflow-y:scroll}
</style><div class="pad-lr-10"  style="margin-top:10px">
<div width="100%" cellspacing="0" class="search-form" >
<script src="../statics/js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>

		<div class="explain-col" style="line-height:30px">
				订 单 号:<asp:TextBox ID="txtBillNo" runat="server"></asp:TextBox> 商户编号:<asp:TextBox ID="txtUserID" runat="server"></asp:TextBox> 
                充值卡号:<asp:TextBox ID="txtCardNo" runat="server"></asp:TextBox> 订单日期:<input id="startDate" type="text" readonly="readonly" onfocus="WdatePicker({startDate:'%y-%M-%d 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss'})" runat="server" class="date"/>
                至<input id="endDate" type="text" readonly="readonly" onclick="WdatePicker({startDate:'%y-%M-%d 00:59:59',dateFmt:'yyyy-MM-dd HH:mm:ss'})" onfocus="WdatePicker({startDate:'%y-%M-%d 00:59:59',dateFmt:'yyyy-MM-dd HH:mm:ss'})" runat="server" class="date"/><br />
                使用通道:<asp:DropDownList ID="dpdChannel" runat="server" 
                    AppendDataBoundItems="True"><asp:ListItem Value="0">选择通道</asp:ListItem></asp:DropDownList> 
                </asp:DropDownList> 订单状态:<asp:DropDownList ID="dpdGateStatus" runat="server">
                    <asp:ListItem Value="-1">所有</asp:ListItem>
                    <asp:ListItem Value="0">支付中</asp:ListItem>
                    <asp:ListItem Value="1">成功</asp:ListItem>
                    <asp:ListItem Value="2">失败</asp:ListItem>
            </asp:DropDownList> &nbsp;<asp:Button ID="btnSearch" runat="server" Text="检 索" CssClass="button" 
                    onclick="btnSearch_Click" />&nbsp;
					<!---<asp:Button ID="btnSaveExcel" 
                    runat="server" CssClass="button"  Text="导出Excel" onclick="btnSaveExcel_Click" />--->
                                        <br />总成功金额:<font color=red><asp:Literal ID="liAllMoney" runat="server"></asp:Literal></font>元&nbsp;&nbsp;平台收益:<font color=red><asp:Literal ID="liSysPrice" runat="server"></asp:Literal></font>元
                    &nbsp;&nbsp;商户收益:<font color=red><asp:Literal ID="liUserPrice" runat="server"></asp:Literal></font>元 &nbsp;&nbsp;代理收益:<font color=red><asp:Literal ID="liAgentPrice" runat="server"></asp:Literal></font>元

	    </div>
</div>
<div class="table-list">
    <table width="100%" cellspacing="0">
        <thead>
            <tr>
            <th align="center">序号</th>
			<th align="center">商户ID</th>
			<th align="center">订单号码</th>
			<th align="center">充值卡号</th>
			<th align="center">支付通道</th>
			<th align="center">提交金额</th>
			<th align="center">成功金额</th>
			<th align="center">平台收益</th>
			<th align="center">商户收益</th>
			<th align="center">提交时间</th>
			<th align="center">订单状态</th>
            </tr>
        </thead>
    <tbody>
        <asp:Repeater ID="repList" runat="server">
            <ItemTemplate>
	            <tr style="cursor:pointer;" onclick="showRow('<%# Eval("OrderID")%>')" title="点击查看订单详情">
	            <td align="center"><%# Eval("OrderID")%></td>
	            <td align="center"><%# Eval("UserID")%></td>
	            <td align="center"><%# Eval("BillNO")%></td>
	            <td align="center"><%# Eval("CardNumber")%></td>
	            <td align="center"><%# Eval("ChannelName")%></td>
	            <td align="center"><%# Eval("OrderMoney")%></td>
	            <td align="center"><%# Eval("Realmoney")%></td>
	            <td align="center"><%# Eval("SysMoney")%></td>
	            <td align="center"><%# Eval("UserMoney")%></td>
	            <td align="center"><%# Eval("PayDate")%></td>
	            <td align="center"><%# JRAPI.Common.pub.getOrderStatus(JRAPI.Common.TypeConverter.ObjectToInt(Eval("OrderStatus")))%></td>
	            </tr>
                <tr id="append_<%# Eval("OrderID")%>" style="display:none;">
                    <td colspan="17"><font color=blue>接口网关:<font color=red><%# Eval("GateName")%></font>&nbsp;&nbsp;&nbsp;&nbsp;充值卡卡号:<font color=red><%# Eval("CardNumber")%> + "</font>&nbsp;&nbsp;充值卡卡密:<font color=red><%# Eval("CardPass")%></font>&nbsp;&nbsp;&nbsp;&nbsp;
                    <%# Eval("OrderStatus").ToString() == "2" ? "上级网关错误信息:<font color=red>" + Eval("GateMsg") + "</font>" : ""%>&nbsp;&nbsp;&nbsp;&nbsp;
                    <%# Eval("SendStatus").ToString() == "2" ? "客户端返回信息:<font color=red>" + Eval("SendMsg") + "</font>" : ""%></font>
                    </td>
                </tr>            </ItemTemplate>
        </asp:Repeater>

</tbody>
    </table>
    
    </div>
     <webdiyer:AspNetPager ID="pages" runat="server" FirstPageText="首页" LastPageText="尾页"
                                            NextPageText="下一页" PrevPageText="上一页" 
        AlwaysShow="True" PageSize="20" UrlPageIndexName="pageindex" CustomInfoHTML="共有%RecordCount%条数据,每页%PageSize%条,当前第%CurrentPageIndex%页,共%PageCount%页"
                                            ShowCustomInfoSection="Left"  CurrentPageButtonClass="current"   
        CustomInfoClass="pxofy" 
        NavigationClass="pagin-list" onpagechanging="PageList_PageChanging" 
        PageIndexBoxClass="gotoinput" SubmitButtonClass="gotobtn" 
        FirstLastButtonsClass="a1" PagingButtonsClass="" PrevNextButtonsClass="a1">
                                        </webdiyer:AspNetPager>

</div></form>
</body>
</html>