610da1b658562056ac10b66819838d7a75e9a430.svn-base 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <%@page language="java" pageEncoding="UTF-8"%>
  2. <%@ page import = "java.net.URLDecoder" %>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml">
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7. <title></title>
  8. <%@include file="../../../include.jsp" %>
  9. <style>
  10. html, body{
  11. width:100%;
  12. height: 96%;
  13. }
  14. body{ position: relative;}
  15. .contonter{
  16. width: 100%;
  17. height: 100%;
  18. }
  19. .tab_cont{
  20. /* float:left; */
  21. border-right:1px solid #b1b0b0;
  22. height:100%;
  23. width:100%;
  24. overflow-x:auto;
  25. }
  26. .mod_cont{
  27. width: 30%;
  28. height: 100%;
  29. margin-left:70%;
  30. }
  31. .cont_list{
  32. margin: 5px 0;border: 1px solid #eee;width:auto;position:relative;
  33. }
  34. .cont_list:hover{
  35. background-color: #eee;
  36. }
  37. .btn_cont{
  38. width:48%;display: inline-block;
  39. }
  40. .cont_btn{
  41. border:1px solid #F1F1F1;
  42. margin:5px;padding:3px 15px; display: inline-block;text-align: center;line-height: 200%;background-color: #F1F1F1;
  43. }
  44. .cont_btn:hover{
  45. border:1px solid #80c0e7;
  46. cursor: pointer;
  47. }
  48. .cont_btn_after{
  49. background-color: #04D654;
  50. color:white;
  51. }
  52. .sel-cont{
  53. position:absolute;
  54. z-index:99987;
  55. overflow:auto;
  56. background: #F1F1F1;
  57. }
  58. .btn_close { background-position: -225px -18px;_background-position: -225px -18px;margin-left:10px;border: 0px none;width: 19px;height: 19px;display: inline-block;background-image: url(/nwyj/images/index/idx_main/module_btn.png);background-repeat: no-repeat; cursor: pointer;}
  59. .btn_close:hover {background-position: -196px -18px; _background-position: -196px -18px; }
  60. </style>
  61. <script type="text/javascript">
  62. //体系树id
  63. //var ids = "<%=request.getParameter("ids")%>";
  64. //传过来的值
  65. var taskValue = 0;
  66. var corp_level = top.com.sinosoft.lz.system.user.LoginInfo.getDept_level();
  67. //公司id
  68. var corp_Id = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
  69. //体系数据,树对象,树结构数据
  70. var _thiszTree,zTreeData ;
  71. //树配置
  72. var zTreeSeting = {
  73. view: {
  74. dblClickExpand: false
  75. },
  76. check: {
  77. enable: true,
  78. nocheckInherit: false,
  79. chkboxType:{"Y":"s","N":"s"}
  80. },
  81. callback: {
  82. //onClick: onClick,
  83. //beforeCheck: beforeCheck,
  84. onCheck: onCheck
  85. }
  86. }
  87. //check事件
  88. function onCheck(event, treeId, treeNode){
  89. var nodes = _thiszTree.getCheckedNodes(true);
  90. var dept_ids ='';
  91. for(var i=0;i<nodes.length;i++){
  92. dept_ids += nodes[i].id+","
  93. }
  94. dept_ids = dept_ids.substring(0, dept_ids.length-1);
  95. $("#dept_id").val(dept_ids);
  96. }
  97. //树的初始话方法
  98. function initTree(){//taData
  99. var ids = top.frmright.$("#EXAMINATION_AREA_ID_601").val();
  100. $("#dept_id").val(ids);
  101. var url = $.pathname() + '/ws/Examine/ExamineManagementService/getAllUnitTree/';
  102. var params = {
  103. level : corp_level,
  104. id : corp_Id,
  105. dept_ids : ids
  106. };
  107. $.request.query(url,params,function(data){
  108. //树数据
  109. zTreeData = data.treeNodes;//data.treeData;
  110. //初始话树结构
  111. $.fn.zTree.init($("#deptTreeid"), zTreeSeting, zTreeData);
  112. //获得树对象
  113. _thiszTree = $.fn.zTree.getZTreeObj("deptTreeid");
  114. });
  115. }
  116. $(function(){
  117. initTree();
  118. $("#_DialogFrame_0fk").css("height","380px");
  119. })
  120. </script>
  121. </head>
  122. <body >
  123. <!-- 选择面板 -->
  124. <div class="sel-cont" style="top:45px;left:581px;width:227px;height:0;margin:0 1px;padding:0 10px;" id="rMenu">
  125. </div>
  126. <input type="hidden" id="dept_id" value=""/>
  127. <div class="contonter" >
  128. <!-- 左框 -->
  129. <div class="tab_cont">
  130. <div style="height:100%;overflow-y:auto; " >
  131. <ul id="deptTreeid" class="ztree" ></ul>
  132. </div>
  133. </div>
  134. </div>
  135. </body>
  136. </html>