123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
- <script>
- //装修合同列表
- var renovationContractId = null;
-
- function templet_load(id){
- renovationContractId = id;
- /**合同模板信息列表**/
- $('#templetSelectDataGrid').datagrid({
- rownumbers:true,
- fit:true,
- fitColumns:false,
- border:false,
- sortOrder:'desc',
- nowrap:true,
- url:whzl.basePath + '/templetAction_List?templet.templetType=4',
- singleSelect: true,
- loadFilter:function(result){
- if(result.success){
- return result.obj;
- }else{
- alert(result.message);
- return ;
- }
- }
- });
- }
- var titleFormatter = function(value,row,index){
- return "<a title='合同打印' href='renovationContractAction_toPrint?templet.id=" + row.id + "&renovationContract.id=" + renovationContractId + "' target='_blank' style='cursor:pointer'>"+row.title+"</a>";
- }
- </script>
- <div class="easyui-layout" data-options="fit:true,border:false" style="margin: 0px;padding: 0px;">
- <div data-options="region:'center',border:false">
- <table id="templetSelectDataGrid" >
- <thead>
- <tr>
- <th data-options="field:'title',sortable:false,width:320,formatter:titleFormatter">模板标题</th>
- </tr>
- </thead>
- </table>
- </div>
- </div>
|