174 lines
9.7 KiB
Plaintext
174 lines
9.7 KiB
Plaintext
<%@page import = "mnp.command.CommandsDef"%>
|
|
<%@page import = "mnp.command.ShowKPIView,mnp.objects.result.MnpDwReportKpiResult"%>
|
|
<%@page import = "mnp.utility.DateUtils,mnp.utility.ui.Res,java.util.ArrayList"%>
|
|
<%@ page import="java.util.Iterator" %>
|
|
<%@ page import="java.text.DecimalFormat" %>
|
|
<%@ page import="java.text.DecimalFormatSymbols" %>
|
|
<%
|
|
ArrayList intervalloMesi = ShowKPIView.generaComboMesi();
|
|
%>
|
|
<html>
|
|
<script>
|
|
function checkRicercaReportKPI(frm) {
|
|
if (frm.meseDa.value =='--' || frm.meseA.value == '--') {
|
|
alert("Selezionare l'intervallo mensile");
|
|
} else {
|
|
document.getElementById("tipoOper").value="ricerca";
|
|
document.frmForm.action="<%=CommandsDef.SHOW_KPI_VIEW%>";
|
|
document.frmForm.submit();
|
|
}
|
|
}
|
|
|
|
function checkRigeneraReportKPI(frm) {
|
|
if (frm.meseDa.value =='--' || frm.meseA.value == '--') {
|
|
alert("Selezionare un mese");
|
|
} else if (frm.meseDa.value != frm.meseA.value) {
|
|
alert("E' possibile rigenerare solamente un mese alla volta. Selezionare un intervallo pari ad un mese");
|
|
} else {
|
|
document.getElementById("tipoOper").value="rigenera";
|
|
document.frmForm.action="<%=CommandsDef.SHOW_KPI_VIEW%>";
|
|
document.frmForm.submit();
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<head>
|
|
<title>
|
|
Report KPI Controllo e Contrattuali
|
|
</title>
|
|
</head>
|
|
|
|
<jsp:useBean id="resultBean" scope="request" class="java.util.ArrayList" />
|
|
|
|
<body>
|
|
<!-- tabella che include il menu verticale -->
|
|
<table width = "100%" class = "tableBannerRosso" border = 0>
|
|
<tr>
|
|
<td align = "left" width = "100%">
|
|
<img border=0 SRC="<%=Res.ApplContext%>/images/banner.gif"/>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table width="100%">
|
|
<tr>
|
|
<td width="10%">
|
|
<jsp:include page="/jsp/GUI/Banner.jsp" flush="true"/>
|
|
</td>
|
|
<td align="right" valign="top" width="90%">
|
|
<br>
|
|
<br>
|
|
<b><i><P class = "titolo">Report KPI Controllo e Contrattuali</P></i></b>
|
|
<!-- titolo -->
|
|
<form name="frmForm" method="post">
|
|
<!----- tabella lista delle richieste cessazione volontaria ---->
|
|
<input type='hidden' id='tipoOper' name='tipoOperazione' value="" />
|
|
<p align='left'>
|
|
|
|
<!----- tabella pulsanti ---->
|
|
<table width="100%">
|
|
<tr>
|
|
<td width='50%' align="right">
|
|
Mese Da:
|
|
<select name='meseDa'>
|
|
<option value='--'>--</option>
|
|
<%
|
|
Iterator iterator = intervalloMesi.iterator();
|
|
while (iterator.hasNext()) {
|
|
String meseAnno = (String)iterator.next();
|
|
%>
|
|
<option value='<%=meseAnno%>'><%=meseAnno%></option>
|
|
<% }
|
|
%>
|
|
</select>
|
|
</td>
|
|
<td width='50%' align="left">
|
|
Mese A:
|
|
<select name='meseA'>
|
|
<option value='--'>--</option>
|
|
<%
|
|
iterator = intervalloMesi.iterator();
|
|
while (iterator.hasNext()) {
|
|
String meseAnno = (String)iterator.next();
|
|
%>
|
|
<option value='<%=meseAnno%>'><%=meseAnno%></option>
|
|
<% }
|
|
%>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td colspan="2"> </td>
|
|
</tr>
|
|
<tr>
|
|
<td width='50%' align="right">
|
|
<input type="button" name="btnRicerca" value=" RICERCA "
|
|
onclick='checkRicercaReportKPI(document.frmForm)' />
|
|
</td>
|
|
<td width='50%' align="left" title="Nota: il flag invio mail viene considerato solamente per il RIGENERA.">
|
|
<input type="button" name= "btnRigenera" value=" RIGENERA "
|
|
onclick='checkRigeneraReportKPI(document.frmForm)' />
|
|
Flag Invio mail: <input type = 'checkbox' id='flagInvioMail' name='flagInvioMail' value="true"/>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2"> </td>
|
|
</tr>
|
|
</table>
|
|
|
|
<!----- tabella risultati ---->
|
|
<table width = '100%' border='1'>
|
|
<tr>
|
|
<td> </td>
|
|
<td class= 'tdCeleste' align= 'center' colspan='3'><font class = 'normaleTab'>KPI CONTROLLO</font></td>
|
|
<td class= 'tdCeleste' align= 'center' colspan='3'><font class = 'normaleTab'>KPI CONTRATTUALI</font></td>
|
|
<td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td class= 'tdCeleste' align= 'center' width = '10%'><font class = 'normaleTab'>Mese Competenza</font></td>
|
|
<td class= 'tdCeleste' align= 'center'><font class = 'normaleTab'>ATTESE</font></td>
|
|
<td class= 'tdCeleste' align= 'center'><font class = 'normaleTab'>OK_ALLE_12</font></td>
|
|
<td class= 'tdCeleste' align= 'center'><font class = 'normaleTab'>PERC</font></td>
|
|
<td class= 'tdCeleste' align= 'center'><font class = 'normaleTab'>ATTESE</font></td>
|
|
<td class= 'tdCeleste' align= 'center'><font class = 'normaleTab'>OK_ALLE_12</font></td>
|
|
<td class= 'tdCeleste' align= 'center'><font class = 'normaleTab'>PERC</font></td>
|
|
<td class= 'tdCeleste' align= 'center'><font class = 'normaleTab'>Timestamp elaborazione</font></td>
|
|
</tr>
|
|
|
|
<%
|
|
DecimalFormatSymbols dfs = new DecimalFormatSymbols();
|
|
dfs.setDecimalSeparator(',');
|
|
DecimalFormat percFormatter = new DecimalFormat("####0.00", dfs);
|
|
|
|
MnpDwReportKpiResult record;
|
|
int risultati = resultBean.size();
|
|
if (risultati == 0) { %>
|
|
<tr>
|
|
<td class= 'tdGiallo' align='center' colspan = '8'><font class = 'normaleTab'>Nessun Risultato Presente</font></td>
|
|
</tr>
|
|
<% } else {
|
|
Iterator iter = resultBean.iterator();
|
|
|
|
while (iter.hasNext()) {
|
|
record = (MnpDwReportKpiResult)iter.next(); %>
|
|
|
|
<tr>
|
|
<td class= 'tdGiallo' align='center'><font class = 'normaleTab'><%=record.getMeseComp()%></font></td>
|
|
<td class= 'tdGiallo' align='center'><font class = 'normaleTab'><%=record.getNumRichAtteseControllo()%></font></td>
|
|
<td class= 'tdGiallo' align='center'><font class = 'normaleTab'><%=record.getNumRichOk12Controllo()%></font></td>
|
|
<td class= 'tdGiallo' align='center'><font class = 'normaleTab'><%=percFormatter.format(record.getPercControllo())%></font></td>
|
|
<td class= 'tdGiallo' align='center'><font class = 'normaleTab'><%=record.getNumRichAtteseContrattuali()%></font></td>
|
|
<td class= 'tdGiallo' align='center'><font class = 'normaleTab'><%=record.getNumRichOk12Contrattuali()%></font></td>
|
|
<td class= 'tdGiallo' align='center'><font class = 'normaleTab'><%=percFormatter.format(record.getPercContrattuali())%></font></td>
|
|
<td class= 'tdGiallo' align='center'><font class = 'normaleTab'><%=DateUtils.dateToString(record.getDataEsecuzione(), "dd/MM/yyyy HH:mm")%></font></td>
|
|
</tr>
|
|
<% } //chiude il while
|
|
} // chiude l'else
|
|
%>
|
|
</table>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</body>
|
|
</html> |