Package br.com.moonjava.flight.model.base

Examples of br.com.moonjava.flight.model.base.ReembolsoModel


    this.request = request;
  }

  @Override
  public Reembolso createInstance() {
    return new ReembolsoModel(this);
  }
View Full Code Here


    @Override
    public void actionPerformed(ActionEvent e) {
      RequestParamWrapper request = getParametersReebolso();
      // Caso o usuario adicione virgula, o sistema atribuirá ponto
      // para cadastrar o dado no banco de dados
      ReembolsoModel model = new ReembolsoModel();
      PassagemModel modelPassagem = new PassagemModel();
      String valor = request.stringParam("valor").replace(",", ".");
      boolean status = false;

      if (!valor.equals("0.0")) {
        CPF _cpf = null;
        try {
          _cpf = CPF.parse(request.stringParam("cpf"));
          request.set("passagem", passagem.getId());
          request.set("banco", Integer.parseInt(request.stringParam("banco")));
          request.set("agencia", Integer.parseInt(request.stringParam("agencia")));
          request.set("conta", Integer.parseInt(request.stringParam("conta")));
          request.set("valor", Double.parseDouble(valor));
          request.set("cpf", _cpf.getDigito());
          Reembolso reembolso = new ReembolsoCreate(request).createInstance();

          status = model.criar(reembolso);
        } catch (Exception e2) {
          return;
        }
      }
View Full Code Here

    this.request = request;
  }

  @Override
  public Reembolso createInstance() {
    ReembolsoModel impl = new ReembolsoModel(this);
    impl.setId(request.intParam("id"));
    return impl;
  }
View Full Code Here

TOP

Related Classes of br.com.moonjava.flight.model.base.ReembolsoModel

Copyright © 2018 www.massapicom. 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.