Package daoI

Examples of daoI.IStantaDao


    @DefaultHandler
    public Resolution view() {
      
        metStantei = new MetodaStantei();
        IStantaDao stantaDao = new StantaDao();
        Stanta stantaAuxiliar = stantaDao.getStantaByIDProba(Integer.parseInt(getContext().getRequest().getSession().getAttribute("idProba").toString()));
        if (stantaAuxiliar != null) {
            metStantei.setDensitateSchelet(getDensitateSchelet());
            metStantei.setStanta(stantaAuxiliar.getStanta());
            metStantei.setSuprafataStanta(getSuprafataStanta(stantaAuxiliar));
            metStantei.setVolumStanta(getVolumStanta(stantaAuxiliar));
View Full Code Here


    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);
        } else {
            stanta.setIdStanta(stantaAuxiliar.getIdStanta());
            stantaDao.saveOrUpdate(stanta);
        }

        Stanta stantaDinBd = stantaDao.getStantaByIDProba(proba.getIdProba());
        metStantei = new MetodaStantei();
        metStantei.setDensitateSchelet(getDensitateSchelet());
        metStantei.setStanta(stantaDinBd.getStanta());
        metStantei.setSuprafataStanta(getSuprafataStanta(stantaDinBd));
        metStantei.setVolumStanta(getVolumStanta(stantaDinBd));
View Full Code Here

        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;
View Full Code Here

        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;
View Full Code Here

        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();
View Full Code Here

        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());
View Full Code Here

    public List<Float> formulaCompresiuneCol6(List<String> dataS, int idProba) {
        List<Float> dateOut = new ArrayList<Float>();
        List<Float> listaSarcini = new ArrayList<Float>();
        String sarcinaMinima = null;
        String[] sigma = new String[2];
        IStantaDao stantaDao = new StantaDao();
        Stanta stanta = stantaDao.getStantaByIDProba(idProba);
        float formula = 0, citire = 0, sarcinaAux1 = 0, sarcinaAux2 = 0, e0 = 0, e1 = 0, e2 = 0;

        Float m2MinusM3 = stanta.getM2() - stanta.getTara();
        ICompresibilitateDao compresibilitateDao = new CompresibilitateDao();
        List<Compresibilitate> compresibilitate = compresibilitateDao.geCompresibilitateByIDProba(idProba);
View Full Code Here

TOP

Related Classes of daoI.IStantaDao

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.