Examples of UF


Examples of br.gov.serpro.ouvidoria.model.UF

        }
        return null;
    }
   
    public UF getUF(Integer id) throws DaoException {
        UF uf = (UF) ufDao.get(new Long(id.longValue()));
        return uf;
    }
View Full Code Here

Examples of ecar.pojo.Uf

      Iterator itUf = listaUf.iterator();
      StringBuilder javaScript = new StringBuilder("function getUf()\n{\n");
                  javaScript.append("\tconteudo = \"\";\n");
      while (itUf.hasNext())
      {
        Uf uf = (Uf)itUf.next();
        javaScript.append("\tconteudo += \"\\t\\t\\t\\t<option value = \\\"")
              .append(uf.getCodUf().toString()).append("\\\">")
              .append(uf.getDescricaoUf()).append("\";\n")
              .append("\tconteudo += \"</option>\\n\"\n");
      }
      javaScript.append("\treturn(conteudo);\n}");
      return javaScript.toString();
   
View Full Code Here

Examples of ecar.pojo.Uf

    /**
     *
     */
    public PopUpUf(){
        uf = new Uf();
        ufDao = new UfDao(null);
        this.setPesquisarEm(new String[] {"Descri&ccedil;&atilde;o", "C&oacute;digo da Uf"});
    }
View Full Code Here

Examples of maissocial.entidade.Uf

*/
public class CidadeGUI {

    public static void main(String[] args){

        Uf uf = null;
        Cidade cd = null;


        try {
            uf = Fachada.getInstance().getUfControle().pesquisarUfPorSigla("PE");
View Full Code Here

Examples of maissocial.entidade.Uf

*/
public class UfGUI {

    public static void main(String[] args){

        Uf uf = new Uf("PE", "PERNAMBUCO", 1);
      
        try {
            Fachada.getInstance().getUfControle().salvarUf(uf);
            JOptionPane.showMessageDialog(null, "Uf alterada com sucesso!");
            Uf uf2 = Fachada.getInstance().getUfControle().pesquisarUfPorCodigo(1);
            System.out.print(uf2.getNome());

        } catch (Exception ex) {
            Logger.getLogger(UfGUI.class.getName()).log(Level.SEVERE, null, ex);
        }

View Full Code Here

Examples of maissocial.entidade.Uf

    public void salvarUf(Uf uf) throws Exception, UfJaCadastradaException{
        if( uf == null || uf.getNome() == null || uf.getNome().equals("") || uf.getStatus() == 0){
            throw  new Exception("Parâmetros Inválidos!");
        }

        Uf uf2 = this.ufRep.pesquisarUfPorNome(uf.getNome());
        if(uf2 == null){
            this.ufRep.salvarUf(uf);
        }else{
            throw new UfJaCadastradaException("UF já cadastrado!");
        }
View Full Code Here

Examples of maissocial.entidade.Uf

    public void alterarUf(Uf uf) throws Exception, UfJaCadastradaException{
        if( uf == null || uf.getNome() == null || uf.getNome().equals("") || uf.getStatus() == 0){
            throw  new Exception("Parâmetros Inválidos!");
        }

        Uf uf2 = this.ufRep.pesquisarUfPorNome(uf.getNome());
        if(uf2 == null){
            this.ufRep.alterarUf(uf);
        }else{
            throw new UfJaCadastradaException("UF já cadastrado!");
        }
View Full Code Here

Examples of maissocial.entidade.Uf

            throw new UfJaCadastradaException("UF já cadastrado!");
        }
    }

    public Uf pesquisarUfPorCodigo(int cod){
        Uf uf = this.ufRep.pesquisarUfPorCodigo(cod);
        return uf;
    }
View Full Code Here

Examples of maissocial.entidade.Uf

        Uf uf = this.ufRep.pesquisarUfPorCodigo(cod);
        return uf;
    }

    public Uf pesquisarUfPorSigla(String sigla){
        Uf uf = this.ufRep.pesquisarUfPorSigla(sigla);
        return uf;
    }
View Full Code Here

Examples of maissocial.entidade.Uf

        Uf uf = this.ufRep.pesquisarUfPorSigla(sigla);
        return uf;
    }

     public Uf pesquisarUfPorNome(String nome){
        Uf uf = this.ufRep.pesquisarUfPorNome(nome);
        return uf;
    }
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.