Package bo

Examples of bo.Compresibilitate


    Session session = null;

    public Compresibilitate getCompresibilitateByID(int metCID) {

        Compresibilitate metC = null;
        List<Compresibilitate> metCList = null;

        try {
            this.session = (Session) HibernateUtil.getSessionFactory().getCurrentSession();
            org.hibernate.Transaction tx = session.beginTransaction();
View Full Code Here


    }

    public Compresibilitate geCompresibilitateByIDProbaAndSarcina(int probaID, String sarcina) {

        List<Compresibilitate> compList = null;
        Compresibilitate comp = null;
        try {
            session = (Session) HibernateUtil.getSessionFactory().getCurrentSession();
            org.hibernate.Transaction tx = session.beginTransaction();
            Query q = session.createQuery("from Compresibilitate as lang where lang.proba.idProba='" + probaID + "'and lang.sarcina='" + sarcina + "' order by ora desc limit 1");
            compList = (List<Compresibilitate>) q.list();
View Full Code Here

        List<Float> dateOut = new ArrayList<Float>();
        List<Float> citire = new ArrayList<Float>();
        float formula = 0;
        String[] sigma = new String[2];
        ICompresibilitateDao compresibilitateDao = new CompresibilitateDao();
        Compresibilitate compresibilitate = null;
        IStantaDao stantaDao = new StantaDao();
        Stanta stanta = stantaDao.getStantaByIDProba(idProba);
        for (int i = 0; i < dataS.size(); i++) {
            sigma = dataS.get(i).split("-");
            compresibilitate = compresibilitateDao.geCompresibilitateByIDProbaAndSarcina(idProba, sigma[0]);
            citire.add(compresibilitate.getCitire());
            formula = citire.get(i) / stanta.getInaltimeStanta() / 10;
            dateOut.add((Float) zecimale(formula, 3));
        }

        return dateOut;
View Full Code Here

        List<Float> dateOut = new ArrayList<Float>();
        List<Float> citire = new ArrayList<Float>();
        float formula = 0;
        String[] sigma = new String[2];
        ICompresibilitateDao compresibilitateDao = new CompresibilitateDao();
        Compresibilitate compresibilitate = null;
        IStantaDao stantaDao = new StantaDao();
        Stanta stanta = stantaDao.getStantaByIDProba(idProba);
        for (int i = 0; i < dataS.size(); i++) {
            sigma = dataS.get(i).split("-");
            compresibilitate = compresibilitateDao.geCompresibilitateByIDProbaAndSarcina(idProba, sigma[1]);
            citire.add(compresibilitate.getCitire());
            formula = citire.get(i) / stanta.getInaltimeStanta() / 10;
            dateOut.add((Float) zecimale(formula, 3));
        }

        return dateOut;
View Full Code Here

        List<Float> dateOut = new ArrayList<Float>();
        List<Float> citire = new ArrayList<Float>();
        float formula = 0;
        String[] sigma = new String[2];
        ICompresibilitateDao compresibilitateDao = new CompresibilitateDao();
        Compresibilitate compresibilitate = null;
        IStantaDao stantaDao = new StantaDao();
        Stanta stanta = stantaDao.getStantaByIDProba(idProba);
        for (int i = 0; i < dataS.size(); i++) {
            sigma = dataS.get(i).split("-");
            compresibilitate = compresibilitateDao.geCompresibilitateByIDProbaAndSarcina(idProba, sigma[0]);
            citire.add(compresibilitate.getCitire());
            Float m2MinusM3 = stanta.getM2() - stanta.getTara();
            formula = (getSuprafataStanta(stanta) * getDensitateSchelet() / m2MinusM3) * (stanta.getInaltimeStanta() - citire.get(i) / 1000) - 1;
            dateOut.add((Float) zecimale(formula, 3));
        }

View Full Code Here

        List<Float> dateOut = new ArrayList<Float>();
        List<Float> citire = new ArrayList<Float>();
        float formula = 0;
        String[] sigma = new String[2];
        ICompresibilitateDao compresibilitateDao = new CompresibilitateDao();
        Compresibilitate compresibilitate = null;
        IStantaDao stantaDao = new StantaDao();
        Stanta stanta = stantaDao.getStantaByIDProba(idProba);
        Float m2MinusM3 = stanta.getM2() - stanta.getTara();
        for (int i = 0; i < dataS.size(); i++) {
            sigma = dataS.get(i).split("-");
            compresibilitate = compresibilitateDao.geCompresibilitateByIDProbaAndSarcina(idProba, sigma[1]);
            citire.add(compresibilitate.getCitire());
            formula = (getSuprafataStanta(stanta) * getDensitateSchelet() / m2MinusM3) * (stanta.getInaltimeStanta() - citire.get(i) / 1000) - 1;
            dateOut.add((Float) zecimale(formula, 3));
        }

        return dateOut;
View Full Code Here

        Iterator it = compresibilitate.iterator();
        while (it.hasNext()) {
            listaSarcini.add(((Compresibilitate) it.next()).getSarcina());
        }
        sarcinaMinima = Collections.min(listaSarcini).toString();
        Compresibilitate compresibilitateCuSarcinaMinima = compresibilitateDao.geCompresibilitateByIDProbaAndSarcina(idProba, sarcinaMinima);
        citire = compresibilitateCuSarcinaMinima.getCitire();

        e0 = getSuprafataStanta(stanta) * getDensitateSchelet() / m2MinusM3 * (stanta.getInaltimeStanta() - citire / 1000) - 1;

        for (int i = 0; i < dataS.size(); i++) {
            sigma = dataS.get(i).split("-");
View Full Code Here

                setCampuriNecompletate(true);
                return new ForwardResolution("/WEB-INF/jsp/compresibilitate.jsp");
            } else {
                Date data = Date.valueOf(getAn_nou() + "-" + getLuna_nou() + "-" + getZi_nou());
                Time timp = new Time(Integer.parseInt(getOra_nou()), Integer.parseInt(getMinut_nou()), 0);
                Compresibilitate comp = new Compresibilitate(proba, data, timp, Float.parseFloat(getSarcina_nou()), Float.parseFloat(getCitire_nou()));
                compDao.saveOrUpdate(comp);
            }
        } else if (getButonRadio().equals("2")) {
            if ((getOra_modif() == null) || (getMinut_modif() == null) || (getSarcinaFilter() == null) || (getCitire_modif() == null) || (getDataFilter() == null)) {
                setCampuriNecompletate(true);
                return new ForwardResolution("/WEB-INF/jsp/compresibilitate.jsp");
            } else {
                Date data = Date.valueOf(getDataFilter());
                Time timp = new Time(Integer.parseInt(getOra_modif()), Integer.parseInt(getMinut_modif()), 0);
                float sarcina=compDao.getCompresibilitateByID(Integer.parseInt(getSarcinaFilter())).getSarcina();
                Compresibilitate comp = new Compresibilitate(proba, data, timp, sarcina, Float.parseFloat(getCitire_modif()));
                compDao.saveOrUpdate(comp);
            }
        }
        getContext().getRequest().getSession(true).setAttribute("compresibilitate", getTabel(proba.getIdProba()));
        return new ForwardResolution("/WEB-INF/jsp/compresibilitate.jsp");
View Full Code Here

TOP

Related Classes of bo.Compresibilitate

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.