department_set_ztree.jsp 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  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. <meta charset="utf-8" />
  13. <%@ include file="../../system/index/top.jsp"%>
  14. <script type="text/javascript" src="static/js/jquery-1.7.2.js"></script>
  15. <link type="text/css" rel="stylesheet" href="plugins/zTree/2.6/zTreeStyle.css"/>
  16. <script type="text/javascript" src="plugins/zTree/2.6/jquery.ztree-2.6.min.js"></script>
  17. </head>
  18. <body style="background-color:#FFFFFF">
  19. <div>
  20. <div style="width:20%;height:870px;vertical-align:top;background-color:#F9F9F9;float:left">
  21. <ul id="leftTree" class="tree"></ul>
  22. </div>
  23. <div style="width:79.5%;vertical-align:top;float:right">
  24. <!-- 检索 -->
  25. <form action="department/yearListAllDepartment.do" method="post" name="Form" id="Form">
  26. <table style="margin-top:5px;">
  27. <tr>
  28. <td>
  29. <select name="YEAR" id="YEAR" data-placeholder="请选择年份" style="vertical-align:top;" style="width:100%;" >
  30. <c:forEach items="${yearList}" var="var" varStatus="vs">
  31. <option value="${var}" <c:if test="${var == currentYear}">selected</c:if>>${var}</option>
  32. </c:forEach>
  33. </select>
  34. </td>
  35. <td>&nbsp;
  36. <span class="input-icon">
  37. <input type="text" placeholder="这里输入关键词" class="nav-search-input" id="keywords"
  38. name="keywords" autocomplete="off" value="${page.pd.keywords }" style="height:30px"/>
  39. </span>
  40. </td>
  41. <td>&nbsp;
  42. <select name="DEPARTMENT_ID" id="DEPARTMENT_ID">
  43. <option value="${DEPARTMENT_ID}" <c:if test="${DEPARTMENT_ID != ''}">selected</c:if>>本级</option>
  44. <option value="" <c:if test="${DEPARTMENT_ID == ''}">selected</c:if>>全部</option>
  45. </select>
  46. </td>
  47. <c:if test="${QX.cha == 1 }">
  48. <td style="vertical-align:top;padding-left:2px"><a class="btn btn-light btn-xs" onclick="gsearch();" title="检索"><i id="nav-search-icon" class="ace-icon fa fa-search bigger-110 nav-search-icon blue"></i></a></td>
  49. </c:if>
  50. <td style="vertical-align:top;padding-left:2px"><a class="btn btn-light btn-xs" onclick="gset();" title="配置"><i id="nav-search-icon" class="ace-icon fa fa-cog bigger-110 nav-search-icon blue"></i></a></td>
  51. </tr>
  52. </table>
  53. <table id="simple-table" class="table table-striped table-bordered table-hover" style="margin-top:5px;">
  54. <thead>
  55. <tr>
  56. <th class="center" style="width:50px;">序号</th>
  57. <th class="center">名称</th>
  58. <th class="center">英文</th>
  59. <th class="center">编码</th>
  60. <th class="center">负责人</th>
  61. </tr>
  62. </thead>
  63. <tbody>
  64. <!-- 开始循环 -->
  65. <c:choose>
  66. <c:when test="${not empty varList}">
  67. <c:if test="${QX.cha == 1 }">
  68. <c:forEach items="${varList}" var="var" varStatus="vs">
  69. <tr>
  70. <td class='center' style="width: 30px;">${page.showCount*(page.currentPage-1)+vs.index+1}</td>
  71. <td class='center'><a href="javascript:goSondict('${var.DEPARTMENT_ID }')"><i class="ace-icon fa fa-share bigger-100"></i>&nbsp;${var.NAME}</a></td>
  72. <td class='center'><a href="javascript:goSondict('${var.DEPARTMENT_ID }')">${var.NAME_EN}</a></td>
  73. <td class='center'>${var.BIANMA}</td>
  74. <td class='center'>${var.HEADMAN}</td>
  75. </tr>
  76. </c:forEach>
  77. </c:if>
  78. <c:if test="${QX.cha == 0 }">
  79. <tr><td colspan="100" class="center">您无权查看</td></tr>
  80. </c:if>
  81. </c:when>
  82. <c:otherwise>
  83. <tr class="main_info"><td colspan="100" class="center" >没有相关数据</td></tr>
  84. </c:otherwise>
  85. </c:choose>
  86. </tbody>
  87. </table>
  88. <div class="page-header position-relative">
  89. <table style="width:100%;">
  90. <tr>
  91. <td style="vertical-align:top;">
  92. <c:if test="${null != pd.DEPARTMENT_ID && pd.DEPARTMENT_ID != ''}">
  93. <a class="btn btn-sm btn-success" onclick="goSondict('${pd.PARENT_ID}');">返回</a>
  94. </c:if>
  95. </td>
  96. <td style="vertical-align:top;">
  97. <div class="pagination" style="float: right;padding-top: 0px;margin-top: 0px;">${page.pageStr}</div>
  98. </td>
  99. </tr>
  100. </table>
  101. </div>
  102. </form>
  103. </div>
  104. </div>
  105. <!-- basic scripts -->
  106. <!-- 页面底部js¨ -->
  107. <%@ include file="../../system/index/foot.jsp"%>
  108. <!-- 删除时确认窗口 -->
  109. <script src="static/ace/js/bootbox.js"></script>
  110. <!-- ace scripts -->
  111. <script src="static/ace/js/ace/ace.js"></script>
  112. <!--提示框-->
  113. <script type="text/javascript" src="static/js/jquery.tips.js"></script>
  114. <SCRIPT type="text/javascript">
  115. //关闭加载状态
  116. $(top.hangge());
  117. var zTree;
  118. $(document).ready(function(){
  119. var setting = {
  120. showLine: true,
  121. checkable: false
  122. };
  123. var zn = '${zTreeNodes}';
  124. var zTreeNodes = eval(zn);
  125. zTree = $("#leftTree").zTree(setting, zTreeNodes);
  126. });
  127. //检索
  128. function gsearch(){
  129. top.jzts();
  130. $("#Form").submit();
  131. }
  132. //去此ID下子级列表
  133. function goSondict(DEPARTMENT_ID){
  134. top.jzts();
  135. window.location.href="<%=basePath%>department/yearList.do?DEPARTMENT_ID="+DEPARTMENT_ID+"&YEAR="+$("#YEAR").val();
  136. };
  137. //配置
  138. function gset(){
  139. top.jzts();
  140. var diag = new top.Dialog();
  141. diag.Drag=true;
  142. diag.Title ="配置";
  143. diag.URL = '<%=basePath%>department/gset.do?DEPARTMENT_ID='+DEPARTMENT_ID+'&dnowPage=${page.currentPage}';
  144. diag.Width = 350;
  145. diag.Height = 465;
  146. diag.CancelEvent = function(){ //关闭事件
  147. if('none' == diag.innerFrame.contentWindow.document.getElementById('zhongxin')){
  148. parent.location.href="<%=basePath%>department/yearListAllDepartment.do?dnowPage=${page.currentPage}";
  149. }
  150. diag.close();
  151. };
  152. diag.show();
  153. }
  154. </SCRIPT>
  155. </body>
  156. </html>