Package auxiliar

Examples of auxiliar.MetodaCernerii


    private Rezultate rezultate;

    @DefaultHandler
    public Resolution view() {
        rezultate = new Rezultate();
        MetodaCernerii metCernerii = (MetodaCernerii) (getContext().getRequest().getSession().getAttribute("metC"));
        MetodaSedimentarii metSedimentarii = (MetodaSedimentarii) (getContext().getRequest().getSession().getAttribute("metS"));
        List<Float> col8TabelMetSedimentarii = metSedimentarii.getMp();
        List<Float> col4TabelMetCernerii = metCernerii.getFractiuni();
        rezultate.setProcente(formulaRezultateCol2(col8TabelMetSedimentarii, col4TabelMetCernerii));
        Float argila = (Float) zecimale(rezultate.getProcente().get(0) + rezultate.getProcente().get(1), 2);
        Float praf = (Float) zecimale(rezultate.getProcente().get(2), 2);
        Float nisip = (Float) zecimale(rezultate.getProcente().get(3) + rezultate.getProcente().get(4) + rezultate.getProcente().get(5), 2);
        Float pietris = (Float) zecimale(rezultate.getProcente().get(6) + rezultate.getProcente().get(7), 2);
View Full Code Here


    @DefaultHandler
    public Resolution view() {
     
        //daca s-a mai facut metoda cernerii pt proba curenta,atunci se afiseaza valorile din BD
        met_cernerii = new MetodaCernerii();
        IMetCerneriiDao metCerneriiDao = new MetCerneriiDao();
        MetCernerii metCerneriiAuxiliar = metCerneriiDao.getMetCerneriiByIDProba(Integer.parseInt(getContext().getRequest().getSession().getAttribute("idProba").toString()));
        if (metCerneriiAuxiliar != null) {
            List<Float> valoriIntroduse = Arrays.asList(metCerneriiAuxiliar.getVal200(), metCerneriiAuxiliar.getVal150(), metCerneriiAuxiliar.getVal70(), metCerneriiAuxiliar.getVal40(), metCerneriiAuxiliar.getVal30(), metCerneriiAuxiliar.getVal20(), metCerneriiAuxiliar.getVal15(), metCerneriiAuxiliar.getVal10(), metCerneriiAuxiliar.getVal5(), metCerneriiAuxiliar.getVal2(), metCerneriiAuxiliar.getVal1(), metCerneriiAuxiliar.getVal05(), metCerneriiAuxiliar.getVal025(), metCerneriiAuxiliar.getVal01(), metCerneriiAuxiliar.getVal008(), metCerneriiAuxiliar.getVal0071(), metCerneriiAuxiliar.getVal005(), metCerneriiAuxiliar.getVal0());
            populeazaColoana2(metCerneriiAuxiliar);
View Full Code Here

        proba.setMd(Float.parseFloat(getMdInput()));
        proba.setRs(Float.parseFloat(getRsInput()));
        probaDao.saveOrUpdate(proba);


        met_cernerii = new MetodaCernerii();
        //se modifica pt a afisa in pagina, noile valori introduse
        MetCernerii metCerneriiDinBd = metCerneriiDao.getMetCerneriiByIDProba(proba.getIdProba());
        List<Float> valoriDinBD = Arrays.asList(metCerneriiDinBd.getVal200(), metCerneriiDinBd.getVal150(), metCerneriiDinBd.getVal70(), metCerneriiDinBd.getVal40(), metCerneriiDinBd.getVal30(), metCerneriiDinBd.getVal20(), metCerneriiDinBd.getVal15(), metCerneriiDinBd.getVal10(), metCerneriiDinBd.getVal5(), metCerneriiDinBd.getVal2(), metCerneriiDinBd.getVal1(), metCerneriiDinBd.getVal05(), metCerneriiDinBd.getVal025(), metCerneriiDinBd.getVal01(), metCerneriiDinBd.getVal008(), metCerneriiDinBd.getVal0071(), metCerneriiDinBd.getVal005(), metCerneriiDinBd.getVal0());
        met_cernerii.setCantiateaRamasaPeSite1(valoriDinBD);
        //completam coloana3
View Full Code Here

        }
        return dateOut;
    }

    public boolean getSumeCalculate() {
        MetodaCernerii met = (MetodaCernerii) (getContext().getRequest().getSession().getAttribute("metC"));
        return met.getSumeCalculate();
    }
View Full Code Here

TOP

Related Classes of auxiliar.MetodaCernerii

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.