templetSelectList.jsp 1.2 KB

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