myEasyEndList.jsp 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <#import "function.ftl" as func>
  2. <#assign comment=model.tabComment>
  3. <#assign class=model.variables.class>
  4. <#assign package=model.variables.package>
  5. <#assign comment=model.tabComment>
  6. <#assign classVar=model.variables.classVar>
  7. <#assign system=vars.system>
  8. <#assign commonList=model.commonList>
  9. <#assign pkModel=model.pkModel>
  10. <#assign pk=func.getPk(model) >
  11. <#assign pkVar=func.convertUnderLine(pk) >
  12. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  13. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  14. <html>
  15. <head>
  16. <title>${comment }管理</title>
  17. <%@ include file="/commons/include/easyuiGet.jsp"%>
  18. <script type="text/javascript">
  19. function OperationRow(value, row, index) {
  20. var editBtn = "<a href='get.ht?${pkVar}="+row.${pkVar}+"&runId="+row.runId+"'>明细</a>";
  21. return editBtn ;
  22. }
  23. </script>
  24. </head>
  25. <body class="pannel-common easyui-layout" >
  26. <div id="tb" style="height:auto">
  27. <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" onclick="add()">新增</a>
  28. </div>
  29. <table id="easyList" class="easyui-datagrid" title="${comment }列表"
  30. data-options="cache:false,rownumbers:true,singleSelect:true,fit:true,fitColumns:true,pagination:true,method:'post',url:'getMyEndJson.ht',toolbar:'#tb'">
  31. <thead >
  32. <tr>
  33. <th data-options="field:'${pkVar}Id',checkbox:true,fixed:true"></th>
  34. <#list model.commonList as col>
  35. <#assign colName=func.convertUnderLine(col.columnName)>
  36. <th data-options="field:'${colName}',width:70<#if (col.colType=="java.util.Date") >,formatter:dateFormater</#if>">${col.getComment()}</th>
  37. </#list>
  38. <th data-options="field:'operation',width:120,formatter:OperationRow,align:'center'">操作</th>
  39. </tr>
  40. </thead>
  41. </table>
  42. </body>
  43. </html>