Examples of StandardValue


Examples of systole.domain.clinicalInformation.standardValues.StandardValue

    public StandardValue getStandardValueByParamType(StandardParams paramType) throws ExceptionDAO {
        try {
            this.logger.logDebug("getting standard value by paramType, " + paramType);
            Session currentSession = FacadeDB.getInstance().getCurrentSession();
            Criteria criteria = currentSession.createCriteria(StandardValue.class).add(Restrictions.eq("param", paramType)).setMaxResults(1);
            StandardValue standardValue = (StandardValue) criteria.uniqueResult();
            this.logger.logDebug("getting standard value successfully");
            return standardValue;
        } catch (HibernateException e) {
            this.logger.logError("error on get standard value by paramType, msg: " + e.getMessage());
            throw new ExceptionDAO("No se pudieron obtener los valores por defecto", e.fillInStackTrace());
View Full Code Here

Examples of systole.domain.clinicalInformation.standardValues.StandardValue

    }

    public void initSatandardValues() throws ExceptionDAO {

        for (StandardParams p : StandardParams.values()) {
            StandardValue standardValue = new StandardValue();
            standardValue.setParam(p);
            standardValue.setNormal(p.getNormal());
            standardValue.setMedium(p.getMedium());
            standardValue.setHigh(p.getHigh());
            this.insert(standardValue);
        }
    }
View Full Code Here

Examples of systole.domain.clinicalInformation.standardValues.StandardValue

    }

    @Action
    public void setNormalValueToLDL() {
        try {
            StandardValue st = FacadeDB.getInstance().getStandardValuesBroker().getStandardValueByParamType(StandardParams.LDL);
            this.jTxtLDL.setText(st != null ? st.getNormal().toString() : StandardParams.LDL.getNormal().toString());
        } catch (ExceptionDAO e) {
            this.jTxtLDL.setText(StandardParams.LDL.getNormal().toString());
            FacadeDB.getInstance().refreshSession();
        }
    }
View Full Code Here

Examples of systole.domain.clinicalInformation.standardValues.StandardValue

    }

    @Action
    public void setMediumValueToLDL() {
        try {
            StandardValue st = FacadeDB.getInstance().getStandardValuesBroker().getStandardValueByParamType(StandardParams.LDL);
            this.jTxtLDL.setText(st != null ? st.getMedium().toString() : StandardParams.LDL.getMedium().toString());
        } catch (ExceptionDAO edao) {
            this.jTxtLDL.setText(StandardParams.LDL.getMedium().toString());
            FacadeDB.getInstance().refreshSession();
        }
    }
View Full Code Here

Examples of systole.domain.clinicalInformation.standardValues.StandardValue

    }

    @Action
    public void setHighValueToLDL() {
        try {
            StandardValue st = FacadeDB.getInstance().getStandardValuesBroker().getStandardValueByParamType(StandardParams.LDL);
            this.jTxtLDL.setText(st != null ? st.getHigh().toString() : StandardParams.LDL.getHigh().toString());
        } catch (ExceptionDAO edao) {
            this.jTxtLDL.setText(StandardParams.LDL.getHigh().toString());
            FacadeDB.getInstance().refreshSession();
        }
    }
View Full Code Here

Examples of systole.domain.clinicalInformation.standardValues.StandardValue

    }

    @Action
    public void setNormalValueToHDL() {
        try {
            StandardValue st = FacadeDB.getInstance().getStandardValuesBroker().getStandardValueByParamType(StandardParams.HDL);
            this.jTxtHDL.setText(st != null ? st.getNormal().toString() : StandardParams.HDL.getNormal().toString());
        } catch (ExceptionDAO e) {
            this.jTxtHDL.setText(StandardParams.HDL.getNormal().toString());
            FacadeDB.getInstance().refreshSession();
        }
    }
View Full Code Here

Examples of systole.domain.clinicalInformation.standardValues.StandardValue

    }

    @Action
    public void setMediumValueToHDL() {
        try {
            StandardValue st = FacadeDB.getInstance().getStandardValuesBroker().getStandardValueByParamType(StandardParams.HDL);
            this.jTxtHDL.setText(st != null ? st.getMedium().toString() : StandardParams.HDL.getMedium().toString());
        } catch (ExceptionDAO edao) {
            this.jTxtHDL.setText(StandardParams.HDL.getMedium().toString());
            FacadeDB.getInstance().refreshSession();
        }
    }
View Full Code Here

Examples of systole.domain.clinicalInformation.standardValues.StandardValue

    }

    @Action
    public void setHighValueToHDL() {
        try {
            StandardValue st = FacadeDB.getInstance().getStandardValuesBroker().getStandardValueByParamType(StandardParams.HDL);
            this.jTxtHDL.setText(st != null ? st.getHigh().toString() : StandardParams.HDL.getHigh().toString());
        } catch (ExceptionDAO edao) {
            this.jTxtHDL.setText(StandardParams.HDL.getHigh().toString());
            FacadeDB.getInstance().refreshSession();
        }
    }
View Full Code Here

Examples of systole.domain.clinicalInformation.standardValues.StandardValue

    }

    @Action
    public void setNormalValueToCTotal() {
        try {
            StandardValue st = FacadeDB.getInstance().getStandardValuesBroker().getStandardValueByParamType(StandardParams.TOTAL);
            this.jTxtTotal.setText(st != null ? st.getNormal().toString() : StandardParams.TOTAL.getNormal().toString());
        } catch (ExceptionDAO e) {
            this.jTxtTotal.setText(StandardParams.TOTAL.getNormal().toString());
            FacadeDB.getInstance().refreshSession();
        }
    }
View Full Code Here

Examples of systole.domain.clinicalInformation.standardValues.StandardValue

    }

    @Action
    public void setMediumValueToCTotal() {
        try {
            StandardValue st = FacadeDB.getInstance().getStandardValuesBroker().getStandardValueByParamType(StandardParams.TOTAL);
            this.jTxtTotal.setText(st != null ? st.getMedium().toString() : StandardParams.TOTAL.getMedium().toString());
        } catch (ExceptionDAO edao) {
            this.jTxtTotal.setText(StandardParams.TOTAL.getMedium().toString());
            FacadeDB.getInstance().refreshSession();
        }
    }
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.