Files
gateway-mnp-dbc/dbcmnpsrc/FE/mnpdev/mnp/web/jsp/GUI/ShowEsitoBloccaSbloccaRec.jsp
2024-05-13 12:54:14 +02:00

104 lines
3.3 KiB
Plaintext

<html>
<head>
<title>
ShowEsitoBloccaSbloccaRec
</title>
</head>
<body bgcolor="#ffffff">
<%@page import = "mnp.objects.dao.*, mnp.objects.result.*, mnp.objects.*"%>
<%@page import = "java.util.*, mnp.command.*, mnp.utility.*, mnp.database.*, mnp.command.BloccoSbloccoRecipient"%>
<jsp:useBean id="returnBean" scope="request" class="java.util.ArrayList" />
<%
int op_type = ((Integer)request.getAttribute("op_type")).intValue();
%>
<!-- tabella che include il menu verticale -->
<table width = "100%" class = "tableBannerRosso" border = 0>
<tr>
<td align = "left" width = "100%"><IMG border = 0 SRC ="/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"> ESITO BLOCCA / SBLOCCA RICHIESTE RECIPIENT </P></i></b>
<!-- titolo della tabella --->
<form name = 'showEsitoForm' method= 'post' action = '<%=CommandsDef.SHOW_CONSOLE_DO%>'>
<br>
<p align = 'left'><font class = 'normaleTab'>Esito blocca / sblocca richieste: </font></p>
<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'>STATO</font></td>
<td class= 'tdCeleste' align= 'center'><font class = 'normaleTab'>TT</font></td>
<%if(op_type == BloccoSbloccoRecipient.OP_BLOCCO){%>
<td class= 'tdCeleste' align= 'center'><font class = 'normaleTab'>DATA SBLOCCO</font></td>
<%}%>
<td class= 'tdCeleste' align= 'center'><font class = 'normaleTab'>ESITO</font></td>
</tr>
<%
List result = returnBean;
Iterator iter = result.listIterator();
ModificaRichiesteResult modRicRe;
String warnColor;
int iStato = -1;
while (iter.hasNext()) {
modRicRe = (ModificaRichiesteResult)iter.next();
warnColor = modRicRe.getEsito().equalsIgnoreCase("OK")?"tdVerde":"tdRosso";
iStato = Integer.parseInt(modRicRe.getStato());
%>
<tr>
<td class= '<%=warnColor%>' align='center'><font class = 'normaleTab'><%=modRicRe.getId_richiesta()%></font></td>
<td class= '<%=warnColor%>' align='center'><font class = 'normaleTab'><%=StatoRichiestaRec.getStatoDescr(iStato)%></font></td>
<td class= '<%=warnColor%>' align='center'><font class = 'normaleTab'><%=modRicRe.getTT()%></font></td>
<%if(op_type == BloccoSbloccoRecipient.OP_BLOCCO)
{ String data_sblocco = modRicRe.getData_sblocco().equals("")?"&nbsp":modRicRe.getData_sblocco();
%>
<td class= '<%=warnColor%>' align='center'><font class = 'normaleTab'><%=data_sblocco%></font></td>
<%}%>
<td class= '<%=warnColor%>' align='center'><font class = 'normaleTab'><%=modRicRe.getEsito()%></font></td>
</tr>
<%}%>
</table>
<%
String varTipo = "<b>sbloccate</b>";
if (op_type == BloccoSbloccoRecipient.OP_BLOCCO)
varTipo = "<b>bloccate</b>";
%>
<P class="alert" align = "left">
Attenzione: &nbsp; le richieste con esito positivo risulteranno <%=varTipo%> solo dopo il prossimo refresh dei dati.
</P>
<!-- 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>