All Downloads are FREE. Search and download functionalities are using the official Maven repository.

it.cnr.contab.docamm00.actions.CRUDValutaStranieraAction Maven / Gradle / Ivy

/*
 * Copyright (C) 2019  Consiglio Nazionale delle Ricerche
 *
 *     This program is free software: you can redistribute it and/or modify
 *     it under the terms of the GNU Affero General Public License as
 *     published by the Free Software Foundation, either version 3 of the
 *     License, or (at your option) any later version.
 *
 *     This program is distributed in the hope that it will be useful,
 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *     GNU Affero General Public License for more details.
 *
 *     You should have received a copy of the GNU Affero General Public License
 *     along with this program.  If not, see .
 */

package it.cnr.contab.docamm00.actions;
import it.cnr.contab.doccont00.core.bulk.Accertamento_scadenzarioBulk;
/**
 * Insert the type's description here.
 * Creation date: (9/5/2001 5:02:18 PM)
 * @author: Ardire Alfonso
 */
import it.cnr.contab.docamm00.docs.bulk.*;
import it.cnr.contab.anagraf00.core.bulk.*;
import it.cnr.contab.docamm00.tabrif.bulk.*;
import it.cnr.contab.docamm00.bp.*;
import it.cnr.contab.docamm00.ejb.*;
import it.cnr.jada.action.*;
import it.cnr.jada.util.action.BulkBP;


public class CRUDValutaStranieraAction extends it.cnr.jada.util.action.CRUDAction {
	/**
 * CRUDFatturaAttivaAction constructor comment.
 */
public CRUDValutaStranieraAction() {
	super();
}

/**
 * Gestisce un HookForward di ritorno da un risultato di una ricerca (SelezionatoreBP)
 */
public Forward doRiportaSelezione(ActionContext context)
    throws java.rmi.RemoteException {

	return super.doRiportaSelezione(context);
	
    //try {
        //HookForward caller = (HookForward) context.getCaller();
        //DivisaBulk selezione = (DivisaBulk) caller.getParameter("focusedElement");
        //if (selezione != null) {
            //String cd_euro = null;
            //try {
                //cd_euro =
                    //(
                        //(it.cnr.contab.config00.ejb.Configurazione_cnrComponentSession) it
                            //.ibm
                            //.bframe
                            //.util
                            //.ejb
                            //.EJBCommonServices
                            //.createEJB(
                                //"CNRCONFIG00_EJB_Configurazione_cnrComponentSession",
                                //it.cnr.contab.config00.ejb.Configurazione_cnrComponentSession.class))
                            //.getVal01(
                        //context.getUserContext(),
                        //new Integer(0),
                        //"*",
                        //"CD_DIVISA",
                        //"EURO");
            //} catch (javax.ejb.EJBException e) {
                //return handleException(context,e);
            //} catch (java.rmi.RemoteException e) {
                //return handleException(context,e);
            //}
            //if (selezione.getCd_divisa().equals(cd_euro))
                //throw new it.cnr.jada.comp.ApplicationException(
                    //"Non e' possibile modificare la valuta di default");
            //getBusinessProcess(context).edit(context, selezione);
         //}
        //return context.findDefaultForward();
    //} catch (Exception e) {
        //return handleException(context, e);
    //}

}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy