First Commit - Source Code from Reply
This commit is contained in:
140
dbcmnpsrc/FE/mnpdev/mnp/web/jsp/Invio.jsp
Normal file
140
dbcmnpsrc/FE/mnpdev/mnp/web/jsp/Invio.jsp
Normal file
@@ -0,0 +1,140 @@
|
||||
<%@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"%>
|
||||
<HTML>
|
||||
<TITLE>Mnp</TITLE>
|
||||
<BODY>
|
||||
|
||||
|
||||
<jsp:useBean id="inviaBean" scope="request" class="mnp.objects.ui.InviaBean"/>
|
||||
|
||||
|
||||
<%
|
||||
PageLoader pageLoader = new PageLoader();
|
||||
String[] olo = pageLoader.getDestinatario();
|
||||
int[] arrTipoFile = null;
|
||||
String[] arrTipoProcesso = pageLoader.getTipoProcesso();
|
||||
arrTipoFile = new int[]{-1};
|
||||
String sTipoProcesso = "";
|
||||
String sInputFile = "";
|
||||
String sIsDestSceltaMultipla = "";
|
||||
//--------------------------------------------------------------------/
|
||||
// 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.
|
||||
//--------------------------------------------------------------------/
|
||||
sInputFile = request.getParameter("inputFile")==null?"":request.getParameter("inputFile");
|
||||
sTipoProcesso = request.getParameter("sTipoProcessoSpec")==null?"":request.getParameter("sTipoProcessoSpec");
|
||||
|
||||
if( (sTipoProcesso!=null)&&(!sTipoProcesso.equals("")) ){
|
||||
//Se il tipo processo è CESSAZIONE o PORTING la combo dei destinatari deve permettere
|
||||
//la multi-selezione.
|
||||
|
||||
sIsDestSceltaMultipla = pageLoader.isMultipleDestProc(sTipoProcesso);
|
||||
|
||||
//carico array dei tipi file
|
||||
arrTipoFile = pageLoader.getTipoFileSpecifico(sTipoProcesso);
|
||||
}else{
|
||||
arrTipoFile = pageLoader.getTipoFileSpecifico("D"); // DA MODIFICARE PERCHE FA SCHIFO!!!!
|
||||
}
|
||||
%>
|
||||
|
||||
<!-- 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/Banner.jsp" flush = "true"/>
|
||||
</td>
|
||||
<td align = "right" valign = "top" width = "90%">
|
||||
<!--fine tabella x menu -->
|
||||
<br>
|
||||
<br>
|
||||
<b><i><P class = "titolo">INVIA FILE</P></i></b>
|
||||
|
||||
|
||||
<FORM NAME= "frmSpedisci" ENCTYPE="multipart/form-data" METHOD="POST" ACTION="<%=Res.ApplContext%>/FileUploadServlet" onSubmit = "return checkPageSpedisci(this)">
|
||||
<!-- dati -->
|
||||
<TABLE width = "100%" BORDER= "1" class ="border">
|
||||
<TR>
|
||||
<TD nowrap><P class = "normale"> Tipo PROCESSO </P> </TD>
|
||||
<TD nowrap><SELECT NAME= "cmbTipoProcesso" onChange = "ricaricaPagina(this.name,this.value,'<%=Res.ApplContext%>');">
|
||||
<%for(int i = 0;i<arrTipoProcesso.length;i++){
|
||||
String sTipoPro = arrTipoProcesso[i];
|
||||
String sIsSelected = "";//se è = al tipo passato devo selezionarlo.
|
||||
if(sTipoPro.equals(sTipoProcesso))sIsSelected = "SELECTED";%>
|
||||
<OPTION VALUE = '<%=sTipoPro%>' <%=sIsSelected%> >
|
||||
<%=pageLoader.tipoProcesso2String(arrTipoProcesso[i])%>
|
||||
</OPTION>
|
||||
<%}%>
|
||||
</SELECT>
|
||||
<FONT class = "fontNormale">Selezionare prima il Tipo Processo.</FONT>
|
||||
</TD>
|
||||
|
||||
</TR>
|
||||
|
||||
<TR><TD COLSPAN = "2" > </TD></TR>
|
||||
<TR>
|
||||
<TD><P class = "normale">Seleziona Richiesta </P></TD>
|
||||
<TD><INPUT TYPE="file" NAME='inputFile' VALUE ='<%=sInputFile%>'></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD><P class = "normale"> Tipo FILE </P> </TD>
|
||||
<TD><SELECT NAME= "cmbTipoFile">
|
||||
<%for(int i = 0;i<arrTipoFile.length;i++){%>
|
||||
<OPTION VALUE = '<%=arrTipoFile[i]%>'>
|
||||
<%=pageLoader.tipoFileInt2String(arrTipoFile[i])%>
|
||||
</OPTION>
|
||||
<%}%>
|
||||
</SELECT>
|
||||
</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD><P class = "normale"> Destinatario </P> </TD>
|
||||
<TD><SELECT NAME= "cmbDestinatario" <%=sIsDestSceltaMultipla%> >
|
||||
<%for (int i = 0; i <olo.length;i++){
|
||||
String sDescrOlo = olo[i];%>
|
||||
<OPTION VALUE = '<%=sDescrOlo%>'> <%=sDescrOlo%> </OPTION>
|
||||
<%}%>
|
||||
</SELECT>
|
||||
</TD>
|
||||
|
||||
</TR>
|
||||
|
||||
<TR><TD COLSPAN = "2" > </TD></TR>
|
||||
<TR>
|
||||
<TD COLSPAN = "2" ><P class = "normale"> Modalità Invio </P> </TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD COLSPAN = "2"><P class = "normale"><INPUT TYPE="radio" NAME="selectRadio" VALUE = "HTTPS"> HTTPS </P></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD COLSPAN = "2"><P class = "normale"><INPUT TYPE="radio" NAME="selectRadio" VALUE = "FILE" checked> FILE</P></TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
<BR>
|
||||
|
||||
|
||||
<!-- pulsanti -->
|
||||
<BR><BR><HR class = "riga">
|
||||
<TABLE width = "100%">
|
||||
<TR>
|
||||
<TD ALIGN= "CENTER"><INPUT TYPE= "submit" NAME= "btnGenera" VALUE= " INVIA "></TD>
|
||||
<INPUT TYPE="hidden" NAME="pageInvio">
|
||||
</TR>
|
||||
</TABLE>
|
||||
</FORM>
|
||||
<!-- tabella x menu -->
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<!-- tabella x menu -->
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
||||
Reference in New Issue
Block a user