123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147 |
- <%@page language="java" pageEncoding="UTF-8"%>
- <%@ page import = "java.net.URLDecoder" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title></title>
-
- <%@include file="../../../include.jsp" %>
- <style>
- html, body{
- width:100%;
- height: 96%;
- }
- body{ position: relative;}
- .contonter{
- width: 100%;
- height: 100%;
- }
- .tab_cont{
- /* float:left; */
- border-right:1px solid #b1b0b0;
- height:100%;
- width:100%;
- overflow-x:auto;
- }
-
- .mod_cont{
- width: 30%;
- height: 100%;
- margin-left:70%;
- }
- .cont_list{
- margin: 5px 0;border: 1px solid #eee;width:auto;position:relative;
- }
- .cont_list:hover{
- background-color: #eee;
- }
- .btn_cont{
- width:48%;display: inline-block;
- }
- .cont_btn{
- border:1px solid #F1F1F1;
- margin:5px;padding:3px 15px; display: inline-block;text-align: center;line-height: 200%;background-color: #F1F1F1;
- }
- .cont_btn:hover{
- border:1px solid #80c0e7;
- cursor: pointer;
- }
- .cont_btn_after{
- background-color: #04D654;
- color:white;
- }
- .sel-cont{
- position:absolute;
- z-index:99987;
- overflow:auto;
- background: #F1F1F1;
- }
-
- .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;}
- .btn_close:hover {background-position: -196px -18px; _background-position: -196px -18px; }
-
-
- </style>
- <script type="text/javascript">
- //体系树id
- //var ids = "<%=request.getParameter("ids")%>";
- //传过来的值
- var taskValue = 0;
- var corp_level = top.com.sinosoft.lz.system.user.LoginInfo.getDept_level();
- //公司id
- var corp_Id = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
- //体系数据,树对象,树结构数据
- var _thiszTree,zTreeData ;
- //树配置
- var zTreeSeting = {
- view: {
- dblClickExpand: false
- },
- check: {
- enable: true,
- nocheckInherit: false,
- chkboxType:{"Y":"s","N":"s"}
- },
- callback: {
- //onClick: onClick,
- //beforeCheck: beforeCheck,
- onCheck: onCheck
- }
- }
-
- //check事件
- function onCheck(event, treeId, treeNode){
- var nodes = _thiszTree.getCheckedNodes(true);
- var dept_ids ='';
- for(var i=0;i<nodes.length;i++){
- dept_ids += nodes[i].id+","
- }
- dept_ids = dept_ids.substring(0, dept_ids.length-1);
- $("#dept_id").val(dept_ids);
- }
-
- //树的初始话方法
- function initTree(){//taData
- var ids = top.frmright.$("#EXAMINATION_AREA_ID_601").val();
- $("#dept_id").val(ids);
- var url = $.pathname() + '/ws/Examine/ExamineManagementService/getAllUnitTree/';
- var params = {
- level : corp_level,
- id : corp_Id,
- dept_ids : ids
- };
- $.request.query(url,params,function(data){
- //树数据
- zTreeData = data.treeNodes;//data.treeData;
- //初始话树结构
- $.fn.zTree.init($("#deptTreeid"), zTreeSeting, zTreeData);
- //获得树对象
- _thiszTree = $.fn.zTree.getZTreeObj("deptTreeid");
- });
- }
-
- $(function(){
- initTree();
- $("#_DialogFrame_0fk").css("height","380px");
- })
- </script>
- </head>
-
- <body >
- <!-- 选择面板 -->
- <div class="sel-cont" style="top:45px;left:581px;width:227px;height:0;margin:0 1px;padding:0 10px;" id="rMenu">
-
- </div>
- <input type="hidden" id="dept_id" value=""/>
- <div class="contonter" >
- <!-- 左框 -->
- <div class="tab_cont">
- <div style="height:100%;overflow-y:auto; " >
- <ul id="deptTreeid" class="ztree" ></ul>
- </div>
- </div>
- </div>
- </body>
- </html>
|