161 lines
5.8 KiB
Plaintext
161 lines
5.8 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, mnp.objects.ui.InvioCessazioneGispBean"%>
|
|
<%@page import="mnp.objects.*, mnp.utility.ui.Res"%>
|
|
<%@page import="mnp.objects.ui.SimulazInvioEsitoGispBean"%>
|
|
<%@page import="java.text.DateFormat, java.text.SimpleDateFormat"%>
|
|
<HTML>
|
|
<TITLE>Mnp</TITLE>
|
|
<BODY>
|
|
|
|
<%
|
|
PageLoader pageLoader = new PageLoader();
|
|
SimulazInvioEsitoGispBean richiesta = new SimulazInvioEsitoGispBean ();
|
|
if (session.getAttribute("invioEsitiGISPBean")!=null)
|
|
richiesta = (SimulazInvioEsitoGispBean)session.getAttribute("invioEsitiGISPBean");
|
|
//String codTipoProcesso=request.getParameter("tipoProcesso");
|
|
|
|
String codTipoProcesso=richiesta.getTipoProcesso();
|
|
String tipoProcesso;
|
|
|
|
tipoProcesso=pageLoader.getTipoProcessoSimulazioneInvioEsitiGisp(codTipoProcesso);
|
|
//if(codTipoProcesso=="D")
|
|
// tipoProcesso="Donor MVNO";
|
|
//else
|
|
// tipoProcesso="Recipient virtuale MVNO2MVNO";
|
|
//String idRichiesta=request.getParameter("idRichiesta");
|
|
String idRichiesta=richiesta.getIDRichiesta();
|
|
|
|
InvioCessazioneGispBean gispBean = pageLoader.getCsszBean(idRichiesta);
|
|
String nomeRichiesta="";
|
|
String cas="";
|
|
String numTel="";
|
|
String oloCode="";
|
|
String tid=idRichiesta;
|
|
nomeRichiesta=gispBean.getNomeRichiesta()!=null?gispBean.getNomeRichiesta():"DBC_DISATMNPG";
|
|
cas=gispBean.getCas()!=null?gispBean.getCas():"DBC";
|
|
numTel=gispBean.getNumTel()!=null?gispBean.getNumTel():"";
|
|
java.util.Date dataEspl=gispBean.getDataEspl()!=null?gispBean.getDataEspl():null;
|
|
oloCode=gispBean.getOloCode()!=null?gispBean.getOloCode():"";
|
|
if(oloCode==""){
|
|
oloCode=pageLoader.getOloCodeByRichiestaProcesso(idRichiesta,codTipoProcesso);
|
|
}
|
|
DateFormat df = new SimpleDateFormat("dd/MM/yyyy");
|
|
String txtDate = dataEspl!=null?df.format(dataEspl):"";
|
|
%>
|
|
<script type="text/javascript" language="javascript" src="util.js"></script>
|
|
<script type="text/javascript" src="popcalendar.js"></script>
|
|
<script>
|
|
function doAnnulla(){
|
|
document.forms[0].frmOloCode.value="<%=oloCode%>";
|
|
document.forms[0].frmDataEspl.value="<%=txtDate%>";
|
|
document.forms[0].frmNumTel.value="<%=numTel%>";
|
|
return false;
|
|
}
|
|
|
|
function myShowCalendar(){
|
|
var f = document.getElementById('frmDataEspl');
|
|
format="dd/mm/yyyy";
|
|
popUpCalendar(f, f, format);
|
|
}
|
|
|
|
function doCheckForm(frm){
|
|
|
|
if(frm.frmOloCode.value==''){
|
|
alert("Campo Olo COD obbligatorio");
|
|
return false;
|
|
}
|
|
|
|
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 CESSAZIONE</P></i></b>
|
|
|
|
|
|
<FORM NAME= "frmInvioCesszGisp" ENCTYPE="multipart/form-data" METHOD="POST" ACTION="<%=Res.ApplContext%>/FileUploadServlet" onSubmit="return doCheckForm(this)">
|
|
<!-- per riconoscere che pagina è -->
|
|
<INPUT TYPE= "hidden" NAME= "pageInvioCessazioneGisp"></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 width="10%"><P class = "normale">Tipo Processo</P></TD>
|
|
<TD nowrap width="60%"><INPUT TYPE= "text" NAME= "frmProcesso" value="<%=tipoProcesso %>" disabled="disabled" width="50"></INPUT></TD>
|
|
</tr>
|
|
|
|
<tr>
|
|
<TD nowrap width="10%"><P class = "normale">TID/ID Richiesta</P></TD>
|
|
<TD nowrap width="60%"><INPUT TYPE= "text" NAME= "frmTid" value="<%=tid%>" disabled="disabled" maxlength="23" width="50"></INPUT></TD>
|
|
</TR>
|
|
|
|
<TR>
|
|
<TD nowrap width="10%"><P class = "normale">Nome Richiesta</P></TD>
|
|
<TD nowrap width="60%"><P class = "normale"><INPUT TYPE= "text" NAME= "frmNomeRichiesta" value="<%=nomeRichiesta%>" disabled="disabled"></INPUT></P></TD>
|
|
</tr>
|
|
|
|
<tr>
|
|
<TD nowrap width="10%"><P class = "normale">Cas</P></TD>
|
|
<TD nowrap width="60%"><P class = "normale"><INPUT TYPE= "text" NAME= "frmCas" value="<%=cas%>" disabled="disabled" maxlength="3"></INPUT></P></TD>
|
|
</tr>
|
|
|
|
<tr>
|
|
<TD nowrap width="10%"><P class = "normale">Cod.Olo</P></TD>
|
|
<TD nowrap width="60%"><P class = "normale"><INPUT TYPE= "text" NAME= "frmOloCode" value="<%=oloCode%>" maxlength="4"></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 width="10%"><P class = "normale">Num. Tel.</P></TD>
|
|
<TD width="15%"><P class = "normale"><INPUT TYPE= "text" NAME= "frmNumTel" value="<%=numTel%>" maxlength="13" ></INPUT></P></TD>
|
|
</TR>
|
|
<TR><TD colspan="7"> </TD></TR>
|
|
|
|
</TABLE>
|
|
<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= "btnInvioCessazioneGisp" VALUE= " ACQUISISCI "></TD>
|
|
</TR>
|
|
</TABLE>
|
|
</FORM>
|
|
<!-- tabella x menu -->
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<!-- tabella x menu -->
|
|
</BODY>
|
|
</HTML> |