ViewBillWeekworkInfo.jsp
7.55 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
<%@ page language="java" contentType="text/html; charset=UTF-8" %> <%@ include file="/workflow/request/WorkflowViewRequestTitle.jsp" %>
<!-- 明细样式 -->
<link href="/css/ecology8/workflowdetail_wev8.css" type="text/css" rel="stylesheet">
<form name="frmmain" method="post" action="BillWeekWorkinfoOperation.jsp">
<input type="hidden" name="needwfback" id="needwfback" value="1" />
<jsp:include page="WorkflowViewRequestBodyAction.jsp" flush="true">
<jsp:param name="workflowid" value="<%=workflowid%>" />
<jsp:param name="languageid" value="<%=user.getLanguage()%>" />
<jsp:param name="canactive" value="<%=canactive%>" />
<jsp:param name="deleted" value="<%=deleted%>" />
<jsp:param name="nodeid" value="<%=nodeid%>" />
<jsp:param name="requestid" value="<%=requestid%>" />
<jsp:param name="requestlevel" value="<%=requestlevel%>" />
<jsp:param name="isbill" value="<%=isbill%>" />
<jsp:param name="billid" value="<%=billid%>" />
<jsp:param name="formid" value="<%=formid%>" />
<jsp:param name="isprint" value="<%=isprint%>" />
<jsp:param name="logintype" value="<%=user.getLogintype()%>" />
<jsp:param name="userid" value="<%=user.getUID()%>" />
<jsp:param name="nodetype" value="<%=nodetype%>" />
<jsp:param name="fromFlowDoc" value="<%=fromFlowDoc%>" />
<jsp:param name="desrequestid" value="<%=desrequestid%>" />
<jsp:param name="isrequest" value="<%=isrequest%>" />
<jsp:param name="isurger" value="<%=isurger%>" />
<jsp:param name="wfmonitor" value="<%=wfmonitor%>" />
</jsp:include>
<table class="viewform" style="width:100%">
<colgroup> <col width="20%"> <col width="80%">
<tr>
<th colspan=2 align=center><%=SystemEnv.getHtmlLabelName(20561,user.getLanguage())%></th>
</tr>
<tr class="Title">
<td colspan=2>
<table class="viewform" style="width:100%">
<TR class="Spacing">
<TD class="Line1"></TD></TR>
<tr><td>
<table Class="ListStyle ViewForm" cellspacing=1 cols=3 >
<COLGROUP>
<COL width="30%"> <COL width="20%"><COL width="40%">
<tr class=header>
<td><%=SystemEnv.getHtmlLabelName(15499,user.getLanguage())%></td>
<td><%=SystemEnv.getHtmlLabelName(15500,user.getLanguage())%></td>
<td><%=SystemEnv.getHtmlLabelName(15501,user.getLanguage())%></td>
</tr>
<%int userids=user.getUID();
String resourceidown="0";
rs.execute("select resourceid from bill_workinfo where requestid="+requestid);
if (rs.next())
{
resourceidown=rs.getString(1);
}
if (rs.getDBType().equals("oracle"))
{
rs.execute("select * from bill_weekinfodetail where type=3 and infoid=(select id from (select b.* from bill_workinfo b,bill_weekinfodetail a where a.infoid=b.id and a.type=3 and b.resourceid="+resourceidown+" and requestid<"+requestid+" order by requestid desc) where rownum=1 ) order by id");
}
else
{
rs.execute("select * from bill_weekinfodetail where type=3 and infoid=(select top 1 b.id from bill_weekinfodetail a,bill_workinfo b where a.type=3 and a.infoid=b.id and b.resourceid="+resourceidown+" and requestid<"+requestid+" order by requestid desc) order by id");
}
boolean islights=true;
while (rs.next())
{
String curworknameold=rs.getString("workname");
String curdateold=rs.getString("forecastdate");
String curworkdescold=rs.getString("workdesc");
%>
<tr class="wfdetailrowblock">
<td> <%=Util.toScreenToEdit(curworknameold,user.getLanguage())%></td>
<td><%=Util.toScreenToEdit(curdateold,user.getLanguage())%></td>
<td><%=Util.toScreenToEdit(curworkdescold,user.getLanguage())%></td>
</tr>
<%
islights=!islights;
}
%>
</table>
</td></tr></table></td></tr>
<tr><td height=15></td></tr>
<tr>
<th colspan=2 align=center><%=SystemEnv.getHtmlLabelName(15493,user.getLanguage())%></th>
</tr>
<tr class="Title">
<td colspan=2>
<table class="viewform" style="width:100%">
<!-- 完成事项 -->
<tr><td>
<table Class="ListStyle ViewForm" cellspacing=1 cols=3 id="oTable1">
<COLGROUP>
<COL width="10%"><COL width="40%"> <COL width="50%">
<tr class=header>
<td> </td>
<td><%=SystemEnv.getHtmlLabelName(15494,user.getLanguage())%></td>
<td><%=SystemEnv.getHtmlLabelName(16280,user.getLanguage())%></td>
</tr>
<% boolean islight=true;
RecordSet.executeProc("bill_workinfodetail_SByType",""+billid+flag+"1");
while(RecordSet.next()){
String curworkname=RecordSet.getString("workname");
String curworkdesc=RecordSet.getString("workdesc");
%>
<tr class="wfdetailrowblock">
<td> </td>
<td><%=Util.toScreen(curworkname,user.getLanguage())%></td>
<td><%=Util.toScreen(curworkdesc,user.getLanguage())%></td>
</tr>
<%
islight=!islight;
}
%>
</table>
</td></tr>
</table>
</td>
</tr>
<tr class="Title">
<td colspan=2>
<table class="viewform" style="width:100%">
<!-- 未完成事项 -->
<tr><td>
<table Class="ListStyle ViewForm" cellspacing=1 cols=3 id="oTable2">
<COLGROUP>
<COL width="10%"><COL width="40%"> <COL width="50%">
<tr class=header>
<td> </td>
<td><%=SystemEnv.getHtmlLabelName(16281,user.getLanguage())%></td>
<td><%=SystemEnv.getHtmlLabelName(15497,user.getLanguage())%></td>
</tr>
<% islight=true;
RecordSet.executeProc("bill_workinfodetail_SByType",""+billid+flag+"2");
while(RecordSet.next()){
String curworkname=RecordSet.getString("workname");
String curworkdesc=RecordSet.getString("workdesc");
%>
<tr class="wfdetailrowblock">
<td> </td>
<td><%=Util.toScreen(curworkname,user.getLanguage())%></td>
<td><%=Util.toScreen(curworkdesc,user.getLanguage())%></td>
</tr>
<%
islight=!islight;
}
%>
</table>
</td></tr>
</table>
</td>
</tr>
<tr>
<th colspan=2 align=center><%=SystemEnv.getHtmlLabelName(15498,user.getLanguage())%></th>
</tr>
<tr class="Title">
<td colspan=2>
<table class="viewform" style="width:100%">
<!-- 下周计划事项 -->
<tr><td>
<table Class="ListStyle ViewForm" cellspacing=1 cols=4 id="oTable3">
<COLGROUP>
<COL width="10%"><COL width="30%"> <COL width="20%"><COL width="40%">
<tr class=header>
<td> </td>
<td><%=SystemEnv.getHtmlLabelName(15499,user.getLanguage())%></td>
<td><%=SystemEnv.getHtmlLabelName(15500,user.getLanguage())%></td>
<td><%=SystemEnv.getHtmlLabelName(15501,user.getLanguage())%></td>
</tr>
<% islight=true;
RecordSet.executeProc("bill_workinfodetail_SByType",""+billid+flag+"3");
while(RecordSet.next()){
String curworkname=RecordSet.getString("workname");
String curdate=RecordSet.getString("forecastdate");
String curworkdesc=RecordSet.getString("workdesc");
%>
<tr class="wfdetailrowblock">
<td> </td>
<td><%=Util.toScreen(curworkname,user.getLanguage())%></td>
<td><%=Util.toScreen(curdate,user.getLanguage())%></td>
<td><%=Util.toScreen(curworkdesc,user.getLanguage())%></td>
</tr>
<%
islight=!islight;
}
%>
</table>
</td></tr>
<tr><td height=15></td></tr>
</table>
</td>
</tr>
</table>
<br>
<br>
<%@ include file="/workflow/request/WorkflowViewSign.jsp" %>
</form>
</body>
</html>