listFlowTache.jsp 4.3 KB

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