WorkflowAddRequestDocBody.jsp
6.85 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
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ include file="/systeminfo/init_wev8.jsp" %>
<%@ page import="weaver.general.Util" %>
<LINK href="/css/Weaver_wev8.css" type=text/css rel=STYLESHEET>
<SCRIPT language="javascript" src="/js/weaver_wev8.js"></script>
<jsp:useBean id="WorkflowComInfo" class="weaver.workflow.workflow.WorkflowComInfo" scope="page" />
<style>
#tabPane tr td{padding-top:2px}
#monthHtmlTbl td,#seasonHtmlTbl td{cursor:hand;text-align:center;padding:0 2px 0 2px;color:#333;text-decoration:underline}
.cycleTD{font-family:MS Shell Dlg,Arial;background-image:url(/images/tab2_wev8.png);cursor:hand;font-weight:bold;text-align:center;color:#666;border-bottom:1px solid #879293;}
.cycleTDCurrent{font-family:MS Shell Dlg,Arial;padding-top:2px;background-image:url(/images/tab.active2_wev8.png);cursor:hand;font-weight:bold;text-align:center;color:#666}
.seasonTDCurrent,.monthTDCurrent{color:black;font-weight:bold;background-color:#CCC}
#subTab{border-bottom:1px solid #879293;padding:0}
</style>
</HEAD>
<%
String workflowid = Util.null2String(request.getParameter("workflowid"));
String workflowname = WorkflowComInfo.getWorkflowname(workflowid);
workflowname = Util.processBody(workflowname,user.getLanguage()+"");
int isagent=Util.getIntValue(request.getParameter("isagent"),0);
//TopTitle.jsp 页面参数
String imagefilename = "/images/hdMaintenance_wev8.gif";
String titlename = SystemEnv.getHtmlLabelName(648,user.getLanguage())+":"
+SystemEnv.getHtmlLabelName(125,user.getLanguage())+" - "+Util.toScreen(workflowname,user.getLanguage())+" - " +SystemEnv.getHtmlLabelName(125,user.getLanguage())+"<span id='requestmarkSpan'></span>";
String needfav ="1";
String needhelp ="";
%>
<script language=javascript>
/*deleted by cyril on 2008-06-06 for TD:8835
function protectCreatorFlow(){
event.returnValue="<%=SystemEnv.getHtmlLabelName(18674,user.getLanguage())%>";
}
*/
/**
* added by cyril on 2008-07-02 for TD:8921
*/
function resetbannerByCancel() {
for(i=0;i<=1;i++){
document.getElementById("oTDtype_"+i).background="/images/tab2_wev8.png";
document.getElementById("oTDtype_"+i).className="cycleTD";
}
document.getElementById("oTDtype_"+1).background="/images/tab.active2_wev8.png";
document.getElementById("oTDtype_"+1).className="cycleTDCurrent";
}
/** END added by cyril on 2008-07-02 for TD:8921 */
function resetbanner(objid,typeid){
/**added by cyril on 2008-07-02 for TD:8921**/
try{
document.getElementById("iframes").contentWindow.document.getElementById("onbeforeunload_protectDoc").click();
if(document.getElementById("iframes").contentWindow.document.getElementById("onbeforeunload_protectDoc_return").value=='0') {
return;
}
document.getElementById("iframes").contentWindow.document.body.onbeforeunload = null;
}
catch(e){}
/**end added by cyril on 2008-07-02 for TD:8921**/
var o = document.iframes.document;
for(i=0;i<=1;i++){
document.getElementById("oTDtype_"+i).background="/images/tab2_wev8.png";
document.getElementById("oTDtype_"+i).className="cycleTD";
}
document.getElementById("oTDtype_"+objid).background="/images/tab.active2_wev8.png";
document.getElementById("oTDtype_"+objid).className="cycleTDCurrent";
if (objid=="0")
{
requestid=document.getElementById("requestIdDoc").value;
//正文转出时需要提醒是否保存修改 o.body.onbeforeunload = null;//by cyril on 2008-06-27 for td:8828
if (requestid!="")
o.location="ViewRequest.jsp?requestid="+requestid+"&isagent=<%=isagent%>&fromFlowDoc=1";
else
o.location="AddRequest.jsp?workflowid=<%=workflowid%>&isagent=<%=isagent%>&fromFlowDoc=1";
}
else
{
document.getElementById("iframes").contentWindow.document.body.onbeforeunload = null;//by cyril on 2008-06-27 for td:8828
document.getElementById("iframes").contentWindow.document.getElementById("createdoc").click();
}
}
function init(objid,typeid){
for(i=0;i<=1;i++){
document.getElementById("oTDtype_"+i).background="/images/tab2_wev8.png";
document.getElementById("oTDtype_"+i).className="cycleTD";
}
document.getElementById("oTDtype_"+objid).background="/images/tab.active2_wev8.png";
document.getElementById("oTDtype_"+objid).className="cycleTDCurrent";
var o = document.iframes.document;
o.location="AddRequest.jsp?workflowid=<%=workflowid%>&isagent=<%=isagent%>&fromFlowDoc=1";
}
function window.onload(){
var totalheight=5;
if(document.getElementById("divTopTitle")!=null){
totalheight+=document.getElementById("divTopTitle").clientHeight;
}
document.getElementById("gww_table").height=document.body.clientHeight-totalheight;
}
</script>
<body style="overflow:auto" >
<%@ include file="/systeminfo/TopTitle_wev8.jsp" %>
<%@ include file="/systeminfo/RightClickMenuConent_wev8.jsp" %>
<%@ include file="/systeminfo/RightClickMenu_wev8.jsp" %>
<%%>
<table width=100% border="0" height="95%" cellspacing="0" cellpadding="0" id="gww_table">
<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">
<!--请求的标题开始 -->
<DIV align="center">
<font style="font-size:14pt;FONT-WEIGHT: bold"><%=Util.toScreen(workflowname,user.getLanguage())%></font>
</DIV>
<!--请求的标题结束 -->
<table width="100%" height="100%" cellspacing="0" cellpadding="0">
<tr>
<td height="60">
<form name=weaver id=weaver>
<input type="hidden" name="requestIdDoc">
<table style="width:100%;height:100%" border=0 cellspacing=0 cellpadding=0 scrolling=no id="tabPane">
<colgroup>
<col width="79"></col>
<col width="79"></col>
<col width="*"></col>
</colgroup>
<TBODY>
<tr align=left height="20">
<td class="cycleTDCurrent" nowrap name="oTDtype_0" id="oTDtype_0" background="/images/tab.active2_wev8.png" width=79px align=center onmouseover="style.cursor='hand'" onclick="resetbanner(0,0)">
<b><%=SystemEnv.getHtmlLabelName(21618,user.getLanguage())%></b></td>
<td class="cycleTD" nowrap name="oTDtype_1" id="oTDtype_1" background="/images/tab2_wev8.png" width=79px align=center onmouseover="style.cursor='hand'" onclick='if ( document.getElementById("oTDtype_1").className=="cycleTD") resetbanner(1,1)'>
<b><%=SystemEnv.getHtmlLabelName(21619,user.getLanguage())%></b></td>
<td style="border-bottom:1px solid rgb(145,155,156)"> </td>
</tr>
<tr>
<td colspan="5" style="padding:0;">
<iframe src="AddRequest.jsp?workflowid=<%=workflowid%>&isagent=<%=isagent%>&fromFlowDoc=1" ID="iframes" name="iframes" frameborder="0" style="width:100%;height:100%;border-right:1px solid #879293;border-bottom:1px solid #879293;border-left:1px solid #879293;padding:10px;padding-right:0" scrolling="auto"/>
</td></tr>
</TBODY>
</table>
</form>
</td>
</tr>
</table>
</td></tr></table>
</td><td></td></tr></table>
</body>