First Commit - Source Code from Reply

This commit is contained in:
vincenzofariello
2024-05-13 12:54:14 +02:00
parent 73e32a5020
commit a15aee1f08
11184 changed files with 1065913 additions and 0 deletions

View File

@@ -0,0 +1,194 @@
<%@page import = "mnp.crontab.objects.ui.TaskBean"%>
<%@page import = "mnp.crontab.command.CrontabCostants" %>
<%@page import = "mnp.crontab.objects.*, mnp.crontab.utility.Resources"%>
<%@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"%>
<HTML>
<head>
<TITLE>
Mnp
</TITLE>
<%@page import = "mnp.crontab.objects.*, mnp.crontab.utility.ui.Res"%>
<jsp:include page="/jsp/VerificheScriptCrontab.txt" flush = "true"/>
<%
LoginBean aLoginBean = (LoginBean) session.getAttribute(AmministrazioneCostants.OBJECT_LOGINBEAN_SESSION);
ProfiloDAO pr = new ProfiloDAO();
ProfileConfig _prConf = pr.listFunctionApplication(aLoginBean.getCodiceProfilo(), ProfileConfig.DOMINIO_CRONTAB,ProfileConfig.ATTIVITA_GIORNALIERA);
%>
<jsp:useBean id="resultBean" scope="request" class="mnp.crontab.objects.ListaTasks" />
<jsp:useBean id="CrontabSession" scope="session" class="mnp.crontab.command.CrontabSession" />
<form method="post" action="TaskCommand.do" name="formCentrale" >
<INPUT type="hidden" name="JSP_FUNCTION" value="">
<INPUT type="hidden" name="<%= CrontabCostants.CAMPO_ELEMENT_CHECKED %>" value="">
<INPUT type="hidden" name="<%= CrontabCostants.CAMPO_ELEMENT_CHECKED_PARAM %>" value="">
<BODY onLoad="aggiorna()">
<!-- 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/GUI/Banner.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">ATTIVITA' GIORNALIERA</font></P></i></b>
</td>
</tr>
<tr >
<% if (resultBean.getListaTaskBean().length == 0)
{
%>
<td align = "left" ><b><i><font color="#D61414">
La lista non ha nessun Task da eseguire</font></i></b>
</td>
<%
}
else
{ %>
<td align = "left" ><b><i><font color="#D61414">
La lista riporta i prossimi <%= resultBean.getListaTaskBean().length %> Task da eseguire </font></i></b>
</td>
<% } %>
</tr>
</table>
<p align='center'>
<table width = '100%' border='0'>
<tr >
<td align = "left" valign = "top" width="40%" bgcolor="#000080" colspan="3">
<b><i>
<P class="Titolo"><font color="#FFFFFF" >Task del giorno</font></P></i></b>
</td>
<td align = "right" valign = "top" width="60%" bgcolor="#000080" colspan="3">
<b><i><P class="Titolo"><font color="#FFFFFF"><%= CrontabSession.getStato_Schedulatore()%></font></P></i></b>
</td>
</tr>
<tr>
<td class= 'tdCeleste' align= 'center' width="14%">
<p align="center"><font class = 'normaleTab'>Nome</font></p>
</td>
<td class= 'tdCeleste' align= 'center' width="14%">
<p align="center"><font class="normaleTab">Modalit&agrave;</font>
</td>
<td class= 'tdCeleste' align= 'center' width="14%">
<font class="normaleTab">Intervallo</font></td>
<td class= 'tdCeleste' align= 'center' width="23%">
<font class="normaleTab">Processo</font></td>
<td class= 'tdCeleste' align= 'center' width="20%">
<font class="normaleTab">Stato Processo</font></td>
<td class= 'tdCeleste' align= 'center' width="15%">
<font class="normaleTab">Operazione</font></td>
</tr>
<% TaskBean[] r1 = null;
r1 = resultBean.getListaTaskBean();
for (int i = 0; i < r1.length; i++) {
%>
<tr>
<td class= 'tdGiallo' align='center' ><font class = 'normaleTab'><%=r1[i].getNome()%></font></td>
<td class= 'tdGiallo' align='center' ><font class = 'normaleTab'><%=r1[i].getModalita()%></font></td>
<td class= 'tdGiallo' align='center' ><font class = 'normaleTab'><%=r1[i].getOraPartenza()%> - <%=r1[i].getOraStop()%></font></td>
<td class= 'tdGiallo' align='left' ><font class = 'normaleTab'><%=r1[i].getLabelProcessAssociati()%></font></td>
<td class= 'tdGiallo' align='left' ><font color="#D61414"><%=r1[i].getStato()%></font></td>
<td class= 'tdGiallo' align='center' >
<% if (r1[i].getModalita().equals(CrontabCostants.MODALITA_RUNNING) )
{ %>
<center>
<TABLE height="17" border="0" width="60%">
<TR >
<td height="17" nowrap align="center" width="25%" class="hmenu"><A class="hmenu" href="javascript:buttonActionWithParam(document.formCentrale,<%= CrontabCostants.CMD_ARRESTA_TASK %>,'<%= r1[i].getId()%>','<%= r1[i].getIdTask()%>','y')"> Arresta </A></TD>
</tr>
</Table>
</center>
<% } %>
<% if (r1[i].getModalita().equals(CrontabCostants.MODALITA_IN_PARTENZA) )
{ %>
<center>
<TABLE height="17" border="0" width="60%">
<TR >
<td height="17" nowrap align="center" width="25%" class="hmenu"><A class="hmenu" href="javascript:buttonActionWithParam(document.formCentrale,<%= CrontabCostants.CMD_ARRESTA_TASK %>,'<%= r1[i].getId()%>','<%= r1[i].getIdTask()%>','y')"> Arresta </A></TD>
</tr>
</Table>
</center>
<% } %>
</td>
</tr>
<%}%>
<tr>
<td class= 'tdCeleste' align= 'center' ><font class = 'normaleTab'>Nome</font></td>
<td class= 'tdCeleste' align= 'center' ><font class="normaleTab">Modalit&agrave;</font></td>
<td class= 'tdCeleste' align= 'center' ><font class="normaleTab">Intervallo</font></td>
<td class= 'tdCeleste' align= 'center' ><font class="normaleTab">Processo</font></td>
<td class= 'tdCeleste' align= 'center' ><font class="normaleTab">Stato
Uscita</font></td>
<td class= 'tdCeleste' align= 'center' ><font class="normaleTab">Operazione</font></td>
</tr>
</table>
<p align='center'>
</center>
<center>
<% // codice per width della table
int w = _prConf.getListFunction().size()*25;%>
<TABLE nowrap width="<%= w%>%">
<TBODY>
<TR width="40">
<% if (_prConf.visualizzaFunction(String.valueOf(CrontabCostants.FNC_TASK_EMERGENZA)))
{ %>
<TD height="17" nowrap align="center" width="25%" class="hmenu"><A class="hmenu" href="javascript:buttonAction(document.formCentrale,<%= CrontabCostants.FNC_TASK_EMERGENZA %>,'','n')"> Crea Task
Emergenza</A></TD>
<% }
if (_prConf.visualizzaFunction(String.valueOf(CrontabCostants.FNC_LANCIA_TASK_EMERGENZA)))
{ %>
<TD height="17" nowrap align="center" width="25%" class="hmenu"><A class="hmenu" href="javascript:buttonAction(document.formCentrale,<%= CrontabCostants.FNC_LANCIA_TASK_EMERGENZA %>,'','n')"> Lancia Task Emergenza
</A></TD>
<% } %>
</TR>
</TBODY>
</TABLE>
</center>
</div>
</table>
<!-- tabella x menu -->
</BODY>
</form>
</HTML>

View File

@@ -0,0 +1,195 @@
<%@page import = "mnp.crontab.objects.*, mnp.crontab.utility.ui.Res"%>
<%@page import = "mnp.crontab.command.*" %>
<%@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"%>
<% if (session.isNew()) { session.invalidate(); %>
<jsp:forward page="sessioneInattivaProject.jsp" />
<%
}
Boolean statoConfBool = (Boolean) session.getAttribute(CrontabCostants.STATO_CONFIGURAZIONE);
boolean statoConf = (statoConfBool == null) || (statoConfBool.booleanValue());
LoginBean aLoginBean = (LoginBean) session.getAttribute(AmministrazioneCostants.OBJECT_LOGINBEAN_SESSION);
ProfiloDAO pr = new ProfiloDAO();
ProfileConfig _prConf = pr.listFunctionApplication(aLoginBean.getCodiceProfilo(), ProfileConfig.DOMINIO_CRONTAB,ProfileConfig.BANNER_CRONTAB);
%>
<html>
<head>
<LINK REL="stylesheet" TYPE="text/css" HREF="<%=Res.ApplContext%>/jsp/GUI/GUIStyle.css">
</head>
<body>
<table width = "160" bgcolor = "#D61414" height="100%">
<tr>
<td align = "center"><IMG SRC ="<%=Res.ApplContext%>/images/LogoMnp.gif"></TD>
</tr>
<tr>
<td>&nbsp</td>
</tr>
<tr>
<td nowrap align= "center"><FONT class = "bannerVertTitolo">MNP</FONT></td>
</tr>
<tr>
<td nowrap align= "center"><FONT class = "bannerVertTitolo">GESTIONE ATTIVITA'</FONT></td>
</tr>
<tr>
<td nowrap align= "center"><FONT class = "bannerVertTitolo"></FONT></td>
</tr>
<tr>
<td nowrap align= "center"><HR class = "riga"></td>
</tr>
<!-- Casetta Home back e forward -->
<tr>
<td width = "100%" bgcolor = "#D61414" align = "center">
<a href ='javascript:history.back()'>
<img border = 0 SRC ="<%=Res.ApplContext%>/images/back.gif"/>
</a>
<a href = "javascript:buttonActionMenu(document.formCentrale,<%= CrontabCostants.FNC_HOME_PRESENTAZIONE %>,'Index.do')">
<img border = 0 SRC ="<%=Res.ApplContext%>/images/casetta.gif"/>
</a>
<a href ='javascript:history.forward()'>
<img border = 0 SRC ="<%=Res.ApplContext%>/images/forward.gif"/>
</a>
</td>
</tr>
<tr>
<td>&nbsp</td>
</tr>
<tr>
<td>
<a href = "javascript:buttonActionMenu(document.formCentrale,<%= CrontabCostants.FNC_ATTIVITA_GIORNALIERE %>,'Index.do')" class = "linkBanner">
> ATTIVITA' GIORNALIERA
</a>
</td>
</tr>
<% if (_prConf.visualizzaFunction(String.valueOf(CrontabCostants.CMD_ABILITAZIONE_SCHED))) { %>
<tr>
<td>
<a href="javascript:messageAlert(document.formCentrale,<%= CrontabCostants.CMD_ABILITAZIONE_SCHED %>,'Abilitazione del motore ad eseguire attivit&agrave;.','Index.do' )" class = "linkBanner">
> ABILITAZIONE
</a>
</td>
</tr>
<% } if (_prConf.visualizzaFunction(String.valueOf(CrontabCostants.CMD_DISABILITAZIONE_SCHED))) { %>
<tr>
<td>
<a href="javascript:messageAlert(document.formCentrale,<%= CrontabCostants.CMD_DISABILITAZIONE_SCHED %>,'Disabilitazione del motore (sospensione) ad eseguire attivit&agrave;.','Index.do' )" class = "linkBanner">
> DISABILITAZIONE
</a>
</td>
</tr>
<% } if (_prConf.visualizzaFunction(String.valueOf(CrontabCostants.CMD_RESTART_SCHED))) { %>
<tr>
<td>
<a href="javascript:messageAlert(document.formCentrale,<%= CrontabCostants.CMD_RESTART_SCHED %>,'Lo schedulatore verr&agrave; reinizializzato per ricalcolare la sequenza delle attivit&agrave; da svolgere.','Index.do' )" class = "linkBanner">
> RESTART
</a>
</td>
</tr>
<% } %>
<tr>
<td>
<a href = "javascript:buttonActionMenu(document.formCentrale,<%= CrontabCostants.FNC_LISTA_TASK_SCHEDULATI %>,'Index.do')" class = "linkBanner">
> TASK GIORNALIERI
</a>
</td>
</tr>
<tr>
<td>&nbsp</td>
</tr>
<tr>
<td>
<a href="javascript:buttonActionMenu(document.formCentrale,<%= CrontabCostants.FNC_GESTIONE_TASK %>,'Index.do')" class = "linkBanner">
> GESTIONE TASK
</a>
</td>
</tr>
<tr>
<td>
<a href="javascript:buttonActionMenu(document.formCentrale,<%= CrontabCostants.FNC_GESTIONE_PROCESSI %>,'Index.do')" class = "linkBanner">
> GESTIONE PROCESSI
</a>
</td>
</tr>
<tr>
<td>&nbsp</td>
</tr>
<% if(!statoConf) { %>
<tr>
<td>
<img src='<%=Res.ApplContext%>/images/esclamativo.gif' border=0 alt="salvare la configurazione se non si vuole perdere le modifiche"/>
<a href="javascript:buttonActionMenu(document.formCentrale,<%= CrontabCostants.FNC_CONFIGURAZIONE_XML %>,'Index.do')" class = "linkBanner" alt="salvare la configurazione se non si vuole perdere le modifiche">
> CONFIGURAZIONE
</a>
<img src='<%=Res.ApplContext%>/images/esclamativo.gif' border=0 alt="salvare la configurazione se non si vuole perdere le modifiche"/>
</td>
</tr>
<% } else { %>
<tr>
<td>
<a href="javascript:buttonActionMenu(document.formCentrale,<%= CrontabCostants.FNC_CONFIGURAZIONE_XML %>,'Index.do')" class = "linkBanner">
> CONFIGURAZIONE
</a>
</td>
</tr>
<% } if (_prConf.visualizzaFunction(String.valueOf(CrontabCostants.FNC_GESTIONE_GATEWAY))) { %>
<tr>
<td>
<a href="javascript:buttonActionMenu(document.formCentrale,<%= CrontabCostants.FNC_GESTIONE_GATEWAY %>,'Index.do')" class = "linkBanner">
> GESTIONE GATEWAY
</a>
</td>
</tr>
<% } %>
<tr>
<td>&nbsp</td>
</tr>
<tr>
<td>&nbsp</td>
</tr>
<tr>
<td>
<a href="javascript:buttonActionMenu(document.formCentrale,<%= CrontabCostants.FNC_LOGOUT_CRONTAB %>,'Index.do')" class = "linkBanner">
> GUI - MNP
</a>
</td>
</tr>
<tr>
<td>&nbsp</td>
</tr>
<tr>
<td>&nbsp</td>
</tr>
<tr>
<td height="200">&nbsp</td>
</tr>
<tr>
<td>&nbsp</td>
</tr>
</table>
</body>
</html>

View File

@@ -0,0 +1,169 @@
<%@page import = "mnp.crontab.objects.ui.TaskBean"%>
<%@page import = "mnp.crontab.command.CrontabCostants"%>
<%@page import = "mnp.crontab.utility.Resources"%>
<%@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"%>
<%@page import = "java.io.*"%>
<HTML>
<head>
<TITLE>
Mnp
</TITLE>
<script language = "Javascript">
function controllo()
{
document.formCentrale.Ripristina.value=document.formCentrale.nuovoFile.value
if (document.formCentrale.nuovoFile.value !='')
messageAlert(document.formCentrale,<%= CrontabCostants.CMD_RELOAD_XML %>,'Ripristinare il file XML.','Index.do' )
else
alert('Errore.Inserire almeno un carattere');
}
</script>
<%@page import = "mnp.crontab.objects.*, mnp.crontab.utility.ui.Res"%>
<jsp:include page="/jsp/VerificheScriptCrontab.txt" flush = "true"/>
<%
String pathFileCfg = (String)request.getAttribute(CrontabCostants.OBJECT_RESULT_BEAN);
String xmlVer = (String)request.getAttribute(CrontabCostants.XML_CONF_VER);
String xmlSubVer = (String)request.getAttribute(CrontabCostants.XML_CONF_SUBVER);
String xmlName = (String)request.getAttribute(CrontabCostants.XML_CONF_NAME);
LoginBean aLoginBean = (LoginBean) session.getAttribute(AmministrazioneCostants.OBJECT_LOGINBEAN_SESSION);
ProfiloDAO pr = new ProfiloDAO();
ProfileConfig _prConf = pr.listFunctionApplication(aLoginBean.getCodiceProfilo(), ProfileConfig.DOMINIO_CRONTAB,ProfileConfig.LISTA_CONFIGURAZIONE);
%>
<form method="post" action="" name="formCentrale">
<INPUT type="hidden" name="JSP_FUNCTION" value="">
<INPUT type="hidden" name="Ripristina" 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/GUI/Banner.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 ver: <%=xmlVer%> subver: <%=xmlSubVer%></font></P></i></b>
</td>
</tr>
<tr >
<td align = "right" valign = "top" width="85%" colspan="5">
&nbsp;
</td>
</tr>
</table>
<p align='center'>
<table width = '664' border='0'>
<tr >
<td align = "left" valign = "top" width="636" colspan="3" bgcolor="#000080">
<b><i>
<P class="Titolo"><font color="#FFFFFF">Configurazione del file xml: <%=pathFileCfg%></font></P></i></b>
</td>
</tr>
<tr>
<td align= 'center' width="158">&nbsp;
<p>&nbsp;</td>
<td align= 'center' width="325"></td>
<td align= 'center' width="161"></td>
</tr>
<% if (_prConf.visualizzaFunction(String.valueOf(CrontabCostants.CMD_SAVE_XML)))
{ %>
<tr>
<td align= 'center' bgcolor="#FFFFCC" width="158"><i><b>Salva file&nbsp;</b></i></td>
<td align= 'left' colspan="2" width="492" >
<TABLE height="17" border="0" width="30%">
<TR >
<td height="17" nowrap align="center" width="50%" class="hmenu"><A class="hmenu" href="javascript:messageAlert(document.formCentrale,<%= CrontabCostants.CMD_SAVE_XML %>,'Salvare il file XML.','Index.do' )"> Salva</A></TD>
</tr>
</Table>
</td>
</tr>
<% } %>
<tr>
<td align= 'center' width="158" >&nbsp;
<p>&nbsp;</td>
<td align= 'center' width="325" ></td>
<td align= 'center' width="161" ></td>
</tr>
<tr>
<td align= 'center' bgcolor="#FFFFCC" width="158"><b><i>Ripristina file</i></b></td>
<td align= 'center' width="325" >
<SELECT name="nuovoFile" >
<%
File fileDir = new File(pathFileCfg).getParentFile();
File[] listFile = fileDir.listFiles(new FileFilter()
{
public boolean accept(File file)
{
org.apache.regexp.RE regExp = new org.apache.regexp.RE(Resources.getFormatoFileXML_CONF());
//System.out.println("nomeFile: " + file.getName() + " - regExp.match(): " + regExp.match(file.getName()));
return regExp.match(file.getName());
}
});
for (int i = 0; i < listFile.length; i++) {
if(!listFile[i].isDirectory())
{
%>
<OPTION value="<%=listFile[i].getAbsolutePath()%>"> <%=listFile[i].getName()%></OPTION>
<%
}
}
%>
</SELECT>
</td>
<td align= 'center' width="161" >
<center>
<TABLE height="17" border="0" width="60%">
<TR >
<td height="17" nowrap align="center" width="50%" class="hmenu"><A class="hmenu" href="javascript:controllo()">Ripristina</A></TD>
</tr>
</Table>
</center>
</td>
</tr>
<tr>
<td align= 'center' width="158" >&nbsp;
<p>&nbsp;</td>
<td align= 'center' width="325" ></td>
<td align= 'center' width="161" ></td>
</tr>
</table>
</center>
<p align='center'>
&nbsp;
</div>
</table>
<!-- tabella x menu -->
</BODY>
</form>
</HTML>

View File

@@ -0,0 +1,10 @@
<html>
<head>
<title>
Empty
</title>
</head>
<body bgcolor="#ffffff">
</body>
</html>

View File

@@ -0,0 +1,83 @@
<%@page isErrorPage="true" %>
<%@page import = "java.io.*, java.lang.*, mnp.crontab.objects.*, mnp.crontab.objects.ui.*, mnp.crontab.exception.*,mnp.crontab.utility.ui.Res"%>
<html>
<head>
<title>
ErrorJSP
</title>
<jsp:useBean id="resultBean" scope="request" class="java.lang.Exception" />
<%
Exception myEx = new Exception();
%>
</HEAD>
<BODY>
<!-- riga rossa orizzontale -->
<table width = "100%">
<TR><td width = "100%" bgcolor = "#D61414">&nbsp</td><TR>
</table>
<!-- colonna di menu verticale -->
<table width = "100%" border = "0">
<tr>
<td HEIGHT = "100%" width = "10%" bgcolor = "#D61414" valign = "top">
<IMG src ="<%=Res.ReqURL%>/images/LogoMnp.gif">
</td>
<td align = "right" valign = "top" width = "90%">
<!-- td dove scrivere i dati a destra -->
<!-- titolo a destra -->
<BR>
<b><i><FONT face = "Arial" color = "#455598" size = 4>ERROR GESTIONE ATTIVITA'</Font></i></b>
<!-- tabella dei dati -->
<TABLE border = 0 align = "center" width = "100%">
<tr>
<td width = "90%"><font color = "#455598">
<%
if(resultBean!=null) {
myEx= resultBean;
myEx.printStackTrace();
}
%>
Attenzione!<br />
Impossibile visualizzare la pagina causa:
<% if(resultBean.getMessage()!=null){
%>
<h3><b><%=myEx.getMessage()%></b></h3><br>
<%}
else{%>
<h3><b>Messaggio dell'errore non disponibile!</b></h3><br>
<%}%>
</FONT>
</td>
</tr>
<tr><TD>&nbsp</TD></tr>
<tr><TD>&nbsp</TD></tr>
<tr><TD>&nbsp</TD></tr>
<tr><TD>&nbsp</TD></tr>
</TABLE>
<!-- tabella x menu verticale-->
</td>
</tr>
</table>
</body>
</html>

View File

@@ -0,0 +1,70 @@
<HTML>
<head>
<TITLE>
Mnp
</TITLE>
<%@page import = "mnp.crontab.objects.*, mnp.crontab.utility.ui.Res"%>
<%@page import = "mnp.crontab.command.CrontabCostants" %>
<jsp:include page="/jsp/VerificheScriptCrontab.txt" flush = "true"/>
<form method="post" action="" name="formCentrale">
<INPUT type="hidden" name="JSP_FUNCTION" 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%">
<tbody>
<tr>
<td width = "10%">
<jsp:include page="/jsp/GUI/Banner.jsp" flush = "true"/>
</td>
<td width = "90%" valign="top">
<DIV align="center" >
<table cellpadding="0" cellspacing="0" nowrap width="620" colspan="2">
<tbody>
<tr height="10"><tr>
<tr align = "right" valign = "top" width="85%">
<td width="615" height="10" align="right">
<b><i><P ><Font size="4" face="Arial" color = "#D61414">MESSAGGIO DI CONFERMA OPERAZIONE</font></P></i></b>
</td>
</tr>
<tr>
<td width="615" >
<!--fine tabella x menu -->
<br>
<br>
<!-- tabella x menu verticale-->
</td>
</tr>
<tr>
<td height="59" width="615">
<p align="center">
<br>
<b><i></i></b>
<br>
</td>
</tr>
<tr>
<td align = "center" width = "85%" height="116">
<!--fine tabella x menu -->
<br>
<br>
<b><i><P class = "titolo"><%= request.getAttribute(CrontabCostants.MESSAGGIO_CONFERMA)%></P></i></b>
<!-- tabella x menu verticale-->
</td>
</tr>
</tbody>
</table>
</div>
</tbody>
</table>
<!-- tabella x menu -->
</BODY>
</form>
</HTML>

View File

@@ -0,0 +1,183 @@
TABLE.border {
background-color : #C6C4C4;
border-color : #C6C4C4;
width: 100%;
}
TABLE.banner {
border-color : #FFFFFF;
width: 100%;
}
INPUT.readOnly{
background : Aqua;
}
FONT.bannerVertTitolo{
color : #FFFFFF;
font: "Arial";
font-size: 12;
font-weight: 700;
}
BODY.normal {
background-color : "#FFFFFF";
}
P.titolo{
font: "Arial";
font-size: 17;
color : #455598;
font-weight: 700;
}
FONT.titlePage{
font: "Arial";
font-size: 17;
color : #455598;
font-weight: 700;
}
P.titoloBan{
font-face: "Arial";
font-size: 18;
color : #FFFF00;
font-weight: 700;
}
P.normale{
font-face: "Arial";
font-size: 14;
color : #2F4E8D;
font-weight: 700;
}
P.alert{
font-face: "Arial";
font-size: 18;
color : #FF0000;
font-weight: 700;
}
BODY.banner {
background-color : #D61414;
}
HR.riga{
color :#AD0404;
}
A.linkBanner{
color :"#FFFFFF";
font: Arial;
font-size: 11;
font-weight: 700;
}
A.linkBanner:hover{
color :"#FFFFFF";
font-style: italic;
font: Arial;
font-size: 11;
font-weight: 700;
}
A.linkPage{
color :"#455598";
font: Arial;
font-size: 14;
font-weight: 700;
}
A.linkPage:hover{
color :"#455598";
font-style: italic;
font: Arial;
font-size: 14;
font-weight: 700;
}
A.hmenu{
color :"#ffffff";
font: Arial;
font-size: 14;
font-weight: 700;
text-decoration: none
}
A.hmenu_red{
color :"#FF6666";
font: Arial;
font-size: 14;
font-weight: 700;
text-decoration: none
}
A.hmenu_verde{
color :"#8CD588";
font: Arial;
font-size: 14;
font-weight: 700;
text-decoration: none
}
TD.hmenu{
background-color :"#000080";
}
FONT.fontNormale{
font: Arial;
color: #2F4E8D;
font-weight: 700;
}
FONT.fontAlert{
font: Arial;
color: Red;
font-weight: 700;
}
FONT.fontErrorPage{
font: Arial;
color: #455598;
font-weight: 700;
}
INPUT.esitoRed{
color: Red;
font: Arial;
}
FONT.normaleTab{
font-face: "Arial";
font-size: 14;
color : #2F4E8D;
font-weight: 700;
}
FONT.grassettoTab{
font-face: "Arial";
font-size: 15;
color : #2F4E8D;
font-weight: 900;
}
FONT.biancoTab{
font-face: "Arial";
font-size: 14;
color : white;
font-weight: 700;
}
TD.tdVerde{
background-color : #8CD588;
}
TD.tdCeleste{
background-color : #d7effd;
}
TD.tdGiallo{
background-color : #FFFFA8;
}
TD.tdGrigio{
background-color : #C6C4C4;
}
TD.tdRosso{
background-color : #FF5E5E;
}
TABLE.tableBannerRosso{
background-color : #D61414;
}

View File

@@ -0,0 +1,129 @@
<%@page import = "mnp.crontab.objects.ui.TaskBean"%>
<%@page import = "mnp.crontab.command.CrontabCostants"%>
<%@page import = "mnp.crontab.utility.Resources"%>
<%
String messaggio = (String) request.getAttribute(CrontabCostants.MESSAGGIO_CONFERMA);
%>
<HTML>
<head>
<TITLE>
Mnp
</TITLE>
<%@page import = "mnp.crontab.objects.*, mnp.crontab.utility.ui.Res"%>
<jsp:include page="/jsp/VerificheScriptCrontab.txt" flush = "true"/>
<form method="post" action="/ManagementServlet" name="formCentrale">
<INPUT type="hidden" name="JSP_FUNCTION" 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/GUI/Banner.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">GESTIONE GATEWAY</font></P></i></b>
</td>
</tr>
<tr >
<td align = "right" valign = "top" width="85%" colspan="5">
&nbsp;
</td>
</tr>
</table>
<p align='center'>
<table width = '644' border='0'>
<tr >
<td align = "left" valign = "top" width="636" colspan="3" bgcolor="#000080">
<b><i>
<P class="Titolo"><font color="#FFFFFF"><%= messaggio%></font></P></i></b>
</td>
</tr>
<tr>
<td align= 'center' width="40%">&nbsp;
<p>&nbsp;</td>
<td align= 'center' width="20%"></td>
<td align= 'center' width="40%"></td>
</tr>
<tr>
<td align= 'center' >&nbsp;
<p>&nbsp;</td>
<td align= 'center' ></td>
<td align= 'center' ></td>
</tr>
<% if (messaggio.indexOf(CrontabCostants.GATEWAY_DISABILITATO)!=-1)
{ %>
<tr>
<td align= 'center' bgcolor="#FFFFCC"><i><b>Abilita Gateway</b></i></td>
<td align= 'center' ></td>
<td align= 'center' >
<center>
<TABLE height="17" border="0" width="60%">
<TR >
<td height="17" nowrap align="center" width="50%" class="hmenu"><A class="hmenu" href="javascript:messageAlert(document.formCentrale,<%= CrontabCostants.CMD_ABILITA_GATEWAY%>,'Abilitare il Gateway.','Index.do' )"> Abilita</A></TD>
</tr>
</Table>
</center>
</td>
</tr>
<% } %>
<% if (messaggio.indexOf(CrontabCostants.GATEWAY_ABILITATO)!=-1)
{ %>
<tr>
<td align= 'center' bgcolor="#FFFFCC"><i><b>Disabilita Gateway</b></i></td>
<td align= 'center' ></td>
<td align= 'center' >
<center>
<TABLE height="17" border="0" width="60%">
<TR >
<td height="17" nowrap align="center" width="50%" class="hmenu"><A class="hmenu" href="javascript:messageAlert(document.formCentrale,<%= CrontabCostants.CMD_DISABILITA_GATEWAY %>,'Disabilitare il Gateway.','Index.do' )">Disabilita</A></TD>
</tr>
</Table>
</center>
</td>
</tr>
<% } %>
<tr>
<td align= 'center' >&nbsp;
<p>&nbsp;</td>
<td align= 'center' ></td>
<td align= 'center' ></td>
</tr>
</table>
<p align='center'>
</center>
</div>
</table>
<!-- tabella x menu -->
</BODY>
</form>
</HTML>

View File

@@ -0,0 +1,140 @@
<%@page import = "mnp.crontab.objects.*, mnp.crontab.utility.ui.Res"%>
<%@page import = "mnp.crontab.command.CrontabCostants" %>
<%@page import = "mnp.crontab.command.CrontabSession" %>
<%@page import = "mnp.crontab.objects.ui.ProcessBean" %>
<%@page import = "mnp.crontab.utility.Resources"%>
<%@page import = "java.util.*" %>
<jsp:useBean id="resultBean" scope="request" class="mnp.crontab.objects.ui.ProcessBean" />
<% if (session.isNew()) { session.invalidate(); %>
<jsp:forward page="sessioneInattiva.html" />
<%
}
CrontabSession aCrontabSession =(CrontabSession) session.getAttribute(CrontabCostants.OBJECT_CRONTAB_SESSION);
%>
<HTML>
<head>
<TITLE>
Mnp
</TITLE>
<jsp:include page="/jsp/VerificheScriptCrontab.txt" flush = "true"/>
<form method="post" action="ProcessCommand.do" name="formCentrale">
<INPUT type="hidden" name="JSP_FUNCTION" value="">
<BODY>
<INPUT type="hidden" name="elementoChecked" value="<%= aCrontabSession.getProcessId() %>">
<INPUT type="hidden" name="modalita" value="<%= resultBean.getModalita() %>">
<!-- 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%">
<tbody>
<tr>
<td width = "10%">
<jsp:include page="/jsp/GUI/Banner.jsp" flush = "true"/>
</td>
<td width = "90%" valign="top">
<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">GESTIONE PROCESSI</font></P></i></b>
</td>
</tr>
<tr >
<td align = "right" valign = "top" width="85%" colspan="5">
&nbsp;
</td>
</tr>
</table>
<table border="0" width="100%" align="center">
<tr >
<td align = "left" valign = "top" width="85%" colspan="6" bgcolor="#000080">
<b><i>
<P class="Titolo"><font color="#FFFFFF"><%= aCrontabSession.getLabelOperazione()%> </font></P></i></b>
</td>
</tr>
<table width="656" border="0" height="408" align="center">
<tr>
<td colspan="2" height="21" width="606" align="right"><font color="#D61414"><i>campi obbligatori</i></font>
</td>
</tr>
<tr>
<td width="143" bgcolor="#FFFFCC" height="25"><b><font color="#D61414">Nome&nbsp;</font></b></td>
<td width="457" height="25">&nbsp;<input type="text" name="Nome" size="60" maxlength="50" value="<%= resultBean.getNome()%>"></td>
</tr>
<tr>
<td width="143" bgcolor="#FFFFCC" height="25"><b><font color="#D61414">Descrizione</font></b></td>
<td width="457" height="25">
<p>&nbsp;<input type="text" name="Descrizione" size="60" maxlength="50" value="<%= resultBean.getDescrizione()%>"></p>
</td>
</tr>
<tr>
<td width="143" height="21" bgcolor="#FFFFCC"><b><font color="#D61414">Comando
</font>*</b></td>
<td width="457" height="21">
<p>&nbsp;<input type="text" name="Comando" size="60" maxlength="50" value="<%= resultBean.getComando()%>"></p>
</td>
</tr>
<tr>
<td width="143" height="21"></td>
<td height="21" width="457"></td>
</tr>
<tr>
<td bgcolor="#FFFFCC" height="81" width="143"><b><font color="#D61414">Parametri
</font>**</b></td>
<td height="81" width="457"><p>&nbsp;<textarea rows="7" name="Parametri" cols="50"><%= resultBean.getParametri()%></textarea></p></td>
</tr>
<tr>
<td width="143" height="21"></td>
<td width="457" height="21"></td>
</tr>
<tr>
<td width="600" height="21" colspan="2"><i><b>* i parametri
della VM vanno inseriti prima del comando</b></i></td>
</tr>
<tr>
<td width="600" height="21" colspan="2"><i><b>** i parametri
del processo vanno separati da spazio vuoto</b></i></td>
</tr>
<td width="80%" height="21" colspan="2">
<br>
<br>
<br>
<TABLE nowrap width="60%" align="center">
<TBODY>
<TR width="180">
<TD height="17" nowrap align="center" width="20%" class="hmenu"><A class="hmenu" href="javascript:checkAllFieldProcesso(document.formCentrale,<%= aCrontabSession.getCmdOperazione() %>)"> Conferma</A></TD>
<TD height="17" nowrap align="center" width="20%" class="hmenu"><A class="hmenu" href="javascript:resetAllFieldProcesso(document.formCentrale)"> Reset </A></TD>
<TD height="17" nowrap align="center" width="20%" class="hmenu"><A class="hmenu" href="javascript:OpenPopUp('<%=CrontabCostants.OPEN_POPUP_PROCESSI_BLOCCANTI%>')"> Processi Bloccanti</A></TD>
</TR>
</TBODY>
</TABLE>
</table>
</table>
<!-- tabella x menu -->
</table>
</BODY>
</form>

View File

@@ -0,0 +1,131 @@
<%@page import = "mnp.crontab.objects.*, mnp.crontab.utility.ui.Res"%>
<%@page import = "mnp.crontab.command.CrontabCostants" %>
<%@page import = "mnp.crontab.command.CrontabSession" %>
<%@page import = "mnp.crontab.objects.ui.TaskBean" %>
<%@page import = "java.util.*" %>
<%@page import = "mnp.crontab.utility.Resources"%>
<jsp:useBean id="resultBean" scope="request" class="mnp.crontab.objects.ui.TaskBean" />
<% if (session.isNew()) { session.invalidate(); %>
<jsp:forward page="sessioneInattivaProject.jsp" />
<%
}
CrontabSession aCrontabSession =(CrontabSession) session.getAttribute(CrontabCostants.OBJECT_CRONTAB_SESSION);
%>
<HTML>
<head>
<TITLE>
Mnp
</TITLE>
<jsp:include page="/jsp/VerificheScriptCrontab.txt" flush = "true"/>
<form method="post" action="TaskCommand.do" name="formCentrale">
<INPUT type="hidden" name="JSP_FUNCTION" value="">
<INPUT type="hidden" name="modalita" value="<%= resultBean.getModalita() %>">
<BODY>
<INPUT type="hidden" name="elementoChecked" value="<%= aCrontabSession.getTaskId() %>">
<!-- 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%">
<tbody>
<tr>
<td width = "10%">
<jsp:include page="/jsp/GUI/Banner.jsp" flush = "true"/>
</td>
<td width = "90%" valign="top">
<DIV align="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">GESTIONE TASKS</font></P></i></b>
</td>
</tr>
<tr >
<td align = "right" valign = "top" width="85%" colspan="5">
&nbsp;
</td>
</tr>
</table>
<table border="0" width="100%">
<tr >
<td align = "left" valign = "top" width="85%" colspan="6" bgcolor="#000080">
<b><i>
<P class="Titolo"><font color="#FFFFFF"><%= aCrontabSession.getLabelOperazione()%> </font></P></i></b>
</td>
</tr>
<table width="656" border="0" height="408" >
<tr>
<td colspan="4" height="21" width="606" align="right"><font color="#D61414"><i>campi obbligatori</i></font>
</td>
</tr>
<tr>
<td width="143" bgcolor="#FFFFCC" height="25"><b><font color="#D61414">Nome&nbsp;</font></b></td>
<td width="457" height="25" colspan="3">&nbsp;<input type="text" name="Nome" size="60" maxlength="50" value="<%= resultBean.getNome()%>"></td>
</tr>
<tr>
<td width="143" bgcolor="#FFFFCC" height="25"><b><font color="#D61414">Descrizione</font></b></td>
<td width="457" height="25" colspan="3">
<p>&nbsp;<input type="text" name="Descrizione" size="60" maxlength="50" value="<%= resultBean.getDescrizione()%>"></p>
</td>
</tr>
<tr>
<td width="143" height="21"></td>
<td width="457" height="21" colspan="3">
</td>
</tr>
<tr>
<td width="143" height="21"></td>
<td colspan="3" height="21" width="457"></td>
</tr>
<tr>
<td bgcolor="#FFFFCC" height="81" width="143"><b>Note</b></td>
<td height="81" width="457" colspan="3"><textarea rows="7" name="Note" cols="51"><%= resultBean.getNote()%></textarea></td>
</tr>
<tr>
<td width="143" height="21"></td>
<td width="457" colspan="3" height="21"></td>
</tr>
<tr>
<td width="143" height="21"></td>
<td width="457" colspan="3" height="21"></td>
</tr>
<br>
<br>
<br>
<DIV align="center">
<TABLE nowrap width="80%">
<TBODY>
<TR width="180">
<TD height="17" nowrap align="center" width="20%" class="hmenu"><A class="hmenu" href="javascript:checkAllFieldTask(document.formCentrale,<%= aCrontabSession.getCmdOperazione() %>)"> Conferma</A></TD>
<TD height="17" nowrap align="center" width="20%" class="hmenu"><A class="hmenu" href="javascript:resetAllFieldTask(document.formCentrale)"> Reset </A></TD>
<TD height="17" nowrap align="center" width="20%" class="hmenu"><A class="hmenu" href="javascript:OpenPopUp('<%= CrontabCostants.OPEN_POPUP_INTERVALLI_ATTIVAZIONE%>')"> Intervalli Attivazione </A></TD>
<TD height="17" nowrap align="center" width="20%" class="hmenu"><A class="hmenu" href="javascript:OpenPopUp('<%= CrontabCostants.OPEN_POPUP_PROCESSI_ASSOCIATI%>')"> Processi Associati</A></TD>
</TR>
</TBODY>
</TABLE>
</DIV>
</table>
</table>
<!-- tabella x menu -->
</div>
</table>
</BODY>
</form>

View File

@@ -0,0 +1,104 @@
<%@page import = "mnp.crontab.objects.*, mnp.crontab.utility.ui.Res"%>
<%@page import = "mnp.crontab.command.CrontabCostants" %>
<%@page import = "mnp.crontab.command.CrontabSession" %>
<%@page import = "mnp.crontab.objects.ui.TaskBean" %>
<%@page import = "java.util.*" %>
<jsp:useBean id="resultBean" scope="request" class="mnp.crontab.objects.ui.TaskBean" />
<%@page import = "mnp.crontab.utility.Resources"%>
<% if (session.isNew()) { session.invalidate(); %>
<jsp:forward page="sessioneInattivaProject.jsp" />
<%
}
CrontabSession aCrontabSession =(CrontabSession) session.getAttribute(CrontabCostants.OBJECT_CRONTAB_SESSION);
%>
<HTML>
<head>
<TITLE>
Mnp
</TITLE>
<jsp:include page="/jsp/VerificheScriptCrontab.txt" flush = "true"/>
<form method="post" action="TaskCommand.do" name="formCentrale">
<INPUT type="hidden" name="JSP_FUNCTION" value="">
<INPUT type="hidden" name="modalita" value="<%= resultBean.getModalita() %>">
<BODY>
<INPUT type="hidden" name="elementoChecked" value="<%= aCrontabSession.getTaskId() %>">
<!-- 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%">
<tbody>
<tr>
<td width = "10%">
<jsp:include page="/jsp/GUI/Banner.jsp" flush = "true"/>
</td>
<td width = "90%" valign="top">
<DIV align="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">ATTIVITA' GIORNALIERA</font></P></i></b>
</td>
</tr>
<tr >
<td align = "right" valign = "top" width="85%" colspan="5">
&nbsp;
</td>
</tr>
</table>
<table border="0" width="100%">
<tr >
<td align = "left" valign = "top" width="85%" colspan="6" bgcolor="#000080">
<b><i>
<P class="Titolo"><font color="#FFFFFF"><%= aCrontabSession.getLabelOperazione()%> </font></P></i></b>
</td>
</tr>
<table width="656" border="0" height="331" >
<tr>
<td colspan="3" height="41" width="648" align="right">
</td>
</tr>
<tr>
<td width="642" bgcolor="#FFFFCC" height="44" colspan="3">&nbsp;<b><i>Task Emergenza</i></b></td>
</tr>
<tr>
<td width="648" height="176" colspan="3">
<p align="center"><b><i><font color="#D61414">Questo task &egrave;
utilizzato per una emergenza.</font></i></b></p>
<p align="center"><b><i><font color="#D61414">Basta
associargli i processi.</font></i></b></td>
</tr>
</table>
<center>
<TABLE nowrap width="40%">
<TBODY>
<TR width="90">
<TD height="17" nowrap align="center" width="20%" class="hmenu"><A class="hmenu" href="javascript:buttonAction(document.formCentrale,<%= aCrontabSession.getCmdOperazione() %>,'','n')"> Conferma</A></TD>
<TD height="17" nowrap align="center" width="20%" class="hmenu"><A class="hmenu" href="javascript:OpenPopUp('<%=CrontabCostants.OPEN_POPUP_PROCESSI_ASSOCIATI%>')"> Processi
Associati</A></TD>
</TR>
</TBODY>
</TABLE>
</center>
</table>
<!-- tabella x menu -->
</div>
</table>
</BODY>
</form>

View File

@@ -0,0 +1,189 @@
<%@page import = "mnp.crontab.objects.*, mnp.crontab.utility.ui.Res"%>
<%@page import = "mnp.crontab.command.CrontabCostants" %>
<%@page import = "mnp.crontab.command.CrontabSession" %>
<%@page import = "mnp.crontab.objects.ui.ProcessBean" %>
<%@page import = "mnp.crontab.utility.Resources"%>
<%@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"%>
<%@page import = "java.util.*" %>
<% if (session.isNew()) { session.invalidate(); %>
<jsp:forward page="sessioneInattivaProject.jsp" />
<%
}
LoginBean aLoginBean = (LoginBean) session.getAttribute(AmministrazioneCostants.OBJECT_LOGINBEAN_SESSION);
ProfiloDAO pr = new ProfiloDAO();
ProfileConfig _prConf = pr.listFunctionApplication(aLoginBean.getCodiceProfilo(), ProfileConfig.DOMINIO_CRONTAB,ProfileConfig.LISTA_PROCESSI);
int ab=0;
int di=0;
%>
<jsp:useBean id="resultBean" scope="request" class="mnp.crontab.objects.ListaProcessi" />
<jsp:useBean id="CrontabSession" scope="session" class="mnp.crontab.command.CrontabSession" />
<HTML>
<head>
<TITLE>
Mnp
</TITLE>
<jsp:include page="/jsp/VerificheScriptCrontab.txt" flush = "true"/>
<form method="post" action="ProcessCommand.do" name="formCentrale">
<INPUT type="hidden" name="JSP_FUNCTION" value="">
<BODY>
<!-- tabella che include il menu verticale -->
<INPUT type="hidden" name="<%= CrontabCostants.CAMPO_ELEMENT_CHECKED %>" value="">
<INPUT type="hidden" name="modalita" value="">
<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%">
<tbody>
<tr>
<td width = "15%">
<jsp:include page="/jsp/GUI/Banner.jsp" flush = "true"/>
</td>
<td width = "85%" valign="top">
<DIV align="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">GESTIONE PROCESSI</font></P></i></b>
</td>
</tr>
<tr >
<td align = "right" valign = "top" width="85%" colspan="5">
&nbsp;
</td>
</tr>
</table>
<table border="0" width="100%">
<tr >
<td align = "left" valign = "top" width="85%" colspan="4" bgcolor="#000080">
<b><i>
<P class="Titolo"><font color="#FFFFFF">LISTA PROCESSI DISPONIBILI</font></P></i></b>
</td>
</tr>
<tr >
<td align = "right" valign = "top" width="85%" colspan="4">
&nbsp;
</td>
</tr>
<tr bgcolor="#CCCCCC">
<td width="5%" align="center"><b>Sel.</b></td>
<td width="15%" align="center"><b>Nome Processo</b></td>
<td width="10%" align="center"><b>Modalit&agrave;</b></td>
<td width="40%" align="center"><b>Operazione</b></td>
</tr>
<% String colore= new String();
ProcessBean[] r = null;
r = resultBean.getListaProcessi();
for(int i=0; i<r.length;i++)
{
if (i%2 == 0) colore="white";
else
colore="#99CCFF";
%>
<tr bgcolor=<%= colore%> >
<td ><p align="center"><input type="radio" name="elementiLista" value="<%= r[i].getProcessId()%>"></p></td>
<td ><a href="javascript:buttonAction(document.formCentrale,<%= CrontabCostants.FNC_DETTAGLIO_PROCESSO %>,'<%= r[i].getProcessId() %>','n')"><%= r[i].getNome()%></a></td>
<td ><p align="center"><b><%= r[i].getModalita()%></b></p></td>
<INPUT type="hidden" name="modalitaLista" value="<%= r[i].getStatoProcesso()%>">
<TD>
<% if (r[i].getModalita().equals(CrontabCostants.MODALITA_RUNNING))
{ %>
<center>
<TABLE height="17" border="0" width="30%">
<TR >
<td height="17" nowrap align="center" width="25%" class="hmenu"><A class="hmenu" href="javascript:buttonAction(document.formCentrale,<%= CrontabCostants.CMD_ARRESTA_PROCESSO %>,<%= r[i].getProcessId()%>,'y')"> Arresta </A></TD>
</tr>
</Table>
</center>
<% } %>
<%
if (_prConf.visualizzaFunction(String.valueOf(CrontabCostants.CMD_ABILITA_PROCESSO)))
{
ab=1;
if (r[i].getModalita().equals(CrontabCostants.STATO_PROCESSO_DISABILITATO))
{ %>
<center>
<TABLE height="17" border="0" width="30%">
<TR >
<td height="17" nowrap align="center" width="25%" class="hmenu"><A class="hmenu" href="javascript:buttonAction(document.formCentrale,<%= CrontabCostants.CMD_ABILITA_PROCESSO %>,'<%= r[i].getProcessId()%>','y')"> Abilita </A></TD>
</tr>
</Table>
</center>
<% }
}
if (_prConf.visualizzaFunction(String.valueOf(CrontabCostants.CMD_DISABILITA_TASK)))
{ di=1;
if (r[i].getModalita().equals(CrontabCostants.STATO_PROCESSO_ABILITATO))
{
%>
<center>
<TABLE height="17" border="0" width="30%">
<TR >
<td height="17" nowrap align="center" width="25%" class="hmenu"><A class="hmenu" href="javascript:buttonAction(document.formCentrale,<%= CrontabCostants.CMD_DISABILITA_PROCESSO %>,'<%= r[i].getProcessId()%>','y')"> Disabilita </A></TD>
</tr>
</Table>
</center>
<%}
}%>
</TD>
</tr>
<% } %>
<tr bgcolor="#CCCCCC">
<td width="5%" align="center"><b>Sel.</b></td>
<td width="15%" align="center"><b>Nome Processo</b></td>
<td width="10%" align="center"><b>Modalit&agrave;</b></td>
<td width="40%" align="center"><b>Operazione</b></td>
</tr>
</table>
</div>
<br>
<br>
<br>
<DIV align="center">
<% // codice per width della table
int w = _prConf.getListFunction().size();
w = w-ab-di;
w = w*20;%>
<TABLE nowrap width="<%= w%>%">
<TBODY>
<TR width="180">
<% if (_prConf.visualizzaFunction(String.valueOf(CrontabCostants.FNC_NUOVO_PROCESSO)))
{%>
<TD height="17" nowrap align="center" width="20%" class="hmenu"><A class="hmenu" href="javascript:buttonAction(document.formCentrale,<%= CrontabCostants.FNC_NUOVO_PROCESSO %>,'','n')"> Nuovo</A></TD>
<% }
if (_prConf.visualizzaFunction(String.valueOf(CrontabCostants.FNC_MODIFICA_PROCESSO)))
{%>
<TD height="17" nowrap align="center" width="20%" class="hmenu"><A class="hmenu" href="javascript:checkLista(document.formCentrale,<%= CrontabCostants.FNC_MODIFICA_PROCESSO %>,'Selezionare un Processo.','n')"> Modifica </A></TD>
<% }
if (_prConf.visualizzaFunction(String.valueOf(CrontabCostants.CMD_ELIMINA_PROCESSO)))
{%>
<TD height="17" nowrap align="center" width="20%" class="hmenu"><A class="hmenu" href="javascript:checkAllRadioElimina(document.formCentrale,'<%= CrontabCostants.CMD_ELIMINA_PROCESSO %>')"> Elimina </A></TD>
<% }%>
</TR>
</TBODY>
</TABLE>
</DIV>
</tbody>
</table>
<!-- tabella x menu -->
</BODY>
</form>
</HTML>

View File

@@ -0,0 +1,122 @@
<%@page import = "mnp.crontab.objects.*, mnp.crontab.utility.ui.Res"%>
<%@page import = "mnp.crontab.command.CrontabCostants" %>
<%@page import = "mnp.crontab.command.CrontabSession" %>
<%@page import = "mnp.crontab.objects.ui.TaskBean" %>
<%@page import = "mnp.crontab.utility.Resources"%>
<%@page import = "java.util.*" %>
<% if (session.isNew()) { session.invalidate(); %>
<jsp:forward page="sessioneInattivaProject.jsp" />
<%
}
%>
<jsp:useBean id="resultBean" scope="request" class="mnp.crontab.objects.ListaTasks" />
<jsp:useBean id="CrontabSession" scope="session" class="mnp.crontab.command.CrontabSession" />
<HTML>
<head>
<TITLE>
Mnp
</TITLE>
<jsp:include page="/jsp/VerificheScriptCrontab.txt" flush = "true"/>
<form method="post" action="TaskCommand.do" name="formCentrale">
<INPUT type="hidden" name="JSP_FUNCTION" value="">
<BODY>
<!-- tabella che include il menu verticale -->
<INPUT type="hidden" name="<%= CrontabCostants.CAMPO_ELEMENT_CHECKED %>" value="">
<INPUT type="hidden" name="modalita" value="0">
<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%">
<tbody>
<tr>
<td width = "15%">
<jsp:include page="/jsp/GUI/Banner.jsp" flush = "true"/>
</td>
<td width = "85%" valign="top">
<DIV align="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">TASK EMERGENZA</font></P></i></b>
</td>
</tr>
<tr >
<td align = "right" valign = "top" width="85%" colspan="5">
&nbsp;
</td>
</tr>
</table>
<table border="0" width="60%">
<tr >
<td align = "left" valign = "top" width="85%" colspan="2" bgcolor="#000080">
<b><i>
<P class="Titolo"><font color="#FFFFFF">LISTA TASK&nbsp;</font></P></i></b>
</td>
</tr>
<tr >
<td align = "right" valign = "top" width="85%" colspan="2">
&nbsp;
</td>
</tr>
<tr bgcolor="#CCCCCC">
<td width="5%" align="center"><b>Sel.</b></td>
<td width="15%" align="center"><b>Nome Task</b></td>
</tr>
<% String colore= new String();
TaskBean[] r = null;
r = resultBean.getListaTaskBean();
for(int i=0; i<r.length;i++)
{
if (i%2 == 0) colore="white";
else
colore="#99CCFF";
%>
<tr bgcolor=<%= colore%> >
<td ><p align="center"><input type="radio" name="elementiLista" value="<%= r[i].getIdTask()%>"></p></td>
<td ><b><%= r[i].getNome() %></b></td>
</tr>
<% } %>
<tr bgcolor="#CCCCCC">
<td width="5%" align="center"><b>Sel.</b></td>
<td width="15%" align="center"><b>Nome Task</b></td>
</tr>
</table>
</div>
<br>
<br>
<br>
<DIV align="center">
<TABLE nowrap width="20%">
<TBODY>
<TR width="40">
<TD height="17" nowrap align="center" width="20%" class="hmenu"><A class="hmenu" href="javascript:javascript:checkLista(document.formCentrale,<%= CrontabCostants.CMD_LANCIA_TASK_EMERGENZA %>,'Selezionare un Task.','n')"> Conferma</A></TD>
</TR>
</TBODY>
</TABLE>
</DIV>
</tbody>
</table>
<!-- tabella x menu -->
</BODY>
</form>
</HTML>

View File

@@ -0,0 +1,205 @@
<%@page import = "mnp.crontab.objects.*, mnp.crontab.utility.ui.Res"%>
<%@page import = "mnp.crontab.command.CrontabCostants" %>
<%@page import = "mnp.crontab.command.CrontabSession" %>
<%@page import = "mnp.crontab.objects.ui.TaskBean" %>
<%@page import = "mnp.crontab.utility.Resources"%>
<%@page import = "java.util.*" %>
<jsp:useBean id="resultBean" scope="request" class="mnp.crontab.objects.ListaTasks" />
<jsp:useBean id="resultBeanIntervallo" scope="request" class="mnp.crontab.objects.ui.IntervalloAttivazione" />
<jsp:useBean id="CrontabSession" scope="session" class="mnp.crontab.command.CrontabSession" />
<% if (session.isNew()) { session.invalidate(); %>
<jsp:forward page="sessioneInattivaProject.jsp" />
<%
}
String ora =resultBeanIntervallo.getOraFrom();
String oraTo =resultBeanIntervallo.getOraTo();
%>
<HTML>
<head>
<TITLE>
Mnp
</TITLE>
<script language = "Javascript">
function controllaFasciaOraria(form,action)
{
oraFrom=form.oraFrom
oraTo=form.oraTo
var ora1=parseInt(oraFrom.value,10);
var ora2=parseInt(oraTo.value,10);
if (ora1 >= ora2)
{
alert('Attenzione: Controllare Intervallo Orario!');
oraTo.value='00'
return
}
buttonActionPassaggio(form,action)
}
</script>
<jsp:include page="/jsp/VerificheScriptCrontab.txt" flush = "true"/>
<form method="post" action="Index.do" name="formCentrale">
<INPUT type="hidden" name="JSP_FUNCTION" value="">
<BODY>
<!-- tabella che include il menu verticale -->
<INPUT type="hidden" name="<%= CrontabCostants.CAMPO_ELEMENT_CHECKED %>" value="">
<INPUT type="hidden" name="modalita" value="0">
<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%">
<tbody>
<tr>
<td width = "15%">
<jsp:include page="/jsp/GUI/Banner.jsp" flush = "true"/>
</td>
<td width = "85%" valign="top">
<DIV align="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">&nbsp;TASK SCHEDULATI</font></P></i></b>
</td>
</tr>
<tr >
<td align = "right" valign = "top" width="85%" colspan="5">
&nbsp;
</td>
</tr>
</table>
<table width = '50%' border='0' bordercolorlight="#000080" bordercolordark="#000080" height="219">
<tr >
<td align = "left" valign = "top" width="85%" bgcolor="#000080" colspan="2" height="19">
<b><i>
<P class="Titolo"><font color="#FFFFFF">Criteri di Ricerca&nbsp;</font></P></i></b>
</td>
</tr>
<tr >
<td align = "left" valign = "top" width="85%" colspan="2" bgcolor="#CCCCCC" height="22">
<p align="center"><font color="#000080" size="4"><b><i>Arco Temporale</i></b></font></p>
</td>
</tr>
<tr >
<td align = "left" valign = "center" width="43%" bgcolor="#FFFFCC" height="23">
<b><font color="#D61414">Ora Inizio</font></b>
</td>
<td align = "left" valign = "center" width="42%" height="23">
<p><SELECT name="oraFrom" >
<% for(int i=0; i<24;i++)
{
if (i<10)
{ %>
<OPTION value="0<%=i%>" <% if (ora.equals("0"+String.valueOf(i))) {%> selected <% }%>>0<%=i%></OPTION>
<% }
else { %>
<OPTION value="<%=i%>" <% if (ora.equals(String.valueOf(i))) {%> selected <% }%> ><%=i%></OPTION>
<% }
} %>
</SELECT></tr>
<tr >
<td align = "left" valign = "center" width="28%" bgcolor="#FFFFCC" height="23">
<b><font color="#D61414">Ora Fine</font></b>
</td>
<td align = "left" valign = "center" width="57%" height="23">
<p><SELECT name="oraTo" >
<% for(int i=0; i<25;i++)
{
if (i<10)
{ %>
<OPTION value="0<%=i%>" <% if (oraTo.equals("0"+String.valueOf(i))) {%> selected <% }%>>0<%=i%></OPTION>
<% }
else { %>
<OPTION value="<%=i%>" <% if (oraTo.equals(String.valueOf(i))) {%> selected <% }%> ><%=i%></OPTION>
<% }
} %>
</SELECT></td>
</tr>
<tr >
<td align = "left" valign = "center" width="85%" height="19" colspan="2" bgcolor="#CCCCCC">
<center>
<TABLE nowrap width="30%">
<TBODY>
<TR >
<TD height="17" nowrap align="center" width="20%" class="hmenu"><A class="hmenu" href="javascript:controllaFasciaOraria(document.formCentrale,<%= CrontabCostants.CMD_LISTA_TASK_SCHEDULATI %>)"> Ricerca</A></TD>
</TR>
</TBODY>
</TABLE>
</center>
</td>
</tr>
</table>
<br>
<br>
<table border="0" width="60%">
<tr >
<td align = "left" valign = "top" width="85%" colspan="3" bgcolor="#000080">
<b><i>
<P class="Titolo"><font color="#FFFFFF">Task Giornalieri</font></P></i></b>
</td>
</tr>
<tr bgcolor="#CCCCCC">
<td width="15%" align="center"><b>Nome Task</b></td>
<td width="20%" align="center"><b>Processi</b></td>
</tr>
<% String colore= new String();
TaskBean[] r = null;
r = resultBean.getListaTaskBean();
for(int i=0; i<r.length;i++)
{
if (i%2 == 0) colore="white";
else
colore="#99CCFF";
%>
<tr bgcolor=<%= colore%> >
<td ><%= r[i].getNome() %></td>
<td ><%= r[i].getLabelProcessAssociati()%></td>
</tr>
<% } %>
<tr bgcolor="#CCCCCC">
<td width="15%" align="center"><b>Nome Task</b></td>
<td width="20%" align="center"><b>Processi</b></td>
</tr>
</table>
</div>
<br>
<br>
<br>
</tbody>
</table>
<!-- tabella x menu -->
</BODY>
</form>
</HTML>

View File

@@ -0,0 +1,188 @@
<%@page import = "mnp.crontab.objects.*, mnp.crontab.utility.ui.Res"%>
<%@page import = "mnp.crontab.command.CrontabCostants" %>
<%@page import = "mnp.crontab.command.CrontabSession" %>
<%@page import = "mnp.crontab.objects.ui.TaskBean" %>
<%@page import = "mnp.crontab.utility.Resources"%>
<%@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"%>
<%@page import = "java.util.*" %>
<% if (session.isNew()) { session.invalidate(); %>
<jsp:forward page="sessioneInattivaProject.jsp" />
<%
}
LoginBean aLoginBean = (LoginBean) session.getAttribute(AmministrazioneCostants.OBJECT_LOGINBEAN_SESSION);
ProfiloDAO pr = new ProfiloDAO();
ProfileConfig _prConf = pr.listFunctionApplication(aLoginBean.getCodiceProfilo(), ProfileConfig.DOMINIO_CRONTAB,ProfileConfig.LISTA_TASK);
int ab=0;
int di=0;
%>
<jsp:useBean id="resultBean" scope="request" class="mnp.crontab.objects.ListaTasks" />
<jsp:useBean id="CrontabSession" scope="session" class="mnp.crontab.command.CrontabSession" />
<HTML>
<head>
<TITLE>
Mnp
</TITLE>
<jsp:include page="/jsp/VerificheScriptCrontab.txt" flush = "true"/>
<form method="post" action="TaskCommand.do" name="formCentrale">
<INPUT type="hidden" name="JSP_FUNCTION" value="">
<BODY>
<!-- tabella che include il menu verticale -->
<INPUT type="hidden" name="<%= CrontabCostants.CAMPO_ELEMENT_CHECKED %>" value="">
<INPUT type="hidden" name="modalita" value="0">
<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%">
<tbody>
<tr>
<td width = "15%">
<jsp:include page="/jsp/GUI/Banner.jsp" flush = "true"/>
</td>
<td width = "85%" valign="top">
<DIV align="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">GESTIONE TASK</font></P></i></b>
</td>
</tr>
<tr >
<td align = "right" valign = "top" width="85%" colspan="5">
&nbsp;
</td>
</tr>
</table>
<table border="0" width="100%">
<tr >
<td align = "left" valign = "top" width="85%" colspan="6" bgcolor="#000080">
<b><i>
<P class="Titolo"><font color="#FFFFFF">LISTA TASK DISPONIBILI</font></P></i></b>
</td>
</tr>
<tr >
<td align = "right" valign = "top" width="85%" colspan="6">
&nbsp;
</td>
</tr>
<tr bgcolor="#CCCCCC">
<td width="5%" align="center"><b>Sel.</b></td>
<td width="15%" align="center"><b>Nome Task</b></td>
<td width="10%" align="center"><b>Modalit&agrave;</b></td>
<td width="20%" align="center"><b>Processi</b></td>
<td width="40%" align="center"><b>Operazione</b></td>
</tr>
<% String colore= new String();
TaskBean[] r = null;
r = resultBean.getListaTaskBean();
for(int i=0; i<r.length;i++)
{
if (i%2 == 0) colore="white";
else
colore="#99CCFF";
%>
<tr bgcolor=<%= colore%> >
<td ><p align="center"><input type="radio" name="elementiLista" value="<%= r[i].getIdTask()%>"></p></td>
<td ><a href="javascript:buttonActionTask(document.formCentrale,<%= CrontabCostants.FNC_DETTAGLIO_TASK %>,'<%= r[i].getIdTask() %>','<%= r[i].getModalita()%>')"><%= r[i].getNome() %></a></td>
<td ><b><%= r[i].getModalita()%></b></td>
<td ><%= r[i].getLabelProcessAssociati()%></td>
<INPUT type="hidden" name="modalitaLista" value="<%= r[i].getModalita()%>">
<TD>
<% if (_prConf.visualizzaFunction(String.valueOf(CrontabCostants.CMD_ABILITA_TASK)))
{
ab=1;
if (r[i].getModalita().equals(CrontabCostants.MODALITA_DISABLED))
{ %>
<center>
<TABLE height="17" border="0" width="30%">
<TR >
<td height="17" nowrap align="center" width="25%" class="hmenu"><A class="hmenu" href="javascript:buttonAction(document.formCentrale,<%= CrontabCostants.CMD_ABILITA_TASK %>,'<%= r[i].getIdTask()%>','y')"> Abilita </A></TD>
</tr>
</Table>
</center>
<% }
} %>
<% if (_prConf.visualizzaFunction(String.valueOf(CrontabCostants.CMD_DISABILITA_TASK)))
{ di=1;
if (r[i].getModalita().equals(CrontabCostants.MODALITA_ABLE))
{
%>
<center>
<TABLE height="17" border="0" width="30%">
<TR >
<td height="17" nowrap align="center" width="25%" class="hmenu"><A class="hmenu" href="javascript:buttonAction(document.formCentrale,<%= CrontabCostants.CMD_DISABILITA_TASK %>,'<%= r[i].getIdTask()%>','y')"> Disabilita </A></TD>
</tr>
</Table>
</center>
<% }
} %>
</TD>
</tr>
<% } %>
<tr bgcolor="#CCCCCC">
<td width="5%" align="center"><b>Sel.</b></td>
<td width="15%" align="center"><b>Nome Task</b></td>
<td width="10%" align="center"><b>Modalit&agrave;</b></td>
<td width="20%" align="center"><b>Processi</b></td>
<td width="40%" align="center"><b>Operazione</b></td>
</tr>
</table>
</div>
<br>
<br>
<br>
<DIV align="center">
<% // codice per width della table
int w = _prConf.getListFunction().size();
w = w-ab-di;
w = w*20;%>
<TABLE nowrap width="<%= w%>%">
<TBODY>
<TR width="180">
<% if (_prConf.visualizzaFunction(String.valueOf(CrontabCostants.FNC_NUOVO_TASK)))
{%>
<TD height="17" nowrap align="center" width="20%" class="hmenu"><A class="hmenu" href="javascript:buttonAction(document.formCentrale,<%= CrontabCostants.FNC_NUOVO_TASK %>,'','n')"> Nuovo</A></TD>
<% }
if (_prConf.visualizzaFunction(String.valueOf(CrontabCostants.FNC_MODIFICA_TASK)))
{%>
<TD height="17" nowrap align="center" width="20%" class="hmenu"><A class="hmenu" href="javascript:checkLista(document.formCentrale,<%= CrontabCostants.FNC_MODIFICA_TASK %>,'Selezionare un Task.','n')"> Modifica </A></TD>
<% }
if (_prConf.visualizzaFunction(String.valueOf(CrontabCostants.CMD_ELIMINA_TASK)))
{%>
<TD height="17" nowrap align="center" width="20%" class="hmenu"><A class="hmenu" href="javascript:checkAllRadioElimina(document.formCentrale,'<%= CrontabCostants.CMD_ELIMINA_TASK %>')"> Elimina </A></TD>
<% }%>
</TR>
</TBODY>
</TABLE>
</DIV>
</tbody>
</table>
<!-- tabella x menu -->
</BODY>
</form>
</HTML>

View File

@@ -0,0 +1,191 @@
<%@page import = "java.util.*" %>
<%@page import = "mnp.crontab.utility.ui.Res" %>
<html>
<head>
<title>Pagina di verifica delle impostazioni di sicurezza</title>
<LINK REL="stylesheet" TYPE="text/css" HREF="GUIStyle.css" >
<SCRIPT language="Javascript">
function inviaDatiClient() {
var usernameclient;
var locator;
var service;
var properties;
var e;
var p;
var ip;
var hn;
try {
usernameclient = new ActiveXObject("WScript.Network").UserName;
locator = new ActiveXObject ("WbemScripting.SWbemLocator");
service = locator.ConnectServer(".");
properties = service.ExecQuery("SELECT * FROM Win32_NetworkAdapterConfiguration");
e = new Enumerator (properties);
for (;!e.atEnd();e.moveNext ()) {
p = e.item ();
if (p.IPAddress!=null ) {
document.forms["loginForm"].elements["hostnameclient"].value = p.DNSHostName;
document.forms["loginForm"].elements["ipclient"].value = p.IPAddress(0);
}
}
document.forms["loginForm"].elements["utenzaclient"].value = usernameclient;
}
catch(e){
alert("Impossibile recuperare gli ActiveX del client: " + e.message);
}
document.forms["loginForm"].elements["info_client"].value="YES";
document.forms["loginForm"].submit();
}
function doSubmit(){
document.forms["loginForm"].submit();
}
</SCRIPT>
<%
System.out.println("Sono dentro la LoginCrontab.jsp");
%>
</head>
<BODY class = "normal">
<%
Res.ApplContext = request.getContextPath();
Res.ReqURL = "https://" + request.getServerName()+":"+
request.getServerPort()+
request.getContextPath();
//Res.ResAbsPath = pageContext.getServletContext().getInitParameter("applPath");
//if(true) throw new Exception("pippo");
System.out.println("Res.ApplContext :"+Res.ApplContext);
System.out.println("Res.ReqURL : "+Res.ReqURL);
// System.out.println("Res.ResAbsPath : "+Res.ResAbsPath);
// if(request.getParameter("Send")!=null) {
//System.out.println("non faccio nulla....");
//}%>
<table width = "100%" class = "tableBannerRosso" border = 0>
<tr>
<td align = "left" width = "100%"><IMG border = 0 SRC ="<%=Res.ReqURL%>/images/banner.gif"></td>
</tr>
</table>
<table width = "100%" border = "0">
<tr>
<td HEIGHT = "100%" width = "10%" bgcolor = "#D61414" valign = "top">
</td>
<td align = "right" valign = "top" width = "90%">
<BR>
<i><b><FONT face = "Arial" color = "#455598" size = 4 weight = "700">MNP-GUI</Font></b></i>
<form name="loginForm" method="post" action="<%=Res.ReqURL%>/Login.do" target="_self">
<INPUT type="hidden" name="ipclient">
<INPUT type="hidden" name="hostnameclient">
<INPUT type="hidden" name="utenzaclient">
<INPUT type="hidden" name="info_client">
<!--
<TABLE border = 0 align = "center" width = "100%">
<BR>
<TR>
<TD align = "center" colspan = "3"><font face="Arial" color="#455598" size="4"><b><u>GESTIONE ATTIVITA' MNP</u></b></font></TD>
</TR>
<TR><TD colspan = "3" >&nbsp</TD></TR>
<TR><TD colspan = "3" >&nbsp</TD></TR>
<TR>
<TD align = "center" colspan = "3" ><FONT face = "Arial" color = "#455598" size = 2><b><u>UserID :</u></b></FONT></TD>
</TR>
<TD align = "center" colspan = "3" ><input type="text" name="userID" maxlength="16" ></TD>
</TR>
<TR>
<TD align = "center" colspan = "3" ><FONT face = "Arial" color = "#455598" size = 2><b><u>Password :</u></b></FONT></TD>
</TR>
<TR>
<TD align = "center" colspan = "3" ><input type="password" name="password" maxlength="16"></TD>
</TR>
<TR><TD colspan = "3">&nbsp</TD></TR>
<TR>
<TD align = "center" colspan = "3" ><input type="submit" name="Send" value=" Log-In "></TD>
</TR>
<TR><TD colspan = "3">&nbsp</TD></TR>
<tr><td>&nbsp</td></tr>
<tr><td>&nbsp</td></tr>
<tr><td>&nbsp</td></tr>
<tr><td>&nbsp</td></tr>
<tr><td>&nbsp</td></tr>
<tr><td>&nbsp</td></tr>
<tr><td>&nbsp</td></tr>
<tr><td>&nbsp</td></tr>
</TABLE>-->
<!-- </td></tr></table> -->
</form>
<!-- tabella x menu verticale-->
</td>
</tr>
<tr>
<td align = "center" width = "85%" height="116">
<!--fine tabella x menu -->
<br>
<br>
<b><i><P class = "titolo">Verifica delle impostazioni di sicurezza del browser in corso.... <br />
Se non si viene reindirizzati entro 10 secondi<a href="javascript: void doSubmit()"> Cliccare qui </a> per andare avanti.</P></i></b>
<!-- tabella x menu verticale-->
</td>
</tr>
</tr>
</table>
<!-- <hr class = "riga"> -->
<!-- tabella x menu -->
<script type="text/javascript" language="Javascript">
<!--
inviaDatiClient();
-->
</script>
</body>
</html>

View File

@@ -0,0 +1,36 @@
<html>
<head>
<title>
Logout
</title>
<%@ page import="mnp.crontab.utility.Resources" %>
<script type="text/javascript" language="javascript">
function logout() {
//window.location=self.location;
//window.opener = self;
window.location.href = '<%=Resources.getURL_LOGOUT_PCS()%>';
//window.close();
}
</script>
</head>
<body bgcolor="#ffffff" onLoad="logout()">
<table width = "100%" border = "0">
<tr>
<td align = "center" width = "85%" height="116">
<br>
<br>
<b><i><P class = "titolo">Logout effettuato con successo <br />
Chiudere questa finestra</P></i></b>
</td>
</tr>
</table>
</body>
</html>

View File

@@ -0,0 +1,417 @@
<%@page import = "mnp.crontab.objects.*, mnp.crontab.utility.ui.Res"%>
<%@page import = "mnp.crontab.command.CrontabCostants" %>
<%@page import = "mnp.crontab.command.CrontabSession" %>
<%@page import = "mnp.crontab.command.TaskCommand" %>
<%@page import = "mnp.crontab.objects.ui.TaskBean" %>
<%@page import = "java.util.*" %>
<jsp:useBean id="resultBean" scope="request" class="mnp.crontab.objects.ui.IntervalloAttivazione" />
<% if (session.isNew()) { session.invalidate(); %>
<jsp:forward page="sessioneInattiva.html" />
<%
}
String cmdOperazione =(String) request.getAttribute(CrontabCostants.TIPO_OPERAZIONE);
String elementOperazione =(String) request.getAttribute(CrontabCostants.CAMPO_ELEMENT_CHECKED);
String ora =resultBean.getHourFrom();
String minuti =resultBean.getMinutiFrom();
String oraTo =resultBean.getHourTo();
String minutiTo =resultBean.getMinutiTo();
if (oraTo==null)
{
oraTo="";
minutiTo="";
}
if ((resultBean.getGiornoMese() != null) && (!resultBean.getGiornoMese().equals("0")))
{
if (resultBean.getGiornoMese().length()==1)
resultBean.setGiornoMese("0"+resultBean.getGiornoMese());
}
String[] giorni = resultBean.getGiorniSettimana();
%>
<HTML>
<head>
<TITLE>
Mnp
</TITLE>
<script language = "Javascript">
function controllaFasciaOraria(action)
{
oraFrom=document.formCentrale.oraFrom
oraTo=document.formCentrale.oraTo
minutiFrom=document.formCentrale.minutiFrom
minutiTo=document.formCentrale.minutiTo
if (oraTo.value !='')
{
var ora1=parseInt(oraFrom.value,10);
var ora2=parseInt(oraTo.value,10);
var minuto1=parseInt(minutiFrom.value,10);
var minuto2=parseInt(minutiTo.value,10);
if (ora1 > ora2)
{
alert('Attenzione: Controllare Intervallo Orario!');
oraTo.value=''
minutiTo.value=''
return
}
if (ora2 == ora1)
{
if (minuto1 > minuto2)
{
alert('Attenzione: Controllare Intervallo Orario!');
oraTo.value=''
minutiTo.value=''
return
}
}
}
for (var i=0; i < 7; i++)
{
if (document.formCentrale.giorniSettimana[i].checked)
return checkAllFieldIntervallo(document.formCentrale,action)
}
if (document.formCentrale.giornoData.value == '')
{
alert('Errore.Inserire un giorno della Settimana o un giorno del Mese.')
return;
}
checkAllFieldIntervallo(document.formCentrale,action)
}
/*
function resetAllFieldIntervallo(frm)
{
// ncampi = numero di campi da resettare
// ArrayCampi = array dei campi che devono essere resettati
var ncampi=8;
var ArrayCampi = new Array(ncampi)
// Riempimento degli array
ArrayCampi[0] = frm.giorno
ArrayCampi[1] = frm.giornoData
ArrayCampi[2] = frm.oraFrom
ArrayCampi[3] = frm.minutoFrom
ArrayCampi[4] = frm.giornoStop
ArrayCampi[5] = frm.giornoDataStop
ArrayCampi[6] = frm.oraTo
ArrayCampi[7] = frm.minutoTo
ResetAllField(ArrayCampi)
frm.every.value='0'
}
*/
function checkAllFieldIntervallo(frm,action)
{
// ncampi = numero di campi obbligatori da controllare
// ArrayCampiObbligatori = array dei campi obbligatori che devono essere controllati
// ArrayEtichetteCampiObbligatori = array di etichette dei campi obbligatori
var ncampi=1;
var ArrayCampiObbligatori = new Array(ncampi)
var ArrayEtichetteCampiObbligatori = new Array(ncampi)
// Riempimento degli array
/*
if (frm.giorno.value=='')
ArrayCampiObbligatori[0] = frm.giornoData
else
ArrayCampiObbligatori[0] = frm.giorno
ArrayEtichetteCampiObbligatori[0]= 'Giorno di Partenza'
*/
ArrayCampiObbligatori[0] = frm.oraFrom
ArrayEtichetteCampiObbligatori[0]= 'Ora di inizio attivazione'
/*
if (frm.giornoStop.value=='')
ArrayCampiObbligatori[2] = frm.giornoDataStop
else
ArrayCampiObbligatori[2] = frm.giornoStop
ArrayEtichetteCampiObbligatori[2]= 'Giorno di Stop'
ArrayCampiObbligatori[3] = frm.oraTo
ArrayEtichetteCampiObbligatori[3]= 'Ora di fine attivazione'
*/
if (CheckCampiObbligatori(ArrayCampiObbligatori,ArrayEtichetteCampiObbligatori))
{
frm.JSP_FUNCTION.value=action;
if (frm.every.value=='')
frm.every.value='0'
if (frm.deadline.value=='')
frm.deadline.value='0'
frm.submit();
}
}
function CheckCampiObbligatori(ArrayCampiObbligatori,ArrayEtichetteCampiObbligatori)
{
for (var i=0; i < ArrayCampiObbligatori.length; i++)
{
if (ArrayCampiObbligatori[i].value == "")
{
alert('Errore.Inserire '+ArrayEtichetteCampiObbligatori[i])
return false;
}
}
return true;
}
function ResetAllField(ArrayCampi)
{
for (var i=0; i < ArrayCampi.length; i++)
{
ArrayCampi[i].value = ""
}
}
function settaGiorno()
{
for (var i=0; i < 7; i++)
{
document.formCentrale.giorniSettimana[i].checked=false;
}
}
function settaMinutiTo()
{
document.formCentrale.minutiTo.value="00";
}
function settaDataGiorno()
{
document.formCentrale.giornoData.value="";
//document.formCentrale.giornoDataStop.value="";
}
</script>
<form method="post" action="TaskCommand.do" name="formCentrale">
<INPUT type="hidden" name="JSP_FUNCTION" value="">
<LINK REL="stylesheet" TYPE="text/css" HREF="<%=Res.ApplContext%>/jsp/GUI/GUIStyle.css">
</head>
<BODY>
<!-- tabella che include il menu verticale -->
<INPUT type="hidden" name="elementoChecked" value="<%= elementOperazione %>">
<table width="524" height="533">
<td width = "594" valign="top" height="529">
<DIV align="center" >
<table border="0" width="100%">
<tr align = "center" valign = "top" width="45%" bgcolor="#D61414">
<td align = "right" valign = "top" width="45%" bgcolor="#D61414">
<b><i>
<P class="Titolo"><font color="#FFFFFF">Intervalli di Attivazione</font></P></i></b>
</td>
</tr>
<tr >
<td align = "right" valign = "top" width="85%" colspan="2">
&nbsp;
</td>
</tr>
</table>
<table width="483" border="0" height="60%" >
<tr>
<td colspan="2" height="21" width="475" align="right"><font color="#D61414"><i>campi obbligatori</i></font>
</td>
</tr>
<tr>
<td height="21" width="475" align="right" bgcolor="#FFFFCC" colspan="2">
<p align="left"><font color="#D61414"><b>Giorno/i della
Settimana</b></font>
</td>
</tr>
<tr>
<td colspan="2" height="21" width="475" >
<TABLE nowrap width="473" >
<TBODY>
<TR width="100%">
<TD height="17" nowrap align="center" width="15%">Lun</TD>
<TD height="17" nowrap align="center" width="15%">Mar</TD>
<TD height="17" nowrap align="center" width="15%">Mer</TD>
<TD height="17" nowrap align="center" width="15%">Gio</TD>
<TD height="17" nowrap align="center" width="15%">Ven</TD>
<TD height="17" nowrap align="center" width="15%">Sab</TD>
<TD height="17" nowrap align="center" width="15%">Dom</TD>
</TR>
<TR width="100%">
<TD height="17" nowrap align="center" width="15%"><input type="checkbox" onclick="settaDataGiorno()" name="giorniSettimana" value="Lun" <% if (resultBean.getSelected(giorni,"Lun")) {%> checked <% }%>></TD>
<TD height="17" nowrap align="center" width="15%"><input type="checkbox" onclick="settaDataGiorno()" name="giorniSettimana" value="Mar" <% if (resultBean.getSelected(giorni,"Mar")) {%> checked <% }%>></TD>
<TD height="17" nowrap align="center" width="15%"><input type="checkbox" onclick="settaDataGiorno()" name="giorniSettimana" value="Mer" <% if (resultBean.getSelected(giorni,"Mer")) {%> checked <% }%>></TD>
<TD height="17" nowrap align="center" width="15%"><input type="checkbox" onclick="settaDataGiorno()" name="giorniSettimana" value="Gio" <% if (resultBean.getSelected(giorni,"Gio")) {%> checked <% }%>></TD>
<TD height="17" nowrap align="center" width="15%"><input type="checkbox" onclick="settaDataGiorno()" name="giorniSettimana" value="Ven" <% if (resultBean.getSelected(giorni,"Ven")) {%> checked <% }%>></TD>
<TD height="17" nowrap align="center" width="15%"><input type="checkbox" onclick="settaDataGiorno()" name="giorniSettimana" value="Sab" <% if (resultBean.getSelected(giorni,"Sab")) {%> checked <% }%>></TD>
<TD height="17" nowrap align="center" width="15%"><input type="checkbox" onclick="settaDataGiorno()" name="giorniSettimana" value="Dom" <% if (resultBean.getSelected(giorni,"Dom")) {%> checked <% }%>></TD>
</TR>
</TBODY>
</TABLE>
</td></tr>
<tr>
<td width="190" height="25">&nbsp;</td>
<td width="279" height="25">
<p>&nbsp; <i><b>oppure&nbsp;&nbsp;</b></i></p>
</td>
</tr>
<tr>
<td width="190" bgcolor="#FFFFCC" height="25"><b><font color="#D61414">Giorno&nbsp;del
mese</font></b></td>
<td width="279" height="25">
<select size="1" name="giornoData" onclick="settaGiorno()">
<option value=""></option>
<% for(int i=1; i<32;i++)
{
if (i<10)
{ %>
<OPTION value="0<%=i%>" <% if (("0"+String.valueOf(i)).equals(resultBean.getGiornoMese())) {%> selected <% }%>>0<%=i%></OPTION>
<% }
else { %>
<OPTION value="<%=i%>" <% if (String.valueOf(i).equals(resultBean.getGiornoMese())) {%> selected <% }%> ><%=i%></OPTION>
<% }
} %>
</select>
</td>
</tr>
<tr>
<td width="190" height="25"></td>
<td width="279" height="25">
</td>
</tr>
<tr>
<td width="190" bgcolor="#FFFFCC" height="25"><b><font color="#D61414">Orario
di Partenza <i><font size="2">(ora:minuti)</font></i></font></b></td>
<td width="279" height="25">
<p><SELECT name="oraFrom" >
<% for(int i=0; i<24;i++)
{
if (i<10)
{ %>
<OPTION value="0<%=i%>" <% if (ora.equals("0"+String.valueOf(i))) {%> selected <% }%>>0<%=i%></OPTION>
<% }
else { %>
<OPTION value="<%=i%>" <% if (ora.equals(String.valueOf(i))) {%> selected <% }%> ><%=i%></OPTION>
<% }
} %>
</SELECT> :
<SELECT name="minutiFrom">
<% for(int i=0; i<60;i++)
{
if (i<10)
{ %>
<OPTION value="0<%=i%>" <% if (minuti.equals("0"+String.valueOf(i))) {%> selected <% }%> >0<%=i%></OPTION>
<% }
else { %>
<OPTION value="<%=i%>" <% if (minuti.equals(String.valueOf(i))) {%> selected <% }%> ><%=i%></OPTION>
<% }
} %>
</select>
</td>
</tr>
<tr>
<td width="190" bgcolor="#FFFFCC" height="25"><b><font color="#000000">Orario
Ultima Partenza&nbsp; <font size="2"><i>(ora:minuti)</i></font></font></b></td>
<td width="279" height="25">
<p>
<SELECT name="oraTo" onChange="settaMinutiTo()">
<option value=""></option>
<% for(int i=0; i<24;i++)
{
if (i<10)
{ %>
<OPTION value="0<%=i%>" <% if (oraTo.equals("0"+String.valueOf(i))) {%> selected <% }%>>0<%=i%></OPTION>
<% }
else { %>
<OPTION value="<%=i%>" <% if (oraTo.equals(String.valueOf(i))) {%> selected <% }%>><%=i%></OPTION>
<% }
} %>
</SELECT> :
<SELECT name="minutiTo">
<option value=""></option>
<% for(int i=0; i<60;i++)
{
if (i<10)
{ %>
<OPTION value="0<%=i%>" <% if (minutiTo.equals("0"+String.valueOf(i))) {%> selected <% }%>>0<%=i%></OPTION>
<% }
else { %>
<OPTION value="<%=i%>" <% if (minutiTo.equals(String.valueOf(i))) {%> selected <% }%>><%=i%></OPTION>
<% }
} %>
</SELECT></p>
</td>
</tr>
<tr>
<td width="190" bgcolor="#FFFFCC" height="25"><b>Periodo
<i><font size="2">(minuti)</font></i></b></td>
<td width="279" height="25">
<p><input type="text" name="every" size="2" value="<%= resultBean.getEveryPeriodo()%>" maxlength="3" ></p>
</td>
</tr>
<tr>
<td width="190" height="21" bgcolor="#FFFFCC"><font color="#000000"><b>DeadLine
<i>(minuti) *</i></b></font></td>
<td width="279" height="21">
<input type="text" name="deadline" size="2" value="<%= resultBean.getDeadline()%>" maxlength="3" >
</td>
</tr>
<tr>
<td width="469" height="21" colspan="2"><font color="#D61414"><i>*
si intende il tempo che intercorre dall'ultima partenza allo
stop dell'intervallo</i></font></td>
</tr>
</table></div>
<br>
<br>
<br>
<DIV align="center">
<TABLE nowrap width="70%">
<TBODY>
<TR width="180">
<TD height="17" nowrap align="center" width="20%" class="hmenu"><A class="hmenu" href="javascript:controllaFasciaOraria(<%= cmdOperazione %>)"> Conferma</A></TD>
<TD height="17" nowrap align="center" width="20%" class="hmenu"><A class="hmenu" href="javascript: history.back()"> Torna
Indietro</A></TD>
<TD height="17" nowrap align="center" width="20%" class="hmenu"><A class="hmenu" href="javascript: window.close()"> Chiudi </A></TD>
</TR>
</TBODY>
</TABLE>
</DIV>
<!-- tabella x menu -->
</table>
</body>
</html>
</form>

View File

@@ -0,0 +1,135 @@
<%@page import = "mnp.crontab.objects.*, mnp.crontab.utility.ui.Res"%>
<%@page import = "mnp.crontab.command.CrontabCostants" %>
<%@page import = "mnp.crontab.command.CrontabSession" %>
<%@page import = "mnp.crontab.command.TaskCommand" %>
<%@page import = "mnp.crontab.objects.ui.TaskBean" %>
<%@page import = "mnp.crontab.objects.ui.IntervalloAttivazione" %>
<%@page import = "java.util.*" %>
<% if (session.isNew()) { session.invalidate(); %>
<jsp:forward page="sessioneInattiva.html" />
<%
}
CrontabSession aCrontabSession =(CrontabSession) session.getAttribute(CrontabCostants.OBJECT_CRONTAB_SESSION);
// TaskBean aTaskBean =(TaskBean) session.getAttribute("oggettoTaskBean");
Vector intervalli =(Vector) session.getAttribute(CrontabCostants.OBJECT_INTERVALLI_SESSION);
// System.out.println("Intervalli"+intervalli);
%>
<HTML>
<head>
<TITLE>
Mnp
</TITLE>
<jsp:include page="/jsp/VerificheScriptCrontab.txt" flush = "true"/>
<form method="post" action="TaskCommand.do" name="formCentrale">
<INPUT type="hidden" name="JSP_FUNCTION" value="">
<LINK REL="stylesheet" TYPE="text/css" HREF="<%=Res.ApplContext%>/jsp/GUI/GUIStyle.css">
</head>
<BODY>
<!-- tabella che include il menu verticale -->
<INPUT type="hidden" name="elementoChecked" value="">
<table width="524">
<td width = "594" valign="top">
<DIV align="center" >
<table border="0" width="100%">
<tr align = "center" valign = "top" width="45%" bgcolor="#D61414">
<td align = "right" valign = "top" width="45%" bgcolor="#D61414">
<b><i>
<P class="Titolo"><font color="#FFFFFF">Intervalli di Attivazione</font></P></i></b>
</td>
</tr>
<tr >
<td align = "right" valign = "top" width="85%" colspan="2">
&nbsp;
</td>
</tr>
</table>
<table border="0" width="523">
<tr bgcolor="#CCCCCC">
<td width="38" align="center"><b>Sel.</b></td>
<td width="128" align="center"><b>Giorno</b></td>
<td width="72" align="center"><b>Prima Partenza</b></td>
<td width="71" align="center"><b>Ultima Partenza</b></td>
<td width="83" align="center"><b>DeadLine (minuti)</b></td>
<td width="93" align="center"><b>Every (minuti)</b></td>
</tr>
<% if (intervalli.size() == 0 || intervalli == null)
{
%>
<tr bgcolor=white >
<td colspan="6" align="center" width="416"><b>Nessun Intervallo di Attivazione</b></td>
</tr>
<%
}
else
{
String colore= new String();
for(int i=0; i<intervalli.size();i++)
{
if (i%2 == 0) colore="white";
else
colore="#99CCFF";
IntervalloAttivazione aIntervallo = (IntervalloAttivazione) intervalli.elementAt(i);
//String giorno=IntervalloAttivazione.getDayLabel(aIntervallo);
%>
<tr bgcolor="<%=colore%>" >
<td width="38" ><p align="center"><input type="radio" name="elementiLista" value="<%=i %>"></p></td>
<td width="128" >
<p align="center"><b><%=aIntervallo.getGiorno() %></b></p>
</td>
<td width="72" >
<p align="center"><b><%=aIntervallo.getOraFrom() %></b></p>
</td>
<td width="71" ><p align="center"><b><%=aIntervallo.getOraTo() %></b></p></td>
<td width="83" ><p align="center"><b><%=aIntervallo.getDeadline() %></b></p>
</td>
<td width="93" >
<p align="center"><b><%=aIntervallo.getEveryPeriodo() %></b></p>
</td>
</tr>
<% }
}
%>
<tr bgcolor="#CCCCCC">
<td width="38" align="center"><b>Sel.</b></td>
<td width="128" align="center"><b>Giorno</b></td>
<td width="72" align="center"><b>Prima Partenza</b></td>
<td width="71" align="center"><b>Ultima Partenza</b></td>
<td width="83" align="center"><b>DeadLine (minuti)</b></td>
<td width="93" align="center"><b>Every(minuti)</b></td>
</tr>
</table>
</div>
<br>
<br>
<br>
<DIV align="center">
<TABLE nowrap width="80%">
<TBODY>
<TR width="180">
<TD height="17" nowrap align="center" width="20%" class="hmenu"><A class="hmenu" href="javascript:buttonActionPassaggio(document.formCentrale,<%= CrontabCostants.FNC_NUOVO_INTERVALLO %>)"> Nuovo</A></TD>
<TD height="17" nowrap align="center" width="20%" class="hmenu"><A class="hmenu" href="javascript:checkElimina(document.formCentrale,<%= CrontabCostants.FNC_MODIFICA_INTERVALLO %>,'Modifica')"> Modifica </A></TD>
<TD height="17" nowrap align="center" width="20%" class="hmenu"><A class="hmenu" href="javascript:checkElimina(document.formCentrale,'<%= CrontabCostants.CMD_ELIMINA_INTERVALLO %>','Elimina')"> Elimina </A></TD>
<TD height="17" nowrap align="center" width="20%" class="hmenu"><A class="hmenu" href="javascript: window.close()"> Chiudi </A></TD>
</TR>
</TBODY>
</TABLE>
</DIV>
<!-- tabella x menu -->
</table>
</body>
</html>
</form>

View File

@@ -0,0 +1,141 @@
<%@page import = "mnp.crontab.objects.*, mnp.crontab.utility.ui.Res"%>
<%@page import = "mnp.crontab.command.CrontabCostants" %>
<%@page import = "mnp.crontab.command.CrontabSession" %>
<%@page import = "mnp.crontab.command.TaskCommand" %>
<%@page import = "mnp.crontab.objects.ui.TaskBean" %>
<%@page import = "mnp.crontab.objects.ui.ProcessBean" %>
<%@page import = "mnp.crontab.objects.ui.IntervalloAttivazione" %>
<%@page import = "java.util.*" %>
<% if (session.isNew()) { session.invalidate(); %>
<jsp:forward page="sessioneInattiva.html" />
<%
}
CrontabSession aCrontabSession =(CrontabSession) session.getAttribute(CrontabCostants.OBJECT_CRONTAB_SESSION);
Vector processi =(Vector) session.getAttribute(CrontabCostants.OBJECT_PROCESSI_ASSOCIATI);
// TaskBean aTaskBean =(TaskBean) session.getAttribute("oggettoTaskBean");
/* System.out.println("TASK ID "+aCrontabSession.getTaskId());
System.out.println("MiaListaSessione "+MiaListaSessione.size());
Vector intervalli=TaskCommand.listaIntervalliAttivazione(MiaListaSessione,aCrontabSession.getTaskId());
*/
%>
<HTML>
<head>
<TITLE>
Mnp
</TITLE>
<jsp:include page="/jsp/VerificheScriptCrontab.txt" flush = "true"/>
<form method="post" action="TaskCommand.do" name="formCentrale">
<INPUT type="hidden" name="JSP_FUNCTION" value="">
<LINK REL="stylesheet" TYPE="text/css" HREF="<%=Res.ApplContext%>/jsp/GUI/GUIStyle.css">
</head>
<BODY>
<!-- tabella che include il menu verticale -->
<INPUT type="hidden" name="elementoChecked" value="">
<table width="524">
<td width = "594" valign="top">
<DIV align="center" >
<table border="0" width="100%">
<tr align = "center" valign = "top" width="45%" bgcolor="#D61414">
<td align = "right" valign = "top" width="45%" bgcolor="#D61414">
<p class="Titolo"><b><i><font color="#FFFFFF">Processi associati</font></i></b>
</td>
</tr>
<tr >
<td align = "right" valign = "top" width="85%" colspan="2">
&nbsp;
</td>
</tr>
</table>
<table border="0" width="520">
<tr bgcolor="#CCCCCC">
<td width="51" align="center"><b>Sel.</b></td>
<td width="177" align="center"><b>Processi</b></td>
<td width="146" align="center"><b>Stato&nbsp;</b></td>
<td width="126" align="center"><b>Operazione</b></td>
</tr>
<% if (processi == null)
{
%>
<tr bgcolor=white >
<td colspan="4" align="center" width="512"><b>Nessun Processo associato</b></td>
</tr>
<%
}
else
{
String colore= new String();
for(int i=0; i<processi.size();i++)
{
if (i%2 == 0) colore="white";
else
colore="#99CCFF";
ProcessBean aProcess = (ProcessBean) processi.elementAt(i);
%>
<tr bgcolor="<%=colore%>" >
<td width="51" ><p align="center"><input type="checkbox" name="elementiLista" value="<%=i %>"></p></td>
<td width="177" >
<p align="center"><b><%= aProcess.getNome()%></b></p>
</td>
<td width="146" align="center"><b><%= aProcess.getStatoProcesso()%></b>
</td>
<td width="126" align="center">
<% if (aProcess.getStatoProcesso().equals("Disabilitato"))
{ %>
<center>
<TABLE height="17" border="0" width="50%">
<TR >
<td height="17" nowrap align="center" width="40%" class="hmenu"><A class="hmenu" href="javascript:buttonAction(document.formCentrale,<%= CrontabCostants.CMD_ABILITA_PROCESSO_ASSOCIATO %>,<%= i%>,'y')"> Abilita </A></TD>
</tr>
</Table>
</center>
<% } %>
</td>
</tr>
<% }
}
%>
<tr bgcolor="#CCCCCC">
<td width="51" align="center"><b>Sel.</b></td>
<td width="177" align="center"><b>Processi</b></td>
<td width="146" align="center"><b>Stato</b></td>
<td width="126" align="center"><b>Operazione</b></td>
</tr>
</table>
</div>
<br>
<br>
<br>
<DIV align="center">
<TABLE nowrap width="100%">
<TBODY>
<TR width="200">
<TD height="17" nowrap align="center" width="20%" class="hmenu"><A class="hmenu" href="javascript:buttonActionPassaggio(document.formCentrale,<%= CrontabCostants.FNC_ASSOCIA_PROCESSO %>)"> Associa
Processi</A></TD>
<TD height="17" nowrap align="center" width="20%" class="hmenu"><A class="hmenu" href="javascript:checkRadio(document.formCentrale,<%= CrontabCostants.CMD_DISASSOCIA_PROCESSO %>)"> Disassocia
Processi</A></TD>
<TD height="17" nowrap align="center" width="20%" class="hmenu"><A class="hmenu" href="javascript:checkRadio(document.formCentrale,<%= CrontabCostants.CMD_DISABILITA_PROCESSO_ASSOCIATO %>)"> Disabilita
Processi</A></TD>
<TD height="17" nowrap align="center" width="20%" class="hmenu"><A class="hmenu" href="javascript: window.close()"> Chiudi </A></TD>
</TR>
</TBODY>
</TABLE>
</DIV>
<!-- tabella x menu -->
</table>
</body>
</html>
</form>

View File

@@ -0,0 +1,118 @@
<%@page import = "mnp.crontab.objects.*, mnp.crontab.utility.ui.Res"%>
<%@page import = "mnp.crontab.command.CrontabCostants" %>
<%@page import = "mnp.crontab.command.CrontabSession" %>
<%@page import = "mnp.crontab.command.TaskCommand" %>
<%@page import = "mnp.crontab.objects.ui.TaskBean" %>
<%@page import = "mnp.crontab.objects.ui.ProcessBean" %>
<%@page import = "mnp.crontab.objects.ui.IntervalloAttivazione" %>
<%@page import = "java.util.*" %>
<% if (session.isNew()) { session.invalidate(); %>
<jsp:forward page="sessioneInattiva.html" />
<%
}
CrontabSession aCrontabSession =(CrontabSession) session.getAttribute(CrontabCostants.OBJECT_CRONTAB_SESSION);
Vector processi =(Vector) session.getAttribute(CrontabCostants.OBJECT_PROCESSI_BLOCCANTI);
%>
<HTML>
<head>
<TITLE>
Mnp
</TITLE>
<jsp:include page="/jsp/VerificheScriptCrontab.txt" flush = "true"/>
<form method="post" action="ProcessCommand.do" name="formCentrale">
<INPUT type="hidden" name="JSP_FUNCTION" value="">
<LINK REL="stylesheet" TYPE="text/css" HREF="<%=Res.ApplContext%>/jsp/GUI/GUIStyle.css">
</head>
<BODY>
<!-- tabella che include il menu verticale -->
<INPUT type="hidden" name="elementoChecked" value="">
<table width="524">
<td width = "594" valign="top">
<DIV align="center" >
<table border="0" width="100%">
<tr align = "center" valign = "top" width="45%" bgcolor="#D61414">
<td align = "right" valign = "top" width="45%" bgcolor="#D61414">
<p class="Titolo"><b><i><font color="#FFFFFF">Processi Bloccanti</font></i></b>
</td>
</tr>
<tr >
<td align = "right" valign = "top" width="85%" colspan="2">
&nbsp;
</td>
</tr>
</table>
<table border="0" width="400">
<tr bgcolor="#CCCCCC">
<td width="51" align="center"><b>Sel.</b></td>
<td width="177" align="center"><b>Processi</b></td>
<td width="146" align="center"><b>Stato&nbsp;</b></td>
</tr>
<% if (processi == null)
{
%>
<tr bgcolor=white >
<td colspan="4" align="center" width="512"><b>Nessun Processo bloccante</b></td>
</tr>
<%
}
else
{
String colore= new String();
for(int i=0; i<processi.size();i++)
{
if (i%2 == 0) colore="white";
else
colore="#99CCFF";
ProcessBean aProcess = (ProcessBean) processi.elementAt(i);
%>
<tr bgcolor="<%=colore%>" >
<td width="51" ><p align="center"><input type="checkbox" name="elementiLista" value="<%=i %>"></p></td>
<td width="177" >
<p align="center"><b><%= aProcess.getNome()%></b></p>
</td>
<td width="146" align="center"><b><%= aProcess.getStatoProcesso()%></b>
</td>
</tr>
<% }
}
%>
<tr bgcolor="#CCCCCC">
<td width="51" align="center"><b>Sel.</b></td>
<td width="177" align="center"><b>Processi</b></td>
<td width="146" align="center"><b>Stato</b></td>
</tr>
</table>
</div>
<br>
<br>
<br>
<DIV align="center">
<TABLE nowrap width="100%">
<TBODY>
<TR width="200">
<TD height="17" nowrap align="center" width="20%" class="hmenu"><A class="hmenu" href="javascript:buttonActionPassaggio(document.formCentrale,<%= CrontabCostants.FNC_ASSOCIA_PROCESSO_BLOCCANTE %>)"> Associa
Processi</A></TD>
<TD height="17" nowrap align="center" width="20%" class="hmenu"><A class="hmenu" href="javascript:checkRadio(document.formCentrale,<%= CrontabCostants.CMD_DISASSOCIA_PROCESSO_BLOCCANTE %>)"> Disassocia
Processi</A></TD>
<TD height="17" nowrap align="center" width="20%" class="hmenu"><A class="hmenu" href="javascript: window.close()"> Chiudi </A></TD>
</TR>
</TBODY>
</TABLE>
</DIV>
<!-- tabella x menu -->
</table>
</body>
</html>
</form>

View File

@@ -0,0 +1,113 @@
<%@page import = "mnp.crontab.objects.*, mnp.crontab.utility.ui.Res"%>
<%@page import = "mnp.crontab.command.CrontabCostants" %>
<%@page import = "mnp.crontab.command.CrontabSession" %>
<%@page import = "mnp.crontab.command.TaskCommand" %>
<%@page import = "mnp.crontab.objects.ui.ProcessBean" %>
<%@page import = "java.util.*" %>
<% if (session.isNew()) { session.invalidate(); %>
<jsp:forward page="sessioneInattiva.html" />
<%
}
CrontabSession aCrontabSession =(CrontabSession) session.getAttribute(CrontabCostants.OBJECT_CRONTAB_SESSION);
Vector processi =(Vector) session.getAttribute(CrontabCostants.OBJECT_PROCESSI_BLOCCANTI_DISPONIBILI);
%>
<HTML>
<head>
<TITLE>
Mnp
</TITLE>
<jsp:include page="/jsp/VerificheScriptCrontab.txt" flush = "true"/>
<form method="post" action="ProcessCommand.do" name="formCentrale">
<INPUT type="hidden" name="JSP_FUNCTION" value="">
<LINK REL="stylesheet" TYPE="text/css" HREF="<%=Res.ApplContext%>/jsp/GUI/GUIStyle.css">
</head>
<BODY>
<!-- tabella che include il menu verticale -->
<INPUT type="hidden" name="elementoChecked" value="">
<table width="524">
<td width = "594" valign="top">
<DIV align="center" >
<table border="0" width="100%">
<tr align = "center" valign = "top" width="45%" bgcolor="#D61414">
<td align = "right" valign = "top" width="45%" bgcolor="#D61414">
<p class="Titolo"><b><i><font color="#FFFFFF">Processi bloccanti</font></i></b>
</td>
</tr>
<tr >
<td align = "right" valign = "top" width="85%" colspan="2">
&nbsp;
</td>
</tr>
</table>
<table border="0" width="520">
<tr bgcolor="#CCCCCC">
<td width="44" align="center"><b>Sel.</b></td>
<td width="400" align="center"><b>Processi Disponibili</b></td>
</tr>
<% if (processi == null)
{
%>
<tr bgcolor=white >
<td colspan="2" align="center"><b>Nessun Processo Disponibile da associare</b></td>
</tr>
<%
}
else
{
String colore= new String();
for(int i=0; i<processi.size();i++)
{
if (i%2 == 0) colore="white";
else
colore="#99CCFF";
ProcessBean aProcess = (ProcessBean) processi.elementAt(i);
%>
<tr bgcolor="<%=colore%>" >
<td width="44" ><p align="center"><input type="radio" name="elementiLista" value="<%=i %>"></p></td>
<td width="400" >
<p align="center"><b><%= aProcess.getNome()%></b></p>
</td>
</tr>
<% }
}
%>
<tr bgcolor="#CCCCCC">
<td width="44" align="center"><b>Sel.</b></td>
<td width="400" align="center"><b>Processi Disponibili</b></td>
</tr>
</table>
</div>
<br>
<br>
<br>
<DIV align="center">
<TABLE nowrap width="80%">
<TBODY>
<TR width="180">
<TD height="17" nowrap align="center" width="20%" class="hmenu"><A class="hmenu" href="javascript:checkRadio(document.formCentrale,<%= CrontabCostants.CMD_ASSOCIA_PROCESSO_BLOCCANTE %>)"> Associa
</A></TD>
<TD height="17" nowrap align="center" width="20%" class="hmenu"><A class="hmenu" href="javascript:history.back()"> Torna
Indietro</A></TD>
<TD height="17" nowrap align="center" width="20%" class="hmenu"><A class="hmenu" href="javascript: window.close()"> Chiudi </A></TD>
</TR>
</TBODY>
</TABLE>
</DIV>
<!-- tabella x menu -->
</table>
</body>
</html>
</form>

View File

@@ -0,0 +1,138 @@
<%@page import = "mnp.crontab.objects.*, mnp.crontab.utility.ui.Res"%>
<%@page import = "mnp.crontab.command.CrontabCostants" %>
<%@page import = "mnp.crontab.command.CrontabSession" %>
<%@page import = "mnp.crontab.command.TaskCommand" %>
<%@page import = "mnp.crontab.objects.ui.ProcessBean" %>
<%@page import = "java.util.*" %>
<% if (session.isNew()) { session.invalidate(); %>
<jsp:forward page="sessioneInattiva.html" />
<%
}
CrontabSession aCrontabSession =(CrontabSession) session.getAttribute(CrontabCostants.OBJECT_CRONTAB_SESSION);
Vector processi =(Vector) session.getAttribute(CrontabCostants.OBJECT_PROCESSI_DISPONIBILI);
String ordineMax=(String) request.getAttribute("ORDINE");
%>
<HTML>
<head>
<TITLE>
Mnp
</TITLE>
<script language = "Javascript">
function controllo(frm,action)
{
if (parseInt(frm.Ordine.value) > parseInt(frm.ordineChecked.value))
alert('Errore. Inserire un numero di ordine inferiore')
else
checkRadio(frm,action) //document.formCentrale,<%= CrontabCostants.CMD_ASSOCIA_PROCESSO %>)
}
</script>
<jsp:include page="/jsp/VerificheScriptCrontab.txt" flush = "true"/>
<form method="post" action="TaskCommand.do" name="formCentrale">
<INPUT type="hidden" name="JSP_FUNCTION" value="">
<LINK REL="stylesheet" TYPE="text/css" HREF="<%=Res.ApplContext%>/jsp/GUI/GUIStyle.css">
</head>
<BODY>
<!-- tabella che include il menu verticale -->
<INPUT type="hidden" name="elementoChecked" value="">
<INPUT type="hidden" name="ordineChecked" value="<%= ordineMax %>">
<table width="524">
<td width = "594" valign="top">
<DIV align="center" >
<table border="0" width="100%">
<tr align = "center" valign = "top" width="45%" bgcolor="#D61414">
<td align = "right" valign = "top" width="45%" bgcolor="#D61414">
<p class="Titolo"><b><i><font color="#FFFFFF">Processi associati</font></i></b>
</td>
</tr>
<tr >
<td align = "right" valign = "top" width="85%" colspan="2">
&nbsp;
</td>
</tr>
</table>
<table border="0" width="520">
<tr bgcolor="#CCCCCC">
<td width="44" align="center"><b>Sel.</b></td>
<td width="400" align="center"><b>Processi Disponibili</b></td>
</tr>
<% if (processi == null)
{
%>
<tr bgcolor=white >
<td colspan="2" align="center"><b>Nessun Processo Disponibile da associare</b></td>
</tr>
<%
}
else
{
String colore= new String();
for(int i=0; i<processi.size();i++)
{
if (i%2 == 0) colore="white";
else
colore="#99CCFF";
ProcessBean aProcess = (ProcessBean) processi.elementAt(i);
%>
<tr bgcolor="<%=colore%>" >
<td width="44" ><p align="center"><input type="radio" name="elementiLista" value="<%=i %>"></p></td>
<td width="400" >
<p align="center"><b><%= aProcess.getNome()%></b></p>
</td>
</tr>
<% }
}
%>
<tr bgcolor="#CCCCCC">
<td width="44" align="center"><b>Sel.</b></td>
<td width="400" align="center"><b>Processi Disponibili</b></td>
</tr>
</table>
</div>
<br>
<br>
<table nowrap width="100%">
<tbody>
<tr >
<td height="17" nowrap align="center" width="70%" bgcolor="#FFFFCC"><b><i>Inserisci Ordine Priorit&agrave; del processo da associare. </i></b><b><FONT color="#D61414">Max. Valore <%= ordineMax%></font></b></td>
<td width="30%">
<p align="center"><input type="text" name="Ordine" size="2" maxlength="2" value="1"></p>
</td>
</tr>
</tbody>
</table>
<br>
<br>
<br>
<DIV align="center">
<TABLE nowrap width="80%">
<TBODY>
<TR width="180">
<TD height="17" nowrap align="center" width="20%" class="hmenu"><A class="hmenu" href="javascript:controllo(document.formCentrale,<%= CrontabCostants.CMD_ASSOCIA_PROCESSO %>)"> Associa
</A></TD>
<TD height="17" nowrap align="center" width="20%" class="hmenu"><A class="hmenu" href="javascript:history.back()"> Torna
Indietro</A></TD>
<TD height="17" nowrap align="center" width="20%" class="hmenu"><A class="hmenu" href="javascript: window.close()"> Chiudi </A></TD>
</TR>
</TBODY>
</TABLE>
</DIV>
<!-- tabella x menu -->
</table>
</body>
</html>
</form>

View File

@@ -0,0 +1,111 @@
<%@page import = "mnp.crontab.objects.ui.TaskBean"%>
<%@page import = "mnp.crontab.utility.Resources"%>
<HTML>
<head>
<TITLE>
Mnp
</TITLE>
<%@page import = "mnp.crontab.objects.*, mnp.crontab.utility.ui.Res"%>
<jsp:include page="/jsp/VerificheScriptCrontab.txt" flush = "true"/>
<jsp:useBean id="resultBean" scope="request" class="mnp.crontab.objects.ListaTasks" />
<jsp:useBean id="statoSchedulatore" scope="request" class="java.lang.String" />
<form method="post" action="" name="formCentrale">
<INPUT type="hidden" name="JSP_FUNCTION" value="">
<BODY onLoad="aggiornaPresentazione()">
<!-- 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/GUI/Banner.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">STATO ATTUALE DI TASK E PROCESSI</font></P></i></b>
</td>
</tr>
<tr >
<td align = "right" valign = "top" width="85%" colspan="5">
&nbsp;
</td>
</tr>
</table>
<p align='center'>
<table width = '60%' border='0'>
<tr >
<td align = "left" valign = "top" width="85%" colspan="6" bgcolor="#000080">
<b><i>
<P class="Titolo"><font color="#FFFFFF">LISTA TASK ATTIVI</font></P></i></b>
</td>
</tr>
<tr>
<td class= 'tdCeleste' align= 'center'><font class = 'normaleTab'>Nome</font></td>
<td class= 'tdCeleste' align= 'center'><font class = 'normaleTab'>Ora Partenza</font></td>
</tr>
<% if (resultBean.getListaTaskBean().length == 0 )
{
if (statoSchedulatore.equals("A"))
{
%>
<tr bgcolor=white >
<td colspan="2" align="center"><b><font color="#D61414">Schedulatore Abilitato ma nessum Task Attivo.</font></b></td>
</tr>
<% }
else
{
%>
<tr bgcolor=white >
<td colspan="2" align="center"><b><font color="#D61414">Schedulatore Disabilitato. Premere Abilitazione per abilitare lo schedulatore</font></b></td>
</tr>
<%
}
}
else
{
TaskBean[] r1 = null;
r1 = resultBean.getListaTaskBean();
for (int i = 0; i < r1.length; i++) {
%>
<tr>
<td class= 'tdGiallo' align='center'><font class = 'normaleTab'><%=r1[i].getNome()%></font></td>
<td class= 'tdGiallo' align='center'><font class = 'normaleTab'><%=r1[i].getOraPartenza()%></font></td>
</tr>
<%}
}%>
<tr>
<td class= 'tdCeleste' align= 'center'><font class = 'normaleTab'>Nome</font></td>
<td class= 'tdCeleste' align= 'center'><font class = 'normaleTab'>Ora Partenza</font></td>
</tr>
</table>
</center>
</div>
</table>
<!-- tabella x menu -->
</BODY>
</form>
</HTML>

View File

@@ -0,0 +1,163 @@
<%@page import = "mnp.crontab.objects.*, mnp.crontab.utility.ui.Res"%>
<%@page import = "mnp.crontab.command.CrontabCostants" %>
<%@page import = "mnp.crontab.command.CrontabSession" %>
<%@page import = "mnp.crontab.objects.ui.TaskBean" %>
<%@page import = "mnp.crontab.objects.ui.ProcessBean" %>
<%@page import = "java.util.*" %>
<%@page import = "mnp.crontab.utility.Resources"%>
<jsp:useBean id="resultBean" scope="request" class="mnp.crontab.objects.ui.ProcessBean" />
<% if (session.isNew()) { session.invalidate(); %>
<jsp:forward page="sessioneInattivaProject.jsp" />
<%
}
CrontabSession aCrontabSession =(CrontabSession) session.getAttribute(CrontabCostants.OBJECT_CRONTAB_SESSION);
%>
<HTML>
<head>
<TITLE>
Mnp
</TITLE>
<jsp:include page="/jsp/VerificheScriptCrontab.txt" flush = "true"/>
<form method="post" action="ProcessCommand.do" name="formCentrale">
<INPUT type="hidden" name="JSP_FUNCTION" value="">
<BODY>
<INPUT type="hidden" name="elementoChecked" value="<%= aCrontabSession.getProcessId() %>">
<!-- 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%">
<tbody>
<tr>
<td width = "10%">
<jsp:include page="/jsp/GUI/Banner.jsp" flush = "true"/>
</td>
<td width = "90%" valign="top">
<DIV align="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">GESTIONE PROCESSI</font></P></i></b>
</td>
</tr>
<tr >
<td align = "right" valign = "top" width="85%" colspan="5">
&nbsp;
</td>
</tr>
</table>
<table border="0" width="100%">
<tr >
<td align = "left" valign = "top" width="85%" colspan="6" bgcolor="#000080">
<b><i>
<P class="Titolo"><font color="#FFFFFF"><%= aCrontabSession.getLabelOperazione()%> </font></P></i></b>
</td>
</tr>
<table width="656" border="0" height="349" >
<tr>
<td colspan="2" height="24" width="606" align="right">
<p align="left"></p>
</td>
</tr>
<tr>
<td width="143" bgcolor="#FFFFCC" height="24"><b><i>Nome<font color="#D61414">&nbsp;</font></i></b></td>
<td width="457" height="24"><%= resultBean.getNome()%></td>
</tr>
<tr>
<td width="143" bgcolor="#FFFFCC" height="24"><b><i>Descrizione</i></b></td>
<td width="457" height="24">
<p><%= resultBean.getDescrizione()%></p>
</td>
</tr>
<tr>
<td width="143" height="24" bgcolor="#FFFFCC"><b><i>Comando</i></b></td>
<td width="457" height="24">
<%= resultBean.getComando()%>
</td>
</tr>
<tr>
<td width="143" height="24" bgcolor="#FFFFCC"><b><i>Modalit&agrave;</i></b></td>
<td height="24" width="457"><%= resultBean.getModalita()%></td>
</tr>
<tr>
<td bgcolor="#FFFFCC" height="28" width="143"><b><i>Parametri</i></b></td>
<td height="28" width="457"><%= resultBean.getParametri()%></td>
</tr>
<tr>
<td width="143" height="24"></td>
<td width="457" height="24"></td>
</tr>
<tr>
<td width="600" height="2" colspan="2" bgcolor="#000080">&nbsp;</td>
</tr>
<tr>
<td width="143" height="24" bgcolor="#FFFFCC"><i><b>Task di Riferimento&nbsp;</b></i></td>
<td width="457" height="24">
<% if (resultBean.getVectorTask() != null )
{
for (int i=0;i<resultBean.getVectorTask().size();i++)
{
TaskBean aTask = (TaskBean) resultBean.getVectorTask().elementAt(i);
%>
<A href="javascript:getScheda(document.formCentrale,<%= CrontabCostants.FNC_DETTAGLIO_TASK %>,'<%= aTask.getIdTask()%>','TaskCommand.do')"><%= aTask.getNome() %></a>
<br>
<% }
}%>
</td>
</tr>
<tr>
<td width="600" height="2" colspan="2" bgcolor="#000080">&nbsp;</td>
</tr>
<tr>
<td width="143" height="24" bgcolor="#FFFFCC"><i><b>Processi Bloccanti&nbsp;</b></i></td>
<td width="457" height="24">
<% if (resultBean.getVectorProcessi() != null )
{
for (int i=0;i<resultBean.getVectorProcessi().size();i++)
{
ProcessBean aProcess = (ProcessBean) resultBean.getVectorProcessi().elementAt(i);
%>
<A href="javascript:getScheda(document.formCentrale,<%= CrontabCostants.FNC_DETTAGLIO_PROCESSO %>,'<%= aProcess.getProcessId()%>','ProcessCommand.do')"><%= aProcess.getNome() %></a>
<br>
<% }
}%>
</td>
</tr>
<td height="117" colspan="2">
<br>
<br>
<br>
<DIV align="center">
<TABLE nowrap width="25%">
<TBODY>
<TR width="180">
<TD height="17" nowrap align="center" width="20%" class="hmenu"><A class="hmenu" href="javascript:history.back()"> Torna Indietro</A></TD>
</TR>
</TBODY>
</TABLE>
</DIV>
</table>
</table>
<!-- tabella x menu -->
</div>
</table>
</BODY>
</form>

View File

@@ -0,0 +1,152 @@
<%@page import = "mnp.crontab.objects.*, mnp.crontab.utility.ui.Res"%>
<%@page import = "mnp.crontab.command.CrontabCostants" %>
<%@page import = "mnp.crontab.command.CrontabSession" %>
<%@page import = "mnp.crontab.objects.ui.TaskBean" %>
<%@page import = "mnp.crontab.objects.ui.ProcessBean" %>
<%@page import = "java.util.*" %>
<%@page import = "mnp.crontab.utility.Resources"%>
<jsp:useBean id="resultBean" scope="request" class="mnp.crontab.objects.ui.TaskBean" />
<% if (session.isNew()) { session.invalidate(); %>
<jsp:forward page="sessioneInattivaProject.jsp" />
<%
}
CrontabSession aCrontabSession =(CrontabSession) session.getAttribute(CrontabCostants.OBJECT_CRONTAB_SESSION);
%>
<HTML>
<head>
<TITLE>
Mnp
</TITLE>
<jsp:include page="/jsp/VerificheScriptCrontab.txt" flush = "true"/>
<form method="post" action="TaskCommand.do" name="formCentrale">
<INPUT type="hidden" name="JSP_FUNCTION" value="">
<BODY>
<INPUT type="hidden" name="elementoChecked" value="<%= aCrontabSession.getTaskId() %>">
<!-- 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%">
<tbody>
<tr>
<td width = "10%">
<jsp:include page="/jsp/GUI/Banner.jsp" flush = "true"/>
</td>
<td width = "90%" valign="top">
<DIV align="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">GESTIONE TASKS</font></P></i></b>
</td>
</tr>
<tr >
<td align = "right" valign = "top" width="85%" colspan="5">
&nbsp;
</td>
</tr>
</table>
<table border="0" width="100%">
<tr >
<td align = "left" valign = "top" width="85%" colspan="6" bgcolor="#000080">
<b><i>
<P class="Titolo"><font color="#FFFFFF"><%= aCrontabSession.getLabelOperazione()%> </font></P></i></b>
</td>
</tr>
<table width="656" border="0" height="349" >
<tr>
<td colspan="2" height="24" width="606" align="right">
<p align="left"></p>
</td>
</tr>
<tr>
<td width="143" bgcolor="#FFFFCC" height="24"><b><i>Nome<font color="#D61414">&nbsp;</font></i></b></td>
<td width="457" height="24"><%= resultBean.getNome()%></td>
</tr>
<tr>
<td width="143" bgcolor="#FFFFCC" height="24"><b><i>Descrizione</i></b></td>
<td width="457" height="24">
<p><%= resultBean.getDescrizione()%></p>
</td>
</tr>
<tr>
<td width="143" height="24" bgcolor="#FFFFCC"><b><i>Modalit&agrave;</i></b></td>
<td height="24" width="457"><%= resultBean.getModalita()%></td>
</tr>
<tr>
<td bgcolor="#FFFFCC" height="28" width="143"><b><i>Note</i></b></td>
<td height="28" width="457"><%= resultBean.getNote()%></td>
</tr>
<tr>
<td width="143" height="24"></td>
<td width="457" height="24"></td>
</tr>
<tr>
<td width="600" height="1" bgcolor="#000080" colspan="2">&nbsp;</td>
</tr>
<tr>
<td width="300" height="24" bgcolor="#FFFFCC"><b><font size="3"><i>Intervalli
di Attivazione</i></font></b></td>
<td width="300" height="24"><%= resultBean.getLabelIntervalli()%></td>
</tr>
<tr>
<td width="143" height="24"></td>
<td width="457" height="24"></td>
</tr>
<tr>
<td width="600" height="2" colspan="2" bgcolor="#000080">&nbsp;</td>
</tr>
<tr>
<td width="143" height="24" bgcolor="#FFFFCC"><i><b>Processi
Associati</b></i></td>
<td width="457" height="24">
<% if (resultBean.getVectorProcessi() != null )
{
for (int i=0;i<resultBean.getVectorProcessi().size();i++)
{
ProcessBean aProcesso = (ProcessBean) resultBean.getVectorProcessi().elementAt(i);
%>
<A href="javascript:getScheda(document.formCentrale,<%= CrontabCostants.FNC_DETTAGLIO_PROCESSO %>,'<%= aProcesso.getProcessId() %>','ProcessCommand.do')"><%= aProcesso.getNome() %></a> <br>
<% }
}%>
</td>
</tr>
<td height="117" colspan="2">
<br>
<br>
<br>
<DIV align="center">
<TABLE nowrap width="25%">
<TBODY>
<TR width="180">
<TD height="17" nowrap align="center" width="20%" class="hmenu"><A class="hmenu" href="javascript:history.back()"> Torna Indietro</A></TD>
</TR>
</TBODY>
</TABLE>
</DIV>
</table>
</table>
<!-- tabella x menu -->
</div>
</table>
</BODY>
</form>

View File

@@ -0,0 +1,166 @@
<%@page import = "java.util.*" %>
<%@page import = "mnp.crontab.utility.ui.Res" %>
<html>
<head>
<title>Pagina di verifica delle impostazioni di sicurezza</title>
<LINK REL="stylesheet" TYPE="text/css" HREF="GUIStyle.css" >
<SCRIPT language="Javascript">
function inviaDatiClient() {
var usernameclient;
var locator;
var service;
var properties;
var e;
var p;
var ip;
var hn;
try {
usernameclient = new ActiveXObject("WScript.Network").UserName;
locator = new ActiveXObject ("WbemScripting.SWbemLocator");
service = locator.ConnectServer(".");
properties = service.ExecQuery("SELECT * FROM Win32_NetworkAdapterConfiguration");
e = new Enumerator (properties);
for (;!e.atEnd();e.moveNext ()) {
p = e.item ();
if (p.IPAddress!=null ) {
document.forms["loginForm"].elements["hostnameclient"].value = p.DNSHostName;
document.forms["loginForm"].elements["ipclient"].value = p.IPAddress(0);
}
}
document.forms["loginForm"].elements["utenzaclient"].value = usernameclient;
}
catch(e){
}
document.forms["loginForm"].elements["info_client"].value="YES";
document.forms["loginForm"].submit();
}
function doSubmit(){
document.forms["loginForm"].submit();
}
</SCRIPT>
</head>
<BODY class = "normal">
<table width = "100%" class = "tableBannerRosso" border = 0>
<tr>
<td align = "left" width = "100%"><IMG border = 0 SRC ="<%=Res.ReqURL%>/images/banner.gif"></td>
</tr>
</table>
<table width = "100%" border = "0">
<tr>
<td HEIGHT = "100%" width = "10%" bgcolor = "#D61414" valign = "top">
</td>
<td align = "right" valign = "top" width = "90%">
<BR>
<i><b><FONT face = "Arial" color = "#455598" size = 4 weight = "700">MNP-GUI</Font></b></i>
<form name="loginForm" method="post" action="<%=Res.ReqURL%>/Login.do" target="_self">
<INPUT type="hidden" name="ipclient">
<INPUT type="hidden" name="hostnameclient">
<INPUT type="hidden" name="utenzaclient">
<INPUT type="hidden" name="info_client">
<!--
<TABLE border = 0 align = "center" width = "100%">
<BR>
<TR>
<TD align = "center" colspan = "3"><font face="Arial" color="#455598" size="4"><b><u>GESTIONE ATTIVITA' MNP</u></b></font></TD>
</TR>
<TR><TD colspan = "3" >&nbsp</TD></TR>
<TR><TD colspan = "3" >&nbsp</TD></TR>
<TR>
<TD align = "center" colspan = "3" ><FONT face = "Arial" color = "#455598" size = 2><b><u>UserID :</u></b></FONT></TD>
</TR>
<TD align = "center" colspan = "3" ><input type="text" name="userID" maxlength="16" ></TD>
</TR>
<TR>
<TD align = "center" colspan = "3" ><FONT face = "Arial" color = "#455598" size = 2><b><u>Password :</u></b></FONT></TD>
</TR>
<TR>
<TD align = "center" colspan = "3" ><input type="password" name="password" maxlength="16"></TD>
</TR>
<TR><TD colspan = "3">&nbsp</TD></TR>
<TR>
<TD align = "center" colspan = "3" ><input type="submit" name="Send" value=" Log-In "></TD>
</TR>
<TR><TD colspan = "3">&nbsp</TD></TR>
<tr><td>&nbsp</td></tr>
<tr><td>&nbsp</td></tr>
<tr><td>&nbsp</td></tr>
<tr><td>&nbsp</td></tr>
<tr><td>&nbsp</td></tr>
<tr><td>&nbsp</td></tr>
<tr><td>&nbsp</td></tr>
<tr><td>&nbsp</td></tr>
</TABLE>-->
<!-- </td></tr></table> -->
</form>
<!-- tabella x menu verticale-->
</td>
</tr>
<tr>
<td align = "center" width = "85%" height="116">
<!--fine tabella x menu -->
<br>
<br>
<b><i><P class = "titolo">Verifica delle impostazioni di sicurezza del browser in corso.... <br />
Se non si viene reindirizzati entro 10 secondi<a href="javascript: void doSubmit()"> Cliccare qui </a> per andare avanti.</P></i></b>
<!-- tabella x menu verticale-->
</td>
</tr>
</tr>
</table>
<!-- <hr class = "riga"> -->
<!-- tabella x menu -->
<script type="text/javascript" language="Javascript">
<!--
inviaDatiClient();
-->
</script>
</body>
</html>

View File

@@ -0,0 +1,124 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html>
<head>
<title>MNP - Inattività Sessione</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META name="GENERATOR" content="IBM WebSphere Page Designer V3.0.2 for Windows">
<META http-equiv="Content-Style-Type" content="text/css">
<LINK href="/jscommon/multistyle.css" rel="stylesheet" type="text/css">
<SCRIPT language="JavaScript1.2">
function ritorna(frm,fnc)
{
frm.JSP_NAME.value=fnc;
frm.submit();
}
</script>
</head>
<BODY bgcolor="#FFFFFF" leftmargin="0" topmargin="0">
<form method="POST" name="inattiva" action="" >
<INPUT type="hidden" name="JSP_NAME" value="">
<TABLE cellpadding="0" cellspacing="0" width="100%">
<TBODY>
<TR>
<TD rowspan="2" valign="middle" align="center" >
</TD>
<br>
<br>
<br>
<TD colspan="2" height="40">
<div align="center"><b><font size="+1" color="#FFFFFF"><FONT size="5" color="#000000">MNP&nbsp;&nbsp;Crontab<BR>
</FONT></font></b></div>
</TD>
</TR>
<TR>
<TD valign="middle" width="167" align="center"></TD>
<TD height="4" valign="bottom" width="404"></TD>
<TD height="4" valign="bottom" width="222"></TD>
</TR>
</TBODY>
</TABLE>
<table width="80%" border="0" align="center" >
<tr>
<td width="16%" height="86">
<h1 align="center">&nbsp;</h1>
</td>
<td width="69%" height="86">&nbsp;</td>
<td width="15%" height="86">
<div align="center"></div>
</td>
</tr>
<tr>
<td width="16%">&nbsp;</td>
<td width="69%">
<div align="center"><b><FONT size="4">Sessione Inattiva!!!</FONT></b></DIV></td>
<td width="15%">&nbsp;</td>
</tr>
<tr>
<td width="16%" height="63">&nbsp;</td>
<td width="69%" height="63">&nbsp;</td>
<td width="15%" height="63">&nbsp;</td>
</tr>
<tr>
<td width="16%">&nbsp;</td>
<td width="69%">
<div align="center">
<INPUT type="button" value="Torna indietro" class="sbttn" onclick="javascript: window.close()">
</div>
</td>
<td width="15%">&nbsp;</td>
</tr>
<tr>
<td width="16%" height="48">&nbsp;</td>
<td width="69%" height="48">&nbsp;</td>
<td width="15%" height="48">&nbsp;</td>
</tr>
</table>
<p>&nbsp;</p><DIV align="center">
<TABLE border="0" cellpadding="0" cellspacing="0" width="100%">
<!-- <tbody> -->
<!-- Colonna Contenuto (1) -->
<tbody>
<tr align="middle" valign="top">
<!-- Colonna Spazio (2) -->
<!-- Colonna Contenuto (3) -->
<!-- Colonna Spazio (4) -->
<!-- Colonna Contenuto (5) -->
</tr>
<!-- Riga Spazio PiePagina -->
<tr>
<td height="4" width="200%">
<p align="center" style="MARGIN-BOTTOM: 6px; MARGIN-TOP: 6px"><font color="#800000" face="Tahoma" size="1"><b><font color="#000000">Avviso
ai navigatori</font></b></font><font face="Tahoma" size="1" color="#000000">:
</font></p>
</td>
</tr>
<tr>
<!-- Riga PiePagina -->
<TD align="middle" bgcolor="#C0C0C0" height="20" valign="center"><font color="#ffffff">&nbsp;<FONT face="Tahoma" size="1" color="#000000">INFORMAZIONI
generiche</FONT></font></TD>
</tr>
</tbody>
</TABLE>
</DIV>
<div align="center">
<center>
<table cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td width="100%">
</td>
</tr>
</tbody>
</table>
</center>
</div>
</FORM></BODY>
</html>

View File

@@ -0,0 +1,67 @@
<HTML>
<head>
<TITLE>
Mnp
</TITLE>
<%@page import = "mnp.crontab.objects.*, mnp.crontab.utility.ui.Res"%>
<%@page import = "mnp.crontab.command.CrontabCostants" %>
<jsp:include page="/jsp/VerificheScriptCrontab.txt" flush = "true"/>
<META HTTP-EQUIV="Refresh" CONTENT="10; url=<%=Res.ApplContext%>/jsp/GUI/Logout.jsp">
<BODY>
<!-- tabella che include il menu verticale -->
<table width = "100%" class = "tableBannerRosso" border = 0>
<tr>
<td align = "left" width = "100%"><IMG border = 0 SRC ="<%=request.getContextPath()%>/images/banner.gif"></td>
</tr>
</table>
<table width = "100%">
<tbody>
<tr>
<td width = "90%" valign="top">
<DIV align="center" >
<table cellpadding="0" cellspacing="0" nowrap width="620" colspan="2">
<tbody>
<tr align = "right" valign = "top" width="85%">
<td width="615" height="10" align="right">
<b><i><P ><Font size="4" face="Arial" color = "#D61414">MESSAGGIO DI SESSIONE
INATTIVA</font></P></i></b>
</td>
</tr>
<tr>
<td width="615" >
<!--fine tabella x menu -->
<br>
<br>
<!-- tabella x menu verticale-->
</td>
</tr>
<tr>
<td height="59" width="615">
<p align="center">
<br>
<b><i></i></b>
<br>
</td>
</tr>
<tr>
<td align = "center" width = "85%" height="116">
<!--fine tabella x menu -->
<br>
<br>
<b><i><P class = "titolo">La Sessione e' inattiva. Chiudere il browser e riautenticarsi per riutilizzare la GESTIONE DELLE ATTIVITA' di MNP</P></i></b>
<!-- tabella x menu verticale-->
</td>
</tr>
</tbody>
</table>
</div>
</tbody>
</table>
<!-- tabella x menu -->
</BODY>
</HTML>