<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<HTML>
<HEAD>
<META http-equiv="Content-Style-Type" content="text/css">
<META name="GENERATOR" content="IBM WebSphere Page Designer V3.0 for Windows">
<jsp:useBean id="user" scope="session" class="pt.edinfor.elag.global.model.User" />
<jsp:useBean id="error" scope="session" class="pt.edinfor.util.EDisplayMessage" />
<jsp:useBean id="iModel" scope="session" class="pt.edinfor.cb.imodel.IMTcaucaoSet" />
<jsp:useBean id="openWindow" scope="request" class="java.lang.String"/>
<jsp:useBean id="servletToReturn" scope="request" class="java.lang.String"/>
<jsp:useBean id="joinderId" scope="request" class="java.lang.String"/>
<jsp:useBean id="vLawsuit" scope="request" class="java.util.Vector"/>
<jsp:useBean id="joinderValue" scope="request" class="java.lang.String"/>
<jsp:useBean id="joinderDate" scope="request" class="java.lang.String"/>
<jsp:useBean id="joinderKey" scope="request" class="java.lang.String"/>
<script language="JavaScript"> var caminhoScript = "<%=(String)getServletContext().getAttribute("GA_JAVASCRIPT_PATH")%>"</script>
<SCRIPT src="<%=(String)getServletContext().getAttribute("GA_JAVASCRIPT_PATH")%>ScriptsGlobal.js"></SCRIPT>
<SCRIPT language="JavaScript">
var submited = false;
function SubmitForm(frm) {
if(submited) {
return false;
} else {
submited=true;
frm.submit();
}
}
//
function goBack(frm){
showWindow();
frm.action = '<%=getServletContext().getAttribute("VA_SERVLET_PATH")%>pt.edinfor.va.controler.LawsuitCnsDet';
SubmitForm(window.document.forms[0]);
}
function doExportExcel() {
var xlApp, xlSheet;
xlApp = new ActiveXObject("Excel.Application");
xlApp.Workbooks.Add();
xlSheet = xlApp.ActiveSheet;
var letters =["A","B","C","D","E","F"];
xlSheet.Range("A1","A1").Value=String('Tipo de Caução');
xlSheet.Range("B1","B1").Value=String('Ref. Pagamento');
xlSheet.Range("C1","C1").Value=String('Dt. Movimento');
xlSheet.Range("D1","D1").Value=String('Valor');
xlSheet.Range("E1","E1").Value=String('Estado');
xlSheet.Range("F1","F1").Value=String('Entidade Cobradora');
<% for (int i = 0; i< iModel.getSize(); i++) { %>
xlSheet.Range(letters[0]+""+(<%=i%>+2),letters[0]+""+(<%=i%>+2)).Value=String('<%=iModel.getDescr1(i)%>');
xlSheet.Range(letters[1]+""+(<%=i%>+2),letters[1]+""+(<%=i%>+2)).Value=String('<%=iModel.getRefSibs(i)%>');
xlSheet.Range(letters[2]+""+(<%=i%>+2),letters[2]+""+(<%=i%>+2)).Value=String('<%=iModel.getDtMov(i)%>');
xlSheet.Range(letters[3]+""+(<%=i%>+2),letters[3]+""+(<%=i%>+2)).Value=String('<%=iModel.getValor(i)%>');
xlSheet.Range(letters[4]+""+(<%=i%>+2),letters[4]+""+(<%=i%>+2)).Value=String('<%=iModel.getDescr2(i)%>');
xlSheet.Range(letters[5]+""+(<%=i%>+2),letters[5]+""+(<%=i%>+2)).Value=String('<%=iModel.getDescription(i)%>');
<% }%>
xlApp.Visible = true;
}
function print_erw(){
showWindow();
//window.document.forms[0].rCentCobr.value = centId;
//window.document.forms[0].TotReg.value = window.document.forms[0].xTotReg.value;
//window.document.forms[0].TIva.value = window.document.forms[0].xTIva.value;
//window.document.forms[0].TVal.value = window.document.forms[0].xTVal.value;
//window.document.forms[0].TDoc.value = window.document.forms[0].xTDoc.value;
//window.document.forms[0].TCust.value = window.document.forms[0].xTCust.value;
window.document.forms[0].action = '<%=("null".equals(""+(getServletContext().getAttribute("CB_SERVLET_PATH"))))?"":""+(getServletContext().getAttribute("CB_SERVLET_PATH"))%>pt.edinfor.cb.controler.TblCnsCaucaoPDF';
SubmitForm(window.document.forms[0]);
}
function viewJoinder(id) {
showWindow();
document.location.href='<%=("null".equals(""+(getServletContext().getAttribute("VA_SERVLET_PATH"))))?"":""+(getServletContext().getAttribute("VA_SERVLET_PATH"))%>pt.edinfor.va.controler.LawsuitCnsDet?lawsuitCode=' + id;
}
</SCRIPT>
<TITLE></TITLE>
<LINK rel="stylesheet" href="<%= ("file:///C|/trabalho/CB/Cauc%E3o/CB/null".equals(""+(user.getStylesheet())))?"":""+(user.getStylesheet())%>">
</HEAD>
<BODY topmargin="5" leftmargin="5">
<%= ("null".equals(""+(user.getHeader() )))?"":""+(user.getHeader() )%>
<FORM method="post">
<CENTER>
<TABLE border="0">
<TBODY>
<TR>
<TH>Consulta de Apensações</TH>
</TR>
</TABLE>
<table width="80%" border="0">
<tr>
<td align="left" width="70%"><%=iModel.getSnome(0)%></td>
</tr>
<tr>
<td align="left"><%=iModel.getMorada1(0)%></td>
</tr>
<tr>
<td align="left"><%=iModel.getMorada2(0)%></td>
</tr>
<tr>
<td align="left"><%=iModel.getMorada3(0) + " - " + iModel.getMorada4(0)%></td>
<td align="right" width="20%"><strong> Apensação :</strong></td>
<td align="right" width="10%"><input type="text" class="ReadOnly" onFocus="blur()" size="10" value="<%= joinderId %>"></td>
</tr>
<TR>
<TD colspan="3" align="left" class="GroupBreak2"> </TD>
</TR>
<tr>
<TH align="left">Apensação</TH>
</tr>
<tr>
<td align="left">
<table align="left">
<tr>
<td align="left" width="15%">Data:</td>
<td align="left" width="85%"><%= pt.edinfor.elag.model.Formaters.formatDate(user, joinderDate) %></td>
</tr>
<tr>
<td align="left" width="15%">Veiculo:</td>
<td align="left" width="85%"><%= joinderKey %></td>
</tr>
<tr>
<td align="left" width="15%">Valor:</td>
<td align="left" width="85%"><%= pt.edinfor.elag.model.Formaters.formatCurrency(user, new Double(joinderValue).doubleValue()) %> </td>
</tr>
</table>
</td>
</tr>
</table>
<BR>
<TABLE border="0" cellpadding="4" cellspacing="1" width="80%">
<TR>
<TH align="left" width="20%">Código Auto</TH>
<TH align="center" width="40%">Estado do Auto</TH>
<TH align="left" width="05%">Valor</TH>
<TH align="left" width="35%">Estado da Cobrança</TH>
</TR>
<TR>
<TD colspan="6" align="left" class="GroupBreak3"> </TD>
</TR>
<%
for (int i = 0; i < iModel.getSize(); i++){%>
<TR>
<TD align="left" width="20%"><A href='javascript:viewJoinder(<%= iModel.getLawsuitCod(i) %>);'>
<%=("null".equals(""+(iModel.getLawsuitCod(i)))?"":""+(iModel.getLawsuitCod(i)))%>
</A></TD>
<TD align="left" width="40%">
<%=("null".equals(""+(iModel.getDescr1(i)))?"":""+(iModel.getDescr1(i)))%>
</TD>
<TD align="right" width="05%">
<%=("null".equals(""+(iModel.getValor(i)))?"":""+pt.edinfor.elag.model.Formaters.formatCurrency(user, iModel.getValor(i)))%>
</TD>
<TD align="left" width="35%"><%=("null".equals(""+(iModel.getDescr2(i)))?"":""+(iModel.getDescr2(i)))%></TD>
</TR>
<% } %>
</TBODY>
</TABLE>
<TABLE>
<TBODY>
<TR>
<TD colspan ="1" align="center"><BR><BR><BR>
<INPUT type="button" value="Voltar" name="voltar" class="Button" onclick="javascript:goBack(window.document.forms[0])"></TD>
</TR>
</TBODY>
</TABLE>
</CENTER>
</FORM>
<%= ("null".equals(""+(user.getFooter() )))?"":""+(user.getFooter() )%>
</BODY>
<%=("null".equals(""+(openWindow.toString())))?"":""+(openWindow.toString())%>
<%=("null".equals(""+(error.getJScript())))?"":""+(error.getJScript())%>
</HTML>
] PWC1231: Servlet.service() for servlet jsp threw exception java.lang.ClassCastException: java.lang.Integer at org.apache.jsp.pages.va.CnsJoinderAutoLst_005fpt_jsp._jspService(CnsJoinderAutoLst_005fpt_jsp.java:102) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109)