OrgChartHRM.jsp 20.4 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431
<%@ page language="java" contentType="text/html; charset=UTF-8" %> 
<!-- modified by wcd 2014-09-04 [原E7组织机构图表改造] -->
<%@ page import="weaver.hrm.common.*,weaver.hrm.chart.domain.*" %>
<%@page import="weaver.hrm.appdetach.AppDetachComInfo"%>
<script language="javascript" type="text/javascript" src="/appres/hrm/js/jquery_wev8.js"></script>
<script type="text/javascript">
	var _jQuery = jQuery.noConflict(true);
</script>
<%@ include file="/systeminfo/init_wev8.jsp" %>
<%@ taglib uri="/WEB-INF/weaver.tld" prefix="wea"%>
<%@ taglib uri="/browserTag" prefix="brow"%>
<jsp:useBean id="rs" class="weaver.conn.RecordSet" scope="page" />
<jsp:useBean id="CompanyComInfo" class="weaver.hrm.company.CompanyComInfo" scope="page" />
<jsp:useBean id="OrgChartManager" class="weaver.hrm.chart.manager.OrgChartManager" scope="page" />
<jsp:useBean id="CRMSearchComInfo" class="weaver.crm.search.SearchComInfo" scope="page" />
<jsp:useBean id="WorkTypeComInfo" class="weaver.proj.Maint.WorkTypeComInfo" scope="page" />
<jsp:useBean id="ProjectStatusComInfo" class="weaver.proj.Maint.ProjectStatusComInfo" scope="page" />
<jsp:useBean id="HrmChartSetManager" class="weaver.hrm.chart.manager.HrmChartSetManager" scope="page" />
<jsp:useBean id="CompanyVirtualComInfo" class="weaver.hrm.companyvirtual.CompanyVirtualComInfo" scope="page" />
<jsp:useBean id="HrmCompanyVirtualManager" class="weaver.hrm.chart.manager.HrmCompanyVirtualManager" scope="page" />
<%
	String imagefilename = "/images/hdHRMCard_wev8.gif";
	String titlename = SystemEnv.getHtmlLabelName(562,user.getLanguage());
	String needfav ="1";
	String needhelp ="";
	
	AppDetachComInfo AppDetachComInfo = new AppDetachComInfo();
	boolean isOutCustomer = AppDetachComInfo.isOutCustomer(""+user.getUID());//是否为外部用户
	boolean isCustomManager = AppDetachComInfo.isCustomManager(""+user.getUID());//是否为外部用户
	
	String sg = Util.null2String(request.getParameter("s_g"));
	String sorgid = Util.null2String(request.getParameter("sorgid"));
	int showtype = Util.getIntValue(request.getParameter("showtype"),0);
	int shownum = Util.getIntValue(request.getParameter("shownum"),1);
	String showmode = Util.null2String(request.getParameter("showmode"),"down");
	Map map = new HashMap();
	HrmChartSet bean = null;
	if(sg.length()==0){
		map.put("is_sys",1);
		bean = HrmChartSetManager.get(map);
	}else if(sg.equals("true")){
		if(bean == null){
			bean = new HrmChartSet();
			bean.setIsSys(0);
			bean.setAuthor(user.getUID());
		}
		bean.setShowType(showtype);
		bean.setShowNum(shownum);
		bean.setShowMode(showmode);
	}
	if(bean != null){
		showtype = bean.getShowType();
		shownum = bean.getShowNum();
		showmode = bean.getShowMode();
	}
	showmode = showmode.equals("down") ? "mfchart" : showmode;
	shownum = shownum <= 0 ? 1 : shownum;
	if(0==showtype) shownum = 10000;
	boolean isPOrg = false;
	String showName = "";
	if(CompanyComInfo.next()){
		showName = CompanyComInfo.getCompanyname();
		isPOrg = Tools.isNull(sorgid) ? true : CompanyComInfo.getCompanyid().equals(sorgid);
	}
	if(isOutCustomer){
		sorgid="-10000";
		showName = CompanyVirtualComInfo.getVirtualType(sorgid);
		isPOrg = false;
	}
	String cmd = Util.null2String(request.getParameter("cmd"));
	String status = Util.null2String(request.getParameter("status"));
	String docStatus = Util.null2String(request.getParameter("docStatus"));
	String customerType = Util.null2String(request.getParameter("customerType"));
	String customerStatus = Util.null2String(request.getParameter("customerStatus"));
	String workType = Util.null2String(request.getParameter("workType"));
	String projectStatus = Util.null2String(request.getParameter("projectStatus"));

	ChgPasswdReminder reminder=new ChgPasswdReminder();
	RemindSettings settings=reminder.getRemindSettings();
	String checkUnJob = Util.null2String(settings.getCheckUnJob(),"0");//非在职人员信息查看控制 启用后,只有有“离职人员查看”权限的用户才能检索非在职人员
%>

<html>
	<head>
		<title><%=SystemEnv.getHtmlLabelName(562,user.getLanguage())%></title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<link type="text/css" rel="stylesheet" href="/css/Weaver_wev8.css"/>
		<link type="text/css" rel="stylesheet" href="/appres/hrm/css/orgchart_wev8.css"/>
		<link type="text/css" rel="stylesheet" href="/appres/hrm/css/mfcommon_wev8.css"/>
		<script language="javascript" src="/js/weaver_wev8.js"></script>
		<script language="javascript" type="text/javascript" src="/appres/hrm/js/orgchart_wev8.js"></script>
		<script language="javascript" type="text/javascript" src="/appres/hrm/js/jchart_wev8.js"></script>
		<script language="javascript" type="text/javascript" src="/appres/hrm/js/mfcommon_wev8.js"></script>
		<script src="/js/tabs/jquery.tabs.extend_wev8.js"></script>
		<script type="text/javascript">
			var on = new MFCommon();
			var dialog = null;
			var shownum = "";
			var showtype = "";
			var showmode = "";
			
			function closeDialog(){
				if(dialog)
					dialog.close();
				window.location.href="/org/OrgChartHRM.jsp?s_g=true&shownum="+shownum+"&showtype="+showtype+"&showmode="+showmode+"&cmd=<%=cmd%>&sorgid=<%=sorgid%>";
			}
			
			function onBtnSearchClick(){
				jQuery("#searchfrm").submit();
			}
			
			function openUrl(type,id){
				var url;
				if(type == '0'){
					url = "/hrm/HrmTab.jsp?_fromURL=HrmDepartmentDsp&id="+id;
				} else {
					url = "/hrm/HrmTab.jsp?_fromURL=HrmDepartment&id="+id;
				}
				window.open(url);
			}
			
			function resetSelect(){
				var obj = $GetEle("status");
				if(obj)changeSelectValue(obj.id,"8");
				obj = $GetEle("docStatus");
				if(obj)changeSelectValue(obj.id,"0");
				obj = $GetEle("customerType");
				if(obj)changeSelectValue(obj.id,"<%=customerType%>");
				obj = $GetEle("customerStatus");
				if(obj)changeSelectValue(obj.id,"<%=customerStatus%>");
				obj = $GetEle("workType");
				if(obj)changeSelectValue(obj.id,"<%=workType%>");
				obj = $GetEle("projectStatus");
				if(obj)changeSelectValue(obj.id,"<%=projectStatus%>");	
			}
			
			function doDel(id){
				CO.NodeObject.deleteNodeWithData(id);
			}
			
			function showOrg(obj){
				window.parent.location.href = "/hrm/HrmTab.jsp?_fromURL=OrgChartHRM&sorgid=<%=sorgid%>&cmd="+$(obj).attr("id");
			}
			
			function changeOrg(id){
				window.parent.location.href = "/hrm/HrmTab.jsp?_fromURL=OrgChartHRM&sorgid="+id;
			}
			
			function openWin(type, id){
				try{
					if(type == "subcompany"){
						window.open("/hrm/HrmTab.jsp?_fromURL=<%=isPOrg ? "HrmSubCompanyDsp" : "HrmSubCompanyDspVirtual"%>&id="+id);
					} else {
						window.open("/hrm/HrmTab.jsp?_fromURL=<%=isPOrg ? "HrmDepartmentDsp" : "HrmDepartmentDspVirtual"%>&id="+id.substr(1)+"&hasTree=false");
					}
				}catch(e){}
			}
		</script>
	</head>
	<body>
		<%@ include file="/systeminfo/TopTitle_wev8.jsp" %>
		<%@ include file="/systeminfo/RightClickMenuConent_wev8.jsp" %>
		<%@ include file="/systeminfo/RightClickMenu_wev8.jsp" %>
		<form action="" name="searchfrm" id="searchfrm">
			<input type="hidden" name="cmd" value="<%=cmd%>">
			<input type="hidden" name="showmode" value="<%=showmode%>">
			<input type="hidden" name="sorgid" value="<%=sorgid%>">
			<table id="topTitle" class="topTitle" cellpadding="0" cellspacing="0">
				<tr>
					<td></td>
					<td class="rightSearchSpan" style="text-align:right;">
						<%
							if(CompanyVirtualComInfo.getCompanyNum()>0){
								CompanyComInfo.setTofirstRow();
						%>
							<select name="sOrg" notBeauty="true" onchange="changeOrg(this.value);">
								<%
									if(CompanyComInfo.next()&&!isOutCustomer){
								%>
								<option value="<%=CompanyComInfo.getCompanyid()%>"><%=CompanyComInfo.getCompanyname()%></option>
								<%
									}
									String _vcId = "";
									while(CompanyVirtualComInfo.next()){
										_vcId = CompanyVirtualComInfo.getCompanyid();
										if(_vcId.equals("-10000") && !isOutCustomer&&!isCustomManager)continue;
								%>
								<option value="<%=_vcId%>" <%=sorgid.equals(_vcId)?"selected":""%>><%=CompanyVirtualComInfo.getVirtualType()%></option>
								<%
									}
								%>
							<select>
						<%
							}
						%>
						<span id="advancedSearch" class="advancedSearch"><%=SystemEnv.getHtmlLabelName(21995,user.getLanguage())%></span>
						<span title="<%=SystemEnv.getHtmlLabelName(23036,user.getLanguage())%>" class="cornerMenu"></span>
					</td>
				</tr>
			</table>
			<div class="advancedSearchDiv" id="advancedSearchDiv" style="display:none;" >
				<wea:layout type="4col">
					<wea:group context="<%=SystemEnv.getHtmlLabelName(20331,user.getLanguage())%>">
						<%
							if(Tools.isNull(cmd)){
						%>
						<wea:item><%=SystemEnv.getHtmlLabelName(602,user.getLanguage())%></wea:item>
						<wea:item>
							<%if(status.equals("")){status = "8";}%>
							<select class="inputstyle" id="status" name="status">
								<%

					     		if("1".equals(checkUnJob)){//启用后,只有有“离职人员查看”权限的用户才能检索非在职人员员
					            	if(HrmUserVarify.checkUserRight("hrm:departureView",user)){ %>
	       	 					<OPTION value="9" <% if(status.equals("9")) {%>selected<%}%>><%=SystemEnv.getHtmlLabelName(332,user.getLanguage())%></OPTION>
								<option value="0" <% if(status.equals("0")) {%>selected<%}%>><%=SystemEnv.getHtmlLabelName(15710,user.getLanguage())%></option>
								<option value="1" <% if(status.equals("1")) {%>selected<%}%>><%=SystemEnv.getHtmlLabelName(15711,user.getLanguage())%></option>
								<option value="2" <% if(status.equals("2")) {%>selected<%}%>><%=SystemEnv.getHtmlLabelName(480,user.getLanguage())%></option>
								<option value="3" <% if(status.equals("3")) {%>selected<%}%>><%=SystemEnv.getHtmlLabelName(15844,user.getLanguage())%></option>
								<option value="4" <% if(status.equals("4")) {%>selected<%}%>><%=SystemEnv.getHtmlLabelName(6094,user.getLanguage())%></option>
								<option value="5" <% if(status.equals("5")) {%>selected<%}%>><%=SystemEnv.getHtmlLabelName(6091,user.getLanguage())%></option>
								<option value="6" <% if(status.equals("6")) {%>selected<%}%>><%=SystemEnv.getHtmlLabelName(6092,user.getLanguage())%></option>
								<option value="7" <% if(status.equals("7")) {%>selected<%}%>><%=SystemEnv.getHtmlLabelName(2245,user.getLanguage())%></option>
								<option value="8" <% if(status.equals("8")) {%>selected<%}%>><%=SystemEnv.getHtmlLabelName(1831,user.getLanguage())%></option>
	        <%						}else{
	        	%>
        <OPTION value="0" <% if(status.equals("0")) {%>selected<%}%>><%=SystemEnv.getHtmlLabelName(15710,user.getLanguage())%></OPTION>
        <OPTION value="1" <% if(status.equals("1")) {%>selected<%}%>><%=SystemEnv.getHtmlLabelName(15711,user.getLanguage())%></OPTION>
        <OPTION value="2" <% if(status.equals("2")) {%>selected<%}%>><%=SystemEnv.getHtmlLabelName(480,user.getLanguage())%></OPTION>
        <OPTION value="3" <% if(status.equals("3")) {%>selected<%}%>><%=SystemEnv.getHtmlLabelName(15844,user.getLanguage())%></OPTION>
	        	<%
	        }
					     		}else{
					     		%>
	       	 					<OPTION value="9" <% if(status.equals("9")) {%>selected<%}%>><%=SystemEnv.getHtmlLabelName(332,user.getLanguage())%></OPTION>
								<option value="0" <% if(status.equals("0")) {%>selected<%}%>><%=SystemEnv.getHtmlLabelName(15710,user.getLanguage())%></option>
								<option value="1" <% if(status.equals("1")) {%>selected<%}%>><%=SystemEnv.getHtmlLabelName(15711,user.getLanguage())%></option>
								<option value="2" <% if(status.equals("2")) {%>selected<%}%>><%=SystemEnv.getHtmlLabelName(480,user.getLanguage())%></option>
								<option value="3" <% if(status.equals("3")) {%>selected<%}%>><%=SystemEnv.getHtmlLabelName(15844,user.getLanguage())%></option>
								<option value="4" <% if(status.equals("4")) {%>selected<%}%>><%=SystemEnv.getHtmlLabelName(6094,user.getLanguage())%></option>
								<option value="5" <% if(status.equals("5")) {%>selected<%}%>><%=SystemEnv.getHtmlLabelName(6091,user.getLanguage())%></option>
								<option value="6" <% if(status.equals("6")) {%>selected<%}%>><%=SystemEnv.getHtmlLabelName(6092,user.getLanguage())%></option>
								<option value="7" <% if(status.equals("7")) {%>selected<%}%>><%=SystemEnv.getHtmlLabelName(2245,user.getLanguage())%></option>
								<option value="8" <% if(status.equals("8")) {%>selected<%}%>><%=SystemEnv.getHtmlLabelName(1831,user.getLanguage())%></option>
	        <%} %>
							
								
        <%
   		if("1".equals(checkUnJob)){//启用后,只有有“离职人员查看”权限的用户才能检索非在职人员
        	if(HrmUserVarify.checkUserRight("hrm:departureView",user)){ %>
								
        <%}}else{%>
        <%} %>
							</select>
						</wea:item>
						<wea:item>&nbsp;</wea:item>
						<wea:item>&nbsp;</wea:item>
						<%}else if(cmd.equals("doc")){%>
						<wea:item><%=SystemEnv.getHtmlLabelName(602,user.getLanguage())%></wea:item>
						<wea:item>
							<select class="InputStyle" id="docStatus" name="docStatus">
								<option value=""><%=SystemEnv.getHtmlLabelName(332,user.getLanguage())%></option>
								<option value="0" <%=docStatus.equals("0")?"selected":""%>><%=SystemEnv.getHtmlLabelName(220,user.getLanguage())%></option>
								<option value="1" <%=docStatus.equals("1")?"selected":""%>><%=SystemEnv.getHtmlLabelName(18431,user.getLanguage())%></option>
								<option value="2" <%=docStatus.equals("2")?"selected":""%>><%=SystemEnv.getHtmlLabelName(225,user.getLanguage())%></option>
								<option value="3" <%=docStatus.equals("3")?"selected":""%>><%=SystemEnv.getHtmlLabelName(359,user.getLanguage())%></option>
								<option value="4" <%=docStatus.equals("4")?"selected":""%>><%=SystemEnv.getHtmlLabelName(236,user.getLanguage())%></option>
								<option value="5" <%=docStatus.equals("5")?"selected":""%>><%=SystemEnv.getHtmlLabelName(251,user.getLanguage())%></option>
								<option value="6" <%=docStatus.equals("6")?"selected":""%>><%=SystemEnv.getHtmlLabelName(19564,user.getLanguage())%></option>
								<option value="7" <%=docStatus.equals("7")?"selected":""%>><%=SystemEnv.getHtmlLabelName(15750,user.getLanguage())%></option>
								<option value="8" <%=docStatus.equals("8")?"selected":""%>><%=SystemEnv.getHtmlLabelName(15358,user.getLanguage())%></option>
								<option value="9" <%=docStatus.equals("9")?"selected":""%>><%=SystemEnv.getHtmlLabelName(21556,user.getLanguage())%></option>
							</select>
						</wea:item>
						<wea:item>&nbsp;</wea:item>
						<wea:item>&nbsp;</wea:item>
						<%}else if(cmd.equals("customer")){%>
						<wea:item><%=SystemEnv.getHtmlLabelName(63,user.getLanguage())%></wea:item>
						<wea:item>
							<select id="customerType" name="customerType" class="InputStyle">
								<option value=""><%=SystemEnv.getHtmlLabelName(332,user.getLanguage())%></option>
								<%
									rs.executeProc("CRM_CustomerType_SelectAll","");
									while(rs.next()){
										String tmpid=rs.getString("id");
										out.println("<option value='"+tmpid+"' "+(customerType.equals(tmpid)?"selected='selected'":"")+">"+rs.getString("fullname")+"</optin>");
									}
								%>
							</select>
						</wea:item>
						<wea:item><%=SystemEnv.getHtmlLabelName(602,user.getLanguage())%></wea:item>
						<wea:item>
							<select id="customerStatus" name="customerStatus" class="InputStyle">
								<option value=""><%=SystemEnv.getHtmlLabelName(332,user.getLanguage())%></option>
								<%
									rs.executeSql("select id , fullname from CRM_CustomerStatus");
									while(rs.next()){
										String tmpid = rs.getString("id");
										if(CRMSearchComInfo.getCustomerStatus().equals(tmpid) ||customerStatus.equals(tmpid)){
											out.println("<option value='"+tmpid+"' selected='selected' >"+rs.getString("fullname")+"</optin>");
										}else{
											out.println("<option value='"+tmpid+"'>"+rs.getString("fullname")+"</optin>");
										}
									}
								%>
							</select>
						</wea:item>
						<%}else if(cmd.equals("project")){%>
						<wea:item><%=SystemEnv.getHtmlLabelName(432,user.getLanguage())%></wea:item>
						<wea:item>
							<select class="InputStyle" name="workType" id="workType">
								<option value=""><%=SystemEnv.getHtmlLabelName(332,user.getLanguage())%></option>
								<%while(WorkTypeComInfo.next()){%>
									<option value="<%=WorkTypeComInfo.getWorkTypeid()%>" <%=workType.equals(WorkTypeComInfo.getWorkTypeid())?"selected":""%>><%=WorkTypeComInfo.getWorkTypename()%></option>
								<%}%>
							</select>
						</wea:item>
						<wea:item><%=SystemEnv.getHtmlLabelName(587,user.getLanguage())%></wea:item>
						<wea:item>
							<select id="projectStatus" name="projectStatus" class=InputStyle>
								<option value=""><%=SystemEnv.getHtmlLabelName(332,user.getLanguage())%></option>
								<%while(ProjectStatusComInfo.next()){%>
									<option value="<%=ProjectStatusComInfo.getProjectStatusid()%>" <%=projectStatus.equals(ProjectStatusComInfo.getProjectStatusid())?"selected":""%>><%=ProjectStatusComInfo.getProjectStatusdesc()%></option>
								<%}%>
							</select>
						</wea:item>
						<%}%>
					</wea:group>
					<wea:group context="">
						<wea:item type="toolbar">
							<input type="button" value="<%=SystemEnv.getHtmlLabelName(197,user.getLanguage())%>" class="e8_btn_submit" onclick="onBtnSearchClick()"/>
							<input type="button" value="<%=SystemEnv.getHtmlLabelName(2022,user.getLanguage())%>" class="e8_btn_cancel" onclick="resetCondtion();resetSelect()"/>
							<input type="button" value="<%=SystemEnv.getHtmlLabelName(31129,user.getLanguage())%>" class="e8_btn_cancel" id="cancel"/>
						</wea:item>
					</wea:group>
				</wea:layout>
			</div>
		</form>
		<div id="contentDiv" style="position:absolute!important;top:120px!important;height:auto!important;position:relative;height:100%;bottom:4px;width:100%;overflow:auto;">
			<div class="xTable_message" style="top:25%;left:43%"><%=SystemEnv.getHtmlLabelName(19205,user.getLanguage())%></div>
		</div>
		<div id="box_org_tree" class="box_org_tree"></div>
		<script type="text/javascript">
			var cmd = "<%=cmd%>";
			var sorgid = "<%=sorgid%>";
			var shownum = "<%=shownum%>";
			var showName = "<%=showName%>";
			var showtype = "<%=showtype%>";
			var showmode = "<%=showmode%>";
			var isShow = ";;P";
			
			var status = "<%=status%>";
			var docStatus = "<%=docStatus%>";
			var customerType = "<%=customerType%>";
			var customerStatus = "<%=customerStatus%>";
			var workType = "<%=workType%>";
			var projectStatus = "<%=projectStatus%>";
			var data = {};
			
			function showChart(){
				if (typeof onBtnSearchClick != "undefined" && onBtnSearchClick instanceof Function) {
					$("#topTitle").topMenuTitle({searchFn:onBtnSearchClick});
				}
				window.chart = new MFChart();
				var adapter = {
					"id": "id",
					"pid": "pid",
					"type": "type",
					"logo": "logo",
					"name": "name",
					"title": "title",
					"showNum":"true",
					"num":"num",
					"nTitle":"nTitle",
					"oDisplay":"oDisplay",
					"subRCount":"subRCount",
					"subTitle":"subTitle",
					"cOnclick":"cOnclick",
					"sOnclick":"sOnclick",
					"hasChild":"hasChild",
					"needPlus":"needPlus"
				};
				var DemoOption = {
					"adapter": adapter,
					"htmlContent" : chart.htmlContent,
					"onCreateAllTreeCallback" : chart.onCreateAllTreeCallback,
					"addEventToNode" : chart.addEventToNode,
					"createHtmlContent" : chart.createHtmlContent,
					"showtype" : showtype,
					"shownum" : shownum
				};
				window.CO = new CreateOrgchartBS($.extend({
					"orgType":showmode,
					"data":data, 		
					"wrap":$("#box_org_tree")
				}, DemoOption));
				window.CO.init();
				doDel();
				window.chart.isWrapDraggableSubCtrl = false;
				window.chart.isWrapDraggable = false;
				_jQuery(".main_table_company").css("cssText","margin-top:14px!important;");
				$("#contentDiv").hide();
			}
			
			function initData(){
				$("#contentDiv").show();
				var ajax = ajaxinit();
				ajax.open("POST", on.ajaxUrl(), true);
				ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
				ajax.send(encodeURI("cmd=initChart&arg0="+sorgid+"&arg1="+shownum+"&arg2="+showName+"&arg3=<%=String.valueOf(isPOrg)%>&arg4="+status+"&arg5="+docStatus+"&arg6="+customerType+"&arg7="+customerStatus+"&arg8="+workType+"&arg9="+projectStatus+"&arg10="+cmd+"&arg11=;;P"));
				ajax.onreadystatechange = function() {
					if (ajax.readyState == 4 && ajax.status == 200) {
						try{
							var result = jQuery.trim(ajax.responseText);
							if(result && result != ""){
								data = jQuery.parseJSON(result);
								showChart();
							}
						}catch(e){
							return false;
						}
					}
				}
			}
			
			_jQuery(function(){
				initData();
			});
		</script>
	</body>
</html>