js 自定义标签库 (传递多个参数到后台controller)

 <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> 
<html  >
<head>
<%@ include file="../head.jsp"%>
<script type="text/javascript">

//删除
function toDel(){

var ids = getCheckBoxVal();
if(ids.length == 0){
alertF("没选中任何数据");
return;
}

alertConfirm("确认删除?",function(){
$.post("${basePath}/manage/shouldPayment/doDel.shtml?ids="+ids,function(){
//window.location.reload();
$('.btn-refresh').click();
});
},null);
 
  }
//编辑 修改
function toEdit(){

var ids = getCheckBoxVal();
if(ids.length == 0){
alertF("没选中任何数据");
return;

}else  if(ids.length > 1){
alertF("只能选择一条记录");
return;
}  
var paymentId=$(":checkbox:checked").val();
var costName=$(":checkbox:checked").attr("costName");
alert_form('修改ShouldPayment ','${basePath}/manage/shouldPayment/toEdit.shtml?objId='+paymentId+'&costName='+costName,800,600)

 

</script>
<title>ShouldPayment列表</title>
</head>
<body>
<form action="${basePath}/manage/shouldPayment/list.shtml" method="post" id="sform">
<div class="page-content clearfix">
  <div class="administrator">
       <div class="d_Confirm_Order_style"> 
    
      <!--列表-->
        <div class="table_menu_list">
    <table class="table table-striped table-bordered table-hover menuTable">
<thead> 
<tr>
<th width="5%"> <input type="checkbox" name="allData"/>  </th> 
<th width="4%">栋号</th>
<th width="5%">单元号</th>
<th width="5%">房间号</th>
<th width="5%">金额</th>
<th width="8%">收费开始日期</th>
<th width="8%">收费截止日期</th>
<th width="8%">缴费截止日期</th>
<th width="7%">缴费类型</th>
<th width="5%">月数</th>
<th width="5%">费率</th>
<th width="5%">建筑面积</th>
<th width="6%">缴费状态</th>
<th width="5%">收费人</th>
<th width="8%">缴费时间 </th>
<th width="8%">出票时间</th>
</tr>
</thead>
<tbody> 
<c:forEach items="${result.data}" var="item" varStatus="s">
<tr class="tr_change">
<td>
  <input type="checkbox" name="singleData" value="${item.paymentid}" costName="${item.costName}"/>
</td>
  <td> ${item.buildNo} </td>
<td> ${item.unitNo} </td>
<td> ${item.roomNo} </td>
<td> ${item.account} </td>
<td> ${item.begindate} </td>
<td> ${item.enddate} </td>
<td> ${item.lastdate} </td>
<td> ${item.costName} </td>
<td> ${item.months} </td>
<td> ${item.costrate} </td>
<td> ${item.buildarea} </td>
<td>
<c:if test="${item.paymentstatus=='0'}">未缴费</c:if>
<c:if test="${item.paymentstatus=='1'}">已缴费</c:if>
<c:if test="${item.paymentstatus=='2'}">退费</c:if></td>
<td> ${item.recipient} </td>
<td> ${item.paymentdate} </td>
<td> ${item.printbilldate} </td>

</tr>   


</c:forEach> 
</tbody>
</table>
    <c:if test="${fn:length(result.data)==0}"> 
对不起!没有查询到相关数据! 
</c:if>
<sm:kkpager page="${result.page}" />
        </div>
       </div>
  </div>
</div>
</form>
</body>
</html>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值