294 lines
9.7 KiB
Plaintext
294 lines
9.7 KiB
Plaintext
<%@page import = "mnp.crontab.utility.Resources"%>
|
|
<%@page import = "mnp.crontab.command.ApplicationManagerCostants"%>
|
|
<%@page import = "mnp.crontab.command.ManagerSession"%>
|
|
<%@page import = "mnp.crontab.objects.am.FileInfo"%>
|
|
<%@page import = "java.util.*"%>
|
|
<%@page import = "mnp.crontab.config.ui.ProfileConfig"%>
|
|
<%@page import = "mnp.crontab.database.dao.ProfiloDAO"%>
|
|
<%@page import = "mnp.crontab.objects.ui.LoginBean"%>
|
|
<%@page import = "mnp.crontab.command.AmministrazioneCostants"%>
|
|
|
|
<jsp:useBean id="resultBean" scope="request" class="mnp.crontab.objects.am.XMLObject" />
|
|
|
|
<HTML>
|
|
<head>
|
|
<TITLE>
|
|
Mnp
|
|
</TITLE>
|
|
<script language = "Javascript">
|
|
function checkNumber(number)
|
|
{
|
|
|
|
if (isNaN(number.value))
|
|
{
|
|
alert('Numero Errato');
|
|
number.value='0';
|
|
number.focus();
|
|
}
|
|
}
|
|
</script>
|
|
<%@page import = "mnp.crontab.objects.*, mnp.crontab.utility.ui.Res"%>
|
|
<jsp:include page="/jsp/VerificheScriptCrontab.txt" flush = "true"/>
|
|
|
|
<% ManagerSession aManagerSession = (ManagerSession) session.getAttribute(
|
|
ApplicationManagerCostants.OBJECT_MANAGER_SESSION);
|
|
String pathCfg = aManagerSession.getPath_file();
|
|
LoginBean aLoginBean = (LoginBean) session.getAttribute(AmministrazioneCostants.OBJECT_LOGINBEAN_SESSION);
|
|
ProfiloDAO pr = new ProfiloDAO();
|
|
ProfileConfig _prConf = pr.listFunctionApplication(aLoginBean.getCodiceProfilo(), ProfileConfig.DOMINIO_APPLICATION_MANAGER,ProfileConfig.XML_CONFIGURAZIONE);
|
|
%>
|
|
<form method="post" action="XMLCommand.do" name="formCentrale">
|
|
<INPUT type="hidden" name="JSP_FUNCTION" value="">
|
|
<INPUT type="hidden" name="<%= ApplicationManagerCostants.CAMPO_ELEMENT_CHECKED %>" value="">
|
|
<BODY >
|
|
<!-- 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%" border = "0">
|
|
<tr>
|
|
<td width = "10%">
|
|
<jsp:include page="/jsp/BannerApplicationManager.jsp" flush = "true"/>
|
|
</td>
|
|
<td width = "90%" valign="top">
|
|
<DIV align="center">
|
|
<center>
|
|
<table border="0" width="100%">
|
|
<tr align = "center" valign = "top" width="45%" bgcolor="#D61414">
|
|
<td><b><i>
|
|
<P class="Titolo"><font color="#FFFFFF">
|
|
<%= (String)Resources.getDay()%></font></P></i></b>
|
|
</td>
|
|
<td align = "right" valign = "top" width="45%" bgcolor="#D61414">
|
|
<b><i>
|
|
<P class="Titolo"><font color="#FFFFFF">CONFIGURAZIONE SISTEMA GESTIONE XML </font></P></i></b>
|
|
</td>
|
|
</tr>
|
|
<tr >
|
|
<td align = "left" valign = "top" width="85%" colspan="5" bgcolor="#D61414">
|
|
<b><i>
|
|
<P class="Titolo"><font color="#FFFFFF">File: <%=pathCfg%> </font></P></i></b>
|
|
</td>
|
|
</tr>
|
|
|
|
</table>
|
|
<p align='center'>
|
|
|
|
<table width = '50%' border='1' bordercolorlight="#000080" bordercolordark="#000080" height="219">
|
|
<tr >
|
|
<td align = "left" valign = "top" width="85%" bgcolor="#000080" colspan="5" height="19">
|
|
<b><i>
|
|
<P class="Titolo"><font color="#FFFFFF"> GENERAZIONE E INVIO FILE XML</font></P></i></b>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="5" height="19" width="90%" align="right"><font color="#D61414"><i>campi obbligatori</i></font>
|
|
</td>
|
|
</tr>
|
|
<tr >
|
|
<td align = "left" valign = "top" width="85%" colspan="5" bgcolor="#CCCCCC" height="22">
|
|
<p align="center"><font color="#000080" size="4"><b><i>Dati Sistema XML</i></b></font></p>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr >
|
|
<td align = "left" valign = "top" width="28%" bgcolor="#FFFFCC" height="23">
|
|
<b><font color="#D61414">Abilitazione</font></b>
|
|
</td>
|
|
<td align = "center" valign = "top" width="15%" height="23">
|
|
<p><b><i>Si</i></b></p>
|
|
</td>
|
|
<td align = "center" valign = "top" width="14%" height="23">
|
|
<input type="radio" value="Si" name="abilitazione" <% if (resultBean.isAbilitazione()) { %>checked <%}%> >
|
|
</td>
|
|
<td align = "center" valign = "top" width="14%" height="23">
|
|
<b><i>No</i></b>
|
|
</td>
|
|
<td align = "center" valign = "top" width="14%" height="23">
|
|
<input type="radio" value="No" name="abilitazione" <% if (!resultBean.isAbilitazione()) { %>checked <%}%> >
|
|
</td>
|
|
</tr>
|
|
|
|
<tr >
|
|
<td align = "left" valign = "top" width="43%" bgcolor="#FFFFCC" height="23">
|
|
<b><font color="#D61414">Numero Massimo di Richieste</font></b>
|
|
</td>
|
|
<td align = "left" valign = "top" width="42%" height="23" colspan="4">
|
|
<input type="text" name="nroMassimoRichieste" maxlength="3" size="3" value="<%= resultBean.getNroRichieste()%>" onblur="checkNumber(document.formCentrale.nroMassimoRichieste)">
|
|
</td>
|
|
</tr>
|
|
|
|
<tr >
|
|
<td align = "left" valign = "top" width="28%" bgcolor="#FFFFCC" height="23">
|
|
<b><font color="#D61414">Tempo Massimo di Attesa <i>(minuti)</i></font></b>
|
|
</td>
|
|
<td align = "left" valign = "top" width="57%" height="23" colspan="4">
|
|
<input type="text" name="maxTempoAttesa" size="3" value="<%= resultBean.getMaxTempoAttesa()%>" onblur="checkNumber(document.formCentrale.maxTempoAttesa)">
|
|
</td>
|
|
</tr>
|
|
|
|
<tr >
|
|
<td align = "left" valign = "top" width="85%" height="19" colspan="5">
|
|
<center>
|
|
<TABLE nowrap width="30%">
|
|
<TBODY>
|
|
<TR >
|
|
<TD height="17" nowrap align="center" width="20%" class="hmenu"><A class="hmenu" href="javascript:checkAllFieldFile(document.formCentrale,<%= ApplicationManagerCostants.CMD_AGGIORNA_FILE_XML %>)"> Aggiorna
|
|
Dati</A></TD>
|
|
</TR>
|
|
</TBODY>
|
|
</TABLE>
|
|
</center>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<br>
|
|
|
|
<table width = '100%' border='1' bordercolorlight="#000080" bordercolordark="#000080">
|
|
<tr >
|
|
<td align = "left" valign = "top" width="85%" bgcolor="#000080" colspan="9">
|
|
<b><i>
|
|
<P class="Titolo"><font color="#FFFFFF">Tipologie File</font></P></i></b>
|
|
</td>
|
|
</tr>
|
|
<tr >
|
|
<td align = "left" valign = "top" width="85%" bgcolor="#FFFFCC" colspan="9">
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align = "center" valign = "top" width="12%" bgcolor="#CCCCCC">
|
|
<b><i>Nome</i></b>
|
|
</td>
|
|
<td align = "center" valign = "top" width="14%" bgcolor="#CCCCCC" colspan="2">
|
|
<b><i>Operatori Abilitati</i></b>
|
|
</td>
|
|
<td align = "center" valign = "top" width="14%" bgcolor="#CCCCCC" colspan="2">
|
|
<b><i>Schedulazione</i></b>
|
|
</td>
|
|
<td align = "center" valign = "top" width="22%" bgcolor="#CCCCCC" colspan="2">
|
|
<b><i> Priorita' Acquisizione</i></b>
|
|
</td>
|
|
<td align = "center" valign = "top" width="22%" bgcolor="#CCCCCC" colspan="2">
|
|
<b><i> Priorita' Spedizione</i></b>
|
|
</td>
|
|
</tr>
|
|
<% String colore= new String();
|
|
|
|
ArrayList r = null;
|
|
r = resultBean.getListaFile();
|
|
for(int i=0; i<r.size();i++) {
|
|
FileInfo FI = (FileInfo) r.get(i);
|
|
if (i%2 == 0) colore="white";
|
|
else
|
|
colore="#99CCFF";
|
|
|
|
%>
|
|
|
|
<tr bgcolor=<%= colore%> >
|
|
<td align = "center" valign = "center" width="12%">
|
|
<b><%= FI.getNome()%></b>
|
|
</td>
|
|
<td align = "left" valign = "top" width="7%">
|
|
<%= FI.getLabelOperatori()%>
|
|
</td>
|
|
<td align = "center" valign = "center" width="7%">
|
|
<TABLE nowrap width="80%">
|
|
<TBODY>
|
|
<TR >
|
|
<TD height="17" nowrap align="center" width="20%" class="hmenu"><A class="hmenu" href="javascript:buttonAction(document.formCentrale,<%= ApplicationManagerCostants.FNC_MODIFICA_OPERATORE_XML %>,'<%= i%>','n')"> Modifica</A></TD>
|
|
</TR>
|
|
</TBODY>
|
|
</TABLE>
|
|
</td>
|
|
<td align = "center" valign = "top" width="7%">
|
|
<%= FI.getLabelSchedulazione()%>
|
|
</td>
|
|
<td align = "center" valign = "center" width="7%">
|
|
<TABLE nowrap width="80%">
|
|
<TBODY>
|
|
<TR >
|
|
<TD height="17" nowrap align="center" width="20%" class="hmenu"><A class="hmenu" href="javascript:buttonAction(document.formCentrale,<%= ApplicationManagerCostants.FNC_MODIFICA_FILE_XML %>,'<%= i%>','n')"> Modifica</A></TD>
|
|
</TR>
|
|
</TBODY>
|
|
</TABLE>
|
|
</td>
|
|
<td align = "left" valign = "center" width="15%">
|
|
<%= FI.getLabelProcessiPrioritaIn()%>
|
|
</td>
|
|
<td align = "center" valign = "center" width="7%">
|
|
<TABLE nowrap width="80%">
|
|
<TBODY>
|
|
<TR >
|
|
<TD height="17" nowrap align="center" width="20%" class="hmenu"><A class="hmenu" href="javascript:buttonAction(document.formCentrale,<%= ApplicationManagerCostants.FNC_MODIFICA_PRIORITA_XML_IN %>,'<%= i%>','n')"> Modifica</A></TD>
|
|
</TR>
|
|
</TBODY>
|
|
</TABLE>
|
|
</td>
|
|
<td align = "left" valign = "center" width="15%">
|
|
<%= FI.getLabelProcessiPriorita()%>
|
|
</td>
|
|
<td align = "center" valign = "center" width="7%">
|
|
<TABLE nowrap width="80%">
|
|
<TBODY>
|
|
<TR >
|
|
<TD height="17" nowrap align="center" width="20%" class="hmenu"><A class="hmenu" href="javascript:buttonAction(document.formCentrale,<%= ApplicationManagerCostants.FNC_MODIFICA_PRIORITA_XML %>,'<%= i%>','n')"> Modifica</A></TD>
|
|
</TR>
|
|
</TBODY>
|
|
</TABLE>
|
|
</td>
|
|
</tr>
|
|
<% }%>
|
|
<tr bgcolor=<%= colore%> >
|
|
<td align = "center" valign = "top" width="12%">
|
|
<b><a href="javascript:buttonActionMenu(document.formCentrale,<%= ApplicationManagerCostants.FNC_LISTA_FILE_ACK %>,'XMLCommand.do')">Lista File ACK</a></b>
|
|
</td>
|
|
<td align = "left" valign = "top" width="7%">
|
|
|
|
</td>
|
|
<td align = "center" valign = "center" width="7%">
|
|
</td>
|
|
<td align = "center" valign = "top" width="7%">
|
|
</td>
|
|
<td align = "center" valign = "center" width="7%">
|
|
</td>
|
|
<td align = "center" valign = "center" width="15%">
|
|
</td>
|
|
<td align = "center" valign = "center" width="7%">
|
|
</td>
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
</center>
|
|
</div>
|
|
<br>
|
|
<br>
|
|
<% if (_prConf.visualizzaFunction(String.valueOf(ApplicationManagerCostants.CMD_APPLY_ALL_XML)))
|
|
{ %>
|
|
<center>
|
|
<TABLE nowrap width="20%">
|
|
<TBODY>
|
|
<TR >
|
|
<TD height="17" nowrap align="center" width="20%" class="hmenu">
|
|
<p align="center"><A title="Conferma tutte le modifiche apportate alle Liste per la gestione del XML" class="hmenu" href="javascript:buttonActionPassaggio(document.formCentrale,<%= ApplicationManagerCostants.CMD_APPLY_ALL_XML %>)"> Apply</A></p>
|
|
</TD>
|
|
</TR>
|
|
</TBODY>
|
|
</TABLE>
|
|
</center>
|
|
<% } %>
|
|
|
|
</table>
|
|
|
|
|
|
<!-- tabella x menu -->
|
|
|
|
</BODY>
|
|
</form>
|
|
</HTML>
|