cgreportConfigParamList.vm 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <script type="text/javascript">
  2. jQuery('#addCgreportConfigParamBtn').linkbutton({
  3. iconCls: 'icon-add'
  4. });
  5. jQuery('#delCgreportConfigParamBtn').linkbutton({
  6. iconCls: 'icon-remove'
  7. });
  8. jQuery('#addCgreportConfigParamBtn').bind('click', function(){
  9. var tr = jQuery("#add_cgreportConfigParam_table_template tr").clone();
  10. jQuery("#add_cgreportConfigParam_table").append(tr);
  11. resetTrNum('add_cgreportConfigParam_table');
  12. });
  13. jQuery('#delCgreportConfigParamBtn').bind('click', function(){
  14. jQuery("#add_cgreportConfigParam_table").find("input:checked").parent().parent().remove();
  15. resetTrNum('add_cgreportConfigParam_table');
  16. });
  17. jQuery(document).ready(function(){
  18. jQuery(".datagrid-toolbar").parent().css("width","auto");
  19. if(location.href.indexOf("load=detail")!=-1){
  20. jQuery(":input").attr("disabled","true");
  21. jQuery(".datagrid-toolbar").hide();
  22. }
  23. });
  24. </script>
  25. <div style="padding: 3px; height: 25px; width: auto;" class="datagrid-toolbar">
  26. <a id="addCgreportConfigParamBtn" href="javascript:void(0);">添加</a>
  27. <a id="delCgreportConfigParamBtn" href="javascript:void(0);">删除</a>
  28. </div>
  29. <div style="width: auto; height: 150px; overflow-y: auto; overflow-x: scroll;">
  30. <table border="0" cellpadding="2" cellspacing="0" id="cgreportConfigParam_table">
  31. <tr bgcolor="#E6E6E6">
  32. <td align="center" bgcolor="#EEEEEE"><label class="Validform_label">编码</label></td>
  33. <td align="left" bgcolor="#EEEEEE" style="width: 120px;"><label class="Validform_label">参数</label></td>
  34. <td align="left" bgcolor="#EEEEEE" style="width: 120px;"><label class="Validform_label">参数文本</label></td>
  35. <td align="left" bgcolor="#EEEEEE" style="width: 120px;"><label class="Validform_label">默认值</label></td>
  36. <td align="left" bgcolor="#EEEEEE" style="width: 120px;"><label class="Validform_label">排序</label></td>
  37. </tr>
  38. <tbody id="add_cgreportConfigParam_table">
  39. #if($!{cgreportConfigParamList})
  40. #set($count=0)
  41. #foreach($!{info} in $!{cgreportConfigParamList})
  42. <tr>
  43. <td align="center"><input style="width: 20px;" type="checkbox" name="ck" /></td>
  44. <input name="cgreportConfigParamList[$count].id" type="hidden" value="$!{info.id}"/>
  45. <input name="cgreportConfigParamList[$count].cgrheadId" type="hidden" value="$!{info.cgrheadId}"/>
  46. <td align="left"><input name="cgreportConfigParamList[$count].paramName" value="$!{info.paramName}" maxlength="32" type="text" class="inputxt" style="width: 120px;"></td>
  47. <td align="left"><input name="cgreportConfigParamList[$count].paramDesc" value="$!{info.paramDesc}" maxlength="32" type="text" class="inputxt" style="width: 120px;"></td>
  48. <td align="left"><input name="cgreportConfigParamList[$count].paramValue" value="$!{info.paramValue}" maxlength="32" type="text" class="inputxt" style="width: 120px;"></td>
  49. <td align="left"><input name="cgreportConfigParamList[$count].seq" value="$!{info.seq}" maxlength="32" type="text" class="inputxt" style="width:120px;"></td>
  50. </tr>
  51. #set($count=$count+1)
  52. #end
  53. #end
  54. </tbody>
  55. </table>
  56. </div>