PendingRequestRp.jsp
6.39 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
<%@ page import="weaver.general.Util" %>
<%@ page import="java.util.*" %>
<jsp:useBean id="RecordSet" class="weaver.conn.RecordSet" scope="page" />
<jsp:useBean id="WorkflowComInfo" class="weaver.workflow.workflow.WorkflowComInfo" scope="page" />
<jsp:useBean id="WorkTypeComInfo" class="weaver.workflow.workflow.WorkTypeComInfo" scope="page" />
<%@ page language="java" contentType="text/html; charset=UTF-8" %> <%@ include file="/systeminfo/init_wev8.jsp" %>
<HTML><HEAD>
<LINK href="/css/Weaver_wev8.css" type=text/css rel=STYLESHEET>
<SCRIPT language="javascript" src="../../js/weaver_wev8.js"></script>
</head>
<%
String imagefilename = "/images/hdReport_wev8.gif";
String titlename = SystemEnv.getHtmlLabelName(648,user.getLanguage())+"-"+SystemEnv.getHtmlLabelName(732,user.getLanguage());
String needfav ="1";
String needhelp ="";
%>
<BODY>
<%@ include file="/systeminfo/TopTitle_wev8.jsp" %>
<%@ include file="/systeminfo/RightClickMenuConent_wev8.jsp" %>
<%
RCMenu += "{"+SystemEnv.getHtmlLabelName(197,user.getLanguage())+",javascript:frmmain.submit(),_self}" ;
RCMenuHeight += RCMenuHeightStep ;
%>
<%@ include file="/systeminfo/RightClickMenu_wev8.jsp" %>
<%
String startdate1=Util.fromScreen(request.getParameter("startdate1"),user.getLanguage());
String startdate2=Util.fromScreen(request.getParameter("startdate2"),user.getLanguage());
String enddate1=Util.fromScreen(request.getParameter("enddate1"),user.getLanguage());
String enddate2=Util.fromScreen(request.getParameter("enddate2"),user.getLanguage());
String sql="select count(*) count,t1.currentnodetype, t1.workflowid,t2.workflowtype from workflow_requestbase t1,workflow_base t2"
+ " where currentnodetype<>'3' and deleted=0 and t1.workflowid=t2.id";
if(!startdate1.equals("")) sql+=" and createdate>='"+startdate1+"'";
if(!startdate2.equals("")) sql+=" and createdate<='"+startdate2+"'";
if(!enddate1.equals("")) sql+=" and lastoperatedate>='"+enddate1+"'";
if(!enddate2.equals("")) sql+=" and lastoperatedate<='"+enddate2+"'";
sql+=" group by t2.workflowtype,t1.workflowid,t1.currentnodetype order by t2.workflowtype,t1.workflowid,t1.currentnodetype";
%>
<form name=frmmain id="frmmain" method=post action="PendingRequestRp.jsp">
<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">
<tr class="Title"><th colspan=4><%=SystemEnv.getHtmlLabelName(324,user.getLanguage())%></th></tr>
<TR><TD class="Line1" colSpan=4></TD></TR>
<tr>
<td width="15%"><%=SystemEnv.getHtmlLabelName(722,user.getLanguage())%></td>
<td width="35%"><BUTTON type='button' class=calendar onclick="getStartDate1()"></BUTTON>
<SPAN id=startdatespan1 ><%=startdate1%></SPAN>
- <BUTTON type='button' class=calendar onclick="getStartDate2()"></BUTTON>
<SPAN id=startdatespan2 ><%=startdate2%></SPAN>
<input type="hidden" name="startdate1" value="<%=startdate1%>"><input type="hidden" name="startdate2" value="<%=startdate2%>">
</td>
<td width="15%"><%=SystemEnv.getHtmlLabelName(16232,user.getLanguage())%></td>
<td width="35%"><BUTTON type='button' class=calendar onclick="getEndDate1()"></BUTTON>
<SPAN id=enddatespan1 ><%=enddate1%></SPAN>
- <BUTTON type='button' class=calendar onclick="getEndDate2()"></BUTTON>
<SPAN id=enddatespan2 ><%=enddate2%></SPAN>
<input type="hidden" name="enddate1" value=<%=enddate1%>><input type="hidden" name="enddate2" value=<%=enddate2%>>
</td>
</tr>
</table>
<table class=liststyle cellspacing=1 >
<colgroup>
<col width="40%">
<col width="15%">
<col width="15%">
<col width="15%">
<col width="15%">
<tr class="header"><th colspan=5><%=SystemEnv.getHtmlLabelName(324,user.getLanguage())%></th></tr>
<tr class=header>
<td><%=SystemEnv.getHtmlLabelName(63,user.getLanguage())%></td>
<td><%=SystemEnv.getHtmlLabelName(360,user.getLanguage())%></td>
<td><%=SystemEnv.getHtmlLabelName(142,user.getLanguage())%></td>
<td><%=SystemEnv.getHtmlLabelName(725,user.getLanguage())%></td>
<td><%=SystemEnv.getHtmlLabelName(523,user.getLanguage())%></td>
</tr>
<TR class=Line><TD colspan="5" ></TD></TR>
<%
int wftypeid=0;
int wfid=0;
int tdnum=0;
String totalcount="";
String curnodetype="";
RecordSet.executeSql(sql);
while(RecordSet.next()){
int curwftypeid=RecordSet.getInt("workflowtype");
int curwfid=RecordSet.getInt("workflowid");
curnodetype=RecordSet.getString("currentnodetype");
int curcount=RecordSet.getInt("count");
if(wfid!=curwfid){
if(tdnum==1){%><td align="right">0</td><td align="right">0</td><%}
if(tdnum==2){%><td align="right">0</td><%}
tdnum=0;
if (wfid!=0) {%><td align=right><%=totalcount%></td>
</tr>
<%}
}
if(wftypeid!=curwftypeid){
wftypeid=curwftypeid;
//totalcount="";
%>
<tr class=datalight>
<td><%=Util.toScreen(WorkTypeComInfo.getWorkTypename(curwftypeid+""),user.getLanguage())%></td>
<td> </td>
<td> </td>
<td> </td><td> </td></tr>
<%}
if(wfid!=curwfid){
wfid=curwfid;
totalcount="";
%>
<tr class=datadark>
<td> <%=Util.toScreen(WorkflowComInfo.getWorkflowname(curwfid+""),user.getLanguage())%></td>
<%}
if(tdnum==0&&curnodetype.equals("1")){
tdnum=1;
%><td align=right>0</td><%}
else if(tdnum==0&&curnodetype.equals("2")){
tdnum=2;
%><td align="right">0</td><td align="right">0</td><%}
else if(tdnum==1&&curnodetype.equals("2")){
tdnum=2;
%><td align="right">0</td><%}%>
<td align="right">
<%=curcount%></td><%
tdnum++;
totalcount=Util.getIntValue(totalcount,0)+curcount+"";
}
if(curnodetype.equals("0")){
%><td align="right">0</td><td align="right">0</td><td align="right"><%=totalcount%></td></tr><%}
if(curnodetype.equals("1")){
%><td align="right">0</td><td align="right"><%=totalcount%></td></tr><%}
if(curnodetype.equals("2")){
%><td align="right"><%=totalcount%></td></tr><%}
%>
</table>
</td>
</tr>
</TABLE>
</td>
<td></td>
</tr>
<tr>
<td height="10" colspan="3"></td>
</tr>
</table>
</form>
<script language="javascript">
function submitData()
{
if (check_form(frmmain,''))
frmmain.submit();
}
function submitClear()
{
btnclear_onclick();
}
</script>
<SCRIPT language="javascript" src="/js/datetime_wev8.js"></script>
<SCRIPT language="javascript" src="/js/JSDateTime/WdatePicker_wev8.js"></script>
</body>
</html>