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

it.cnr.contab.consultazioni.bp.ConsWorkpackageBP 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 .
 */

/*
 * Created on Jan 19, 2005
 *
 * To change the template for this generated file go to
 * Window>Preferences>Java>Code Generation>Code and Comments
 */
package it.cnr.contab.consultazioni.bp;

import it.cnr.contab.config00.bulk.Parametri_cnrBulk;
import it.cnr.contab.config00.latt.bulk.WorkpackageBulk;
import it.cnr.contab.pdg00.ejb.StampaSituazioneSinteticaGAEComponentSession;
import it.cnr.contab.utenze00.bp.CNRUserContext;
import it.cnr.contab.util.Utility;
import it.cnr.jada.action.ActionContext;
import it.cnr.jada.action.BusinessProcessException;
import it.cnr.jada.bulk.OggettoBulk;
import it.cnr.jada.persistency.sql.CompoundFindClause;
import it.cnr.jada.persistency.sql.SQLBuilder;
import it.cnr.jada.util.Config;
import it.cnr.jada.util.RemoteIterator;
import it.cnr.jada.util.action.CondizioneComplessaBulk;
import it.cnr.jada.util.action.SearchProvider;
import it.cnr.jada.util.action.SelectionListener;
import it.cnr.jada.util.action.SelezionatoreListaBP;
import it.cnr.jada.util.ejb.EJBCommonServices;
import it.cnr.jada.util.jsp.Button;

import java.util.*;

/**
 * @author mincarnato
 * 

* To change the template for this generated type comment go to * Window>Preferences>Java>Code Generation>Code and Comments */ public class ConsWorkpackageBP extends SelezionatoreListaBP implements SearchProvider { private String componentSessioneName; private Class bulkClass; private CompoundFindClause findclause; private CompoundFindClause baseclause; private int navPosition = 0; private boolean flNuovoPdg = false; private java.math.BigDecimal pg_stampa = null; private java.math.BigDecimal currentSequence = null; public ConsWorkpackageBP() { super(); } public ConsWorkpackageBP(String function) { super(function); } protected void init(it.cnr.jada.action.Config config, it.cnr.jada.action.ActionContext context) throws it.cnr.jada.action.BusinessProcessException { try { Parametri_cnrBulk parCnr = Utility.createParametriCnrComponentSession().getParametriCnr(context.getUserContext(), CNRUserContext.getEsercizio(context.getUserContext())); setFlNuovoPdg(parCnr.getFl_nuovo_pdg().booleanValue()); setMultiSelection(true); setPageSize(10); try { setBulkInfo(it.cnr.jada.bulk.BulkInfo.getBulkInfo( Class.forName(config.getInitParameter("bulkClassName")) )); OggettoBulk model = (OggettoBulk) getBulkInfo().getBulkClass().newInstance(); setModel(context, model); } catch (ClassNotFoundException | IllegalAccessException | InstantiationException e) { throw handleException(e); } setColumns(getBulkInfo().getColumnFieldPropertyDictionary()); super.init(config, context); openIterator(context); } catch (Throwable e) { throw new BusinessProcessException(e); } } public Button[] createToolbar() { List





© 2015 - 2025 Weber Informatics LLC | Privacy Policy