organizationTree2.jsp
5.46 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
<%@ page language="java" contentType="text/html; charset=GBK" %>
<%@ page import="weaver.general.Util" %>
<%@ page import="weaver.hrm.company.*" %>
<%@ page import="weaver.hrm.performance.goal.*" %>
<%@ page import="java.util.*" %>
<jsp:useBean id="compInfo" class="weaver.hrm.company.CompanyComInfo" scope="page" />
<jsp:useBean id="subCompInfo" class="weaver.hrm.company.SubCompanyComInfo" scope="page" />
<%@ include file="/systeminfo/init.jsp" %>
<%
String imagefilename = "/images/hdHRM.gif";
String titlename = SystemEnv.getHtmlLabelName(18041,user.getLanguage()) + " - " + SystemEnv.getHtmlLabelName(18043,user.getLanguage());
String needfav ="1";
String needhelp ="";
%>
<%
String companyIcon = "/images/treeimages/global16.gif";
String flowName = GoalUtil.getCheckFlow(0,"0");
%>
<HTML>
<HEAD>
<link type="text/css" rel="stylesheet" href="/css/Weaver.css">
<link type="text/css" rel="stylesheet" href="/css/xtree2.css" />
<style>
TABLE.Shadow A {
COLOR: #333; TEXT-DECORATION: none
}
TABLE.Shadow A:hover {
COLOR: #333; TEXT-DECORATION: none
}
TABLE.Shadow A:link {
COLOR: #333; TEXT-DECORATION: none
}
TABLE.Shadow A:visited {
TEXT-DECORATION: none
}
</style>
<script type="text/javascript" src="/js/xloadtree/xtree4goal.js"></script>
<script type="text/javascript" src="/js/xloadtree/xloadtree4goal.js"></script>
<script type="text/javascript" src="/js/xmlextras.js"></script>
</head>
<body style="padding:5px">
<%@ include file="/systeminfo/RightClickMenuConent.jsp" %>
<%
%>
<%@ include file="/systeminfo/RightClickMenu.jsp" %>
<script type="text/javascript">
webFXTreeConfig.blankIcon = "/images/xp2/blank.png";
webFXTreeConfig.lMinusIcon = "/images/xp2/Lminus.png";
webFXTreeConfig.lPlusIcon = "/images/xp2/Lplus.png";
webFXTreeConfig.tMinusIcon = "/images/xp2/Tminus.png";
webFXTreeConfig.tPlusIcon = "/images/xp2/Tplus.png";
webFXTreeConfig.iIcon = "/images/xp2/I.png";
webFXTreeConfig.lIcon = "/images/xp2/L.png";
webFXTreeConfig.tIcon = "/images/xp2/T.png";
var tree = new WebFXTree('<%=compInfo.getCompanyname("1")%>','setCompany(0);','','<%=companyIcon%>','<%=companyIcon%>');
<%out.println(subCompInfo.getSubCompanyTreeJSByComp2());%>
document.write(tree);
tree.expand();
</script>
<FORM NAME=SearchForm STYLE="margin-bottom:0" action="" method=post target="contentframe">
<input class=inputstyle type="hidden" name="resourceids" >
<input class=inputstyle type="hidden" name="tabid" >
<input class=inputstyle type="hidden" name="nodeid" >
<input class=inputstyle type="hidden" name="companyid" >
<input class=inputstyle type="hidden" name="subcompanyid" >
<input class=inputstyle type="hidden" name="departmentid" >
<input class=inputstyle type="hidden" name="hrmid" >
<input class=inputstyle type="hidden" name="objId">
<input class=inputstyle type="hidden" name="type_d" >
</FORM>
</body>
</html>
<script type="text/javascript">
function doSearch(id)
{
//setResourceStr();
//document.all("resourceids").value = resourceids.substring(1) ;
var iframeSrc = parent.document.getElementById("contentframe").src;
if(iframeSrc.indexOf("Goal")!=-1){
document.SearchForm.action = "/hrm/performance/goal/myGoalList.jsp";
}
else if (iframeSrc.indexOf("Plan")!=-1)
{
document.SearchForm.action = "/hrm/performance/targetPlan/MyPlanMain.jsp";
}
else if (iframeSrc.indexOf("Report")!=-1)
{
document.SearchForm.action = "/hrm/performance/targetReport/MyReportMain.jsp";
}
else if (iframeSrc.indexOf("Check")!=-1)
{
document.SearchForm.action = "/hrm/performance/targetCheck/MyCheckMain.jsp";
}
//setResourceStr();
//document.all("resourceids").value = resourceids.substring(1) ;
//alert(id);
document.SearchForm.submit();
}
function setCompany(id){
//===================================================================================added by hubo,TD3830
var iframeSrc = parent.document.getElementById("contentframe").src;
if(iframeSrc=="MyPlanMain.jsp" || iframeSrc=="MyReportMain.jsp" || iframeSrc=="MyCheckMain.jsp"){
if(id=="0") return false;
}
//===================================================================================
document.all("type_d").value="0" //
document.all("departmentid").value=""
document.all("subcompanyid").value=""
document.all("companyid").value=id
document.all("objId").value=id
document.all("tabid").value=0
doSearch(id)
}
function setSubcompany(nodeid){
document.all("type_d").value="1" //ֲ
subid=nodeid.substring(nodeid.lastIndexOf("_")+1)
document.all("companyid").value=""
document.all("departmentid").value=""
document.all("subcompanyid").value=subid
document.all("objId").value=subid
document.all("tabid").value=0
document.all("nodeid").value=nodeid
doSearch(subid)
}
function setDepartment(nodeid){
document.all("type_d").value="2" //
deptid=nodeid.substring(nodeid.lastIndexOf("_")+1)
document.all("subcompanyid").value=""
document.all("companyid").value=""
document.all("departmentid").value=deptid
document.all("objId").value=deptid
document.all("tabid").value=0
document.all("nodeid").value=nodeid
doSearch(deptid)
}
function setHrm(nodeid){
document.all("type_d").value="3" //Դ
hrmid=nodeid.substring(nodeid.lastIndexOf("_")+1)
document.all("subcompanyid").value=""
document.all("companyid").value=""
document.all("departmentid").value=""
document.all("hrmid").value=hrmid
document.all("objId").value=hrmid
document.all("tabid").value=0
document.all("nodeid").value=nodeid
doSearch(hrmid)
}
</script>