ruprocdef_delegate.jsp 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  3. <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
  4. <%
  5. String path = request.getContextPath();
  6. String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
  7. %>
  8. <!DOCTYPE html>
  9. <html lang="en">
  10. <head>
  11. <base href="<%=basePath%>">
  12. <!-- jsp文件头和头部 -->
  13. <%@ include file="../../system/index/top.jsp"%>
  14. </head>
  15. <body class="no-skin">
  16. <!-- /section:basics/navbar.layout -->
  17. <div class="main-container" id="main-container">
  18. <!-- /section:basics/sidebar -->
  19. <div class="main-content">
  20. <div class="main-content-inner">
  21. <div class="page-content">
  22. <div class="row">
  23. <div class="col-xs-12">
  24. <form action="ruprocdef/delegate.do" name="form1" id="form1" method="post">
  25. <input type="hidden" name="ID_" id="ID_" value="${pd.ID_}"/>
  26. <div id="zhongxin" style="padding-top:13px;">
  27. <table id="table_report" class="table table-striped table-bordered table-hover">
  28. <tr style="text-align: center;">
  29. <td><input type="text" name="ASSIGNEE_" id="ASSIGNEE_" placeholder="这里录入委派对象" value="" title="委派对象" style="width:99%;" readonly="readonly"/></td>
  30. <td width="90">
  31. <a class="btn btn-xs btn-info" title="选择办理人(单人)" onclick="getUser();">
  32. <i class="ace-icon glyphicon glyphicon-user"></i>
  33. </a>
  34. <a class="btn btn-xs btn-info" title="选择办理角色(此角色下所有人都可以办理)" onclick="getRole();">
  35. <i class="ace-icon fa fa-users"></i>
  36. </a>
  37. </td>
  38. </tr>
  39. <tr>
  40. <td style="text-align: center;padding-top:5px;" colspan="10">
  41. <a class="btn btn-mini btn-primary" onclick="save();">委派</a>
  42. <a class="btn btn-mini btn-danger" onclick="top.Dialog.close();">取消</a>
  43. </td>
  44. </tr>
  45. </table>
  46. </div>
  47. </form>
  48. <div id="zhongxin2" class="center" style="display:none"><img src="static/images/jzx.gif" style="width: 50px;" /><br/><h4 class="lighter block green"></h4></div>
  49. </div>
  50. <!-- /.col -->
  51. </div>
  52. <!-- /.row -->
  53. </div>
  54. <!-- /.page-content -->
  55. </div>
  56. </div>
  57. <!-- /.main-content -->
  58. </div>
  59. <!-- /.main-container -->
  60. <!-- 页面底部js¨ -->
  61. <%@ include file="../../system/index/foot.jsp"%>
  62. <!--提示框-->
  63. <script type="text/javascript" src="static/js/jquery.tips.js"></script>
  64. <script type="text/javascript">
  65. top.hangge();
  66. //保存
  67. function save(){
  68. if($("#ASSIGNEE_").val()==""){
  69. $("#ASSIGNEE_").tips({
  70. side:3,
  71. msg:'请选择委派对象',
  72. bg:'#AE81FF',
  73. time:2
  74. });
  75. $("#ASSIGNEE_").focus();
  76. return false;
  77. }
  78. $("#form1").submit();
  79. $("#zhongxin").hide();
  80. $("#zhongxin2").show();
  81. }
  82. //选择办理人
  83. function getUser(){
  84. top.jzts();
  85. var diag = new top.Dialog();
  86. diag.Drag=true;
  87. diag.Title ="选择办理人";
  88. diag.URL = '<%=basePath%>user/listUsersForWindow.do';
  89. diag.Width = 700;
  90. diag.Height = 545;
  91. diag.Modal = true; //有无遮罩窗口
  92. diag. ShowMaxButton = true; //最大化按钮
  93. diag.ShowMinButton = true; //最小化按钮
  94. diag.CancelEvent = function(){ //关闭事件
  95. var USERNAME = diag.innerFrame.contentWindow.document.getElementById('USERNAME').value;
  96. if("" != USERNAME){
  97. $("#ASSIGNEE_").val(USERNAME);
  98. }
  99. diag.close();
  100. };
  101. diag.show();
  102. }
  103. //选择角色
  104. function getRole(){
  105. top.jzts();
  106. var diag = new top.Dialog();
  107. diag.Drag=true;
  108. diag.Title ="选择角色";
  109. diag.URL = '<%=basePath%>role/roleListWindow.do?ROLE_ID=1';
  110. diag.Width = 700;
  111. diag.Height = 545;
  112. diag.Modal = true; //有无遮罩窗口
  113. diag. ShowMaxButton = true; //最大化按钮
  114. diag.ShowMinButton = true; //最小化按钮
  115. diag.CancelEvent = function(){ //关闭事件
  116. var RNUMBER = diag.innerFrame.contentWindow.document.getElementById('RNUMBER').value;
  117. if("" != RNUMBER){
  118. $("#ASSIGNEE_").val(RNUMBER);
  119. }
  120. diag.close();
  121. };
  122. diag.show();
  123. }
  124. </script>
  125. </body>
  126. </html>