spring table 点击编辑按钮怎么如果该行的最后一个单元格有值就禁止跳转,无就可以跳转,这个该怎么办?

<%@ page language="java" isELIgnored="false" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<jsp:directive.include file="/WEB-INF/sitemesh-decorators/include.jsp"/>
<fmt:setBundle basename="bundles.projectprocure-resources"/>
<html>
<head>
<title>Manage <fmt:message key="projectprocure.title"/></title>
<meta name="decorator" content="iframe"/>
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery/js/jquery.tablesorter.min.js"></script>
<script type="text/javascript">
//-------------------------------------列表排序------------------------------------
$(document).ready(function() {
    $("table").tablesorter({
        headers: {
           6: {
                sorter: false
            }
        }
    });
    //-------------------------------------结束------------------------------------
</script>
<SCRIPT LANGUAGE="JavaScript">   
function click(i){
    var j=i;
    alert(j);
   } 
 </SCRIPT>
<style type="text/css">
table.tablesorter {
font-family:arial;
background-color: #CDCDCD;
margin:10px 0pt 15px;
font-size: 8pt;
width: 100%;
text-align: left;
float:left;
}
table.tablesorter thead tr th, table.tablesorter tfoot tr th {
background-color: #e6EEEE;
border: 1px solid #FFF;
font-size: 8pt;
padding: 4px;
}
table.tablesorter thead tr .header {
background-image: url(blueimages/bg.gif);
background-repeat: no-repeat;
background-position: center right;
cursor: pointer;
}
table.tablesorter tbody td {
color: #3D3D3D;
padding: 4px;
background-color: #FFF;
vertical-align: top;
}
table.tablesorter tbody tr.odd td {
background-color:#F0F0F6;
}
table.tablesorter thead tr .headerSortUp {
background-image: url(${pageContext.request.contextPath}/jquery/blueimages/asc.gif);
}
table.tablesorter thead tr .headerSortDown {
background-image: url(${pageContext.request.contextPath}/jquery/blueimages/desc.gif);
}
</style>
</head>
<body>
<div id="contentarea" >
 <div id="content">
 <!--项目采购列表 -->
 <div id="tablewrapper">
   <table id="table1" cellpadding="0" cellspacing="0" id="listTable" class="tablesorter">
    <thead>
     <tr>
     <th  width="10%"><fmt:message key="projectprocureplan.procurecontent.title"/></th>
     <th  width="10%"><fmt:message key="projectprocureplan.amount.title"/></th>
     <th  width="10%"><fmt:message key="projectprocureplan.planprocuredate.title"/></th>
     <th  width="10%"><fmt:message key="projectprocureplan.supplierid.title"/></th>
     <th  width="10%"><fmt:message key="projectprocureplan.creater.title"/></th>
     <th  width="10%"><fmt:message key="projectprocureplan.memo.title"/></th>
     <th  width="8%"><fmt:message key="operation"/></th>
     </tr>
    </thead>
    <tbody>
     <c:forEach items="${projectprocureplans}" var="current"  varStatus="i"> 
      <c:choose>
       <c:when test="${(i.count) % 2 == 0}">
           <c:set var="rowclass" value="rowtwo"/>
       </c:when>
       <c:otherwise>
           <c:set var="rowclass" value="rowone"/>
       </c:otherwise>
      </c:choose>
     <tr class="${rowclass}">
      <td>
       ${current.procureContent}&nbsp;
      </td>
      <td>
       ${current.amount}&nbsp;
      </td>
      <td>
      <fmt:formatDate dateStyle="short" type="both" value="${current.planProcureDate.time}"/>
             &nbsp;
      </td>
      <td>
       ${current.supplier.supplierName}
      &nbsp;
      </td>
      <td>
      ${current.userByCreater.cname}
      &nbsp;
      </td>
      <td id="memo[i]">
      ${current.memo}
      &nbsp;
      </td>
      <td  nowrap="nowrap" class="tabletd">       
        <a title="<fmt:message key="navigation.edit" />" href="${pageContext.request.contextPath}/updateProcureApplication?idKey=${current.id}&" id="edit" οnclick="click(i);return false;"><img src="${pageContext.request.contextPath}/images/icons/edit.gif" /></a>        
        <a title="<fmt:message key="navigation.delete" />" href="${pageContext.request.contextPath}/deleteOldProcureApplication?id=${current.id}&" οnclick='return confirm("<fmt:message key="confirm.if.delete"/>")'><img src="${pageContext.request.contextPath}/images/icons/delete.gif" /></a>
         &nbsp;
         <a  href="${pageContext.request.contextPath}/confirmProcure?idKey=${current.id}&"><fmt:message key="confirm.procure"/></a>
         </td>
     </tr>
     </c:forEach>
    </tbody>
   </table>
   <!--项目采购列表 -->
  </div>
 </div>
</div>
</body>
</html>

当点击edit时如果该行的备注不是空的话,就不能跳转到编辑页面,如果无的话就可以跳转,请问这个怎么实现?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值