aa261fbfcd2cbfac9553e6a463885bc660d01cc4.svn-base 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <%@page language="java" pageEncoding="UTF-8"%>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <title>组织机构管理</title>
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7. <!--框架必需start-->
  8. <%@include file="../../include.jsp"%>
  9. <!--引用资源文件,JS CSS-->
  10. <script type="text/javascript"
  11. src="<%=path%>/scripts/jquery/plugins/jquery.extension.util.js"></script>
  12. <script type="text/javascript"
  13. src="<%=path%>/scripts/freamwork/com/sinosoft/common/common.js"></script>
  14. <script type="text/javascript"
  15. src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/utils.js"></script>
  16. <script type="text/javascript"
  17. src="<%=path%>/scripts/freamwork/com/sinosoft/common/frameWork/frameWork.js"></script>
  18. <script type="text/javascript"
  19. src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/Request.js"></script>
  20. <script type="text/javascript"
  21. src="<%=path%>/scripts/freamwork/com/sinosoft/common/searchUtil.js"></script>
  22. <link
  23. href="<%=path%>/scripts/freamwork/com/sinosoft/common/searchUtil.css"
  24. rel="stylesheet" type="text/css" />
  25. <style type = "text/css">
  26. .tips {
  27. white-space: nowrap;
  28. width: 100%;
  29. overflow: hidden;
  30. text-overflow: ellipsis;
  31. dispaly:inline-block;
  32. }
  33. .hr3 {
  34. filter: alpha(opacity = 100, finishopacity = 0, style = 1);
  35. noshade: "noshade";
  36. height: 0.5px;
  37. border: none;
  38. /* border-top: 2px ridge #45D6D8; */
  39. border: 1px dotted #45D6D8;
  40. }
  41. #queryContent1 {
  42. position: absolute;
  43. min-height: 0px;
  44. max-height: 273px;
  45. max-width: 100%;
  46. background-color: #B2E0FF;
  47. z-index: 12;
  48. text-overflow: -o-ellipsis-lastline;
  49. overflow: hidden;
  50. text-overflow: ellipsis;
  51. display: -webkit-box;
  52. -webkit-line-clamp: 2;
  53. -webkit-box-orient: vertical;
  54. }
  55. #queryContent1ul li:hover {
  56. cursor: pointer;
  57. background-color:gray;
  58. }
  59. </style>
  60. <script type="text/javascript">
  61. //登陆人的单位id
  62. var loginOrgId = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
  63. //登陆人部门name
  64. var loginOrgName = top.com.sinosoft.lz.system.user.LoginInfo.getDeptnames();
  65. var role = top.com.sinosoft.lz.system.user.LoginInfo.getRoleids();
  66. var setting1="";
  67. function getDeptLevel2(dpids){
  68. var dept_level = "";
  69. $.ajax({
  70. url : $.pathname()+ "/ws/planService/PlanService/getDeptLevel",
  71. type : 'post',
  72. timeout : 60000,
  73. data : {id:dpids},
  74. dataType : 'text',
  75. async: false,
  76. success : function(data){
  77. dept_level = data;
  78. }
  79. });
  80. return dept_level;
  81. }
  82. $(function(){
  83. var value = top.document.getElementById("frmright").contentWindow.titlevalue
  84. //树的设置
  85. setting1 = {
  86. view : {
  87. selectedMulti : false
  88. },async : {
  89. enable : true,
  90. dataType : 'JSON',
  91. dataName : 'treeNodes',
  92. aysnc : false,
  93. url : $.pathname()+ "/ws/jgwh/unitWHService/getAllUnitsForShow",
  94. autoParam : [ "id", "name", "orgLevel" ],
  95. otherParam : ["deptId", loginOrgId,"modtype",value,"deptLevel",getDeptLevel2(loginOrgId)]
  96. }
  97. };
  98. $.fn.zTree.init($("#myTree1"), setting1);
  99. });
  100. </script>
  101. </head>
  102. <body >
  103. <div name="组织结构" id="myBox1" class="box1" panelHeight="400";">
  104. <div style="overflow:auto;background-color:#F2F7F9;height:100%;">
  105. <div id='org_inner1'>
  106. <ul id="myTree1" class="ztree"></ul>
  107. </div>
  108. </div>
  109. </div>
  110. </body>
  111. </html>