Package dao

Examples of dao.OrasDao


    }

    public Resolution adauga() {
        IBeneficiarDao beneficiarDao = new BeneficiarDao();
        Beneficiar beneficiar = beneficiarDao.getBeneficiarByID(Integer.parseInt(getBeneficiarFilter()));
        IOrasDao orasDao = new OrasDao();
        Oras oras = orasDao.getOrasByID(Integer.parseInt(getOrasFilter()));
        Amplasament amplasament = new Amplasament();
        amplasament.setBeneficiar(beneficiar);
        amplasament.setOras(oras);
        amplasament.setLocatie(getLocatie());
        amplasament.setIdGeolog(getIdGeologLogat());
View Full Code Here


        }
    }

    public List<Oras> getOrase() {
        if (getJudetFilter() != null) {
            IOrasDao orasDao = new OrasDao();
            List<Oras> orase = orasDao.getOraseByJudetId(Integer.parseInt(getJudetFilter()));
            return orase;
        } else {
            IOrasDao orasDao = new OrasDao();
            List<Oras> orase = orasDao.getOraseByJudetId(getJudete().get(0).getIdJudet());
            return orase;
        }
    }
View Full Code Here

        int idGeolog = Integer.parseInt(getGeologFilter());
        geologBeneficiarDao.saveOrUpdate(new GeologBeneficiar(idGeolog, idBeneficiar));

        //adaugam amplasamentul
        int idProiect = ((Proiect) getContext().getRequest().getSession().getAttribute("proiectInLucru")).getIdProiect();
        IOrasDao orasDao = new OrasDao();
        Oras oras = orasDao.getOrasByID(Integer.parseInt(getOrasFilter()));
        Amplasament amplasament = new Amplasament();
        amplasament.setBeneficiar(beneficiar);
        amplasament.setOras(oras);
        amplasament.setLocatie(getLocatie());
        amplasament.setIdGeolog(idGeolog);
View Full Code Here

        return judete;
    }

    public List<Oras> getOrase() {
        if (getJudetFilter() != null) {
            IOrasDao orasDao = new OrasDao();
            List<Oras> orase = orasDao.getOraseByJudetId(Integer.parseInt(getJudetFilter()));
            return orase;
        } else {
            IOrasDao orasDao = new OrasDao();
            List<Oras> orase = orasDao.getOraseByJudetId(getJudete().get(0).getIdJudet());
            return orase;
        }
    }
View Full Code Here

TOP

Related Classes of dao.OrasDao

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.