<%@ Page Language="C#" AutoEventWireup="true"CodeBehind="lowerrecodedata.aspx.cs" Inherits="AgentManager.admin.lowerrecodedata" %>

    <link rel="stylesheet" href="css/bootstrap/css/bootstrap.min.css"/>
      <link rel="stylesheet" href="css/AdminLTE.css" />
      <link rel="stylesheet" href="css/plugins/iCheck/flat/blue.css"/> 

<script src="js/jquery-1.9.1.min.js"></script>
<script src="css/bootstrap/js/bootstrap.min.js"></script>
<script src="css/My97DatePicker/WdatePicker.js"></script>
<script src="js/mainData.js"></script>
     <div class="content-wrapper">
       
<section class="content-header">
    <h1>
下级会员转账记录    <small></small>
    </h1>
  
</section>
         
         <form action="lowerrecodedata.aspx" method="post">
 <div class="col-md-6">
              <table class="table">
                  <tr>
                      <td><label>账号</label></td>
                       <td>
                                          <input  name="username" id="username"  value="<%=username %>" maxlength="15" autocomplete="off"  class="form-control" list="a"/>

<datalist id="a"> 
  

                          <%foreach (var item in li)
                              {
                                  
                                  %>

                              <option value="<%=item.Username %>"><%=item.Myname  %></option>

                          <%

                              } %>
</datalist>

                    <%-- <input name="username" type="text" id="username" maxlength="15" autocomplete="off" value="<%=username %>" class="form-control" />--%>

                       </td>



                      <td><label>时间范围</label></td>
                    <td colspan="2">
                        <div class="btn-group">
                          <button type="button" class="btn btn-default" onclick="setAutoTime('1','starttime','endtime')">最近3天</button>
                          <button type="button" class="btn btn-default" onclick="setAutoTime('2','starttime','endtime')">最近7天</button>
                          <button type="button" class="btn btn-default" onclick="setAutoTime('3','starttime','endtime')">最近30天</button>
                        </div>
                    </td>
                  </tr>
                  <tr>
                      <td><label>开始时间</label></td>
                      <td><input name="starttime" type="text" id="starttime" maxlength="10" autocomplete="off" value="<%=start %>" class="form-control" onclick="WdatePicker()" /></td>
                      <td><label>结束时间</label></td>
                      <td><input name="endtime" type="text" id="endtime" maxlength="10" autocomplete="off" value="<%=end %>" class="form-control" onclick="WdatePicker()" /></td>
                      <td><input type="submit" name="Submit" value="搜索" class="btn btn-block btn-primary"/></td>
                  </tr>
              </table>
        </div>
         </form>
<section class="content">

<div id="mainbox">
<form id="form1" name="form1" method="post">

<table class="box">
   
  <tr>
    <td><strong>ID</strong></td>
    <td><strong>帐号</strong></td>
 
    <td><strong>操作类型</strong></td>
      <td><strong>提交时间</strong></td>
      <td><strong>操作额度</strong></td>
      <td><strong>操作前额度</strong></td>
      <td><strong>操作后额度</strong></td>
      <td><strong>状态</strong></td>
      <td><strong>备注</strong></td>
      <
      

    <%--<td><strong>订单号</strong></td>--%>

    
    </tr>

 
      <%
          if (li1!=null)
          {

         
          foreach (var item in li1)
          {%>
     <tr>
      <td><%=item.Id %></td>
<td><div class="btn-group"> <%=item.UserName %> </div></td>
      <td><%=item.ConvertType%></td>
      <td><%= item.CreateTime%></td>
      <td><%= item.ConvertMoney%></td>
      <td><%=item.OldMoney %></td>
      <td><%=item.NewMoney %></td>
         <% if (item.IsComplete)
             {%>
          <td style="color:green"><b>成功</b></td>
         <%

             }
             else {
                 %>
         
           <td style="color:red"><b>失败</b></td>
         <%
             } %>

     
      <td><%= item.ConvertText%></td>
         </tr>
      <%

              }

              %>
      <tr><td style="color:red"><strong>汇总</strong></td>
        <td>-</td>
        <td>-</td>
        <td>-</td>

    
        <td style="color:red"><strong><%=li1.Sum(u=>u.ConvertMoney) %></strong></td>
        <td style="color:red"><strong><%=li1.Sum(u=>u.OldMoney) %></strong></td>
        <td style="color:red"><strong><%=li1.Sum(u=>u.NewMoney) %></strong></td>
        <td style="color:red">-</td>
        <td style="color:red">-</td>
    </tr>
    
    <% 
          } %>
   
</table>
</form>

</div>

</section>



<div class="page" id="pagebox" runat="server">
     <div>页码<strong><%= pageindex %></strong>/<%= pagecount %>，共<span><%=count %></span>条记录，每页显示<span><%= pagesize %></span>条</div>
    <div>
        <a  class="btn btn-primary btn-sm" href="lowerrecodedata.aspx?username=<%=username %>&page=<%= 1 %>&starttime=<%= start %>&endtime=<%=end %>">首页</a>
        <a  class="btn btn-primary btn-sm" href="lowerrecodedata.aspx?username=<%= username %>&page=<%= pageindex-1 %>&starttime=<%= start %>&endtime=<%=end %>">上一页</a>
        <a  class="btn btn-primary btn-sm" href="lowerrecodedata.aspx?username=<%= username %>&page=<%= pageindex+1%>&starttime=<%= start %>&endtime=<%=end %>">下一页</a>
        <a  class="btn btn-primary btn-sm" href="lowerrecodedata.aspx?username=<%= username %>&page=<%= pagecount %>&starttime=<%= start %>&endtime=<%=end %>">末页</a>
     </div>
   
</div>




</div>






