Examples of geProbaByID()


Examples of dao.ProbaDao.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 dao.ProbaDao.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 dao.ProbaDao.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 dao.ProbaDao.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 dao.ProbaDao.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 dao.ProbaDao.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

Examples of dao.ProbaDao.geProbaByID()

    }

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

Examples of dao.ProbaDao.geProbaByID()

    }

    public Resolution calculeaza() {
        idProbaCurenta = Integer.parseInt(getContext().getRequest().getSession(true).getAttribute("idProbaCurenta").toString());
        IProbaDao probaDao = new ProbaDao();
        float w = probaDao.geProbaByID(idProbaCurenta).getW();
        float rs = probaDao.geProbaByID(idProbaCurenta).getRs();
        float m0F = Float.valueOf(getM0().toString().trim()).floatValue();
        float m1F = Float.valueOf(getM1().toString().trim()).floatValue();
        float m2F = Float.valueOf(getM2().toString().trim()).floatValue();
        double yD = (m0F / ((m1F - m2F) / 1 - (m1F - m0F) / 0.9));
View Full Code Here

Examples of dao.ProbaDao.geProbaByID()

    public Resolution calculeaza() {
        idProbaCurenta = Integer.parseInt(getContext().getRequest().getSession(true).getAttribute("idProbaCurenta").toString());
        IProbaDao probaDao = new ProbaDao();
        float w = probaDao.geProbaByID(idProbaCurenta).getW();
        float rs = probaDao.geProbaByID(idProbaCurenta).getRs();
        float m0F = Float.valueOf(getM0().toString().trim()).floatValue();
        float m1F = Float.valueOf(getM1().toString().trim()).floatValue();
        float m2F = Float.valueOf(getM2().toString().trim()).floatValue();
        double yD = (m0F / ((m1F - m2F) / 1 - (m1F - m0F) / 0.9));
        double ydD = yD / (1 + w);
View Full Code Here

Examples of dao.ProbaDao.geProbaByID()

    }

    public Resolution submit() {
        IProbaDao probaDao = new ProbaDao();
        //proba curenta
        Proba proba = probaDao.geProbaByID(Integer.parseInt(getContext().getRequest().getSession().getAttribute("idProba").toString()));
        //valori introduse
        String x=getFormular().getVal0();
        List<Float> valoriIntroduse = Arrays.asList(Float.parseFloat(getFormular().getVal0()), Float.parseFloat(getFormular().getVal1()), Float.parseFloat(getFormular().getVal2()), Float.parseFloat(getFormular().getVal3()), Float.parseFloat(getFormular().getVal4()), Float.parseFloat(getFormular().getVal5()), Float.parseFloat(getFormular().getVal6()), Float.parseFloat(getFormular().getVal7()), Float.parseFloat(getFormular().getVal8()), Float.parseFloat(getFormular().getVal9()), Float.parseFloat(getFormular().getVal10()), Float.parseFloat(getFormular().getVal11()), Float.parseFloat(getFormular().getVal12()), Float.parseFloat(getFormular().getVal13()), Float.parseFloat(getFormular().getVal14()), Float.parseFloat(getFormular().getVal15()), Float.parseFloat(getFormular().getVal16()), Float.parseFloat(getFormular().getVal17()));

        //obiect format pt proba curenta cu valorile introduse pt introducere in BD
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.