FnaInvoiceWfSetEditPage.jsp
5.25 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
<%@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("FnaInvoiceReset:Permissions", 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;
String sql = "select * from fnaInvoiceWfInfo where id = "+id;
rs.executeSql(sql);
if(rs.next()){
workflowid = rs.getInt("workflowid");
enable = 1==rs.getInt("enable");
}
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 fnaInvoiceWfInfo 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 thisGuid = UUID.randomUUID().toString();
String FnaInvoiceWfSetEditPageBaseInfoUrl = "/fna/invoice/invoiceWf/FnaInvoiceWfSetEditPageBaseInfo.jsp?id="+id;
String FnaInvoiceWfSetEditPageFieldSetUrl = "/fna/invoice/invoiceWf/FnaInvoiceWfSetEditPageFieldSetInner.jsp?thisGuid="+thisGuid+"&id="+id;
String FnaWfSetEditPageActionSetUrl = "/fna/invoice/invoiceWf/FnaInvoiceWfSetEditPageActionSet.jsp?id="+id;
// String FnaWfSetEditPageCheckRuleUrl = "/fna/invoice/invoiceWf/FnaInvoiceWfSetEditPageCheckRuleSet.jsp?id="+id;
String ysxxUrl = "";
if(tabId == 1){
ysxxUrl = FnaInvoiceWfSetEditPageBaseInfoUrl;
tabId1Class = "current";
}else if(tabId == 2){
ysxxUrl = FnaInvoiceWfSetEditPageFieldSetUrl;
tabId2Class = "current";
}else if(tabId == 3){
ysxxUrl = FnaWfSetEditPageActionSetUrl;
tabId3Class = "current";
}
// else if(tabId == 4){
// ysxxUrl = FnaWfSetEditPageCheckRuleUrl;
// tabId4Class = "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="<%=FnaInvoiceWfSetEditPageBaseInfoUrl %>" target="tabcontentframe1">
<%=SystemEnv.getHtmlLabelName(83283,user.getLanguage())%><!-- 概览 -->
</a>
</li>
<li class="<%=tabId2Class %>">
<a id="tabId2" href="<%=FnaInvoiceWfSetEditPageFieldSetUrl %>" 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>
<%-- <li class="<%=tabId4Class %>"> --%>
<%-- <a id="tabId4" href="<%=FnaWfSetEditPageCheckRuleUrl %>" target="tabcontentframe1"> --%>
<%-- <%=SystemEnv.getHtmlLabelName(83194,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>