Package bo

Examples of bo.Foraj


        return new ForwardResolution("/WEB-INF/jsp/adaugaForaj.jsp");
    }

    public Resolution salveaza() {
        IAmplasamentDao amplasamentDao = new AmplasamentDao();
        Foraj foraj = new Foraj();
        try {
            float c = Float.valueOf(cota.trim()).floatValue();
            foraj.setCota(c);
            foraj.setNumeForaj(nume);
            try {
                int amplasamentID = Integer.parseInt(amplasamentFilter);
                Amplasament amplasament = amplasamentDao.getAmplasamentByID(amplasamentID);
                foraj.setAmplasament(amplasament);
                IForajDao forajDao = new ForajDao();
                forajDao.saveOrUpdate(foraj);
                setIdAmplasamentCurent(amplasamentID);
                getContext().getRequest().getSession(true).setAttribute("idAmplasamentCurent", amplasamentID);
            } catch (NumberFormatException nfe) {
View Full Code Here


    }

    public String getForajSelectat() {
        if (getIdForajCurent() > 0) {
            ForajDao forajDao = new ForajDao();
            Foraj f = forajDao.getForajByID(getIdForajCurent());
            return f.getNumeForaj();
        }
        return "";
    }
View Full Code Here

            try {
                Object f = getContext().getRequest().getSession(true).getAttribute("idForajCurent");
                if (f != null) {
                    int fI = Integer.parseInt(f.toString());
                    if (fI > 0) {
                        Foraj foraj = forajDao.getForajByID(fI);
                        strat.setForaj(foraj);
                        IStratDao stratDao = new StratDao();
                        stratDao.saveOrUpdate(strat);
                    }
                }
View Full Code Here

        }
        return foraj;
    }

    public Foraj getForajByID(int forajID) {
        Foraj foraj = null;
        try {
            this.session = (Session) HibernateUtil.getSessionFactory().getCurrentSession();
            org.hibernate.Transaction tx = session.beginTransaction();
            foraj = (Foraj) session.get(Foraj.class, forajID);
        } catch (Exception e) {
View Full Code Here

            try {
                Object f = getContext().getRequest().getSession(true).getAttribute("idForajCurent");
                if (f != null) {
                    int fI = Integer.parseInt(f.toString());
                    if (fI > 0) {
                        Foraj foraj = forajDao.getForajByID(fI);
                        proba.setForaj(foraj);
                        IProbaDao probaDao = new ProbaDao();
                        probaDao.saveOrUpdate(proba);
                    }
                }
View Full Code Here

    }

    public String getForajSelectat() {
        if (getIdForajCurent() > 0) {
            ForajDao forajDao = new ForajDao();
            Foraj f = forajDao.getForajByID(getIdForajCurent());
            if (f != null) {
                return f.getNumeForaj();
            }
        }
        return "";
    }
View Full Code Here

TOP

Related Classes of bo.Foraj

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.