Пример #1
0
        /// <summary>
        /// Adiciona um novo boleto.
        /// </summary>
        /// <param name="lBoleto">Informe os dados do boleto.</param>
        public void AddBoleto( Boleto lBoleto)
        {
            if( _Encerrado)
                throw new Exception( "Após ter obtido o(s) boleto(s) montados pelo método ToString não é permitido adicionar novos boletos.");

            string lNossoNumero, lLinhaDigitavel, lCodigoBarras;
            lBoleto.MontaCodigos( out lNossoNumero, out lLinhaDigitavel, out lCodigoBarras);

            lLinhaDigitavel = lLinhaDigitavel.Replace( " ", "&nbsp;&nbsp;");

            string sImgBarra = _ImagesFolder + @"/barra.gif";
            string sImgCorte = _ImagesFolder + @"/corte.gif";
            string Codiodebarras = CodigoBarras25I( lCodigoBarras);

            _Counter++;
            if( _Counter>=2)
                _Buffer.Append("<p class=SaltoDePagina></p>");

            //Comprovante de entrega
            _Buffer.Append("<table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>");
            _Buffer.Append("<tr><td width=150><img src=\"" + _ImagesFolder + @"\" + lBoleto.BancoLogoTipo + "\"></td>");
            _Buffer.Append("<td vAlign=bottom width=2><IMG src=\"" + sImgBarra + "\" height=22 width=2 border=0 ></td>");
            _Buffer.Append("<td vAlign=bottom align=center width=75><span id=nb1 class=\"nbanco\">" + lBoleto.BancoCodigoCompleto() + "</span></td>");
            _Buffer.Append("<td vAlign=bottom width=2><IMG height=22 src=\"" + sImgBarra + "\" width=2 border=0 ></td>");
            _Buffer.Append("<td class=ld vAlign=bottom align=\"right\">&nbsp;Comprovante de Entrega&nbsp;</td></tr></table>");
            _Buffer.Append("<table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>");
            _Buffer.Append("<tr><td vAlign=top width=\"100%\">");
            _Buffer.Append("<table borderColor=#000000 cellSpacing=0 cellPadding=0 width=\"100%\" border=1>");
            _Buffer.Append("<TR><TD class=linha vAlign=top>");
            _Buffer.Append("<table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>");
            _Buffer.Append("<tr><td class=ct>&nbsp;Cedente</td></tr>");
            _Buffer.Append("<tr><td class=ld>&nbsp;<span id=Cedente1>" + lBoleto.CedenteNome + "</spam></td></tr></table></TD>");
            _Buffer.Append("<TD vAlign=top width=140>");
            _Buffer.Append("<table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>");
            _Buffer.Append("<tr><td class=ct vAlign=top>&nbsp;Agência / Código do Cedente</td></tr>");
            _Buffer.Append("<tr><td class=ld align=center><spam id=CodCedente1>" + lBoleto.AgenciaCedente() + "</spam></td></tr></table></TD>");
            _Buffer.Append("<TD vAlign=top width=140><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>");
            _Buffer.Append("<tr><td class=ct>&nbsp;Nosso Número</td></tr>");
            _Buffer.Append("<tr><TD class=ld align=center><spam id=NossoNumero1>" + lNossoNumero + "</Label></TD></tr></table></TD>");
            _Buffer.Append("<TD vAlign=top width=140 rowSpan=4><TABLE cellSpacing=0 cellPadding=0 align=center border=0>");
            _Buffer.Append("<TR><TD class=ct>&nbsp;(&nbsp; &nbsp;) Mudou - se</TD></TR>");
            _Buffer.Append("<TR><TD class=ct>&nbsp;(&nbsp; &nbsp;) Ausente</TD></TR>");
            _Buffer.Append("<TR><TD class=ct>&nbsp;(&nbsp; &nbsp;) Não existe n° indicado</TD></TR>");
            _Buffer.Append("<TR><TD class=ct>&nbsp;(&nbsp; &nbsp;) Recusado</TD></TR>");
            _Buffer.Append("<TR><TD class=ct>&nbsp;(&nbsp; &nbsp;) Não Procurado</TD></TR>");
            _Buffer.Append("<TR><TD class=ct>&nbsp;(&nbsp; &nbsp;) Endereço Insuficiente</TD></TR>");
            _Buffer.Append("<TR><TD class=ct>&nbsp;(&nbsp; &nbsp;) Desconhecido</TD></TR>");
            _Buffer.Append("<TR><TD class=ct>&nbsp;(&nbsp; &nbsp;) Falecido</TD></TR>");
            _Buffer.Append("<TR><TD class=ct>&nbsp;(&nbsp; &nbsp;) Outros</TD></TR></TABLE></TD></TR>");
            _Buffer.Append("<TR><TD vAlign=top><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>");
            _Buffer.Append("<tr><td class=ct>&nbsp;Sacado</td></tr>");
            _Buffer.Append("<tr><td class=ld>&nbsp;<spam id=sacado1 >" + lBoleto.SacadoNome + "</spam></td></tr></table></TD>");
            _Buffer.Append("<TD vAlign=top width=140><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>");
            _Buffer.Append("<TR><TD class=ct>&nbsp;Vencimento</TD></TR>");
            _Buffer.Append("<TR><TD class=ld align=center><spam id=vencto1>" + lBoleto.DtVencimento.ToString( Boleto.DATEFORMAT) + "</span></TD></TR></table></TD>");
            _Buffer.Append("<TD vAlign=top width=140><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>");
            _Buffer.Append("<tr><td class=ct colSpan=2>&nbsp;Valor do Documento</td></tr>");
            _Buffer.Append("<tr><td class=ld width=30>&nbsp;R$</td><td class=ld align=right><spam id=volordoc1>" + lBoleto.Valor.ToString(Boleto.VALORFORMAT) + "</spam>&nbsp;</td></tr></table></TD></TR>");
            _Buffer.Append("<TR><td class=ld rowSpan=2>&nbsp;Recebi(emos) o bloqueto/título<br>&nbsp;com as características acima </td>");
            _Buffer.Append("<td vAlign=top width=140><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>");
            _Buffer.Append("<tr><td class=ct>&nbsp;Data de Emissão</td></tr>");
            _Buffer.Append("<tr><td class=ld align=center><spam id=dtaemissao1>" + lBoleto.DtEmissao.ToString(Boleto.DATEFORMAT) + "</spam></td></tr></table></td>");
            _Buffer.Append("<TD vAlign=top width=140><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>");
            _Buffer.Append("<tr><td class=ct>&nbsp;Assinatura</td></tr>");
            _Buffer.Append("<tr><td class=ld>&nbsp;</td></tr></table></TD></TR>");
            _Buffer.Append("<TR><TD vAlign=top width=140>");
            _Buffer.Append("<table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>");
            _Buffer.Append("<tr><td class=ct>&nbsp;Data de Entrega</td></tr>");
            _Buffer.Append("<tr><td class=ld>&nbsp;</td></tr></table></TD><TD vAlign=top width=140>");
            _Buffer.Append("<table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>");
            _Buffer.Append("<tr><td class=ct>&nbsp;Entregador</td></tr>");
            _Buffer.Append("<tr><td class=ld>&nbsp;</td></tr></table></TD></TR></TABLE></td></tr>");
            _Buffer.Append("<tr><td class=cp align=right><spam id=numerodoc1>" + lBoleto.Documento + "</spam></td></tr></table>");
            _Buffer.Append("<div align=center><img src=\"" + sImgCorte + "\"></div>");

            //Recibo do Sacado
            _Buffer.Append("<table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>");
            _Buffer.Append("<tr><td width=150><img src=\"" + _ImagesFolder + @"\" + lBoleto.BancoLogoTipo + "\"></td>");
            _Buffer.Append("<td vAlign=bottom width=2><IMG src=\"" + sImgBarra + "\" height=22 width=2 border=0 ></td>");
            _Buffer.Append("<td vAlign=bottom align=center width=75 class=\"nbanco\"><spam id=nb2>" + lBoleto.BancoCodigoCompleto() + "</spam></td>");
            _Buffer.Append("<td vAlign=bottom width=2><IMG height=22 src=\"" + sImgBarra + "\" width=2 border=0 ></td>");
            _Buffer.Append("<td class=ld vAlign=bottom align=right>&nbsp;Recibo do Sacado&nbsp;</td></tr></table>");
            _Buffer.Append("<table borderColor=#000000 cellSpacing=0 cellPadding=0 width=\"100%\" border=1>");
            _Buffer.Append("<TR><TD vAlign=top colSpan=5><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>");
            _Buffer.Append("<tr><td class=ct>&nbsp;Local de Pagamento</td></tr>");
            _Buffer.AppendFormat("<tr><td class=cp>&nbsp;{0}</td></tr></table></TD>", lBoleto.LocalPagamento);
            _Buffer.Append("<TD vAlign=top width=140 bgColor=#cccccc><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>");
            _Buffer.Append("<tr><td class=ct>&nbsp;Vencimento</td></tr>");
            _Buffer.Append("<tr><td class=ld align=center><spam id=dtavencto2>" + lBoleto.DtVencimento.ToString( Boleto.DATEFORMAT) + "</spam></td></tr></table></TD></TR>");
            _Buffer.Append("<TR><TD vAlign=top colSpan=5><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>");
            _Buffer.Append("<tr><td class=ct>&nbsp;Cedente</td></tr>");
            _Buffer.Append("<tr><td class=ld>&nbsp;<spam id=Cedente2>" + lBoleto.CedenteNome + "</spam></td></tr></table></TD>");
            _Buffer.Append("<TD vAlign=top width=140><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>");
            _Buffer.Append("<tr><td class=ct>&nbsp;Agência / Código do Cedente</td></tr>");
            _Buffer.Append("<tr><td class=ld align=center><Spam id=CodCedente2 >" + lBoleto.AgenciaCedente() + "</spam></td></tr></table></TD></TR>");
            _Buffer.Append("<TR><TD vAlign=top><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>");
            _Buffer.Append("<tr><td class=ct>&nbsp;Data Documento</td></tr>");
            _Buffer.Append("<tr><td class=ld align=center><spam id=dtadocumento2 >" + lBoleto.DtDocumento.ToString( Boleto.DATEFORMAT) + "</spam></td></tr></table></TD>");
            _Buffer.Append("<TD vAlign=top><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>");
            _Buffer.Append("<tr><td class=ct>&nbsp;Número Documento</td></tr>");
            _Buffer.Append("<tr><td class=ld align=center><spam id=numerodocumento2 >" + lBoleto.Documento + "</spam></td></tr></table></TD>");
            _Buffer.Append("<TD vAlign=top><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>");
            _Buffer.Append("<tr><td class=ct>&nbsp;Espécie Doc.</td></tr>");
            _Buffer.Append("<tr><td class=ld align=center><aspam id=especiedocumento2 >" + lBoleto.pEspecieDoc + "</spam></td></tr></table></TD>");
            _Buffer.Append("<TD vAlign=top><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>");
            _Buffer.Append("<tr><td class=ct>&nbsp;Aceite</td></tr>");
            _Buffer.Append("<tr><td class=ld align=center><spam id=aceite2>" + lBoleto.Aceite + "</spam></td></tr></table></TD>");
            _Buffer.Append("<TD vAlign=top><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>");
            _Buffer.Append("<tr><td class=ct>&nbsp;Data Processamento</td></tr>");
            _Buffer.Append("<tr><td class=ld align=center><spam id=dtaprocess2 >" + lBoleto.DtProcessamento.ToString( Boleto.DATEFORMAT) + "</spam></td></tr></table></TD>");
            _Buffer.Append("<TD vAlign=top width=140><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>");
            _Buffer.Append("<tr><td class=ct>&nbsp;Nosso Número</td></tr>");
            _Buffer.Append("<tr><td class=ld align=center><spam id=nossonumero12>" + lNossoNumero + "</spam></td></tr></table></TD></TR>");
            _Buffer.Append("<TR><TD vAlign=top><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>");
            _Buffer.Append("<tr><td class=ct>&nbsp;Uso da Empresa</td></tr>");
            _Buffer.Append("<tr><td class=ld>&nbsp;</td></tr></table></TD>");
            _Buffer.Append("<TD vAlign=top><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>");
            _Buffer.Append("<tr><td class=ct>&nbsp;Carteira</td></tr>");
            _Buffer.Append("<tr><td class=ld align=center><spam id=carteira2 >" + lBoleto.Carteira + "</spam></td></tr></table></TD>");
            _Buffer.Append("<TD vAlign=top><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>");
            _Buffer.Append("<tr><td class=ct>&nbsp;Espécie</td></tr>");
            _Buffer.Append("<tr><td class=ld align=center><spam id=especie2>" + lBoleto.Especie + "</spam></td></tr></table></TD>");
            _Buffer.Append("<TD vAlign=top><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>");
            _Buffer.Append("<tr><td class=ct>&nbsp;Quantidade</td></tr>");
            _Buffer.Append("<tr><td class=ld align=center><spam id=quantidade2>" + lBoleto.Quantidade + "</spam></td></tr></table></TD>");
            _Buffer.Append("<TD vAlign=top><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>");
            _Buffer.Append("<tr><td class=ct>&nbsp;Valor</td></tr>");
            _Buffer.Append("<tr><td class=ld align=center><spam id=valor2 >" + lBoleto.Valor.ToString(Boleto.VALORFORMAT) + "</spam></td></tr></table></TD>");
            _Buffer.Append("<TD vAlign=top width=140 bgColor=#cccccc><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>");
            _Buffer.Append("<tr><td class=ct colSpan=2>&nbsp;(=) Valor do Documento</td></tr>");
            _Buffer.Append("<tr><td class=ld width=30>&nbsp;R$</td><td class=ld align=right><spam id=valordocumento2 >" + lBoleto.Valor.ToString(Boleto.VALORFORMAT) + "</spam>&nbsp;</td></tr></table></TD></TR>");
            _Buffer.Append("<TR><TD vAlign=top colSpan=5 rowSpan=5><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>");
            _Buffer.Append("<tr><td class=ct>&nbsp;Instruções</td></tr>");
            _Buffer.Append("<tr><td class=ld>&nbsp;<spam id=Instrucao12 >" + lBoleto.Instrucao1 + "</spam></td></tr>");
            _Buffer.Append("<tr><td class=ld>&nbsp;<spam id=instrucao22 >" + lBoleto.Instrucao2 + "</spam></td></tr></table></TD>");
            _Buffer.Append("<TD vAlign=top width=140><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>");
            _Buffer.Append("<tr><td class=ct>&nbsp;(-) Desconto / Abatimento</td></tr>");
            _Buffer.Append("<tr><td class=ld align=center>&nbsp;</td></tr></table></TD></TR>");
            _Buffer.Append("<TR><TD vAlign=top width=140><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>");
            _Buffer.Append("<tr><td class=ct>&nbsp;(-) Outras Deduções</td></tr>");
            _Buffer.Append("<tr><td class=ld align=center>&nbsp;</td></tr></table></TD></TR>");
            _Buffer.Append("<TR><TD vAlign=top width=140><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>");
            _Buffer.Append("<tr><td class=ct>&nbsp;(+) Mora / Multa</td></tr><tr>");
            _Buffer.Append("<td class=ld align=center>&nbsp;</td></tr></table></TD></TR><TR>");
            _Buffer.Append("<TD vAlign=top width=140><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>");
            _Buffer.Append("<tr><td class=ct>&nbsp;(+) Outros Acréscimos</td></tr><tr>");
            _Buffer.Append("<td class=ld align=center>&nbsp;</td></tr></table></TD></TR>");
            _Buffer.Append("<TR><TD vAlign=top width=140 bgColor=#cccccc>");
            _Buffer.Append("<table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>");
            _Buffer.Append("<tr><td class=ct>&nbsp;(=) Valor Cobrado</td></tr><tr><td class=ld align=center>&nbsp;</td></tr></table></TD></TR><TR>");
            _Buffer.Append("<TD vAlign=top colSpan=6><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0><tr>");
            _Buffer.Append("<td class=ct width=50>&nbsp;Sacado</td><td class=ld><spam id=Sacado2>" + lBoleto.SacadoNome + "</spam>&nbsp;</td>");
            _Buffer.Append("<td class=ld width=\"35%\"><spam id=CPFCNPJSacado2  >" + lBoleto.SacadoCPF_CNPJ + "</spam>&nbsp;</td></tr><tr>");
            _Buffer.Append("<td class=ct></td><td class=ld><spam id=EnderecoSacado2  >" + SacadoEnderecoLinha1( lBoleto) + "</spam></td>");
            _Buffer.Append("<td class=ld><spam id=nossonumero22>" + lNossoNumero + "</spam></td></tr><tr>");
            _Buffer.Append("<td class=ct></td><td class=ld><spam id=Cidate2>" + SacadoEnderecoLinha2(lBoleto) + "</spam></td><td class=ld></td></tr>");
            _Buffer.Append("<TR><TD class=ct vAlign=top colSpan=3>&nbsp;Sacador / Avalista</TD></TR></table></TD></TR></table>");
            _Buffer.Append("<table cellSpacing=0 cellPadding=0 width=\"100%\" border=0><tr><td class=ct>&nbsp;Recebi através do cheque n°");
            _Buffer.Append("<BR>&nbsp;do banco:<BR>&nbsp;Esta quitação só terá validade após pagamento do cheque pelo Banco sacado. </td>");
            _Buffer.Append("<td class=ct vAlign=top align=center width=150>Autenticação Mecânica</td></tr></table>");
            _Buffer.Append("<div align=center><img src=" + sImgCorte + "></div>");

            //Parte do Banco
            _Buffer.Append("<table cellSpacing=0 cellPadding=0 width=\"100%\" border=0><tr>");
            _Buffer.Append("<td width=150><img src=" + _ImagesFolder + @"\" + lBoleto.BancoLogoTipo + "></td>");
            _Buffer.Append("<td vAlign=bottom width=2><IMG height=22 src=" + sImgBarra + " width=2 border=0 ></td>");
            _Buffer.Append("<td vAlign=bottom align=center width=75 class=\"nbanco\"><spam id=nb3>" + lBoleto.BancoCodigoCompleto() + "</spam>&nbsp;</td>");
            _Buffer.Append("<td vAlign=bottom width=1><IMG height=22 src=" + sImgBarra + " width=2 border=0 ></td>");
            _Buffer.Append("<td class=lLinhaDigitavel vAlign=bottom align=right><spam id=numerograde  >" + lLinhaDigitavel + "</spam></td></tr></table>");
            _Buffer.Append("<table borderColor=#000000 cellSpacing=0 cellPadding=0 width=\"100%\" border=1>");
            _Buffer.Append("<TR><TD vAlign=top colSpan=5><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>");
            _Buffer.Append("<tr><td class=ct>&nbsp;Local de Pagamento</td></tr>");
            _Buffer.AppendFormat( "<tr><td class=ld>&nbsp;{0}</td></tr></table></TD><TD vAlign=top width=140 bgColor=#cccccc><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>", lBoleto.LocalPagamento);
            _Buffer.Append("<tr><td class=ct>&nbsp;Vencimento</td></tr><tr><td class=ld align=center>&nbsp;<spam id=dtavencto3>" + lBoleto.DtVencimento.ToString( Boleto.DATEFORMAT) + "</spam>");
            _Buffer.Append("</td></tr></table></TD></TR><TR><TD vAlign=top colSpan=5>");
            _Buffer.Append("<table cellSpacing=0 cellPadding=0 width=\"100%\" border=0><tr><td class=ct>&nbsp;Cedente</td></tr><tr>");
            _Buffer.Append("<td class=ld>&nbsp;<spam id=cedente3>" + lBoleto.CedenteNome + "</spam></td></tr></table></TD>");
            _Buffer.Append("<TD vAlign=top width=140><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>");
            _Buffer.Append("<tr><td class=ct>&nbsp;Agência / Código do Cedente</td></tr><tr>");
            _Buffer.Append("<td class=ld align=center>&nbsp;<aps:label id=codigocedente3>" + lBoleto.AgenciaCedente() + "</spam></td></tr></table></TD></TR>");
            _Buffer.Append("<TR><TD vAlign=top><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>");
            _Buffer.Append("<tr><td class=ct>&nbsp;Data Documento</td></tr><tr><td class=ld align=center>&nbsp;");
            _Buffer.Append("<spam id=Dtadocumento3>" + lBoleto.DtDocumento.ToString( Boleto.DATEFORMAT) + "</spam></td></tr></table></TD><TD vAlign=top>");
            _Buffer.Append("<table cellSpacing=0 cellPadding=0 width=\"100%\" border=0><tr><td class=ct>&nbsp;Número Documento</td></tr>");
            _Buffer.Append("<tr><td class=ld align=center>&nbsp;<spam id=numerodocumento3>" + lBoleto.Documento + "</spam></td></tr></table></TD>");
            _Buffer.Append("<TD vAlign=top><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0><tr><td class=ct>&nbsp;Espécie Doc.</td></tr>");
            _Buffer.Append("<tr><td class=ld align=center>&nbsp;<spam id=especiedocumento3>" + lBoleto.pEspecieDoc + "</spam></td></tr></table></TD>");
            _Buffer.Append("<TD vAlign=top><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0><tr><td class=ct>&nbsp;Aceite</td></tr>");
            _Buffer.Append("<tr><td class=ld align=center CssClass=\"ld\">&nbsp;<spam id=aceite3>" + lBoleto.Aceite + "</spam></td></tr></table></TD>");
            _Buffer.Append("<TD vAlign=top><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0><tr><td class=ct>&nbsp;Data Processamento</td></tr>");
            _Buffer.Append("<tr><td class=ld align=center>&nbsp;<spam id=dtaprocess3>" + lBoleto.DtProcessamento.ToString( Boleto.DATEFORMAT) + "</spam></td></tr></table></TD>");
            _Buffer.Append("<TD vAlign=top width=140><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0><tr>");
            _Buffer.Append("<td class=ct>&nbsp;Nosso Número</td></tr><tr>");
            _Buffer.Append("<td class=ld align=center>&nbsp;<spam id=nossonumero13>" + lNossoNumero + "</spam></td></tr></table></TD></TR>");
            _Buffer.Append("<TR><TD vAlign=top><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>");
            _Buffer.Append("<tr><td class=ct>&nbsp;Uso da Empresa</td></tr><tr><td class=ld align=center>&nbsp;</td></tr></table></TD>");
            _Buffer.Append("<TD vAlign=top><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0><tr>");
            _Buffer.Append("<td class=ct>&nbsp;Carteira</td></tr><tr><td class=ld align=center>&nbsp;<spam id=carteira3>" + lBoleto.Carteira + "</spam></td></tr></table></TD>");
            _Buffer.Append("<TD vAlign=top><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0><tr>");
            _Buffer.Append("<td class=ct>&nbsp;Espécie</td></tr><tr><td class=ld align=center>&nbsp;<spam id=especie3>" + lBoleto.Especie + "</spam></td></tr></table></TD>");
            _Buffer.Append("<TD vAlign=top><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0><tr><td class=ct>&nbsp;Quantidade</td></tr>");
            _Buffer.Append("<tr><td class=ld align=center>&nbsp;<spam id=quantidade3>" + lBoleto.Quantidade + "</spam></td></tr></table></TD>");
            _Buffer.Append("<TD vAlign=top><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0><tr><td class=ct>&nbsp;Valor</td></tr>");
            _Buffer.Append("<tr><td class=ld align=center>&nbsp;<spam id=valor3>" + lBoleto.Valor.ToString(Boleto.VALORFORMAT) + "</spam></td></tr></table></TD>");
            _Buffer.Append("<TD vAlign=top width=140 bgColor=#cccccc><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0><tr>");
            _Buffer.Append("<td class=ct>&nbsp;(=) Valor do Documento</td></tr><tr><td class=ld align=center>&nbsp;<spam id=valordocumento3>" + lBoleto.Valor.ToString(Boleto.VALORFORMAT) + "</spam></td></tr></table></TD></TR>");
            _Buffer.Append("<TR><td vAlign=top colSpan=5 rowSpan=5><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>");
            _Buffer.Append("<tr><td class=ct>&nbsp;Instruções</td></tr><tr><td class=ld>&nbsp;<spam id=instrucao13>" + lBoleto.Instrucao1 + "</spam></td></tr>");
            _Buffer.Append("<tr><td class=ld>&nbsp;<spam id=instrucao23  >" + lBoleto.Instrucao2 + "</spam></td></tr></table></td>");
            _Buffer.Append("<TD vAlign=top width=140><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0><tr><td class=ct>&nbsp;(-) Desconto / ");
            _Buffer.Append("Abatimento</td></tr><tr><td class=ld align=center>&nbsp;</td></tr></table></TD></TR><TR><TD vAlign=top width=140>");
            _Buffer.Append("<table cellSpacing=0 cellPadding=0 width=\"100%\" border=0><tr><td class=ct>&nbsp;(-) Outras Deduções</td></tr>");
            _Buffer.Append("<tr><td class=ld align=center>&nbsp;</td></tr></table></TD></TR><TR><TD vAlign=top width=140>");
            _Buffer.Append("<table cellSpacing=0 cellPadding=0 width=\"100%\" border=0><tr><td class=ct>&nbsp;(+) Mora / Multa</td></tr>");
            _Buffer.Append("<tr><td class=ld align=center>&nbsp;</td></tr></table></TD></TR><TR><TD vAlign=top width=140>");
            _Buffer.Append("<table cellSpacing=0 cellPadding=0 width=\"100%\" border=0><tr><td class=ct>&nbsp;(+) Outros Acréscimos</td></tr>");
            _Buffer.Append("<tr><td class=ld align=center>&nbsp;</td></tr></table></TD></TR><TR><TD vAlign=top width=140 bgColor=#cccccc>");
            _Buffer.Append("<table cellSpacing=0 cellPadding=0 width=\"100%\" border=0><tr><td class=ct>&nbsp;(=) Valor Cobrado</td></tr>");
            _Buffer.Append("<tr><td class=ld align=center>&nbsp;</td></tr></table></TD></TR><TR><TD vAlign=top colSpan=6>");
            _Buffer.Append("<table cellSpacing=0 cellPadding=0 width=\"100%\" border=0><tr><td class=ct width=50>&nbsp;Sacado</td>");
            _Buffer.Append("<td class=ld><spam id=sacado3>" + lBoleto.SacadoNome + "</spam></td>");
            _Buffer.Append("<td class=ld width=\"35%\"><spam id=CPFCNPJSacado3  >" + lBoleto.SacadoCPF_CNPJ + "</spam></td></tr>");
            _Buffer.Append("<tr><td class=ct>&nbsp;</td><td class=ld><spam id=EnderecoSacado3  >" + SacadoEnderecoLinha1( lBoleto) + "</spam></td>");
            _Buffer.Append("<td class=ld><spam id=nossonumero23  >" + lNossoNumero + "</spam></td></tr><tr>");
            _Buffer.Append("<td class=ct>&nbsp;</td><td class=ld><spam id=cidade3  >" + SacadoEnderecoLinha2( lBoleto) + "</spam></td>");
            _Buffer.Append("<td class=ld></td></tr><tr><td class=ct colSpan=3>&nbsp;Sacador / Avalista</td></tr></table></TD></TR></table>");
            _Buffer.Append("<table cellSpacing=0 cellPadding=0 width=\"100%\" border=0><tr><td class=ct>&nbsp;</td>");
            _Buffer.Append("<td class=ct vAlign=top align=center width=150>&nbsp;Autenticação Mecânica</td></tr><tr>");
            _Buffer.Append("<td><BR><spam id=CodBarras>" + Codiodebarras + "</spam></td>");
            _Buffer.Append("<td class=cp vAlign=bottom align=right>&nbsp;Ficha de Compensação&nbsp;</td></tr></table>");
            _Buffer.Append("<div align=center><img src=" + sImgCorte + "></div>");
        }
Пример #2
0
 protected string SacadoEnderecoLinha1( Boleto lBoleto)
 {
     return lBoleto.SacadoEndereco + "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" + lBoleto.SacadoBairro;
 }
Пример #3
0
 protected string SacadoEnderecoLinha2( Boleto lBoleto)
 {
     return lBoleto.SacadoCEP + "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" + lBoleto.SacadoCidade + "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" + lBoleto.SacadoUF;
 }
Пример #4
0
 private void ImprimeBoleto(Boleto boleto)
 {
     HTMLBoleto geraBoleto = new HTMLBoleto();
     geraBoleto.ImagesFolder = "imagesBoleto";
     geraBoleto.AddBoleto(boleto);
     geraBoleto.SaveToFile((Server.MapPath("/") + "\\boletoXX"));
     Response.Write(geraBoleto.ToString());
 }