Search in sources :

Example 21 with BusinessProcessException

use of it.cnr.jada.action.BusinessProcessException in project sigla-main by consiglionazionaledellericerche.

the class ConsConfrontoEntSpeTotBP method initVariabili.

public void initVariabili(ActionContext context, String pathProvenienza, String livello_destinazione) throws BusinessProcessException {
    try {
        if ((pathProvenienza == null) && (livello_destinazione.equals(this.LIV_BASE))) {
            setPathConsultazione(this.LIV_BASE);
            setLivelloConsultazione(this.LIV_BASE);
        }
        /*	if ((pathProvenienza==LIV_BASE) && (livello_destinazione.equals(this.LIV_BASEMOD))) {
		   				setPathConsultazione(this.LIV_BASEMOD);
		   				setLivelloConsultazione(this.LIV_BASEMOD);
		   			}
			   		if (pathConsultazione.equals(this.LIV_BASEMOD) && (livello_destinazione.equals(this.LIV_BASEMODGAE))){
					 		setPathConsultazione(this.LIV_BASEMODGAE);
							setLivelloConsultazione(this.LIV_BASEMODGAE);
					}
			   		if (pathConsultazione.equals(this.LIV_BASEMODGAE) && (livello_destinazione.equals(this.LIV_BASEMODGAEVOCE))){
			   			setPathConsultazione(this.LIV_BASEMODGAEVOCE);
						setLivelloConsultazione(this.LIV_BASEMODGAEVOCE);
			   		}*/
        if (pathProvenienza != null) {
            setPathConsultazione(pathProvenienza.concat(livello_destinazione));
            setLivelloConsultazione(livello_destinazione);
        }
        if (livello_destinazione.equals(this.LIV_BASEMODGAEVOCE))
            setMultiSelection(false);
        setSearchResultColumnSet(getPathConsultazione());
        setFreeSearchSet(getPathConsultazione());
        setTitle();
    } catch (Throwable e) {
        throw new BusinessProcessException(e);
    }
}
Also used : BusinessProcessException(it.cnr.jada.action.BusinessProcessException)

Example 22 with BusinessProcessException

use of it.cnr.jada.action.BusinessProcessException in project sigla-main by consiglionazionaledellericerche.

the class ConsConfrontoEntSpeTotBP method getSelezione.

public CompoundFindClause getSelezione(ActionContext context) throws BusinessProcessException {
    try {
        CompoundFindClause clauses = null;
        for (Iterator i = getSelectedElements(context).iterator(); i.hasNext(); ) {
            V_cons_confronto_ent_spe_totBulk wpb = (V_cons_confronto_ent_spe_totBulk) i.next();
            CompoundFindClause parzclause = new CompoundFindClause();
            parzclause.addClause("AND", "cds", SQLBuilder.EQUALS, wpb.getCds());
            // parzclause.addClause("AND","cd_unita_organizzativa",SQLBuilder.EQUALS,wpb.getCd_centro_responsabilita());
            parzclause.addClause("AND", "esercizio", SQLBuilder.EQUALS, wpb.getEsercizio());
            if (isPresenteMOD())
                parzclause.addClause("AND", "cd_modulo", SQLBuilder.EQUALS, wpb.getCd_modulo());
            if (isPresenteGAE())
                parzclause.addClause("AND", "cd_linea_attivita", SQLBuilder.EQUALS, wpb.getCd_linea_attivita());
            if (isPresenteVOCE()) {
                parzclause.addClause("AND", "cd_elemento_voce", SQLBuilder.EQUALS, wpb.getCd_elemento_voce());
            }
            clauses = clauses.or(clauses, parzclause);
        }
        return clauses;
    } catch (Throwable e) {
        throw new BusinessProcessException(e);
    }
}
Also used : Iterator(java.util.Iterator) RemoteIterator(it.cnr.jada.util.RemoteIterator) V_cons_confronto_ent_spe_totBulk(it.cnr.contab.doccont00.consultazioni.bulk.V_cons_confronto_ent_spe_totBulk) BusinessProcessException(it.cnr.jada.action.BusinessProcessException)

Example 23 with BusinessProcessException

use of it.cnr.jada.action.BusinessProcessException in project sigla-main by consiglionazionaledellericerche.

the class ConsConfrontoEntSpeTotBP method search.

public RemoteIterator search(ActionContext context, CompoundFindClause compoundfindclause, OggettoBulk oggettobulk) throws BusinessProcessException {
    try {
        setFindclause(compoundfindclause);
        CompoundFindClause clause = new CompoundFindClause(getBaseclause(), compoundfindclause);
        return createConsConfrontoEntSpeTotComponentSession().findConsultazioneModulo(context.getUserContext(), getPathConsultazione(), getLivelloConsultazione(), getBaseclause(), compoundfindclause);
    } catch (Throwable e) {
        throw new BusinessProcessException(e);
    }
}
Also used : BusinessProcessException(it.cnr.jada.action.BusinessProcessException)

Example 24 with BusinessProcessException

use of it.cnr.jada.action.BusinessProcessException in project sigla-main by consiglionazionaledellericerche.

the class ConsGAEComResSintBP method init.

protected void init(it.cnr.jada.action.Config config, it.cnr.jada.action.ActionContext context) throws it.cnr.jada.action.BusinessProcessException {
    try {
        super.init(config, context);
        setMultiSelection(true);
        setPageSize(20);
        setBulkInfo(it.cnr.jada.bulk.BulkInfo.getBulkInfo(WorkpackageBulk.class));
        Parametri_cnrBulk parCnr = Utility.createParametriCnrComponentSession().getParametriCnr(context.getUserContext(), CNRUserContext.getEsercizio(context.getUserContext()));
        setFlNuovoPdg(parCnr.getFl_nuovo_pdg().booleanValue());
        setColumns(getBulkInfo().getColumnFieldPropertyDictionary(this.isFlNuovoPdg() ? "prg_liv2" : null));
    } catch (ComponentException e) {
        throw new BusinessProcessException(e);
    } catch (RemoteException e) {
        throw new BusinessProcessException(e);
    }
}
Also used : ComponentException(it.cnr.jada.comp.ComponentException) RemoteException(java.rmi.RemoteException) WorkpackageBulk(it.cnr.contab.config00.latt.bulk.WorkpackageBulk) Parametri_cnrBulk(it.cnr.contab.config00.bulk.Parametri_cnrBulk) BusinessProcessException(it.cnr.jada.action.BusinessProcessException)

Example 25 with BusinessProcessException

use of it.cnr.jada.action.BusinessProcessException in project sigla-main by consiglionazionaledellericerche.

the class ConsGAEComResSintBP method getSelezione.

/**
 * Ritorna la CompoundFindClause ottenuta in base alla selezione effettuata
 *
 * @param field il campo da aggiornare
 * @param label il nuovo valore da sostituire al vecchio
 */
public CompoundFindClause getSelezione(ActionContext context, String livello_destinazione) throws it.cnr.jada.action.BusinessProcessException {
    try {
        CompoundFindClause clauses = new CompoundFindClause();
        Integer esercizio = it.cnr.contab.utenze00.bp.CNRUserContext.getEsercizio(context.getUserContext());
        for (Iterator i = getSelectedElements(context).iterator(); i.hasNext(); ) {
            WorkpackageBulk bulk = (WorkpackageBulk) i.next();
            CompoundFindClause parzclause = new CompoundFindClause();
            if (livello_destinazione.compareTo(DETT) == 0) {
                parzclause.addClause("AND", "cdr", SQLBuilder.EQUALS, bulk.getCd_centro_responsabilita());
                parzclause.addClause("AND", "lda", SQLBuilder.EQUALS, bulk.getCd_linea_attivita());
            }
            clauses.addChild(parzclause);
            parzclause.setLogicalOperator("OR");
        }
        CompoundFindClause clausola_es = new CompoundFindClause();
        clausola_es.addClause("AND", "esercizio", SQLBuilder.EQUALS, esercizio);
        clauses = clauses.and(clauses, clausola_es);
        return clauses;
    } catch (Throwable e) {
        throw new BusinessProcessException(e);
    }
}
Also used : CompoundFindClause(it.cnr.jada.persistency.sql.CompoundFindClause) Iterator(java.util.Iterator) RemoteIterator(it.cnr.jada.util.RemoteIterator) WorkpackageBulk(it.cnr.contab.config00.latt.bulk.WorkpackageBulk) BusinessProcessException(it.cnr.jada.action.BusinessProcessException)

Aggregations

BusinessProcessException (it.cnr.jada.action.BusinessProcessException)461 ComponentException (it.cnr.jada.comp.ComponentException)155 RemoteException (java.rmi.RemoteException)155 CompoundFindClause (it.cnr.jada.persistency.sql.CompoundFindClause)88 ValidationException (it.cnr.jada.bulk.ValidationException)87 ApplicationException (it.cnr.jada.comp.ApplicationException)69 Iterator (java.util.Iterator)64 RemoteIterator (it.cnr.jada.util.RemoteIterator)63 OggettoBulk (it.cnr.jada.bulk.OggettoBulk)48 DetailedRuntimeException (it.cnr.jada.DetailedRuntimeException)41 ActionContext (it.cnr.jada.action.ActionContext)34 ServletException (javax.servlet.ServletException)34 BigDecimal (java.math.BigDecimal)32 Parametri_cnrBulk (it.cnr.contab.config00.bulk.Parametri_cnrBulk)31 EJBException (javax.ejb.EJBException)29 FillException (it.cnr.jada.bulk.FillException)28 PersistencyException (it.cnr.jada.persistency.PersistencyException)26 Unita_organizzativaBulk (it.cnr.contab.config00.sto.bulk.Unita_organizzativaBulk)24 BulkList (it.cnr.jada.bulk.BulkList)23 IOException (java.io.IOException)23