listFlowRole.jsp 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <%@ page language="java" contentType="text/html;charset=GBK"
  2. pageEncoding="GBK"%>
  3. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  5. <html>
  6. <head>
  7. <meta http-equiv="Content-Type" content="text/html;charset=GBK">
  8. <title>流程角色列表</title>
  9. <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  10. <script type="text/javascript" src="/shares/js/jquery-1.8.2.js"></script>
  11. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
  12. <link href="${pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
  13. <script type="text/javascript" src="/shares/js/constant.js"></script>
  14. <script type="text/javascript" src="/shares/js/yw/bpm/flow/flowRole.js"></script>
  15. <script type="text/javascript" src="/shares/js/common.js"></script>
  16. <script type="text/javascript" src="/shares/js/yw/bpm/oa.js"></script>
  17. <script type="text/javascript" src="/shares/js/yw/bpm/promptDefine.js"></script>
  18. <script type="text/javascript">
  19. var grid = null;
  20. $(function () {
  21. grid = $("#maingrid4").ligerGrid({
  22. columns: [
  23. { display: '角色名称', name: 'roleName', width: 120 },
  24. { display: '角色备注', name: 'roleRemark', minWidth: 150 },
  25. { display: '所属公司', name: 'dept.groupName', width: 100,
  26. render: function(row){
  27. var html = row.dept.groupName;
  28. return html;
  29. } },
  30. // { display: '类型状态', name: 'state.dataName', width: 100,
  31. // render: function(row){
  32. // var html = row.state.dataName;
  33. // return html;
  34. // } },
  35. { display: '创建时间', name: 'createdate' },
  36. {
  37. display: '操作', isAllowHide: false,
  38. render: function (row)
  39. {
  40. var html = '<a href=\"#\" onclick=\"window.parent.f_addTab(new Date().getTime(), \'修改流程角色\', \'${pageContext.request.contextPath }/FlowRoleAction.do?task=toEdit&flowRoleId='
  41. + row.flowRoleId + '&tabid='+getCurrentTabId()+'\');\">编辑</a>&nbsp;';
  42. html += '<a href=\"#\" onclick=\"window.parent.f_addTab(new Date().getTime(), \'修改流程角色\',\'${pageContext.request.contextPath }/FlowRoleAction.do?task=info&flowRoleId='
  43. + row.flowRoleId + '&tabid='+getCurrentTabId()+'\');\">查看</a>&nbsp;';
  44. html += '<a href=\"#\" onclick=\"window.parent.f_addTab(new Date().getTime(), \'配置流程角色\',\'${pageContext.request.contextPath }/FlowRoleAction.do?task=toConfig&flowRoleId='
  45. + row.flowRoleId + '&tabid='+getCurrentTabId()+'\');\">配置</a>&nbsp;';
  46. // if(row.state.value == 1){
  47. // html += '<a href=\"#\" onclick=\"if(confirm(\'确定停用该角色?\')){stop('
  48. // + row.flowRoleId + ');}\">停用</a>&nbsp;';
  49. // } else {
  50. // html += '<a href=\"#\" onclick=\"if(confirm(\'确定启用该角色?\')){start('
  51. // + row.flowRoleId + ');}\">启用</a>&nbsp;';
  52. // }
  53. html += '<a href=\"#\" onclick=\"if(confirm(\'确定删除该角色?\')){deleteRole('+row.flowRoleId+');}\">删除</a>';
  54. return html;
  55. }
  56. }
  57. ],
  58. pageSize:20,
  59. url: 'FlowRoleAction.do?task=list&time=' + new Date().getTime(),
  60. parms: [{name: "roleName", value: ""}, {name: "state", value: ""}],
  61. pageParmName: 'p', //页索引参数名,(提交给服务器)
  62. pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
  63. width: '99.9%',
  64. height: '99%',//getParentHeight()-67,
  65. onError: function(){alert("数据加载失败,请刷新页面!");}
  66. });
  67. $("#pageloading").hide();
  68. // $("#state").ligerComboBox();
  69. });
  70. function searchByKword(){
  71. grid.set("parms", [{name: "roleName", value: encodeURI($("#roleName").val())},
  72. {name: "state", value: $("#state").val()}]);
  73. grid.set("newPage", "1");
  74. grid.loadData(true);
  75. }
  76. function searchAll() {
  77. $("#roleName").val("");
  78. $("#state").val("");
  79. searchByKword();
  80. }
  81. </script>
  82. </head>
  83. <body>
  84. <div class="container-layout">
  85. <div id="title" class="form-button" style="width: 100%">
  86. <input type="button" class="l-button" style="width: 100px;" value="创建流程角色" onclick="window.parent.f_addTab(new Date().getTime(), '创建流程角色', '${pageContext.request.contextPath }/FlowRoleAction.do?task=toCreate&tabid=' + getCurrentTabId());" />
  87. <input onclick="closeTabUseInOA();" type="button" value="关闭" class="l-button">
  88. </div>
  89. <div class="default_search" style="margin: 0; width: 100%;">
  90. <ul class="list_search" style="width:250px;">
  91. <li class="title">角色名称:</li>
  92. <li class="text">
  93. <input type="text" id="roleName" name="roleName" value="" style="width: 130px;">
  94. </li>
  95. </ul>
  96. <ul class="list_search" style="width:250px;">
  97. <li class="title">状态:</li>
  98. <li class="text">
  99. <select name="state" id="state" style="width: 130px;">
  100. <option value="" >全部</option>
  101. <c:forEach items="${requestScope.states }" var="state">
  102. <option value="${state.value }" >${state.dataName }</option>
  103. </c:forEach>
  104. </select>
  105. </li>
  106. </ul>
  107. <ul>
  108. <li class="search-button">
  109. <input type="button" class='l-button' name="search" onclick="searchByKword()" value="查询"/>
  110. <input type="button" class='l-button' name="search" onclick="searchAll()" value="查询全部"/>
  111. </li>
  112. </ul>
  113. </div><div style="clear: both;">
  114. <div id="maingrid4" style="margin:0; padding:0"></div>
  115. </div>
  116. <div style="display:none;">
  117. <!-- g data total ttt -->
  118. </div>
  119. </div>
  120. <%@ include file="/include/message.jsp"%>
  121. </body>
  122. </html>