First Commit - Source Code from Reply
This commit is contained in:
@@ -0,0 +1,127 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>
|
||||
ShowEsitoSimulazioneRichieste
|
||||
</title>
|
||||
</head>
|
||||
|
||||
|
||||
<%@page import = "mnp.objects.dao.*, mnp.objects.filter.*, mnp.objects.*"%>
|
||||
<%@page import = "java.util.*, mnp.command.*, mnp.utility.*, mnp.database.*"%>
|
||||
<%@page import = "mnp.utility.ui.Res"%>
|
||||
<jsp:useBean id="resultBean" scope="request" class="mnp.objects.result.SimulazioneMSSRichiesteResult" />
|
||||
|
||||
<!-- 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%">
|
||||
<!--fine tabella x menu -->
|
||||
<br>
|
||||
<br>
|
||||
<b><i><P class = "titolo">ESITI SIMULAZIONE MSS</P></i></b>
|
||||
|
||||
|
||||
<!-- titolo della tabella --->
|
||||
<form name = 'simulaForm' method= 'post' action = '/mnp/jsp/Presentazione.jsp'>
|
||||
<br>
|
||||
<p align = 'left'><font class = 'normaleTab'>Esito delle richieste per simulazione da MSS: </font></p>
|
||||
|
||||
<%
|
||||
InfoSimulazioneRichieste[] rics = resultBean.getRichieste();
|
||||
String tipoProcesso = resultBean.getTipoProcesso();
|
||||
String processTarget = "";
|
||||
|
||||
if(tipoProcesso.equalsIgnoreCase(ProcessMapper.proc_DONOR))
|
||||
processTarget = ProcessMapper.proc_DONOR_Name;
|
||||
else if(tipoProcesso.equalsIgnoreCase(ProcessMapper.proc_RECIPIENT))
|
||||
processTarget = ProcessMapper.proc_RECIPIENT_Name;
|
||||
else if(tipoProcesso.equalsIgnoreCase(ProcessMapper.proc_CESS))
|
||||
processTarget = ProcessMapper.proc_CESS_Name; %>
|
||||
|
||||
<table width = '100%' border='1'>
|
||||
<tr>
|
||||
<td class= 'tdCeleste' align= 'center'><font class = 'normaleTab'>ID RICHIESTA</font></td>
|
||||
<td class= 'tdCeleste' align= 'center'><font class = 'normaleTab'>NUMERAZIONE</font></td>
|
||||
<% if (processTarget.equals(ProcessMapper.proc_DONOR_Name)) { %>
|
||||
<td class= 'tdCeleste' align= 'center'><font class = 'normaleTab'>ADDIZIONALE</font></td>
|
||||
<% } %>
|
||||
<td class= 'tdCeleste' align= 'center'><font class = 'normaleTab'>OP DONOR</font></td>
|
||||
<td class= 'tdCeleste' align= 'center'><font class = 'normaleTab'>OP RECIPIENT</font></td>
|
||||
<td class= 'tdCeleste' align= 'center'><font class = 'normaleTab'>ESITO</font></td>
|
||||
</tr>
|
||||
|
||||
|
||||
<% for (int i = 0; i < rics.length; i++) {
|
||||
String warnColor = null;
|
||||
String msisdn = rics[i].getMsisdn()==null?" ":rics[i].getMsisdn();
|
||||
String donor = rics[i].getCodiceOperatoreDonor()== null?" ":rics[i].getCodiceOperatoreDonor();
|
||||
String recipient = rics[i].getCodiceOperatoreRecipient()== null?" ":rics[i].getCodiceOperatoreRecipient();
|
||||
|
||||
if(rics[i].getEsito().equalsIgnoreCase(GUIMapper.MSS_ESITO_RECIPIENT_OK) ||
|
||||
rics[i].getEsito().equalsIgnoreCase(GUIMapper.MSS_ESITO_DONOR_OK) ||
|
||||
rics[i].getEsito().equalsIgnoreCase(GUIMapper.MSS_ESITO_CESSAZIONE_OK))
|
||||
warnColor = "tdVerde";
|
||||
else
|
||||
warnColor = "tdRosso";
|
||||
%>
|
||||
<tr>
|
||||
<%if(warnColor.equalsIgnoreCase("tdRosso")){%>
|
||||
<td class= '<%=warnColor%>' align='center'><font class = 'normaleTab'><%=rics[i].getId_richiesta()%></font></td>
|
||||
<td class= '<%=warnColor%>' align='center'><font class = 'normaleTab'><%=msisdn%></font></td>
|
||||
<% if (processTarget.equals(ProcessMapper.proc_DONOR_Name)) {
|
||||
if (rics[i].getAddizionale()==1){ %>
|
||||
<td class= '<%=warnColor%>' align='center'> <input name="html" type="checkbox" name="addizionale" disabled="disabled"//>
|
||||
<% } else { %>
|
||||
<td class= '<%=warnColor%>' align='center'> <input name="html" type="checkbox" name="addizionale" checked="checked" disabled="disabled"//>
|
||||
<% }%>
|
||||
<% }%>
|
||||
<%}else{%>
|
||||
<td class= '<%=warnColor%>' align='center'><font class = 'normaleTab'><%=rics[i].getId_richiesta()%></font></td>
|
||||
<td class= '<%=warnColor%>' align='center'><font class = 'normaleTab'><%=msisdn%></font></td>
|
||||
<% if (processTarget.equals(ProcessMapper.proc_DONOR_Name)) {
|
||||
if (rics[i].getAddizionale()==1){ %>
|
||||
<td class= '<%=warnColor%>' align='center'> <input name="html" type="checkbox" name="addizionale" disabled="disabled"//>
|
||||
<% } else { %>
|
||||
<td class= '<%=warnColor%>' align='center'> <input name="html" type="checkbox" name="addizionale" checked="checked" disabled="disabled"//>
|
||||
<% }%>
|
||||
<% }%>
|
||||
<%}%>
|
||||
<td class= '<%=warnColor%>' align='center'><font class = 'normaleTab'><%=donor%></font></td>
|
||||
<td class= '<%=warnColor%>' align='center'><font class = 'normaleTab'><%=recipient%></font></td>
|
||||
<td class= '<%=warnColor%>' align='center'><font class = 'normaleTab'><%=rics[i].getEsito()%></font></td>
|
||||
</tr>
|
||||
<%}%>
|
||||
|
||||
<P class="alert" align = "left">
|
||||
Attenzione: le richieste simulate saranno visualizzate nel nuovo stato solo dopo il prossimo refresh dei dati.
|
||||
</P>
|
||||
|
||||
|
||||
</table>
|
||||
<!-- pulsanti -->
|
||||
<BR><BR><HR class = "riga">
|
||||
<TABLE width = "100%">
|
||||
<TR>
|
||||
<TD ALIGN= "CENTER"><input type="submit" name="OK" value=" OK "></TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
</form>
|
||||
|
||||
<!-- tabella x menu -->
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<!-- tabella x menu -->
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user