listFlowConf.jsp 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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: 150 },
  20. { display: '流程配置名称', name: 'conf_name', width: 150 },
  21. { display: '流程配置模板', name: 'conf_model_name', width: 150},
  22. { display: '流程配置备注', name: 'conf_mark', width: 150},
  23. {
  24. display: '操作', isAllowHide: false,width:150,
  25. render: function (row){
  26. var html = '<a href=\"#\" onclick=\"addTab(\'updateflowConf\'+getCurrentTabId(), \'修改流程配置\', \'${pageContext.request.contextPath }/erpFlowAction.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 }/erpFlowAction.do?task=viewConf&conf_id='
  29. + row.conf_id + '&tabid='+ getCurrentTabId() + '\',true,true);\">查看</a>&nbsp;';
  30. if(row.conf_id==1){
  31. html += '<a href=\"#\" onclick=\"addTab(\'listTache\'+getCurrentTabId(), \'环节配置\', \'${pageContext.request.contextPath }/erpFlowAction.do?task=toListTache&conf_id='
  32. + row.conf_id +'&conf_name='+row.conf_name+'&tabid='+ getCurrentTabId() + '\',true,true);\">环节配置</a>&nbsp;';
  33. }
  34. return html;
  35. }
  36. }
  37. ],
  38. pageSize:20,
  39. url: 'erpFlowAction.do?task=listConf&time=' + new Date().getTime(),
  40. parms: [{name: "conf_model_name", value: ""}],
  41. pageParmName: 'p', //页索引参数名,(提交给服务器)
  42. pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
  43. width: '99.6%',
  44. height: '99%',//getParentHeight()-67,
  45. onError: function(){alert("数据加载失败,请刷新页面!");}
  46. });
  47. $("#pageloading").hide();
  48. });
  49. function searchByKword(){
  50. grid._setParms([{name: "conf_model_name", value: encodeURI($("#conf_model_name").val())}]);
  51. grid.loadData(true);
  52. }
  53. function searchAll() {
  54. $("#conf_model_name").val("");
  55. searchByKword();
  56. }
  57. </script>
  58. </head>
  59. <body>
  60. <div class="container-layout">
  61. <div id="title" class="form-button">
  62. <input onclick="closeWindow();" type="button" value="关闭" class="l-button">
  63. </div>
  64. <div class="default_search" style="margin: 0; padding:0; width: 99.7%;">
  65. <ul class="list_search">
  66. <li class="title" style="width: 100px;">流程配置模板:</li>
  67. <li class="text" >
  68. <input type="text" id="conf_model_name" name="conf_model_name" value="" style="width: 130px;">
  69. </li>
  70. </ul>
  71. <ul>
  72. <li class="search-button">
  73. <input type="button" class='l-button' name="search" onclick="searchByKword()" value="查询"/>
  74. <input type="button" class='l-button' name="search" onclick="searchAll()" value="查询全部"/>
  75. </li>
  76. </ul>
  77. </div><div style="clear: both;">
  78. <div id="maingrid4" style="margin:0; padding:0"></div>
  79. </div>
  80. <div style="display:none;">
  81. <!-- g data total ttt -->
  82. </div>
  83. </div>
  84. <%@ include file="/include/message.jsp"%>
  85. </body>
  86. </html>