DspProcessing.jsp
9.21 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
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
<%@ page language="java" contentType="text/html; charset=UTF-8" %> <%@ include file="/systeminfo/init_wev8.jsp" %>
<%@ page import="weaver.general.Util" %>
<jsp:useBean id="ProcessingTypeComInfo" class="weaver.proj.Maint.ProcessingTypeComInfo" scope="page" />
<jsp:useBean id="PlanSortComInfo" class="weaver.proj.Maint.PlanSortComInfo" scope="page" />
<jsp:useBean id="RecordSet" class="weaver.conn.RecordSet" scope="page" />
<jsp:useBean id="PlanInfoComInfo" class="weaver.proj.Maint.PlanInfoComInfo" scope="page" />
<jsp:useBean id="DocComInfo" class="weaver.docs.docs.DocComInfo" scope="page" />
<jsp:useBean id="ResourceComInfo" class="weaver.hrm.resource.ResourceComInfo" scope="page"/>
<HTML><HEAD>
<LINK href="/css/Weaver_wev8.css" type=text/css rel=STYLESHEET>
</HEAD>
<%
String id = Util.null2String(request.getParameter("id"));
RecordSet.executeProc("Prj_Processing_SelectByID",id);
String prjid="";
String planid="";
String title="";
String content="";
String type="";
String docid="";
String parentids="";
String submitdate="";
String submittime="";
String submiter ="";
String updatedate="";
String updatetime="";
String updater="";
String isprocessed="";
String processdate="";
String processtime="";
String processor="";
if(RecordSet.next()){
prjid=Util.toScreen(RecordSet.getString("prjid"),user.getLanguage());
planid=Util.toScreen(RecordSet.getString("planid"),user.getLanguage());
title=Util.toScreen(RecordSet.getString("title"),user.getLanguage());
content=Util.toScreen(RecordSet.getString("content"),user.getLanguage());
type=Util.toScreen(RecordSet.getString("type"),user.getLanguage());
docid=Util.toScreen(RecordSet.getString("docid"),user.getLanguage());
parentids=Util.toScreen(RecordSet.getString("parentids"),user.getLanguage());
submitdate=Util.toScreen(RecordSet.getString("submitdate"),user.getLanguage());
submittime=Util.toScreen(RecordSet.getString("submittime"),user.getLanguage());
submiter=Util.toScreen(RecordSet.getString("submiter"),user.getLanguage());
updatedate=Util.toScreen(RecordSet.getString("updatedate"),user.getLanguage());
updatetime=Util.toScreen(RecordSet.getString("updatetime"),user.getLanguage());
updater=Util.toScreen(RecordSet.getString("updater"),user.getLanguage());
isprocessed=Util.toScreen(RecordSet.getString("isprocessed"),user.getLanguage());
processdate=Util.toScreen(RecordSet.getString("processdate"),user.getLanguage());
processtime=Util.toScreen(RecordSet.getString("processtime"),user.getLanguage());
processor=Util.toScreen(RecordSet.getString("processor"),user.getLanguage());
}
%>
<%
String imagefilename = "/images/hdReport_wev8.gif";
String titlename = SystemEnv.getHtmlLabelName(89,user.getLanguage())+":"+SystemEnv.getHtmlLabelName(665,user.getLanguage());
titlename = titlename + "<B>" +SystemEnv.getHtmlLabelName(125,user.getLanguage()) +":</B><A href=/hrm/resource/HrmResource.jsp?id=";
titlename = titlename + submiter +">"+Util.toScreen(ResourceComInfo.getResourcename(submiter),user.getLanguage());
titlename = titlename + "</a> "+submitdate+" "+submittime;
if(!updater.equals("")){
titlename = titlename + "<B>" +SystemEnv.getHtmlLabelName(103,user.getLanguage())+"</B><A href=/hrm/resource/HrmResource.jsp?id=";
titlename = titlename +updater+ Util.toScreen(ResourceComInfo.getResourcename(updater),user.getLanguage()) ;
titlename = titlename + "</a> "+updatedate+" "+updatetime;}
if(isprocessed.equals("1")){
titlename = titlename + "<B>" +SystemEnv.getHtmlLabelName(251,user.getLanguage())+"</B><A href=/hrm/resource/HrmResource.jsp?id=";
titlename = titlename +processor + Util.toScreen(ResourceComInfo.getResourcename(processor),user.getLanguage());
titlename = titlename + "</a> "+processdate+" "+processtime;}
String needfav ="1";
String needhelp ="";
%>
<BODY>
<%@ include file="/systeminfo/TopTitle_wev8.jsp" %>
<%@ include file="/systeminfo/RightClickMenuConent_wev8.jsp" %>
<%
if(HrmUserVarify.checkUserRight("EditProcessing:Edit",user)) {
if(!isprocessed.equals("1")){
%>
<%
RCMenu += "{"+SystemEnv.getHtmlLabelName(251,user.getLanguage())+",javascript:weaver.submit(),_self} " ;
RCMenuHeight += RCMenuHeightStep;
%>
<%
RCMenu += "{"+SystemEnv.getHtmlLabelName(93,user.getLanguage())+",EditProcessing.jsp?id="+id+",_self} " ;
RCMenuHeight += RCMenuHeightStep;
%>
<%}
}
if(HrmUserVarify.checkUserRight("AddProcessing:Add",user)) {
%>
<%
RCMenu += "{"+SystemEnv.getHtmlLabelName(117,user.getLanguage())+",AddProcessing.jsp?ProjID="+prjid+"&planid="+planid+"&parentids="+parentids+",_self} " ;
RCMenuHeight += RCMenuHeightStep;
%>
<%}%>
<%@ include file="/systeminfo/RightClickMenu_wev8.jsp" %>
<FORM id=weaver name=weaver action="/proj/process/ProcessingOperation.jsp" method=post>
<input type="hidden" name="method" value="archive">
<input type="hidden" name="id" value="<%=id%>">
<input type="hidden" name="prjid" value="<%=prjid%>">
<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=viewform>
<COLGROUP>
<COL width="100%">
<TBODY>
<TR>
<TD vAlign=top>
<TABLE class=viewform>
<COLGROUP>
<COL width="15%">
<COL width="35%">
<COL width="15%">
<COL width="35%">
<TBODY>
<TR class=spacing>
<TD class=line1 colSpan=4></TD></TR>
<TR>
<TD><%=SystemEnv.getHtmlLabelName(407,user.getLanguage())%></TD>
<TD class=Field>
<a href="/proj/plan/DspPlan.jsp?id=<%=planid%>"><%=PlanInfoComInfo.getPlanInfoSubject(planid)%></a>
</TD>
<TD><%=SystemEnv.getHtmlLabelName(2239,user.getLanguage())%></TD>
<TD class=Field>
<%=ProcessingTypeComInfo.getProcessingTypename(RecordSet.getString("type"))%>
</TD></tr>
<TR class=spacing>
<TD class=line colSpan=4></TD></TR>
<tr>
<TD><%=SystemEnv.getHtmlLabelName(344,user.getLanguage())%></TD>
<TD class=Field colspan=3><%=title%></TD>
</TR> <TR class=spacing>
<TD class=line colSpan=4></TD></TR>
<tr>
<td><%=SystemEnv.getHtmlLabelName(844,user.getLanguage())%></td>
<td class=field colspan=3>
<a href="/docs/docs/DocDsp.jsp?id=<%=docid%>"><%=Util.toScreen(DocComInfo.getDocname(docid),user.getLanguage())%></a>
</td>
</tr> <TR class=spacing>
<TD class=line colSpan=4></TD></TR>
<TR>
<tr>
<td colspan=4><%=SystemEnv.getHtmlLabelName(504,user.getLanguage())%></td>
</tr> <TR class=spacing>
<TD class=line colSpan=4></TD></TR>
<tr>
<td colspan=4 class=field><%=content%>
</tr> <TR class=spacing>
<TD class=line1 colSpan=4></TD></TR>
</TBODY></TABLE></TD>
</TR></TBODY></TABLE>
<TABLE class=liststyle cellspacing=1 >
<COLGROUP>
<COL width="50%">
<COL width="10%">
<COL width="10%">
<COL width="10%">
<COL width="20%">
<TBODY>
<TR class=spacing>
<TD class=line1 colSpan=5></TD></TR>
<tr>
<%
String subparentids="";
int tmppos = parentids.indexOf(",");
tmppos = parentids.indexOf(",",tmppos+1);
if(tmppos==-1)
subparentids = parentids;
else
subparentids = parentids.substring(0,tmppos);
char flag=2;
RecordSet.executeProc("Prj_Processing_SelectAll",prjid+flag+"0%");
int needchange = 0;
while(RecordSet.next()){
String listspace = "";
String parentids1 = RecordSet.getString("parentids");
if(parentids1.indexOf(subparentids)==-1) continue;
int curpos = parentids1.indexOf(",");
curpos = parentids1.indexOf(",",curpos+1);
while(curpos!=-1){
listspace +="  ";
curpos = parentids1.indexOf(",",curpos+1);
}
try{
if(needchange ==0){
needchange = 1;
%>
<TR class=datalight>
<%
}else{
needchange=0;
%><TR class=datadark>
<% }
%>
<TD><%=listspace%>
<%
if(!listspace.equals("")){
%>
<img border=0 src="/images/ArrowRightBlue_wev8.gif"></img>
<%}%>
<%
if(!parentids.equals(parentids1)){
%>
<a href="Dspprocessing.jsp?id=<%=RecordSet.getString("id")%>"><%=RecordSet.getString("title")%></a>
<%}else{%>
<%=RecordSet.getString("title")%>
<%}%>
</TD>
<TD><%=ProcessingTypeComInfo.getProcessingTypename(RecordSet.getString("type"))%></TD>
<TD><A href="/hrm/resource/HrmResource.jsp?id=<%=RecordSet.getString("submiter")%>"><%=ResourceComInfo.getResourcename(RecordSet.getString("submiter"))%></a></TD>
<td><a href="/proj/plan/DspPlan.jsp?id=<%=RecordSet.getString("planid")%>"><%=PlanInfoComInfo.getPlanInfoSubject(RecordSet.getString("planid"))%></a>
</td>
<TD><%=RecordSet.getString("submitdate")%> <%=RecordSet.getString("submittime")%></td>
</TR>
<%
}catch(Exception e){
//System.out.println(e.toString());
}
}
%>
</TR></TBODY></TABLE>
</td>
</tr>
</TABLE>
</td>
<td></td>
</tr>
<tr>
<td height="10" colspan="3"></td>
</tr>
</table>
</FORM>
</BODY>
</HTML>