197 lines
6.6 KiB
Plaintext
197 lines
6.6 KiB
Plaintext
<%@page import="java.io.*, javax.servlet.*, javax.servlet.http.*, java.util.*, java.io.*, java.net.*"%>
|
|
<%@page import="java.awt.print.*"%>
|
|
<%@page import="mnp.database.*,mnp.utility.ui.PageLoader"%>
|
|
<%@page import="mnp.objects.*, mnp.utility.ui.Res, mnp.objects.ui.InvioAttivazioneGispBean"%>
|
|
<%@page import="mnp.objects.ui.SimulazInvioEsitoGispBean"%>
|
|
<%@page import="java.text.DateFormat, java.text.SimpleDateFormat"%>
|
|
|
|
<HTML>
|
|
<TITLE>Mnp</TITLE>
|
|
<BODY>
|
|
<script type="text/javascript" src="popcalendar.js">
|
|
</script>
|
|
|
|
<%
|
|
PageLoader pageLoader = new PageLoader();
|
|
SimulazInvioEsitoGispBean richiesta = new SimulazInvioEsitoGispBean ();
|
|
String codTipoProcesso = "";
|
|
String tipoProcesso = "";
|
|
String idRichiesta = "";
|
|
if (session.getAttribute("invioEsitiGISPBean")!=null) {
|
|
richiesta = (SimulazInvioEsitoGispBean)session.getAttribute("invioEsitiGISPBean");
|
|
codTipoProcesso=richiesta.getTipoProcesso();
|
|
tipoProcesso=pageLoader.getTipoProcessoSimulazioneInvioEsitiGisp(codTipoProcesso);
|
|
idRichiesta=richiesta.getIDRichiesta();
|
|
}
|
|
|
|
InvioAttivazioneGispBean gispBean = pageLoader.getAttivazioneGispBean(idRichiesta);
|
|
String nomeRichiesta="DBC_ATTIVGSM";
|
|
String cas="DBC";
|
|
String numTel="";
|
|
java.util.Date dataEspl=null;
|
|
String imsi="";
|
|
String profilo="";
|
|
String interna="";
|
|
String tid=idRichiesta;
|
|
|
|
if(gispBean!=null){
|
|
nomeRichiesta=gispBean.getNomeRichiesta()!=null?gispBean.getNomeRichiesta():"DBC_ATTIVGSM";
|
|
cas=gispBean.getCas()!=null?gispBean.getCas():"DBC";
|
|
numTel=gispBean.getNumTel()!=null?gispBean.getNumTel():"";
|
|
dataEspl=gispBean.getDataEspl()!=null?gispBean.getDataEspl():null;
|
|
imsi=gispBean.getImsi()!=null?gispBean.getImsi():"";
|
|
tid=gispBean.getTid()!=null?gispBean.getTid():idRichiesta;
|
|
profilo = gispBean.getProfilo()!=null?gispBean.getProfilo():"";
|
|
interna = gispBean.getInterna()!=null?gispBean.getInterna():"";
|
|
}
|
|
else {
|
|
InvioAttivazioneGispBean gispBeanParziale = pageLoader.getAttivazioneGispBeanForTipoProcesso(codTipoProcesso,idRichiesta);
|
|
if(gispBeanParziale!=null){
|
|
imsi=gispBeanParziale.getImsi()!=null?gispBeanParziale.getImsi():"";
|
|
profilo = gispBeanParziale.getProfilo()!=null?gispBeanParziale.getProfilo():"";
|
|
}
|
|
}
|
|
DateFormat df = new SimpleDateFormat("dd/MM/yyyy");
|
|
String txtDate = dataEspl!=null?df.format(dataEspl):"";
|
|
|
|
%>
|
|
<script>
|
|
function doAnnulla(){
|
|
document.getElementById('frmNomeRichiesta').value="<%=nomeRichiesta%>";
|
|
document.getElementById('frmCas').value="<%=cas%>";
|
|
document.getElementById('frmNumTel').value="<%=numTel%>";
|
|
document.getElementById('frmDataEspl').value="<%=txtDate%>";
|
|
document.getElementById('frmImsi').value="<%=imsi%>";
|
|
document.getElementById('frmProfilo').value="<%=profilo%>";
|
|
document.getElementById('frmTid').value="<%=tid%>";
|
|
document.getElementById('frmInterna').value="<%=interna%>";
|
|
|
|
return false;
|
|
}
|
|
function myShowCalendar(){
|
|
var f = document.getElementById('frmDataEspl');
|
|
format="dd/mm/yyyy";
|
|
popUpCalendar(f, f, format);
|
|
}
|
|
|
|
function doCheckForm(frm){
|
|
if(frm.frmNumTel.value==''){
|
|
alert("Campo Numero Telefonico obbligatorio");
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
</script>
|
|
<!-- tabella che include il menu verticale -->
|
|
<table width = "100%">
|
|
<TR><td width = "100%" bgcolor = "#D61414"> </td><TR>
|
|
</table>
|
|
|
|
|
|
<table width = "100%" >
|
|
<tr>
|
|
<td width = "10%"><jsp:include page="/jsp/GUI/Banner.jsp" flush = "true"/>
|
|
</td>
|
|
<td align = "right" valign = "top" width = "90%">
|
|
<!--fine tabella x menu -->
|
|
<br>
|
|
<br>
|
|
<b><i><P class = "titolo">FORZATURA GISP - RICHIESTA ATTIVAZIONE</P></i></b>
|
|
|
|
|
|
<FORM NAME= "frmSpedisci" ENCTYPE="multipart/form-data" METHOD="POST" ACTION="<%=Res.ApplContext%>/FileUploadServlet" onSubmit = "return doCheckForm(this)">
|
|
<INPUT TYPE= "hidden" NAME= "pageInvioAttivazioneGisp"></INPUT>
|
|
<INPUT TYPE= "hidden" NAME= "frmTidHidden" value="<%=tid%>"></INPUT>
|
|
<INPUT TYPE= "hidden" NAME= "frmNomeRichiestaHidden" value="<%=nomeRichiesta%>"></INPUT>
|
|
<INPUT TYPE= "hidden" NAME= "frmCasHidden" value="<%=cas%>"></INPUT>
|
|
<!-- dati -->
|
|
<TABLE width = "100%" BORDER= "1" class ="border">
|
|
<TR>
|
|
<TD nowrap><P class = "normale"> Nome Richiesta</P>
|
|
</TD>
|
|
<TD nowrap><P class = "normale"><INPUT TYPE= "text" NAME= "frmNomeRichiesta" value="<%=nomeRichiesta%>" disabled='disabled'></INPUT></P>
|
|
</TD>
|
|
|
|
</TR>
|
|
<TR>
|
|
<TD nowrap><P class = "normale"> CAS </P>
|
|
</TD>
|
|
<TD nowrap><P class = "normale"><INPUT TYPE= "text" NAME= "frmCas" value="<%=cas%>" disabled="disabled" ></INPUT></P>
|
|
</TD>
|
|
</TR>
|
|
<TR>
|
|
<TD nowrap><P class = "normale">TID</P>
|
|
</TD>
|
|
<TD nowrap><P class = "normale"><INPUT TYPE= "text" NAME= "frmTid" value="<%=tid%>" disabled="disabled"></INPUT></P>
|
|
</TD>
|
|
</TR>
|
|
<TR>
|
|
<TD nowrap><P class = "normale"> Num. Tel </P>
|
|
</TD>
|
|
<TD nowrap><P class = "normale"><INPUT TYPE= "text" NAME= "frmNumTel" value="<%=numTel%>" maxlength="13"></INPUT></P>
|
|
</TD>
|
|
</TR>
|
|
<TR>
|
|
|
|
<TD nowrap width="10%"><P class = "normale">Data Espletamento</P></TD>
|
|
<TD nowrap width="60%">
|
|
<P class = "normale"><INPUT TYPE= "text" NAME= "frmDataEspl" value="<%=txtDate%>" length="20" maxlength="10" id="ifrmDataEspl" onBlur ='checkData(this,this.value)'></INPUT>
|
|
<a style="text-decoration=none" href="javascript:myShowCalendar()">
|
|
<img border=0 src="/mnp/images/cal/cal.gif" class="calendar" alt="cal"/>
|
|
</a></P>
|
|
</TD>
|
|
</TR>
|
|
<TR>
|
|
<TD nowrap><P class = "normale"> IMSI </P>
|
|
</TD>
|
|
<TD nowrap><P class = "normale"><INPUT TYPE= "text" NAME= "frmImsi" value="<%=imsi%>" maxlength="15"></INPUT></P>
|
|
</TD>
|
|
</TR>
|
|
|
|
<TR>
|
|
<TD nowrap><P class = "normale">Profilo</P>
|
|
</TD>
|
|
<TD nowrap><P class = "normale"><INPUT TYPE= "text" NAME= "frmProfilo" value="<%=profilo%>" maxlength="4"></INPUT></P>
|
|
</TD>
|
|
</TR>
|
|
<TR>
|
|
<TD nowrap><P class = "normale">Interna</P>
|
|
</TD>
|
|
<TD nowrap><P class = "normale">
|
|
<SELECT NAME= "frmInterna" >
|
|
<% if (interna.equals("S")) { %>
|
|
<OPTION VALUE = 'S' SELECTED>S</OPTION>
|
|
<%} else {%>
|
|
<OPTION VALUE = 'S' >S</OPTION>
|
|
<%}%>
|
|
<% if (interna.equals("N")) { %>
|
|
<OPTION VALUE = 'N' SELECTED>N</OPTION>
|
|
<%} else {%>
|
|
<OPTION VALUE = 'N' >N</OPTION>
|
|
<%}%>
|
|
</SELECT></P>
|
|
</TD>
|
|
</TR>
|
|
|
|
<BR>
|
|
<!-- pulsanti -->
|
|
<BR><HR class = "riga">
|
|
<TABLE width = "100%">
|
|
<TR>
|
|
<TD ALIGN= "CENTER"><INPUT TYPE= "button" NAME= "btnAnnulla" VALUE= " ANNULLA " onClick="return doAnnulla();"></TD>
|
|
<TD ALIGN= "CENTER"><INPUT TYPE= "submit" NAME= "btnSubmit" VALUE= " ACQUISISCI " ></TD>
|
|
</TR>
|
|
</TABLE>
|
|
</TABLE>
|
|
</FORM>
|
|
<!-- tabella x menu -->
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<!-- tabella x menu -->
|
|
</BODY>
|
|
</HTML>
|
|
|