<logic:iterate id="tkx" name="pecForm" property="EmptyBoxList" >
<html:hidden name ="tkx" property="id"/>
<html:hidden name ="tkx" property="solution_ID"/>
<tr>
<td class=<%=n%2==0?"tabletd1":"tabletd2"%> >
<input type="checkbox" name="isEdited" value="<%=String.valueOf(i++)%>" ${tkx.type==1 ? " disabled='disabled' " : "" }/>
</td>
<td class=<%=n%2==0?"tabletd1":"tabletd2"%> nowrap ><bean:write name="tkx" property="tripid" /></td>
<td class=<%=n%2==0?"tabletd1":"tabletd2"%> nowrap ><bean:write name="tkx" property="pudate" /></td>
<td class=<%=n%2==0?"tabletd1":"tabletd2"%> nowrap ><bean:write name="tkx" property="dlvdate" /></td>
<td class=<%=n%2==0?"tabletd1":"tabletd2"%> nowrap><bean:write name="tkx" property="supplier_code" /></td>
<td class=<%=n%2==0?"tabletd1":"tabletd2"%> nowrap><bean:write name="tkx" property="suppliername" /></td>
<td class=<%=n%2==0?"tabletd1":"tabletd2"%> nowrap><bean:write name="tkx" property="location_code" /></td>
<td class=<%=n%2==0?"tabletd1":"tabletd2"%> nowrap><bean:write name="tkx" property="locationdesc" /></td>
<td class=<%=n%2==0?"tabletd1":"tabletd2"%> nowrap><bean:write name="tkx" property="name" /></td>
<td class=<%=n%2==0?"tabletd1":"tabletd2"%> nowrap><bean:write name="tkx" property="packageQty" /></td>
<td class=<%=n%2==0?"tabletd1":"tabletd2"%> nowrap><bean:write name="tkx" property="factory_code" /></td>
<td class=<%=n%2==0?"tabletd1":"tabletd2"%> nowrap><input type="text" name="re_qty" value="<bean:write name="tkx" property="re_qty" />" size="8" ${tkx.type==1 ? " readonly='readonly' " : "" } ></td>
<logic:equal name= "tkx" value= "0 " property="type">
<td class=<%=n%2==0?"tabletd1":"tabletd2"%> nowrap>未提取</td>
</logic:equal>
<logic:equal name= "tkx" value= "1" property="type">
<td class=<%=n%2==0?"tabletd1":"tabletd2"%> nowrap>已提取</td>
</logic:equal>
<td class=<%=n%2==0?"tabletd1":"tabletd2"%> nowrap>
<html:button styleClass="buttonfocuslong" property="aaa" onclick="goToAddTkx( '${tkx.solution_ID}','${tkx.stopId}' )" > 新增无计划提空箱</html:button> </td>
</tr>
<%n++;%>
</logic:iterate>我不知道是不是我取表单的值取错了 还是传参的方式传错了。function goToAddTkx(solution_ID,stopId)
{
alert(soluction_ID)
}执行JS的时候左下脚有错误;
<html:hidden name ="tkx" property="id"/>
<html:hidden name ="tkx" property="solution_ID"/>
<tr>
<td class=<%=n%2==0?"tabletd1":"tabletd2"%> >
<input type="checkbox" name="isEdited" value="<%=String.valueOf(i++)%>" ${tkx.type==1 ? " disabled='disabled' " : "" }/>
</td>
<td class=<%=n%2==0?"tabletd1":"tabletd2"%> nowrap ><bean:write name="tkx" property="tripid" /></td>
<td class=<%=n%2==0?"tabletd1":"tabletd2"%> nowrap ><bean:write name="tkx" property="pudate" /></td>
<td class=<%=n%2==0?"tabletd1":"tabletd2"%> nowrap ><bean:write name="tkx" property="dlvdate" /></td>
<td class=<%=n%2==0?"tabletd1":"tabletd2"%> nowrap><bean:write name="tkx" property="supplier_code" /></td>
<td class=<%=n%2==0?"tabletd1":"tabletd2"%> nowrap><bean:write name="tkx" property="suppliername" /></td>
<td class=<%=n%2==0?"tabletd1":"tabletd2"%> nowrap><bean:write name="tkx" property="location_code" /></td>
<td class=<%=n%2==0?"tabletd1":"tabletd2"%> nowrap><bean:write name="tkx" property="locationdesc" /></td>
<td class=<%=n%2==0?"tabletd1":"tabletd2"%> nowrap><bean:write name="tkx" property="name" /></td>
<td class=<%=n%2==0?"tabletd1":"tabletd2"%> nowrap><bean:write name="tkx" property="packageQty" /></td>
<td class=<%=n%2==0?"tabletd1":"tabletd2"%> nowrap><bean:write name="tkx" property="factory_code" /></td>
<td class=<%=n%2==0?"tabletd1":"tabletd2"%> nowrap><input type="text" name="re_qty" value="<bean:write name="tkx" property="re_qty" />" size="8" ${tkx.type==1 ? " readonly='readonly' " : "" } ></td>
<logic:equal name= "tkx" value= "0 " property="type">
<td class=<%=n%2==0?"tabletd1":"tabletd2"%> nowrap>未提取</td>
</logic:equal>
<logic:equal name= "tkx" value= "1" property="type">
<td class=<%=n%2==0?"tabletd1":"tabletd2"%> nowrap>已提取</td>
</logic:equal>
<td class=<%=n%2==0?"tabletd1":"tabletd2"%> nowrap>
<html:button styleClass="buttonfocuslong" property="aaa" onclick="goToAddTkx( '${tkx.solution_ID}','${tkx.stopId}' )" > 新增无计划提空箱</html:button> </td>
</tr>
<%n++;%>
</logic:iterate>我不知道是不是我取表单的值取错了 还是传参的方式传错了。function goToAddTkx(solution_ID,stopId)
{
alert(soluction_ID)
}执行JS的时候左下脚有错误;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货