Examples of Boleto


Examples of br.com.caelum.stella.boleto.Boleto

            .withCidade("São Paulo")
            .withUf("SP");

        Banco banco = new Bradesco();

        Boleto boleto = Boleto.newBoleto()
            .withBanco(banco)
            .withDatas(datas)
            .withDescricoes("descricao 1", "descricao 2", "descricao 3",
                        "descricao 4", "descricao 5")
            .withEmissor(emissor)
View Full Code Here

Examples of br.com.caelum.stella.boleto.Boleto

      .withCidade("São Paulo")
      .withUf("SP");

    Banco banco = new BancoDoBrasil();

    Boleto boleto = Boleto.newBoleto()
        .withBanco(banco)
        .withDatas(datas)
        .withDescricoes("descricao 1", "descricao 2", "descricao 3",
            "descricao 4", "descricao 5")
      .withEmissor(emissor)
View Full Code Here

Examples of br.com.caelum.stella.boleto.Boleto

            .withCidade("São Paulo")
            .withUf("SP");

        Banco banco = new BancoDoBrasil();

        Boleto boleto = Boleto.newBoleto()
            .withBanco(banco)
            .withDatas(datas)
            .withDescricoes("descricao 1", "descricao 2", "descricao 3",
                        "descricao 4", "descricao 5")
            .withEmissor(emissor)
View Full Code Here

Examples of br.com.caelum.stella.boleto.Boleto

            .withCidade("São Paulo")
            .withUf("SP");

        Banco banco = new Bradesco();

        Boleto boleto = Boleto.newBoleto()
            .withBanco(banco)
            .withDatas(datas)
            .withDescricoes("descricao 1", "descricao 2", "descricao 3",
                        "descricao 4", "descricao 5")
            .withEmissor(emissor)
View Full Code Here

Examples of br.com.colegio.vo.Boleto

                int codigoRetornoBoleto,
                int pagamentoCanalBoleto,
                String statusBoleto,
                String pagamentoTipo) throws Exception
  {
    Boleto b = BoletoData.getInstance().get(codigo);

    if (b == null)
    {
      b = new Boleto();
      b.setCodigo(codigo);
      b.setGrupo(grupo);
      b.setDataVencimento(dataVencimento);
      b.setDataEmissao(dataEmissao);
      b.setValorTotal(valorTotal);
      b.setDesconto(desconto);
      b.setMulta(multa);
      b.setDataMulta(dataMulta);
      b.setJurosDia(jurosDia);
      b.setDescricao(descricao);
      b.setDescricaoCompleta(descricaoCompleta);
      b.setDataPagamento(dataPagamento);
      b.setPagamentoValor(pagamentoValor);
      b.setPagamentoDesconto(pagamentoDesconto);
      b.setPagamentoMulta(pagamentoMulta);
      b.setPagamentoTarifa(pagamentoTarifa);
      b.setCreditoData(creditoData);
      b.setAlunoBoleto(alunoBoleto);
      b.setCodigoRetornoBoleto(codigoRetornoBoleto);
      b.setPagamentoCanalBoleto(pagamentoCanalBoleto);
      b.setStatusBoleto(statusBoleto);
      b.setPagamentoTipo(pagamentoTipo);

      BoletoData.getInstance().atualizaData((Boleto)Storage.save(b));

      return "INSERT : " + codigo;
    }
    //else if (!b.getStatusBoleto().getCodigo().equalsIgnoreCase("P")
    //    && !b.getStatusBoleto().getCodigo().equalsIgnoreCase("C"))
    else if(statusBoleto.equals("P"))
    {
      b.setCodigo(codigo);
      b.setGrupo(grupo);
      b.setDataVencimento(dataVencimento);
      b.setDataEmissao(dataEmissao);
      b.setValorTotal(valorTotal);
      b.setDesconto(desconto);
      b.setMulta(multa);
      b.setDataMulta(dataMulta);
      b.setJurosDia(jurosDia);
      b.setDescricao(descricao);
      b.setDescricaoCompleta(descricaoCompleta);
      b.setDataPagamento(dataPagamento);
      b.setPagamentoValor(pagamentoValor);
      b.setPagamentoDesconto(pagamentoDesconto);
      b.setPagamentoMulta(pagamentoMulta);
      b.setPagamentoTarifa(pagamentoTarifa);
      b.setCreditoData(creditoData);
      b.setAlunoBoleto(alunoBoleto);
      b.setCodigoRetornoBoleto(codigoRetornoBoleto);
      b.setPagamentoCanalBoleto(pagamentoCanalBoleto);
      b.setStatusBoleto(statusBoleto);
      b.setPagamentoTipo(pagamentoTipo);

      BoletoData.getInstance().atualizaData((Boleto)Storage.save(b));

      return "UPDATE : " + codigo;
    }
View Full Code Here

Examples of br.com.colegio.vo.Boleto

    if(data.size() == 0){
      Collection<Object> r = BoletoDAO.list();

      if(r != null)
        for(Object o : r){
          Boleto b = (Boleto)o;
          data.put(b.getCodigo(),b);

          if(!dataAluno.containsKey(b.getAlunoBoleto().getCodigo()))
            dataAluno.put(b.getAlunoBoleto().getCodigo(),new HashSet<Boleto>());

          dataAluno.get(b.getAlunoBoleto().getCodigo()).add(b);

          if(dataFiltro.containsKey(b.getStatusBoleto().getCodigo())){
            if(dataFiltro.get(b.getStatusBoleto().getCodigo()).containsKey(UtilData.format(b.getDataVencimento(),"yyyyMM")))
              dataFiltro.get(b.getStatusBoleto().getCodigo()).get(
                  UtilData.format(b.getDataVencimento(),"yyyyMM")).put(b.getCodigo(),b);
            else {
              dataFiltro.get(b.getStatusBoleto().getCodigo()).put(
                  UtilData.format(b.getDataVencimento(),"yyyyMM"),new HashMap<String,Boleto>());
              dataFiltro.get(b.getStatusBoleto().getCodigo()).get(
                  UtilData.format(b.getDataVencimento(),"yyyyMM")).put(b.getCodigo(),b);
            }
          }
          else {
            dataFiltro.put(b.getStatusBoleto().getCodigo(),new HashMap<String,Map<String,Boleto>>());
            dataFiltro.get(b.getStatusBoleto().getCodigo()).put(
                UtilData.format(b.getDataVencimento(),"yyyyMM"),new HashMap<String,Boleto>());
            dataFiltro.get(b.getStatusBoleto().getCodigo()).get(
                UtilData.format(b.getDataVencimento(),"yyyyMM")).put(b.getCodigo(),b);
          }
        }
    }
    return data;
  }
View Full Code Here

Examples of br.com.colegio.vo.Boleto

                  int canalPag,
                  double valor,
                  double desconto,
                  double multa)
  {
    Boleto b = get(codBoleto);
    String r = "";

    if(b != null){
      b.setDataPagamento(dataPag);
      b.setPagamentoTipo(tipoPag);
      b.setPagamentoValor(valor);
      b.setPagamentoDesconto(desconto);
      b.setPagamentoMulta(multa);
      b.setPagamentoCanalBoleto(canalPag);
      b.setStatusBoleto("P");

      try {
        BoletoDAO.save(b);
        atualizaData(b);
      }
View Full Code Here

Examples of br.com.colegio.vo.Boleto

    return "OK" + r;
  }

  public String alterarStatus(String codBoleto, String status){
    Boleto b = get(codBoleto);
    String r = "";

    if(b != null){
      b.setStatusBoleto(status);

      try {
        BoletoDAO.save(b);
        atualizaData(b);
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.