EasyUI点击下拉框选中人名后将薪酬数据回显到文本框中,薪酬文本框是用c:if循环出来的,代码见下方,

求大神详细解释一下,分全发出来了急求,, <form id="planform" name="planform" method = "post" action="<%=basePath%>/hrm/savepaySalaryPayoff.do" > <input type="hidden" id="btn_sub" class="btn_sub"/> <input id="userid" name="userid" type="hidden" > <input id="profileno" name="profileno" type="hidden" > <input id="fullname" name="fullname" type="hidden" > <input id="recordId" name="recordId" type="hidden" > <input id="acutalAmount" name="acutalAmount" class="inputxt" type="text" style="width:150px" > </table> <fieldset class="myfieldset" style="overflow:none;height:350px;width:1000px;border:dashed 1px #dbdbdb;padding-left:10px;"> <legend>个人工资部分</legend> <table cellpadding="0" cellspacing="1" class="formtable" ><c:forEach items="${personalList}" var="item" varStatus="status"><c:if test="${status.index%3 == '0'}"><tr></c:if><td align="right" width="120" height="30"> <label class="Validform_label">${item.itemName}</label></td> <td width="160" class="value"> <input id="${item.itemcode}" name="${item.itemcode}" type="text" style="width: 150px" class="inputxt" value="${item.defaultVal}"></td><c:if test="${(status.index+1)%3 == '0'}"></tr></c:if></c:forEach></table></fieldset> <fieldset class="myfieldset" style="overflow:none;height:120px;width:1000px;border:dashed 1px #dbdbdb;padding-left:10px;"> <legend>单位工资部分</legend> <table cellpadding="0" cellspacing="1" class="formtable" > <c:forEach items="${unitList}" var="item" varStatus="status"> <c:if test="${status.index%3 == '0'}"> <tr></c:if><td align="right" width="120" height="30"><label class="Validform_label">${item.itemName}</label> </td> <td width="160" class="value"> <input id="${item.itemcode}" name="${item.itemcode}" type="text" style="width: 150px" class="inputxt" value="${item.defaultVal}"></td><c:if test="${(status.index+1)%3 == '0'}"> </tr> </c:if> </c:forEach> </table> </fieldset><fieldset class="myfieldset" style="overflow:none;height:150px;width:1000px;border:dashed 1px #dbdbdb;padding-left:10px;"> <legend>说明</legend> <table cellpadding="0" cellspacing="1" class="formtable" ><tr><td class="value"><textarea id="memo" name="memo" type="text" style="width: 800px;height:100px" class="inputxt"></textarea> </td></tr> </table> </fieldset> </form> </body> <script type="text/javascript"> function okClick(form){ $.ajax({ async : false, cache : false, type : 'POST', url : '<%=basePath%>/hrm/savepaySalaryPayoff.do', data : $('#planform').serialize(), error : function() { $.messager.alert('提示消息','保存失败!'); }, success : function(data) { var d = eval(data); alert(userid); //document.getElementById('id').value = d.obj; $.messager.alert('提示消息',d); window.location.href="<%=basePath%>/hrm/showSalaryPayoff.do"; } }); } </script>

第1个回答  2017-07-20
{for(j=i;j<=*count-1;j++)//去掉大括号{guestlisti[i]=guestlisti[i+1];}flag=0;(*count)--;printf("删除成功!\n");}}//去掉不去掉循环体有3句话,而去掉后就相当于循环体只有一句话就是guestlisti[i]=guestlisti[i+1];请采纳。
相似回答