<table id="table0button" class="form" style="word-wrap: break-word; width: 100%; left: 0px" name="table0button"> <tbody> <tr> <td style="font-size: 0pt" height="15" colspan="2"> </td> </tr> <tr> <td align="left"> </td> <td align="right"> <div id="div0button"><button id="$addbutton0$" class="BtnFlow" accesskey="A" name="addbutton0" onclick="addRow0(0);return false;"><u>A</u>-添加</button><button id="$delbutton0$" class="BtnFlow" accesskey="E" name="delbutton0" onclick="deleteRow0(0);return false;"><u>E</u>-删除</button></div> </td> </tr> <tr> <td colspan="2"> <table id="oTable0" class="ListStyle detailtable detailtableTopTable" style="width: 100%" border="1" name="oTable0"> <colgroup><col width="13%"></col><col width="8%"></col><col width="13%"></col><col width="8%"></col><col width="8%"></col><col width="8%"></col><col width="8%"></col><col width="8%"></col><col width="8%"></col><col width="8%"></col><col></col></colgroup> <tbody> <tr class="header detailtitle"> <td class="detailtitle" nowrap="nowrap" align="center"><input id="$label8569$" class="Label" name="label8569" value="关键绩效指标KPI" type="text" /></td> <td class="detailtitle" nowrap="nowrap" align="center"><input id="$label8570$" class="Label" name="label8570" value="指标类型" type="text" /></td> <td class="detailtitle" nowrap="nowrap" align="center"><input id="$label8571$" class="Label" name="label8571" value="定义/要求" type="text" /></td> <td class="detailtitle" nowrap="nowrap" align="center"><input id="$label8572$" class="Label" name="label8572" value="权重" type="text" /></td> <td class="detailtitle" nowrap="nowrap" align="center"><input id="$label8573$" class="Label" name="label8573" value="目标值" type="text" /></td> <td class="detailtitle" nowrap="nowrap" align="center"><input id="$label8574$" class="Label" name="label8574" value="下限值" type="text" /></td> <td class="detailtitle" nowrap="nowrap" align="center"><input id="$label8575$" class="Label" name="label8575" value="计算方式" type="text" /></td> <td class="detailtitle" nowrap="nowrap" align="center"><input id="$label8576$" class="Label" name="label8576" value="实际完成情况" type="text" /></td> <td class="detailtitle" nowrap="nowrap" align="center"><input id="$label8577$" class="Label" name="label8577" value="得分" type="text" /></td> <td class="detailtitle" nowrap="nowrap" align="center"><input id="$label8578$" class="Label" name="label8578" value="领导审核" type="text" /></td> <td class="detailtitle" nowrap="nowrap" align="center"><input id="$label8579$" class="Label" name="label8579" value="备注" type="text" /></td> </tr> <tr> <td class="detailtable detailtableTD"><input id="$field8569$" class="InputStyle" name="field8569" value="[可编辑]关键绩效指标KPI" type="text" /></td> <td class="detailtable detailtableTD"><input id="$field8570$" class="InputStyle" name="field8570" value="[可编辑]指标类型" type="text" /></td> <td class="detailtable detailtableTD"><input id="$field8571$" class="InputStyle" name="field8571" value="[可编辑]定义/要求" type="text" /></td> <td class="detailtable detailtableTD"><input id="$field8572$" class="InputStyle" name="field8572" value="[可编辑]权重" type="text" /></td> <td class="detailtable detailtableTD"><input id="$field8573$" class="InputStyle" name="field8573" value="[可编辑]目标值" type="text" /></td> <td class="detailtable detailtableTD"><input id="$field8574$" class="InputStyle" name="field8574" value="[可编辑]下限值" type="text" /></td> <td class="detailtable detailtableTD"><input id="$field8575$" class="InputStyle" name="field8575" value="[可编辑]计算方式" type="text" /></td> <td class="detailtable detailtableTD"><input id="$field8576$" class="InputStyle" name="field8576" value="[可编辑]实际完成情况" type="text" /></td> <td class="detailtable detailtableTD"><input id="$field8577$" class="InputStyle" name="field8577" value="[可编辑]得分" type="text" /></td> <td class="detailtable detailtableTD"><input id="$field8578$" class="InputStyle" name="field8578" value="[只读]领导审核" type="text" /></td> <td class="detailtable detailtableTD"><input id="$field8579$" class="InputStyle" name="field8579" value="[只读]备注" type="text" /></td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <table> <colgroup><col width="10%"></col><col width="20%"></col><col width="10%"></col><col width="20%"></col></colgroup> <tbody> <tr> <td class="detailtable detailtableTD"><input id="$label8639$" class="Label" name="label8639" value="个人得分合计" type="text" /></td> <td class="detailtable detailtableTD"><input id="$field8639$" class="InputStyle" name="field8639" value="[可编辑]个人得分合计" type="text" /></td> <td class="detailtable detailtableTD"><input id="$label8640$" class="Label" name="label8640" value="领导得分合计" type="text" /></td> <td class="detailtable detailtableTD"><input id="$field8640$" class="InputStyle" name="field8640" value="[只读]领导得分合计" type="text" /></td> </tr> </tbody> </table> </td> </tr> </tbody></table><script language="javascript">//detailFieldTable8571获取明细表行数(包括表头)var dft = document.getElementById("detailFieldTable8571");//alert(dft.rows.length);dfd("field8569");dfd("field8571");dfd("field8572");dfd("field8573");dfd("field8574");dfd("field8575");function dfd(field){//遍历每一行,总数减一就行了//alert(dft.rows.length);for(var i=0;i<dft.rows.length-1;i++){var yq = document.getElementById(field+"_"+i);var yqspan = document.getElementById(field+"_"+i+"span");yq.style.display = "none";yqspan.innerHTML = yq.value;}}function qz(){ for(var i=0;i<dft.rows.length-1;i++){ var qzz = document.getElementById("field8572_"+i); var df = document.getElementById("field8577_"+i); alert("qzz"); } var qz=document.getElementById("detailFieldTable8572").value; var dfx[i]= parsenlnt(qzz) * parsenlnt(df); document.getElementById("detailFieldTable8639").innerHTML = dfx[i]++;}我写了一部分 不知道哪里错误了 !求指点!
添加回答
举报
0/150
提交
取消