201 lines
6.7 KiB
Plaintext
201 lines
6.7 KiB
Plaintext
<%@page import = "java.util.*, mnp.objects.dao.*,mnp.objects.*,mnp.command.*"%>
|
|
<%@page import = "mnp.utility.ui.Res"%>
|
|
<html>
|
|
<head>
|
|
<title>
|
|
Scegli Report
|
|
</title>
|
|
</head>
|
|
|
|
<jsp:useBean id="resultBean" scope="request" class="mnp.objects.result.FilterResult"/>
|
|
|
|
<%if(request.getParameter("btnLanciaReport")!= null){%>
|
|
<jsp:setProperty name="resultBean" property="*" />
|
|
<jsp:forward page="/LanciaReport.do"/>
|
|
<%}%>
|
|
|
|
|
|
|
|
<!-- 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>
|
|
<!-- titolo -->
|
|
<b><i><P class = "titolo">SELEZIONE DEI REPORT</P></i></b>
|
|
<!-- fine titolo -->
|
|
|
|
<%
|
|
String[] aProcessi = null;
|
|
String[] vProcessi = null;
|
|
String[] aNomiReport = null;
|
|
String sSelectedProcesso = "";
|
|
String sSelectedReport = "";
|
|
String sNomeParametro = "";
|
|
String sdescrizione = "";
|
|
String[] aBreve_desc = null;
|
|
String sLabelInfo = "";
|
|
|
|
|
|
String DATA_IN_FI = "data_inizio";
|
|
String DATAINFI = "data inizio/data fine";
|
|
|
|
|
|
if(resultBean != null){
|
|
|
|
aProcessi = resultBean.getProcesso();
|
|
aNomiReport = resultBean.getNome_report();
|
|
aBreve_desc = resultBean.getBreve_desc();
|
|
sSelectedProcesso = resultBean.getSelectedprocess();
|
|
sSelectedReport = resultBean.getSelectedreport();
|
|
|
|
|
|
|
|
if(resultBean.getParametri() != null)
|
|
{
|
|
sNomeParametro = resultBean.getParametri().getNome_parametro().trim();
|
|
sdescrizione = resultBean.getParametri().getDescrizione().trim();
|
|
sLabelInfo = resultBean.getParametri().getLabel_info().trim();
|
|
}
|
|
}
|
|
|
|
%>
|
|
|
|
<FORM NAME = "frmEseguiReport" ENCTYPE="multipart/form-data" method ="POST" onSubmit = 'return checkCampiReport(frmEseguiReport);' action= "<%=CommandsDef.LANCIA_REPORT_DO%>">
|
|
<p align = 'left'><font class = 'normaleTab'>Scegli Report</font></p>
|
|
|
|
<table width='100%' border = '1'>
|
|
<tr>
|
|
<!--Combo contenente i processi -->
|
|
<td class = 'tdCeleste'><font class='normaleTab'>Tipo Processo</font></td>
|
|
<td class = 'tdGiallo'>
|
|
<select name = 'cmbTipoProcesso' onChange = 'javascript:checkTipoProcesso("<%=Res.ApplContext%>",this.value)'>
|
|
<option value=""></option>
|
|
|
|
<%for (int i = 0; i < aProcessi.length; i++) {
|
|
if(aProcessi[i].equals(sSelectedProcesso)){%>
|
|
<option selected value = '<%=aProcessi[i]%>'><%=aProcessi[i]%></option>
|
|
|
|
<%}else{%>
|
|
<option value = '<%=aProcessi[i]%>'><%=aProcessi[i]%></option>
|
|
|
|
<%}%>
|
|
<%}%>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<%if(aNomiReport != null){%> <!--Combo contenente i nomi report -->
|
|
<tr>
|
|
<td class = 'tdCeleste'><font class='normaleTab'>Nomi Report</font></td>
|
|
<td class = 'tdGiallo'>
|
|
<select name = 'cmbNomiReport' onChange = 'javascript:checkNomeReport("<%=Res.ApplContext%>",this.value,cmbTipoProcesso.value)'>
|
|
<option value=""></option>
|
|
<%for (int i = 0; i < aNomiReport.length; i++) {
|
|
if(aNomiReport[i].equals(sSelectedReport)){%>
|
|
<option selected value = '<%=aNomiReport[i]%>'><%=aNomiReport[i]%>: <%=aBreve_desc[i]%></option>
|
|
|
|
<%}else{%>
|
|
<option value = '<%=aNomiReport[i]%>'><%=aNomiReport[i]%>: <%=aBreve_desc[i]%></option>
|
|
|
|
<%}%>
|
|
<%}%>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<%}%>
|
|
</table>
|
|
|
|
<%if(!sNomeParametro.equals("")){ %>
|
|
<br>
|
|
<p align = 'left'><font class = 'normaleTab'>Lista dei Parametri</font></p>
|
|
|
|
<table width = "100%" border='1'> <!--Tabella dei parametri di input -->
|
|
<%
|
|
if(sNomeParametro.equalsIgnoreCase("data_fine")){%> <!-- data_inizio/data_fine onblur = 'javascript:checkDataReport(frmEseguiReport);'-->
|
|
<tr>
|
|
<td class = 'tdGiallo' colspan = '3'><font class='normaleTab'>Descrizione report : <%=sdescrizione%></font></td>
|
|
</tr>
|
|
<tr>
|
|
<td class = 'tdCeleste' colspan = '3'><font class='normaleTab'>Data Inizio: <%=sLabelInfo%></font></td>
|
|
</tr>
|
|
<tr>
|
|
<td class = 'tdGiallo'>
|
|
<input type = 'text' name = 'txtdata_IN' size = '10' maxlength = 10 onblur = 'javascript:checkData(this, this.value);'>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr><td class= 'tdBianco' align= 'center' colspan = 3> </td></tr>
|
|
<tr>
|
|
<td class = 'tdCeleste'colspan = '3'><font class='normaleTab'>Data Fine: <%=sLabelInfo%></font></td>
|
|
</tr>
|
|
<tr>
|
|
<td class = 'tdGiallo'>
|
|
<input type = 'text' name = 'txtdata_FI' size = '10' maxlength = 10 onblur = 'javascript:checkData(this, this.value);'>
|
|
<input type = 'hidden' name = 'txt_YYYY' size = '10' maxlength = 10>
|
|
<input type = 'hidden' name = 'file'>
|
|
</td>
|
|
</tr>
|
|
<%}else if(sNomeParametro.equalsIgnoreCase("data")){%> <!-- data -->
|
|
<tr>
|
|
<td class = 'tdGiallo' colspan = '3'><font class='normaleTab'>Descrizione report : <%=sdescrizione%></font></td>
|
|
</tr>
|
|
<tr>
|
|
<td class = 'tdCeleste' colspan = '3'><font class='normaleTab'>Data: <%=sLabelInfo%></font></td>
|
|
</tr>
|
|
<tr>
|
|
<td class = 'tdGiallo'>
|
|
<input type = 'text' name = 'txt_YYYY' size = '10' maxlength = 10 onblur = 'javascript:checkData(this, this.value);'>
|
|
<input type = 'hidden' name = 'txtdata_IN' size = '10' maxlength = 10>
|
|
<input type = 'hidden' name = 'txtdata_FI' size = '10' maxlength = 10>
|
|
<input type = 'hidden' name = 'file'>
|
|
</td>
|
|
</tr>
|
|
<%}else if(sNomeParametro.equalsIgnoreCase("file in input")){%> <!-- file in input -->
|
|
<tr>
|
|
<td class = 'tdGiallo' colspan = '3'><font class='normaleTab'>Descrizione report : <%=sdescrizione%></font></td>
|
|
</tr>
|
|
<tr>
|
|
<td class = 'tdGiallo' colspan = '2'><font class='normaleTab'>Formato file : <%="<operatore>"+sLabelInfo%></font></td>
|
|
</tr>
|
|
<tr>
|
|
<td class = 'tdCeleste'><font class='normaleTab'>Selezionare un file :</font></td>
|
|
</tr>
|
|
<tr>
|
|
<td class = 'tdGiallo'><input type = 'file' name = 'file'></td>
|
|
<input type = 'hidden' name = 'txtdata_IN' size = '10' maxlength = 10>
|
|
<input type = 'hidden' name = 'txtdata_FI' size = '10' maxlength = 10>
|
|
<input type = 'hidden' name = 'txt_YYYY' size = '10' maxlength = 10>
|
|
</tr>
|
|
<%}
|
|
%>
|
|
</table>
|
|
<!-- pulsanti -->
|
|
<BR><BR><HR class = "riga">
|
|
<TABLE width = "100%">
|
|
<TR>
|
|
<TD ALIGN= "CENTER"><INPUT TYPE= "submit" NAME= "btnLanciaReport" VALUE= " LanciaReport "></TD>
|
|
</TR>
|
|
</TABLE>
|
|
<%}%>
|
|
|
|
<!-- tabella x menu -->
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<!-- tabella x menu -->
|
|
</BODY>
|
|
</HTML>
|
|
|
|
|