Package DAO

Examples of DAO.MetaItemPainelDeBordoDao


    }
   
    public void insereMeta() {
        MetaItemPainelDeBordo pesquisa = new MetaItemPainelDeBordo();
        this.mipdb.setIpbCodigo(ipbSelecionado.getIpbCodigo());
        MetaItemPainelDeBordoDao mipdbDao = new MetaItemPainelDeBordoDao();
        pesquisa = mipdbDao.buscaMeta(this.mipdb);
        if (pesquisa == null) {
            mipdbDao.salvar(this.mipdb);
        }
        else {
           pesquisa.setMipbNumMeta(this.mipdb.getMipbNumMeta());
            mipdbDao.salvar(pesquisa);
        }
        FacesMessage msg = new FacesMessage("Meta cadastrada para o mês de " + this.mipdb.getMipbDscMes() + "" , "");
        FacesContext.getCurrentInstance().addMessage("msgUpdate", msg);
    }
View Full Code Here

TOP

Related Classes of DAO.MetaItemPainelDeBordoDao

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.