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

it.cnr.contab.progettiric00.bp.ProgettoStampaBP 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 Apr 1, 2005
 *
 * To change the template for this generated file go to
 * Window>Preferences>Java>Code Generation>Code and Comments
 */
package it.cnr.contab.progettiric00.bp;

import it.cnr.contab.progettiric00.core.bulk.ProgettoBulk;
import it.cnr.contab.progettiric00.core.bulk.Stampa_anag_progettiVBulk;
import it.cnr.contab.utenze00.bp.CNRUserContext;
import it.cnr.jada.action.ActionContext;
import it.cnr.jada.action.BusinessProcessException;
import it.cnr.jada.action.Config;
import it.cnr.jada.util.action.AbstractPrintBP;

/**
 * @author mspasiano
 *
 * To change the template for this generated type comment go to
 * Window>Preferences>Java>Code Generation>Code and Comments
 */
public class ProgettoStampaBP extends it.cnr.contab.reports.bp.ParametricPrintBP implements IProgettoBP{
	/**
	 * ParametricPrintBP constructor comment.
	 */
	public ProgettoStampaBP() {
		super();
	}
	/**
	 * ParametricPrintBP constructor comment.
	 * @param function java.lang.String
	 */
	public ProgettoStampaBP(String function) {
		super(function);
	}
	/* (non-Javadoc)
	 * @see it.cnr.contab.progettiric00.bp.IProgettoBP#getLivelloProgetto()
	 */
	public int getLivelloProgetto() {
		return ProgettoBulk.LIVELLO_PROGETTO_SECONDO.intValue();
	}
	@Override
	protected void init(Config config, ActionContext context) throws BusinessProcessException {
		super.init(config, context);
		if(getModel() instanceof Stampa_anag_progettiVBulk){
			Stampa_anag_progettiVBulk stampa = (Stampa_anag_progettiVBulk)getModel();
			stampa.setEsercizioForPrint(CNRUserContext.getEsercizio(context.getUserContext()));
			stampa.setTipo_fase("E");
			setModel(context,stampa);
		}
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy