Package systole.domain.report.template

Examples of systole.domain.report.template.Comparative


        this.entityName = EntityDescriptions.OBSERVATION;
    }

    @Override
    protected void loadEntityOnForm() {
        Comparative comparativeToLoad = (Comparative) this.curretnEntity;
        JDialogComparatives formToLoad = (JDialogComparatives) this.editForm;

        formToLoad.getjTxtName().setText(comparativeToLoad.getName());
        formToLoad.getjTxtObservation().setText(comparativeToLoad.getDescription());
    }
View Full Code Here


        formToLoad.getjTxtObservation().setText(comparativeToLoad.getDescription());
    }

    @Override
    protected void loadEntityFromForm() {
        Comparative comparativeToLoad = (Comparative) this.curretnEntity;
        JDialogComparatives formToLoad = (JDialogComparatives) this.editForm;

        comparativeToLoad.setName(formToLoad.getjTxtName().getText());
        comparativeToLoad.setDescription(formToLoad.getjTxtObservation().getText());
    }
View Full Code Here

    }

    @Override
    protected String valid() {
        JDialogComparatives formToLoad = (JDialogComparatives) this.editForm;
        Comparative comparative = (Comparative) this.curretnEntity;

        if ((formToLoad.getjTxtName().getText() == null) || (formToLoad.getjTxtName().getText().isEmpty())) {
            return "Debe ingresar el nombre de la observación";
        }

        try {
            if (this.facadeDB.getComparativeBroker().existComparative(formToLoad.getjTxtName().getText(), comparative.getId())) {
                return "Ya existe una observación con el nombre ingresado";
            }
        } catch (ExceptionDAO ex) {
            this.facadeDB.refreshSession();
            return ex.getMessage();
View Full Code Here

        this.editForm.setIconImage(ImageUtils.buildImage("resources/icons/comparative/comparative16.png"));
    }

    @Override
    protected Object createEntity() throws ExceptionDAO {
       return new Comparative();
    }
View Full Code Here

TOP

Related Classes of systole.domain.report.template.Comparative

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.