listFlowConf.jsp 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <%@ page language="java" contentType="text/html;charset=GBK" pageEncoding="GBK"%>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  3. <html>
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html;charset=GBK">
  6. <title>流程配置列表</title>
  7. <link href="${pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
  8. <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  9. <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
  10. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
  11. <script type="text/javascript" src="/shares/js/constant.js"></script>
  12. <script type="text/javascript" src="/shares/js/common.js"></script>
  13. <script type="text/javascript">
  14. var grid = null;
  15. var win1 = null;
  16. $(function () {
  17. grid = $("#maingrid4").ligerGrid({
  18. columns: [
  19. { display: '流程配置ID', name: 'conf_id', width: 160 },
  20. { display: '流程配置名称', name: 'conf_name', width: 190 },
  21. { display: '流程配置模板', name: 'conf_model_name', width: 160},
  22. { display: '流程配置备注', name: 'conf_mark', width: 160},
  23. {
  24. display: '操作', isAllowHide: false,
  25. render: function (row){
  26. var html = '<a href=\"#\" onclick=\"addTab(\'updateflowConf\'+getCurrentTabId(), \'修改流程配置\', \'${pageContext.request.contextPath }/contractFlowAction.do?task=toEditConf&conf_id='
  27. + row.conf_id + '&tabid=' + getCurrentTabId() + '\',true,true);\">编辑</a>&nbsp;';
  28. html += '<a href=\"#\" onclick=\"addTab(\'viewflowConf\'+getCurrentTabId(), \'查看流程配置\', \'${pageContext.request.contextPath }/contractFlowAction.do?task=viewConf&conf_id='
  29. + row.conf_id + '&tabid='+ getCurrentTabId() + '\',true,true);\">查看</a>&nbsp;';
  30. return html;
  31. }
  32. }
  33. ],
  34. pageSize:20,
  35. url: 'contractFlowAction.do?task=listConf&time=' + new Date().getTime(),
  36. parms: [{name: "conf_model_name", value: ""}],
  37. pageParmName: 'p', //页索引参数名,(提交给服务器)
  38. pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
  39. width: '99.6%',
  40. height: '99%',//getParentHeight()-67,
  41. onError: function(){alert("数据加载失败,请刷新页面!");}
  42. });
  43. $("#pageloading").hide();
  44. });
  45. function searchByKword(){
  46. grid._setParms([{name: "conf_model_name", value: encodeURI($("#conf_model_name").val())}]);
  47. grid.loadData(true);
  48. }
  49. function searchAll() {
  50. $("#conf_model_name").val("");
  51. searchByKword();
  52. }
  53. </script>
  54. </head>
  55. <body>
  56. <div class="container-layout">
  57. <div id="title" class="form-button">
  58. <input onclick="closeWindow();" type="button" value="关闭" class="l-button">
  59. </div>
  60. <div class="default_search" style="margin: 0; padding:0; width: 99.7%;">
  61. <ul class="list_search">
  62. <li class="title" style="width: 100px;">流程配置模板:</li>
  63. <li class="text" >
  64. <input type="text" id="conf_model_name" name="conf_model_name" value="" style="width: 130px;">
  65. </li>
  66. </ul>
  67. <ul>
  68. <li class="search-button">
  69. <input type="button" class='l-button' name="search" onclick="searchByKword()" value="查询" />
  70. <input type="button" class='l-button' name="search" onclick="searchAll()" value="查询全部" style="margin-left: 25px;"/>
  71. </li>
  72. </ul>
  73. </div><div style="clear: both;">
  74. <div id="maingrid4" style="margin:0; padding:0"></div>
  75. </div>
  76. <div style="display:none;">
  77. <!-- g data total ttt -->
  78. </div>
  79. </div>
  80. <%@ include file="/include/message.jsp"%>
  81. </body>
  82. </html>