First Commit - Source Code from Reply
This commit is contained in:
146
dbcmnpsrc/FE/mnpdev/mnp/web/jsp/InvioEsitiGisp.jsp
Normal file
146
dbcmnpsrc/FE/mnpdev/mnp/web/jsp/InvioEsitiGisp.jsp
Normal file
@@ -0,0 +1,146 @@
|
||||
<%@page import = "java.io.*, javax.servlet.*, javax.servlet.http.*, java.util.*, java.io.*, java.net.*"%>
|
||||
<%@page import = "java.awt.print.*"%>
|
||||
<%@page import = "mnp.database.*,mnp.utility.ui.PageLoader"%>
|
||||
<%@page import = "mnp.objects.*, mnp.utility.ui.Res"%>
|
||||
<%@page import = "mnp.objects.ui.SimulazInvioEsitoGispBean"%>
|
||||
<jsp:include page="/jsp/VerificheScript.txt" flush = "true"/>
|
||||
<HTML>
|
||||
<TITLE>Mnp</TITLE>
|
||||
<BODY>
|
||||
|
||||
|
||||
<jsp:useBean id="SimulazInvioEsitoGispBean" scope="request" class="mnp.objects.ui.SimulazInvioEsitoGispBean"/>
|
||||
|
||||
|
||||
<%
|
||||
PageLoader pageLoader = new PageLoader();
|
||||
String[] arrTipoProcesso = pageLoader.getTipoProcessoSimulazioneInvioEsitiGispCod();
|
||||
|
||||
//--------------------------------------------------------------------/
|
||||
// sTipoProcesso è il valore della combo box cmbTipoProcesso
|
||||
// che viene passato al file degli script VerificheScript.txt
|
||||
// che a sua volta(dopo aver fatto il submit)lo ritorna x caricare
|
||||
// la combo dei tipi file congruenti al tipo processo selezionato.
|
||||
//--------------------------------------------------------------------/
|
||||
SimulazInvioEsitoGispBean richiesta = new SimulazInvioEsitoGispBean ();
|
||||
if (session.getAttribute("invioEsitiGISPBean")!=null)
|
||||
richiesta = (SimulazInvioEsitoGispBean)session.getAttribute("invioEsitiGISPBean");
|
||||
String sInputFile = richiesta.getIDRichiesta()!=null?richiesta.getIDRichiesta():"";
|
||||
richiesta.setIDRichiesta(richiesta.getIDRichiesta()!=null?richiesta.getIDRichiesta():"");
|
||||
String sDescrizione = richiesta.getTipoProcesso()!=null?richiesta.getTipoProcesso():"";
|
||||
|
||||
|
||||
String codiceErrore = "";
|
||||
String errore = "";
|
||||
if (session.getAttribute("tipologiaErrore")!=null&&!session.getAttribute("tipologiaErrore").equals("")) {
|
||||
codiceErrore = (String)session.getAttribute("tipologiaErrore");
|
||||
if (codiceErrore.equals("1")) {
|
||||
errore = "Richiesta non trovata sul database";
|
||||
session.setAttribute("tipologiaErrore", "");
|
||||
} else if (codiceErrore.equals("2")) {
|
||||
errore = "Stato della richiesta non congruente";
|
||||
session.setAttribute("tipologiaErrore", "");
|
||||
} else if (codiceErrore.equals("3")) {
|
||||
errore = "Simulazione effettuata con successo";
|
||||
session.setAttribute("tipologiaErrore", "");
|
||||
} else if (codiceErrore.equals("4")) {
|
||||
errore = "Simulazione non effettuata";
|
||||
session.setAttribute("tipologiaErrore", "");
|
||||
}
|
||||
}
|
||||
|
||||
// if(!(sTipoProcesso==null)&& !(SimulazInvioEsitoGispBean.getIDRichiesta()==null) ) {
|
||||
//SimulazInvioEsitoGispBean gispBean = pageLoader.getCtrIDRichBean(SimulazInvioEsitoGispBean.getIDRichiesta(),sTipoProcesso);
|
||||
// System.out.println("GISP BEAN : " + gispBean);
|
||||
//}
|
||||
%>
|
||||
<!-- tabella che include il menu verticale -->
|
||||
<table width = "100%">
|
||||
<TR> <td width = "100%" bgcolor = "#D61414"> </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" align = 'right'>SIMULAZIONE INVIO ESITI GISP</P></i></b>
|
||||
|
||||
|
||||
<FORM NAME= "frmInvioEsitiGisp" ENCTYPE="multipart/form-data" METHOD="POST" ACTION="<%=Res.ApplContext%>/FileUploadServlet" onSubmit = "return checkPageSimulEsitoGisp(this)">
|
||||
<!-- dati -->
|
||||
<TABLE width = "100%" BORDER= "1" class ="border">
|
||||
<TR>
|
||||
<TD><P class = "alert"> <%=errore%> </P></TD>
|
||||
</TR>
|
||||
|
||||
|
||||
<TR>
|
||||
<TD><P class = "normale">ID Richiesta </P></TD>
|
||||
<TD><INPUT TYPE="text" NAME='inputFileGISP' VALUE ='<%=richiesta.getIDRichiesta()%>'></TD>
|
||||
</tr>
|
||||
<tr>
|
||||
<TD><P class = "normale">Tipo Processo </P></TD>
|
||||
<TD nowrap><SELECT NAME= "cmbTipoProcessoGISP" >
|
||||
<%
|
||||
|
||||
System.out.println("VALORIZZAZIONE ARRAY TIPO PROCESSO : " + arrTipoProcesso.length);
|
||||
for(int i = 0;i<arrTipoProcesso.length;i++){
|
||||
richiesta.setTipoProcesso(arrTipoProcesso[i]);
|
||||
String sIsSelected = "";//se è = al tipo passato devo selezionarlo.
|
||||
if(richiesta.getTipoProcesso().equals(sDescrizione))sIsSelected = "SELECTED";%>
|
||||
|
||||
<OPTION VALUE = '<%=richiesta.getTipoProcesso()%>' <%=sIsSelected%> >
|
||||
<%=pageLoader.getTipoProcessoSimulazioneInvioEsitiGisp(arrTipoProcesso[i])%>
|
||||
</OPTION>
|
||||
|
||||
<%}%>
|
||||
</SELECT>
|
||||
</TD>
|
||||
|
||||
</TR>
|
||||
</TABLE>
|
||||
<BR>
|
||||
|
||||
|
||||
<!-- pulsanti -->
|
||||
<BR><BR><HR class = "riga">
|
||||
<TABLE width = "100%">
|
||||
<TR>
|
||||
<TD ALIGN= "CENTER"><INPUT TYPE= "submit" NAME= "btnInvioGISP" VALUE= " INVIA "></TD>
|
||||
<INPUT TYPE="hidden" NAME="pageIGISP">
|
||||
</TR>
|
||||
</TABLE>
|
||||
</FORM>
|
||||
<!-- tabella x menu -->
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<!-- tabella x menu -->
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user