First Commit - Source Code from Reply

This commit is contained in:
vincenzofariello
2024-05-13 12:54:14 +02:00
parent 73e32a5020
commit a15aee1f08
11184 changed files with 1065913 additions and 0 deletions

View File

@@ -0,0 +1,174 @@
<%@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">
&nbsp;Mese Da:&nbsp;
<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">
&nbsp;Mese A:&nbsp;
<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">&nbsp;</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">&nbsp;</td>
</tr>
</table>
<!----- tabella risultati ---->
<table width = '100%' border='1'>
<tr>
<td>&nbsp;</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>&nbsp;</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>