FnaWfSetEditPage.jsp
7.65 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
<%@page import="org.json.JSONObject"%>
<%@page import="weaver.fna.budget.BudgetYear"%>
<%@page import="weaver.fna.budget.BudgetHandler"%>
<%@page import="weaver.fna.general.FnaBudgetLeftRuleSet"%>
<%@page import="weaver.hrm.HrmUserVarify"%>
<%@page import="weaver.general.Util"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ include file="/systeminfo/init_wev8.jsp" %>
<%@ page import="java.util.*" %>
<%@page import="weaver.conn.RecordSet"%>
<jsp:useBean id="pack" class="weaver.general.ParameterPackage" scope="page"/>
<%
if(!HrmUserVarify.checkUserRight("CostControlProcedure:set", user)){
response.sendRedirect("/notice/noright.jsp") ;
return ;
}
%>
<HTML><HEAD>
<script src="/js/tabs/jquery.tabs.extend_wev8.js"></script>
<link type="text/css" href="/js/tabs/css/e8tabs1_wev8.css" rel="stylesheet" />
<link rel="stylesheet" href="/css/ecology8/request/searchInput_wev8.css" type="text/css" />
<script type="text/javascript" src="/js/ecology8/request/searchInput_wev8.js"></script>
<link rel="stylesheet" href="/css/ecology8/request/seachBody_wev8.css" type="text/css" />
<link rel="stylesheet" href="/css/ecology8/request/hoverBtn_wev8.css" type="text/css" />
<script type="text/javascript" src="/js/ecology8/request/hoverBtn_wev8.js"></script>
<script type="text/javascript" src="/js/ecology8/request/titleCommon_wev8.js"></script>
<!-- 自定义设置tab页 -->
<%
int id = Util.getIntValue(request.getParameter("id"));
int tabId = Util.getIntValue(request.getParameter("tabId"), 1);
RecordSet rs = new RecordSet();
int workflowid = 0;
boolean enable = false;
int fnaWfTypeColl = 0;
int fnaWfTypeReverse = 0;
int fnaWfTypeReverseAdvance = 0;
String sql = "select * from fnaFeeWfInfo where id = "+id;
rs.executeSql(sql);
if(rs.next()){
workflowid = rs.getInt("workflowid");
enable = 1==rs.getInt("enable");
fnaWfTypeColl = rs.getInt("fnaWfTypeColl");
fnaWfTypeReverse = rs.getInt("fnaWfTypeReverse");
fnaWfTypeReverseAdvance = rs.getInt("fnaWfTypeReverseAdvance");
}
boolean haveApplicationBudget = false;//是否有预算申请流程
sql = "select FIELDID from fnaFeeWfInfoField where ISDTL = 0 and FIELDTYPE = 2 and DTLNUMBER = 0 and MAINID = "+id;
rs.executeSql(sql);
if(rs.next() && rs.getInt("FIELDID") > 0){
haveApplicationBudget = true;
}
String requestName = SystemEnv.getHtmlLabelName(83184, user.getLanguage());
rs.executeSql("select b.workflowname,case when (b.version is null) then 1 else b.version end versionName from fnaFeeWfInfo a join workflow_base b on a.workflowid=b.id where a.id = " + id);
if(rs.next()){
requestName = Util.null2String(rs.getString("workflowname"));
requestName += " V" + rs.getString("versionName");
}
String tabId1Class = "";
String tabId2Class = "";
String tabId3Class = "";
String tabId4Class = "";
String tabId5Class = "";
String tabId6Class = "";
String tabId7Class = "";
String tabId8Class = "";
String FnaWfSetEditPageBaseInfoUrl = "/fna/budget/FnaWfSetEditPageBaseInfo.jsp?id="+id;
String FnaWfSetEditPageFieldSetUrl = "/fna/budget/FnaWfSetEditPageFieldSet.jsp?id="+id;
String FnaWfSetEditPageActionSetUrl = "/fna/budget/FnaWfSetEditPageActionSet.jsp?id="+id;
String FnaWfSetEditPageLogicSetApplicationUrl = "/fna/budget/FnaWfSetEditPageLogicSetApplication.jsp?id="+id;
String FnaWfSetEditPageLogicSetUrl = "/fna/budget/FnaWfSetEditPageLogicSet.jsp?id="+id;
String FnaWfSetEditPageLogicSetReverseUrl = "/fna/budget/FnaWfSetEditPageLogicSetReverse.jsp?id="+id;
String FnaWfSetEditPageLogicSetAdvanceReverseUrl = "/fna/budget/FnaWfSetEditPageLogicSetAdvanceReverse.jsp?id="+id;
String FnaWfSetEditPageCtrlUrl = "/fna/budget/FnaWfSetEditPageCtrl.jsp?id="+id;
String ysxxUrl = "";
if(tabId == 1){
ysxxUrl = FnaWfSetEditPageBaseInfoUrl;
tabId1Class = "current";
}else if(tabId == 2){
ysxxUrl = FnaWfSetEditPageFieldSetUrl;
tabId2Class = "current";
}else if(tabId == 3){
ysxxUrl = FnaWfSetEditPageActionSetUrl;
tabId3Class = "current";
}else if(tabId == 4){
ysxxUrl = FnaWfSetEditPageLogicSetApplicationUrl;
tabId4Class = "current";
}else if(tabId == 5){
ysxxUrl = FnaWfSetEditPageLogicSetUrl;
tabId5Class = "current";
}else if(tabId == 6){
ysxxUrl = FnaWfSetEditPageLogicSetReverseUrl;
tabId6Class = "current";
}else if(tabId == 7){
ysxxUrl = FnaWfSetEditPageLogicSetAdvanceReverseUrl;
tabId7Class = "current";
}else if(tabId == 8){
ysxxUrl = FnaWfSetEditPageCtrlUrl;
tabId8Class = "current";
}
%>
</head>
<BODY scroll="no">
<div class="e8_box demo2">
<div class="e8_boxhead">
<div class="div_e8_xtree" id="div_e8_xtree"></div>
<div class="e8_tablogo" id="e8_tablogo"></div>
<div class="e8_ultab">
<div class="e8_navtab" id="e8_navtab">
<span id="objName"></span>
</div>
<div>
<ul class="tab_menu">
<li class="<%=tabId1Class %>">
<a id="tabId1" href="<%=FnaWfSetEditPageBaseInfoUrl %>" target="tabcontentframe1">
<%=SystemEnv.getHtmlLabelName(83283,user.getLanguage())%><!-- 概览 -->
</a>
</li>
<li class="<%=tabId2Class %>">
<a id="tabId2" href="<%=FnaWfSetEditPageFieldSetUrl %>" target="tabcontentframe1">
<%=SystemEnv.getHtmlLabelName(33084,user.getLanguage())%><!-- 字段对应 -->
</a>
</li>
<li class="<%=tabId3Class %>">
<a id="tabId3" href="<%=FnaWfSetEditPageActionSetUrl %>" target="tabcontentframe1">
<%=SystemEnv.getHtmlLabelName(33085,user.getLanguage())%><!-- 动作设置 -->
</a>
</li>
<%if(haveApplicationBudget){ %>
<li class="<%=tabId4Class %>">
<a id="tabId4" href="<%=FnaWfSetEditPageLogicSetApplicationUrl %>" target="tabcontentframe1">
<%=SystemEnv.getHtmlLabelName(84634,user.getLanguage())%><!-- 预申请预算校验 -->
</a>
</li>
<%} %>
<li class="<%=tabId5Class %>">
<a id="tabId5" href="<%=FnaWfSetEditPageLogicSetUrl %>" target="tabcontentframe1">
<%=SystemEnv.getHtmlLabelName(83363,user.getLanguage())%><!-- 预算校验 -->
</a>
</li>
<%if(fnaWfTypeReverse > 0){ %>
<li class="<%=tabId6Class %>">
<a id="tabId6" href="<%=FnaWfSetEditPageLogicSetReverseUrl %>" target="tabcontentframe1">
<%=SystemEnv.getHtmlLabelName(83364,user.getLanguage())%><!-- 冲销校验 -->
</a>
</li>
<%} %>
<%if(fnaWfTypeReverseAdvance == 1){ %>
<li class="<%=tabId7Class %>">
<a id="tabId7" href="<%=FnaWfSetEditPageLogicSetAdvanceReverseUrl %>" target="tabcontentframe1">
<%=SystemEnv.getHtmlLabelName(128569,user.getLanguage())%><!-- 预付款冲销校验 -->
</a>
</li>
<%} %>
<li class="<%=tabId8Class %>">
<a id="tabId8" href="<%=FnaWfSetEditPageCtrlUrl %>" target="tabcontentframe1">
<%=SystemEnv.getHtmlLabelName(125921,user.getLanguage())%><!-- 控制节点 -->
</a>
</li>
</ul>
<div id="rightBox" class="e8_rightBox">
</div>
</div>
</div>
</div>
<div class="tab_box">
<div>
<iframe src="<%=ysxxUrl %>" onload="update();" id="tabcontentframe1" name="tabcontentframe1" class="flowFrame" frameborder="0" height="100%" width="100%;"></iframe>
</div>
</div>
</div>
<script type="text/javascript">
function onCancel(){
var dialog = parent.getDialog(window);
dialog.close();
}
jQuery('.e8_box').Tabs({
getLine:1,
iframe:"tabcontentframe1",
mouldID:"<%=MouldIDConst.getID("fna") %>",
objName:<%=JSONObject.quote(requestName) %>,
staticOnLoad:true
});
</script>
</body>
</html>