Examples of geProbaByID()


Examples of dao.ProbaDao.geProbaByID()

    @DefaultHandler
    public Resolution view() {

        IProbaDao probaDao = new ProbaDao();
        Proba proba = probaDao.geProbaByID(Integer.parseInt(getContext().getRequest().getSession().getAttribute("idProba").toString()));
        // trebuie modificat sa afiseze sarcinile in comboboxuri direct cu gettere, asta dupa ce se rezolva punerea pe sesiune al id-ului probei
        ICompresibilitateDao compresibilitateDao = new CompresibilitateDao();
        List<Float> sarciniL = compresibilitateDao.geSarciniByIDProba(proba.getIdProba());
        setSarcini(sarciniL);
View Full Code Here

Examples of dao.ProbaDao.geProbaByID()

    }

    public Resolution submit() {

        IProbaDao probaDao = new ProbaDao();
        Proba proba = probaDao.geProbaByID(Integer.parseInt(getContext().getRequest().getSession().getAttribute("idProba").toString()));

        //sa populeze comboboxurile
        ICompresibilitateDao compresibilitateDao = new CompresibilitateDao();
        List<Float> sarciniL = compresibilitateDao.geSarciniByIDProba(proba.getIdProba());
        setSarcini(sarciniL);
View Full Code Here

Examples of dao.ProbaDao.geProbaByID()

    @DefaultHandler
    public Resolution view() {

        IProbaDao probaDao = new ProbaDao();
        Proba proba = probaDao.geProbaByID(Integer.parseInt(getContext().getRequest().getSession().getAttribute("idProba").toString()));
        getContext().getRequest().getSession(true).setAttribute("compresibilitate", getTabel(proba.getIdProba()));
        return new ForwardResolution("/WEB-INF/jsp/compresibilitate.jsp");
    }

    public Resolution adauga() {
View Full Code Here

Examples of dao.ProbaDao.geProbaByID()

    }

    public Resolution adauga() {
        ICompresibilitateDao compDao = new CompresibilitateDao();
        IProbaDao probaDao = new ProbaDao();
        Proba proba = probaDao.geProbaByID(Integer.parseInt(getContext().getRequest().getSession().getAttribute("idProba").toString()));
        if (getButonRadio() == null) {
            setRadioNeselectat(true);
            return new ForwardResolution("/WEB-INF/jsp/compresibilitate.jsp");
        } else if (getButonRadio().equals("1")) {
            if ((getAn_nou() == null) || (getLuna_nou() == null) || (getZi_nou() == null) || (getOra_nou() == null) || (getMinut_nou() == null) || (getSarcina_nou() == null) || (getCitire_nou() == null)) {
View Full Code Here

Examples of daoI.IProbaDao.geProbaByID()

    }

    public Resolution submit() {
        IProbaDao probaDao = new ProbaDao();
        //proba curenta
        Proba proba = probaDao.geProbaByID(Integer.parseInt(getContext().getRequest().getSession().getAttribute("idProba").toString()));
        //valori introduse
        List<Float> valoriIntroduseTemperatura = Arrays.asList(Float.parseFloat(getFormular().getT0()), Float.parseFloat(getFormular().getT1()), Float.parseFloat(getFormular().getT2()), Float.parseFloat(getFormular().getT3()), Float.parseFloat(getFormular().getT4()), Float.parseFloat(getFormular().getT5()), Float.parseFloat(getFormular().getT6()), Float.parseFloat(getFormular().getT7()), Float.parseFloat(getFormular().getT8()), Float.parseFloat(getFormular().getT9()), Float.parseFloat(getFormular().getT10()), Float.parseFloat(getFormular().getT11()));
        List<Float> valoriIntroduseAreometru = Arrays.asList(Float.parseFloat(getFormular().getA0()), Float.parseFloat(getFormular().getA1()), Float.parseFloat(getFormular().getA2()), Float.parseFloat(getFormular().getA3()), Float.parseFloat(getFormular().getA4()), Float.parseFloat(getFormular().getA5()), Float.parseFloat(getFormular().getA6()), Float.parseFloat(getFormular().getA7()), Float.parseFloat(getFormular().getA8()), Float.parseFloat(getFormular().getA9()), Float.parseFloat(getFormular().getA10()), Float.parseFloat(getFormular().getA11()));

        //obiect format pt proba curenta cu valorile introduse pt introducere in BD
View Full Code Here

Examples of daoI.IProbaDao.geProbaByID()

    }

    public Resolution submit() {
        IProbaDao probaDao = new ProbaDao();
        //proba curenta
        Proba proba = probaDao.geProbaByID(Integer.parseInt(getContext().getRequest().getSession().getAttribute("idProba").toString()));
        IStantaDao stantaDao = new StantaDao();
        Stanta stanta = new Stanta(proba, Float.parseFloat(getRand1Coloana2()), Float.parseFloat(getRand2Coloana2()), null, getStantaInput(), Float.parseFloat(getTaraInput()), Float.parseFloat(getDiametruInput()), Float.parseFloat(getInaltimeInput()));
        Stanta stantaAuxiliar = stantaDao.getStantaByIDProba(proba.getIdProba());
        if (stantaAuxiliar == null) {
            stantaDao.saveOrUpdate(stanta);
View Full Code Here

Examples of daoI.IProbaDao.geProbaByID()

        rezultate.setNisip(nisip);
        rezultate.setPietris(pietris);
        rezultate.setBolovanis(bolovanis);

        IProbaDao probaDao = new ProbaDao();
        Proba proba = probaDao.geProbaByID(Integer.parseInt(getContext().getRequest().getSession().getAttribute("idProba").toString()));
        proba.setArgila(argila);
        proba.setPraf(praf);
        proba.setNisip(nisip);
        proba.setPietris(pietris);
        proba.setBolovanis(bolovanis);
View Full Code Here

Examples of daoI.IProbaDao.geProbaByID()

    //returneaza md pt proba curenta
    public String getMd() {
        IProbaDao probaDao = new ProbaDao();
        Proba proba = new Proba();
        proba = probaDao.geProbaByID(Integer.parseInt(getContext().getRequest().getSession().getAttribute("idProba").toString()));
        if (proba.getMd() == null) {
            return "0.0";
        }
        return proba.getMd().toString();
    }
View Full Code Here

Examples of daoI.IProbaDao.geProbaByID()

    }

    public String getRs() {
        IProbaDao probaDao = new ProbaDao();
        Proba proba = new Proba();
        proba = probaDao.geProbaByID(Integer.parseInt(getContext().getRequest().getSession().getAttribute("idProba").toString()));
        if (proba.getRs() == null) {
            return "0.0";
        }
        return proba.getRs().toString();
    }
View Full Code Here

Examples of daoI.IProbaDao.geProbaByID()

    }

    public String getA() {
        IProbaDao probaDao = new ProbaDao();
        Proba proba = new Proba();
        proba = probaDao.geProbaByID(Integer.parseInt(getContext().getRequest().getSession().getAttribute("idProba").toString()));
        if (proba.getA() == null) {
            return "0.0";
        }
        return proba.getA().toString();
    }
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.