SubcompanyDocCategoryBrowser.jsp
5.7 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
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ page import="weaver.workflow.field.SubcompanyDocCategoryUtil" %>
<jsp:useBean id="CompanyComInfo" class="weaver.hrm.company.CompanyComInfo" scope="page" />
<jsp:useBean id="SubcompanyDocCategoryManager" class="weaver.workflow.field.SubcompanyDocCategoryManager" scope="page" />
<%@ include file="/systeminfo/init_wev8.jsp" %>
<%
String imagefilename = "/images/hdMaintenance_wev8.gif";
String titlename = SystemEnv.getHtmlLabelName(19207,user.getLanguage());
String needfav ="1";
String needhelp ="";
%>
<%
if(!HrmUserVarify.checkUserRight("FieldManage:All", user)){
response.sendRedirect("/notice/noright.jsp");
return;
}
int fieldId = Util.getIntValue(request.getParameter("fieldId"),0);
int isBill = Util.getIntValue(request.getParameter("isBill"),0);
int selectValue = Util.getIntValue(request.getParameter("selectValue"),-1);
String companyIcon = "/images/treeimages/global16_wev8.gif";
String docPath = SubcompanyDocCategoryUtil.getDocPath(fieldId,isBill,selectValue,0,"0");
%>
<HTML>
<HEAD>
<link type="text/css" rel="stylesheet" href="/css/Weaver_wev8.css">
<link type="text/css" rel="stylesheet" href="/js/xloadtree/xtree_wev8.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/xtree4SubcompanyDocCategory_wev8.js"></script>
<script type="text/javascript" src="/js/xloadtree/xloadtree4SubcompanyDocCategory_wev8.js"></script>
<script type="text/javascript" src="/js/xmlextras_wev8.js"></script>
</head>
<body>
<%@ include file="/systeminfo/RightClickMenuConent_wev8.jsp" %>
<%
%>
<%@ include file="/systeminfo/RightClickMenu_wev8.jsp" %>
<table width=100% height=100% border="0" cellspacing="0" cellpadding="0">
<colgroup>
<col width="10">
<col width="">
<col width="10">
<tr>
<td height="10" colspan="3"></td>
</tr>
<tr>
<td></td>
<td valign="top">
<TABLE class="Shadow">
<tr>
<td valign="top">
<!--=================================-->
<TABLE class=ListStyle cellspacing=1>
<TR class=Header>
<TH width="50%"><%=SystemEnv.getHtmlLabelName(17871,user.getLanguage())%></TH>
<th width="50%"><%=SystemEnv.getHtmlLabelName(19207,user.getLanguage())%></th>
</TR>
<TR class=Line>
<TD colSpan="2"></TD>
</TR>
<tr>
<td colspan="2" id="treeTD">
<script type="text/javascript">
webFXTreeConfig.blankIcon = "/images/xp2/blank_wev8.png";
webFXTreeConfig.lMinusIcon = "/images/xp2/Lminus_wev8.png";
webFXTreeConfig.lPlusIcon = "/images/xp2/Lplus_wev8.png";
webFXTreeConfig.tMinusIcon = "/images/xp2/Tminus_wev8.png";
webFXTreeConfig.tPlusIcon = "/images/xp2/Tplus_wev8.png";
webFXTreeConfig.iIcon = "/images/xp2/I_wev8.png";
webFXTreeConfig.lIcon = "/images/xp2/L_wev8.png";
webFXTreeConfig.tIcon = "/images/xp2/T_wev8.png";
var rti;
var tree = new WebFXTree('<%=CompanyComInfo.getCompanyname("1")%>','0|0|<%=docPath%>','','<%=companyIcon%>','<%=companyIcon%>');
<%out.println(SubcompanyDocCategoryManager.getSubCompanyTreeJSByComp(fieldId,isBill,selectValue));%>
document.write(tree);
//rti.expand();
</script>
</td>
</tr>
</table>
<!--=================================-->
</td>
</tr>
</TABLE>
</td>
<td></td>
</tr>
<tr>
<td height="10" colspan="3"></td>
</tr>
</table>
</body>
</html>
<script type="text/javascript">
function onShowCatalog(flowType,obj){
if(flowType=="0"){
var result = window.showModalDialog("/systeminfo/BrowserMain.jsp?url=/docs/category/MultiCategorySingleBrowser.jsp");
}else if(flowType=="1"){
var result = window.showModalDialog("/systeminfo/BrowserMain.jsp?url=/docs/category/MultiCategorySingleBrowser.jsp");
}
if(result==null) return false;
var vary0 = wuiUtil.getJsonValueByIndex(result, 0);
var vary1 = wuiUtil.getJsonValueByIndex(result, 1);
var vary2 = wuiUtil.getJsonValueByIndex(result, 2);
var vary3 = wuiUtil.getJsonValueByIndex(result, 3);
var vary4 = wuiUtil.getJsonValueByIndex(result, 4);
var docPath=vary2;
var docCategory=vary3+","+vary4+","+vary1;
if(typeof(vary2)=="undefined"){
docPath="";
}
if(typeof(vary3)=="undefined"){
docCategory="";
}
var arrayObj = obj.split("|");
if(arrayObj[1]=="3"){
location.href = "SubcompanyDocCategoryOperation.jsp?fieldId=<%=fieldId%>&isBill=<%=isBill%>&selectValue=<%=selectValue%>&syc=y&flowType="+flowType+"&objId="+arrayObj[0]+"&objType="+arrayObj[1]+"&docCategory="+docCategory+"&docPath="+docPath;
}else{
//if(confirm("<%=SystemEnv.getHtmlLabelName(18260,user.getLanguage())%>?")){
// location.href = "SubcompanyDocCategoryOperation.jsp?fieldId=<%=fieldId%>&isBill=<%=isBill%>&selectValue=<%=selectValue%>&syc=y&flowType="+flowType+"&objId="+arrayObj[0]+"&objType="+arrayObj[1]+"&docCategory="+docCategory+"&docPath="+docPath;
//}else{
// location.href = "SubcompanyDocCategoryOperation.jsp?fieldId=<%=fieldId%>&isBill=<%=isBill%>&selectValue=<%=selectValue%>&syc=n&flowType="+flowType+"&objId="+arrayObj[0]+"&objType="+arrayObj[1]+"&docCategory="+docCategory+"&docPath="+docPath;
//}
var strurl = "SubcompanyDocCategoryOperation.jsp?fieldId=<%=fieldId%>&isBill=<%=isBill%>&selectValue=<%=selectValue%>&syc=n&flowType="+flowType+"&objId="+arrayObj[0]+"&objType="+arrayObj[1]+"&docCategory="+docCategory+"&docPath="+docPath;
top.Dialog.confirm("<%=SystemEnv.getHtmlLabelName(18260,user.getLanguage())%>?", function (){
strurl = "SubcompanyDocCategoryOperation.jsp?fieldId=<%=fieldId%>&isBill=<%=isBill%>&selectValue=<%=selectValue%>&syc=y&flowType="+flowType+"&objId="+arrayObj[0]+"&objType="+arrayObj[1]+"&docCategory="+docCategory+"&docPath="+docPath;
}, function () {}, 320, 90,true);
location.href = strurl;
}
}
</script>