139 lines
4.2 KiB
Plaintext
139 lines
4.2 KiB
Plaintext
<%@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">
|
|
|
|
</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à 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>
|