listFlowTache.jsp 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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: 'tache_id', width: 120 },
  20. { display: '流程当前环节', name: 'tache_num', width: 100 },
  21. { display: '流程环节名称', name: 'tache_name', width: 100 },
  22. {
  23. display: '操作', isAllowHide: false, width: 120,
  24. render: function (row){
  25. var html = '<a href=\"#\" onclick=\"addTab(\'viewflowTache\'+getCurrentTabId(), \'查看流程环节配置\', \'${pageContext.request.contextPath }/erpFlowAction.do?task=viewTache&tache_id='
  26. + row.tache_id + '&conf_name=${requestScope.conf_name}&conf_id=${requestScope.conf_id}&tabid='+ getCurrentTabId() + '\',true,true);\">查看</a>&nbsp;';
  27. html += '<a href=\"#\" onclick=\"addTab(\'updateflowTache\'+getCurrentTabId(), \'修改流程环节配置\', \'${pageContext.request.contextPath }/erpFlowAction.do?task=toEditTache&tache_id='
  28. + row.tache_id + '&conf_name=${requestScope.conf_name}&conf_id=${requestScope.conf_id}&tabid=' + getCurrentTabId() + '\',true,true);\">编辑</a>&nbsp;';
  29. html += '<a href=\"#\" onclick=\"deleteRow('+ row.tache_id + ')\">删除</a>&nbsp;';
  30. return html;
  31. }
  32. }
  33. ],
  34. pageSize:20,
  35. url: 'erpFlowAction.do?task=listTache&model_id=${requestScope.conf_id}&time=' + new Date().getTime(),
  36. parms: [{name: "tache_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: "tache_name", value: encodeURI($("#tache_name").val())}]);
  47. grid.loadData(true);
  48. }
  49. function searchAll() {
  50. $("#tache_name").val("");
  51. searchByKword();
  52. }
  53. //商机删除
  54. function deleteRow(obj) {
  55. if (confirm("确定要删除")) {
  56. window.parent.f_addTab(new Date().getTime(), '删除客户信息',
  57. '${pageContext.request.contextPath }/erpFlowAction.do?task=deleteTache&tache_id='
  58. + obj + '&tabid=' + getCurrentTabId());
  59. }
  60. }
  61. </script>
  62. </head>
  63. <body>
  64. <div class="container-layout">
  65. <div class="default_search" style="margin-top:-28px;position: absolute;padding-top: 10px;width: 99.7%;">
  66. <ul class="list_search" style="width: 99%;">
  67. <li style="float: left; padding-left: 160px;">模板名称:${requestScope.conf_name }</li>
  68. </ul>
  69. </div>
  70. <div id="title" class="form-button" style="position: relative; width: 99%;">
  71. <input type="button" class="l-button" value="新增环节配置" onclick="addTab('addTache'+getCurrentTabId(), '新增环节配置', '${pageContext.request.contextPath }/erpFlowAction.do?task=toAddTache&conf_name=${requestScope.conf_name}&conf_id=${requestScope.conf_id}&tabid=' + getCurrentTabId(),true,true);" style="width: 90px"/>
  72. </div>
  73. <div class="default_search" style="margin: 0; padding:0; width: 99.7%;">
  74. <ul class="list_search">
  75. <li class="title" style="width: 100px;">流程环节名称:</li>
  76. <li class="text" style="width: 100px;">
  77. <input type="text" id="tache_name" name="tache_name" value="" style="width: 130px;">
  78. </li>
  79. </ul>
  80. <ul>
  81. <li class="search-button">
  82. <input type="button" class='l-button' name="search" onclick="searchByKword()" value="查询"/>
  83. <input type="button" class='l-button' name="search" onclick="searchAll()" value="查询全部"/>
  84. </li>
  85. </ul>
  86. </div><div style="clear: both;">
  87. <div id="maingrid4" style="margin:0; padding:0"></div>
  88. </div>
  89. <div style="display:none;">
  90. <!-- g data total ttt -->
  91. </div>
  92. </div>
  93. <%@ include file="/include/message.jsp"%>
  94. </body>
  95. </html>