templetSelectList.jsp 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <script>
  3. //新就业终审公示列表
  4. var houseRepairId = null;
  5. function templet_load(id){
  6. houseRepairId = id;
  7. /**合同模板信息列表**/
  8. $('#templetSelectDataGrid').datagrid({
  9. rownumbers:true,
  10. fit:true,
  11. fitColumns:false,
  12. border:false,
  13. sortOrder:'desc',
  14. nowrap:true,
  15. url:whzl.basePath + '/templetAction_List?templet.templetType=6',
  16. singleSelect: true,
  17. loadFilter:function(result){
  18. if(result.success){
  19. return result.obj;
  20. }else{
  21. alert(result.message);
  22. return ;
  23. }
  24. }
  25. });
  26. }
  27. var titleFormatter = function(value,row,index){
  28. return "<a title='公示打印' href='houseRepairAction_toPrint?templet.id=" + row.id + "&houseRepair.id=" + houseRepairId + "' target='_blank' style='cursor:pointer'>"+row.title+"</a>";
  29. }
  30. </script>
  31. <div class="easyui-layout" data-options="fit:true,border:false" style="margin: 0px;padding: 0px;">
  32. <div data-options="region:'center',border:false">
  33. <table id="templetSelectDataGrid" >
  34. <thead>
  35. <tr>
  36. <th data-options="field:'title',sortable:false,width:320,formatter:titleFormatter">模板标题</th>
  37. </tr>
  38. </thead>
  39. </table>
  40. </div>
  41. </div>