da

来源:互联网 发布:java 正则表达式 * 编辑:程序博客网 时间:2024/05/01 06:06
 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<#include "../../common/metas.ftl">
<#include "../../common/tags.ftl">
<html>
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta name="Keywords" content=" , ,优购网,B网络营销系统,商品管理" />
  <meta name="Description" content=" , ,B网络营销系统-商品管理" />

  <title>B网络营销系统-商品管理-优购网</title>

  <script type="text/javascript"> 
  $(document).ready(
            function() {
                     $("#datepicker_start").dateDisplay();
                     $("#datepicker_end").dateDisplay();
                     $("listProperties").display('properties');                  
                 });
  function detail(id) {
   tb_show('在线异常收款详细信息', '${BasePath}/finance/income/alreadyincome/detailOnlineException.sc?KeepThis=true&TB_iframe=true&id=' + id, false);
  }
  
  
  function query() {
   if(Date.parse($("#datepicker_start").val().replace("-","/"))>Date.parse($("#datepicker_end").val().replace("-","/"))){
    alert("开始时间不能大于结束时间!");
    return;
   }
   $("#alreadyIncomeForm").submit();
  }
  
  function del(id) {
   if(!confirm("您确认作废数据吗?")) {
     return;
   }
   $.ajax({
    type: "get",
    url: "${BasePath}/finance/income/alreadyincome/delete.sc?id=" + id,
    success: function(){
     alert( "作废成功!" );
     //window.location.reload();
     $('#alreadyIncome').submit();
    }
   });

  }
  <#--
  function del(id){
  if(!confirm("您确定作废数据吗?")){
  return ;
  }
  $.ajax({
      type:"get",
      url:"${BasePath}/finance/income/alreadyincome/delete.sc?id="+id,
      success:function(){
      alert("作废成功!");
      $('#alreadyIncome').submit();
      }  
  });
  }
  -->
  function resetForm() {
   $("#orderNo").val("");
   $("#customerName").val("");
   $("#datepicker_start").val("");
   $("#datepicker_end").val("");
  }
 
</script>
 </head>
 <body>
  <div class="main-body" id="main_body">
   <div class="cont-nav ft-sz-12">
    <span><a href="#">财务管理</a>  &gt;  在线异常收款      </span>
   </div>
   <div class="pro-list">
    <div class="mb-btn-fd-bd">
     <div class="mb-btn-fd relative">
      <span class="btn-extrange absolute ft-sz-14">
       <ul class="onselect">
        <li class="pl-btn-lfbg">
        </li>
        <li class="pl-btn-ctbg">
          <a href="${BasePath}/finance/income/alreadyincome/toOnlineExceptionIndex.sc" class="btn-onselc">在线异常处理列表</a>
        <#--
         <a href="${BasePath}/finance/income/alreadyincome/toOnlineExceptionIndex.sc" class="btn-onselc">在线异常处理列表</a>
         
         -->
        </li>
        <li class="pl-btn-rtbg">
        </li>
       </ul>
       <ul class="unselect">
        <li class="pl-btn-lfbg">
        </li>
        <li class="pl-btn-ctbg">
         <a href="${BasePath}/finance/income/alreadyincome/toAllException.sc" class="btn-onselc">在线支付异常数据列表</a>
        </li>
        <li class="pl-btn-rtbg">
        </li>
       </ul>
      </span>
     </div>
     <#list permissions as permission>
      <#if add==permission>
      <div class="btn-getmore ft-sz-12 fl-rt" align="left">
       <a href="${BasePath}/finance/income/alreadyincome/toCreateOnlineException.sc">订单新增</a>
      </div>
     </#if>
     </#list>
    </div>
   </div>
    <form id="alreadyIncomeForm" name="alreadyIncomeForm" action="${BasePath}/finance/income/alreadyincome/toOnlineExceptionIndex.sc" method="post">      
    <div class="search_list">
     <ul>
     
     <li>
      <span class="text_details">订单号:</span>
      <input type="text" size="15"  name="orderNo" id="orderNo" value="${ai.orderNo?default('')}"/>
     </li>                                                         <#--value="${ai.orderNo?default('')}"-->
     <li>
      <span class="text_details">客户名称:</span>
      <input type="text" size="15"  name="customerName" id="customerName" value="${ai.customerName?default('')}"/>
     </li>                                                         <#--value="${ai.customerName?default('')}"-->

     <li style="width: 350px">
      <span class="text_details">收款日期:</span>
      <input type="text" size="9" id="datepicker_start" name="startDate" value="${startDate?default('')}" readonly/>
      &gt;                                                      <#--value="${startDate?default('')}"-->
      <input type="text" size="9" id="datepicker_end" name="endDate"  value="${endDate?default('')}" readonly/>
     </li>                                                             
     <li>
      <span class="text_details">单据状态:</span>
      <select style="width: 125px" name="approvalStatus" >
       <option value="999" selected="selected">
        全部
       </option>
       <#list onlineStatus as ver>
       <option value="${ver.value}"  <#if ai.approvalStatus??><#if ai.approvalStatus==ver.value>selected</#if></#if>>
        ${ver}
       </option>
       </#list>
      </select>
     </li>
     <li style="margin-left:50px;width:270px">
      <a href="#" onclick="query();" class="btn-sh">搜  索</a>
      <a href="#" class="btn-sh" onclick="resetForm();">清 空</a>
     </li>
     </ul>
    </div>
    </form>
    <hr style="clear: both;border:0" color="#ffffff" size="0"/>
    <div class="list-position" style="overflow:auto">
    
    <#assign exprotTitle="">
     <#if startDate?? && startDate!="">
     <#assign exprotTitle=exprotTitle+"‖"+startDate>
     </#if>
     <#if endDate?? && endDate!="">
     <#assign exprotTitle=exprotTitle+"‖"+endDate>
     </#if>     
     <#if exprotTitle=="">
      <#assign exprotTitle="全部">
     <#else>
      <#assign exprotTitle=exprotTitle?substring(1, exprotTitle?length)>
     </#if>  
     
     <@ex.table title="" action="${BasePath}/finance/income/alreadyincome/toOnlineExceptionIndex.sc"
     view="compact"
     filterable="false"
     retrieveRowsCallback="limit" 
        filterRowsCallback="limit"
     sortable="true"
     tableId="alreadyIncome"
     items="lstAlreadyIncome" var="pre">
     <@ex.exportXls fileName="在线异常收款【${exprotTitle}】.xls"></@ex.exportXls>
     <@ex.exportCsv fileName="在线异常收款【${exprotTitle}】.csv"></@ex.exportCsv>
     <@ex.exportPdf fileName="在线异常收款【${exprotTitle}】.pdf"></@ex.exportPdf>
     <@ex.row>
       <@ex.column property="orderNo" title="订单号"/>
       <@ex.column property="customerName" title="客户名称"/>
       <@ex.column property="payPerson" title="付款人"/>
       <@ex.column property="incomeDate" cell="date" title="付款日期"/>
       <@ex.column property="orderAmount" cell="currency" title="付款金额" calc="total" calcTitle= "本页汇总:" style="color:red;font-weight:bold;"/>
       <@ex.column property="incomedAmount" cell="currency" title="收款金额" calc="total" style="color:red;font-weight:bold;"/>
       <@ex.column property="onlinePayStyleName" title="收款方式"/>
       <@ex.column property="approvalStatus"  title="审核状态"  viewsDenied= "xls,pdf,csv">
        <#list onlineStatus as ver>
         <#if pre.approvalStatus??><#if pre.approvalStatus==ver.value>${ver}</#if></#if>
        </#list>
       </@ex.column>
       <@ex.column alias="edit" title="操作" sortable="false" viewsDenied= "xls,pdf,csv">
        <#assign auditAble =1>
        <#if pre.approvalStatus ?? && pre.approvalStatus==1>
         <#list permissions as permission>
         <#if submit==permission>
          <#assign auditAble =2>
          <input type="button" onclick="detail('${pre.id}');" value="审批"/>
         </#if>
         </#list>
         <#if auditAble==1>
          <input type="button"  value="审批" disabled/>
         </#if>
        <#else>
         <input type="button" onclick="detail('${pre.id}');" value="查看"/>
        </#if>
       </@ex.column>
      </@ex.row>
     </@ex.table> 
        
    </div> 
   </div>
 </body>
</html>