Examples of Cargo


Examples of br.com.sistelecom.entity.Cargo

 
  public void carregarRegistro(ActionEvent evento) {
    final String id = ((HtmlActionParameter)((HtmlAjaxCommandButton)evento.getSource()).getChildren().get(0)).getValue().toString();
    int idCargo = Integer.parseInt(id);

    final Cargo cargo = this.getDao().obterPorId(idCargo);

    this.getCargo().setIdCargo(cargo.getIdCargo());
    this.getCargo().setNomeCargo(cargo.getNomeCargo());
  }
View Full Code Here

Examples of br.com.sistelecom.entity.Cargo

 
  public void excluirRegistro(ActionEvent evento) {
    final String id = ((HtmlActionParameter)((HtmlAjaxCommandButton)evento.getSource()).getChildren().get(0)).getValue().toString();
    int idCargo = Integer.parseInt(id);
   
    final Cargo cargo = this.getDao().obterPorId(idCargo);
   
    try {
      if(cargo != null){
        this.getDao().excluir(cargo);
        this.listarTodos();
View Full Code Here

Examples of br.com.sistelecom.entity.Cargo

    }
    return true;
  }
 
  public void limpar() {
    this.cargo = new Cargo();
  }
View Full Code Here

Examples of br.com.sistelecom.entity.Cargo

  /**
   * @return the cargo
   */
  public Cargo getCargo() {
    if (this.cargo == null) {
      this.cargo = new Cargo();
    }
    return cargo;
  }
View Full Code Here

Examples of br.com.sistelecom.entity.Cargo

    try{
      ps = conn.prepareStatement("select * from cargo");
      rs = ps.executeQuery();
      List<Cargo> list = new ArrayList<Cargo>();
      while(rs.next()) {
        list.add(new Cargo(rs.getInt(1), rs.getString(2)));
      }
      return list;
    } catch (Exception e) {
      e.printStackTrace();
    }
View Full Code Here

Examples of br.com.sistelecom.entity.Cargo

      rs = ps.executeQuery();
      if (!rs.next()) {
        throw new Exception("Não foi encontrado o cargo com esse id: " + id);
      }
     
      Cargo cargo = new Cargo();
      cargo.setIdCargo(id);
      cargo.setNomeCargo(rs.getString(2));
     
      return cargo;
    } catch (Exception e) {
      e.printStackTrace();
    }
View Full Code Here

Examples of com.loja.model.Cargo

    em.getTransaction().rollback();
    em.close();
  }
 
  public void record() {
    Cargo cargo = new Cargo();
    cargo.setNome("Gerente");
    cargoService.setCargo(cargo);
    cargoService.save();
   
    cargoSalvo = cargo;
  }
View Full Code Here

Examples of com.loja.model.Cargo

    em.getTransaction().rollback();
    em.close();
  }

  public void record() {
    Cargo cargo = new Cargo();
    cargo.setNome("Gerente");
    cargoService.setCargo(cargo);
    cargoService.save();

    Estado estado = new Estado();
    estado.setNome("GO");
View Full Code Here

Examples of com.loja.model.Cargo

    endereco.setCep("60125-070");
    endereco.setCidade(cidade);
    enderecoService.setEndereco(endereco);
    enderecoService.save();
   
    Cargo cargo = new Cargo();
    cargo.setNome("Gerente");
    cargoService.setCargo(cargo);
    cargoService.save();
   
    GrupoUsuario grupoUsuario = new GrupoUsuario();
    grupoUsuario.setAtivo(true);
View Full Code Here

Examples of ek.skychain.uws.Cargo

        irmtabUrno = irmtabRef;
       
      String convertToXml = blGroovyHandlerBean.convertToXml(message);
      LOG.debug("Converted Xml by Groovy :\n{}", convertToXml);
     
      Cargo inputUWSInfo = (Cargo) _um.unmarshal(new StreamSource(new StringReader(convertToXml)));
     
      Meta meta = inputUWSInfo.getMeta();
     
      UWSInfo uwsInfo = inputUWSInfo.getUWSInfo();
     
      if(existsMandatory(meta, uwsInfo)) {
        LOG.warn("Compulsory uws info are empty. Message will be dropped.");
        addExptInfo(EMAND.name(), "");
        return false;
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.