Package systole.domain.report.template

Examples of systole.domain.report.template.Conclusion


        this.newDescription = "Nueva";
    }

    @Override
    protected void loadEntityOnForm() {
        Conclusion conclusionToLoad = (Conclusion) this.curretnEntity;
        JDialogConclusion formToLoad = (JDialogConclusion) this.editForm;

        formToLoad.getjEdtName().setText(conclusionToLoad.getName());
        formToLoad.getjEdtConclusion().setText(conclusionToLoad.getText());
        formToLoad.getjChkFemale().setSelected(conclusionToLoad.isFemale());
        formToLoad.getjChkMale().setSelected(conclusionToLoad.isMale());
    }
View Full Code Here


        formToLoad.getjChkMale().setSelected(conclusionToLoad.isMale());
    }

    @Override
    protected void loadEntityFromForm() {
        Conclusion conclusionToLoad = (Conclusion) this.curretnEntity;
        JDialogConclusion formToLoad = (JDialogConclusion) this.editForm;

        conclusionToLoad.setName(formToLoad.getjEdtName().getText());
        conclusionToLoad.setText(formToLoad.getjEdtConclusion().getText());
        conclusionToLoad.setFemale(formToLoad.getjChkFemale().isSelected());
        conclusionToLoad.setMale(formToLoad.getjChkMale().isSelected());
    }
View Full Code Here

    }

    @Override
    protected String valid() {
        JDialogConclusion formToLoad = (JDialogConclusion) this.editForm;
        Conclusion conclusion = (Conclusion) this.curretnEntity;
        if ((formToLoad.getjEdtName().getText() == null) || (formToLoad.getjEdtName().getText().isEmpty())) {
            return "Debe ingresar el nombre de la conclusión";
        }

        try {
            if (this.facadeDB.getConclusionBroker().existConclusion(formToLoad.getjEdtName().getText(), conclusion.getId())) {
                return "Ya existe una conclusió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/conclusion/conclusion16.png"));
    }

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

    }

    public void add() {
        JDialogConclusion dialogConclusion = (JDialogConclusion) this.form;
        if ((dialogConclusion.getjCmbConclusions().getSelectedItem() != null) && (dialogConclusion.getjCmbConclusions().getSelectedIndex() >= 0)) {
            Conclusion conclusion = (Conclusion) dialogConclusion.getjCmbConclusions().getSelectedItem();
            dialogConclusion.getjTxtConclusion().append(conclusion.getText());
        }
    }
View Full Code Here

TOP

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

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.