global_creditsordermanage.aspx
上传用户:wenllgg125
上传日期:2020-04-09
资源大小:7277k
文件大小:10k
源码类别:

SCSI/ASPI

开发平台:

Others

  1. <%@ Page Language="c#" Inherits="Discuz.Web.Admin.creditsordermanage" Codebehind="global_creditsordermanage.aspx.cs" %>
  2. <%@ Import Namespace="System.Data" %>
  3. <%@ Import Namespace="Discuz.Common" %>
  4. <%@ Import Namespace="Discuz.Forum" %>
  5. <%@ Import Namespace="Discuz.Entity" %>
  6. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  7. <html>
  8. <head>
  9.     <title>积分充值订单查询</title>
  10.     <link href="../styles/datagrid.css" type="text/css" rel="stylesheet" />
  11.     <link rel="stylesheet" type="text/css" href="../styles/calendar.css">
  12.     <script src="../js/calendar.js" language="javascript" />
  13.     <script type="text/javascript" src="../js/common.js"></script>
  14.     <link href="../styles/dntmanager.css" type="text/css" rel="stylesheet" />
  15.     <link href="../styles/modelpopup.css" type="text/css" rel="stylesheet" />
  16.     <script type="text/javascript" src="../js/modalpopup.js"></script>
  17.     <script type="text/javascript">
  18.         function initSearchCondition() {
  19.             $('orderstatus').value = -1;
  20.             $('orderid').value = "";
  21.             $('tradeno').value = "";
  22.             $('buyer').value = "";
  23.             $('submitstartdate').value = "";
  24.             $('submitlastdate').value = "";
  25.             $('confirmstartdate').value = "";
  26.             $('confirmlastdate').value = "";
  27.             $('initcondition').style.display = "none";
  28.         }
  29.         function isShowInitCondition() {
  30.             if ($('orderstatus').value != -1 || $('orderid').value != "" || $('tradeno').value != "" || $('buyer').value != "" || $('submitstartdate').value != "" || $('submitlastdate').value != "" || $('confirmstartdate').value != "" || $('confirmlastdate').value != "") {
  31.                 $('initcondition').style.display = "";
  32.             }
  33.         }
  34.         function goPageIndex(index) {
  35.             var parms = 'page='+index;
  36.             if ($('orderstatus').value != -1)
  37.                 parms += '&orderstatus=' + $('orderstatus').value;
  38.             if ($('orderid').value != "")
  39.                 parms += '&orderid=' + $('orderid').value;
  40.             if ($('tradeno').value = "")
  41.                 parms += '&tradeno=' + $('tradeno').value;
  42.             if ($('buyer').value != "")
  43.                 parms += '&buyer=' + $('buyer').value;
  44.             if ($('submitstartdate').value != "")
  45.                 parms += '&submitstartdate=' + $('submitstartdate').value;
  46.             if ($('submitlastdate').value != "")
  47.                 parms += '&submitlastdate=' + $('submitlastdate').value;
  48.             if ($('confirmstartdate').value != "")
  49.                 parms += '&confirmstartdate=' + $('confirmstartdate').value;
  50.             if ($('confirmlastdate').value != "")
  51.                 parms += '&confirmlastdate=' + $('confirmlastdate').value;
  52.             window.location.href = "global_creditsordermanage.aspx?" + parms + "#bottom";
  53.         }
  54.     </script>
  55.     <meta http-equiv="X-UA-Compatible" content="IE=7" />
  56. </head>
  57. <body>
  58. <div class="ManagerForm">
  59. <fieldset>
  60. <legend style="background: url(../images/icons/icon25.jpg) no-repeat 6px 50%;">积分充值设置</legend>
  61. <div id="info1" style="text-align:left;border: 1px dotted rgb(219, 221, 211); margin: 10px 0pt; padding: 15px 10px 10px 56px; background: rgb(253, 255, 242) url(../images/hint.gif) no-repeat 20px 15px;clear: both;">
  62.           您可以通过设置下面给出的查询项目来查看您需要了解的订单信息。设置“积分充值功能”,请点击<a href="global_screditset.aspx"style=" font-weight:700; padding-left:10px; text-decoration:underline; color:#FF0000">积分充值设置</a>
  63. </div>
  64. <form id="searchchoice" runat="server" action="global_creditsordermanage.aspx#bottom">
  65. <table width="100%">
  66. <tr><td class="item_title" colspan="2">订单状态:</td></tr>
  67.     <tr>
  68. <td class="vtop rowform">
  69. <select id="orderstatus" name="orderstatus">
  70.    <option selected="selected" value="-1">全部状态</option>
  71.    <option value="0">等待付款</option>
  72.    <option value="2">交易成功</option>
  73. </select>
  74. <script type="text/javascript">
  75.     $('orderstatus').value=<%=status %>;
  76. </script>
  77. </td>
  78. <td class="vtop">设置关于订单状态的查询条件</td>
  79.     </tr>
  80.     <tr><td class="item_title" colspan="2">订单号:</td></tr>
  81.     <tr>
  82. <td class="vtop rowform">
  83. <input id="orderid" name="orderid" type="text" <%if (orderId > 0){%>value="<%=orderId%>"<%}%> />
  84. </td>
  85. <td class="vtop">设置关于订单号的查询条件</td>
  86.     </tr>
  87.     <tr><td class="item_title" colspan="2">支付宝订单号:</td></tr>
  88.     <tr>
  89. <td class="vtop rowform">
  90. <input id="tradeno" name="tradeno" type="text" value="<%=tradeNo %>"  />
  91. </td>
  92. <td class="vtop">设置关于支付宝订单号的查询条件</td>
  93.     </tr>
  94.     <tr><td class="item_title" colspan="2">付款用户名(多个用户名间请用半角逗号 "," 分割):</td></tr>
  95.     <tr>
  96. <td class="vtop rowform">
  97. <input id="buyer" name="buyer" type="text" value="<%=buyer %>"  />
  98. </td>
  99. <td class="vtop">设置关于付款用户的查询条件</td>
  100.     </tr>
  101.     <tr><td class="item_title" colspan="2">订单提交时间范围(yyyy-mm-dd):</td></tr>
  102.     <tr>
  103. <td class="vtop rowform">
  104. 从 <input id="submitstartdate" name="submitstartdate" type="text" readonly="readonly" value="<%=submitStartDate %>"  /><img class="calendarimg" align="bottom" onclick="showcalendar(event, $('submitstartdate'))" src="../images/btn_calendar.gif"/> 
  105. 开始<br/>到 <input id="submitlastdate" name="submitlastdate" type="text" readonly="readonly" value="<%=submitLastDate %>"  /><img class="calendarimg" align="bottom" onclick="showcalendar(event, $('submitlastdate'))" src="../images/btn_calendar.gif"/>
  106. </td>
  107. <td class="vtop">设置关于订单提交时间的查询条件</td>
  108.     </tr>
  109.     <tr><td class="item_title" colspan="2">订单确认时间范围(格式 yyyy-mm-dd):</td></tr>
  110.     <tr>
  111. <td class="vtop rowform">
  112. 从 <input id="confirmstartdate" name="confirmstartdate" type="text" readonly="readonly" value="<%=confirmedStartDate %>" /><img class="calendarimg" align="bottom" onclick="showcalendar(event, $('confirmstartdate'))" src="../images/btn_calendar.gif"/> 
  113. 开始<br />到 <input id="confirmlastdate" name="confirmlastdate" type="text" readonly="readonly" value="<%=confirmedLastDate %>" /><img class="calendarimg" align="bottom" onclick="showcalendar(event, $('confirmlastdate'))" src="../images/btn_calendar.gif"/>
  114. </td>
  115. <td class="vtop">设置关于订单确认时间的查询条件</td>
  116.     </tr>
  117.     <tr>
  118.     <td>
  119.        <input id="search" type="submit" value="搜 索"/> &nbsp;&nbsp;&nbsp;<a id="initcondition" style=" display:none;" onclick="initSearchCondition()" href="#">重置查询条件</a>
  120.     </td>
  121.     </tr>
  122. </table>
  123. <script type="text/javascript">
  124.     isShowInitCondition();
  125. </script>
  126. </form>
  127. </fieldset>
  128. </div>
  129. <table class="ntcplist">
  130.   <tbody>
  131.   <tr class="head">
  132.       <td><a href="#" name="bottom">订单列表</a></td>
  133.   </tr>
  134.   <tr>
  135.   <td>
  136.   <table id="orderlist" class="datalist" rules="all" cellspacing="0" border="1" align="center" style=" border-collapse:collapse;">
  137.     <tbody>
  138.      <tr class="category">
  139.         <td nowrap="nowrap" style="border: 1px solid rgb(234, 233, 225);">订单号</td>
  140.         <td nowrap="nowrap" style="border: 1px solid rgb(234, 233, 225);">支付宝订单号</td>
  141.         <td nowrap="nowrap" style="border: 1px solid rgb(234, 233, 225);">订单状态</td>
  142.         <td nowrap="nowrap" style="border: 1px solid rgb(234, 233, 225);">付款用户</td>
  143.         <td nowrap="nowrap" style="border: 1px solid rgb(234, 233, 225);">所得积分</td>
  144.         <td nowrap="nowrap" style="border: 1px solid rgb(234, 233, 225);">支付现金</td>
  145.         <td nowrap="nowrap" style="border: 1px solid rgb(234, 233, 225);">提交时间</td>
  146.         <td nowrap="nowrap" style="border: 1px solid rgb(234, 233, 225);">确认时间</td>
  147.      </tr>
  148.      <%foreach (CreditOrderInfo order in orderList)
  149.         {%>
  150.      <tr class="mouseoutstyle" onmouseout="this.className='mouseoutstyle'" onmouseover="this.className='mouseoverstyle'">
  151.         <td style="border: 1px solid rgb(234, 233, 225);"><%=order.OrderId%></td>
  152.         <td style="border: 1px solid rgb(234, 233, 225);"><%=order.TradeNo%></td>
  153.         <td style="border: 1px solid rgb(234, 233, 225);"><%=ConvertStatusNoToWord(order.OrderStatus)%></td>
  154.         <td style="border: 1px solid rgb(234, 233, 225);"><%=order.Buyer%></td>
  155.         <td style="border: 1px solid rgb(234, 233, 225);"><%=ForumUtils.ConvertCreditAndAmountToWord(order.Credit, order.Amount)%></td>
  156.         <td style="border: 1px solid rgb(234, 233, 225);">¥ <%=order.Price%>元</td>
  157.         <td style="border: 1px solid rgb(234, 233, 225);"><%=Utils.GetStandardDateTime(order.CreatedTime, "yyyy-MM-dd HH:mm")%></td>
  158.         <td style="border: 1px solid rgb(234, 233, 225);"><%=Utils.GetStandardDateTime(order.ConfirmedTime,"yyyy-MM-dd HH:mm")%></td>
  159.      </tr>
  160.      <%}%>
  161.     </tbody>
  162.   </table>
  163.   </td>
  164.   </tr>
  165.   <tr>
  166.   <td>
  167.   <div style="margin:30px 0; font-size:30px">
  168.   <table>
  169.      <tr>
  170.         <td><div style="margin-right:20px">共<%=orderCount%>条记录,当前第<%=pageIndex%>页</div></td>
  171.         <%if (pageIndex > 1){ %><td><a href="#" style="margin-right:10px" onclick="goPageIndex(1)">首页</a></td><td><a href="#" style=" margin-right:10px" onclick="goPageIndex(<%=pageIndex-1 %>)">上一页</a></td><%} %>
  172.         <%=ShowPageIndex()%>
  173.         <%if(pageIndex<pageCount){%><td><a style="margin-left:10px" href="#" onclick="goPageIndex(<%=pageIndex+1 %>);">下一页</a><a style="margin-left:10px" href="#" onclick="goPageIndex(<%=pageCount%>)">末页</a></td><%}%>
  174.             <td><div style=" margin-left:10px">跳转到<input id="jumpindex" type="text" style="width:30px; height:18px" />页</div></td>
  175.             <td><button onclick="goPageIndex($('jumpindex').value)">跳转</button></div></td>
  176.      </tr>
  177.   </table>
  178.   </div>
  179.   </td>
  180.   </tr>
  181.   </tbody>
  182. </table>
  183. <%=footer%>
  184. </body>
  185. </html>