Examples of Bottle


Examples of com.ledruide.druidecave.dao.Bottle

    }


    public static Bottle getSessionBouteilleFromID() throws Exception {
        String recoltant_pk =  (String) Session.getInstance().getAttribute("BOUTEILLE_ID");
        Bottle bouteille = BottlePeer.findByPK(recoltant_pk);
        if (bouteille == null) {
            // On repart vers la page d'accueil !
            // ERREUR
            SwapFrame.getInstance().init(Home.class);
        }
View Full Code Here

Examples of com.ledruide.druidecave.dao.Bottle

        buttonCancel.setText(I18nScreens.getInstance().get(buttonCancel.getText()));
        buttonSave.setText(I18nScreens.getInstance().get(buttonSave.getText()));
    }

    public void initEach() throws Exception {
        Bottle bouteille =  BottlesProxy.getSessionBouteilleFromID();
        fieldName.setText(bouteille.getName());
        fieldYear.setText(bouteille.getYear());

        fieldDate.setText(DateOperator.transformDate(new Date(), 3));
        fieldNote.setText("");
        fieldComment.setText("");
View Full Code Here

Examples of com.ledruide.druidecave.dao.Bottle

        }
        else if (e.getSource().equals(buttonSave)) {
            try {
                // SI le commentaire est vide on enregistre rien
                if (!TextTools.isNullOrEmpty(fieldComment.getText())) {
                    Bottle bouteille =  BottlesProxy.getSessionBouteilleFromID();
                    Tasting degust = new Tasting();
                    degust.setBoltle_id(bouteille.getId());
                    degust.setDate(fieldDate.getText());
                    degust.setNote(fieldNote.getText());
                    degust.setComment(fieldComment.getText());
                    degust.setType("Simple");
                    degust.save();
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.