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

it.cnr.contab.doccont00.bp.CRUDImpegnoPGiroTroncoBP 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.doccont00.bp;

import it.cnr.contab.doccont00.core.bulk.*;
import it.cnr.jada.action.*;
import it.cnr.jada.bulk.*;
/**
 * Business Process che gestisce le attività di CRUD per l'entita' Impegno Partita di Giro Tronco.
 */
public class CRUDImpegnoPGiroTroncoBP extends CRUDImpegnoPGiroBP {
/**
 * CRUDImpegnoPGiroTroncoBP constructor comment.
 */
public CRUDImpegnoPGiroTroncoBP() {
	super();
}
/**
 * CRUDImpegnoPGiroTroncoBP constructor comment.
 * @param function java.lang.String
 */
public CRUDImpegnoPGiroTroncoBP(String function) {
	super(function);
}
public String getFormTitle() {
	StringBuffer title = new StringBuffer( "Gestione Annotazione di Spesa su Partita di Giro tronca");
	title.append(" - ");
	switch(getStatus()) {
		case INSERT:
			title.append("Inserimento");
			break;
		case EDIT:
			title.append("Modifica");
			break;
		case SEARCH:
			title.append("Ricerca");
			break;
		case VIEW:
			title.append("Visualizza");
			break;
	}
	return title.toString();
}
/**
  * Inizializzo l'oggetto bulk in fase di ricerca libera, impostando a true il flag
  * che identifica l'impegno su partita di giro "tronco"
  */
public OggettoBulk initializeModelForFreeSearch(ActionContext context,OggettoBulk bulk) throws BusinessProcessException 
{
	try 
	{
		ImpegnoPGiroBulk imp_pgiro = (ImpegnoPGiroBulk) super.initializeModelForFreeSearch( context, bulk );
		imp_pgiro.setFl_isTronco( true );
		return imp_pgiro;
	} catch(Exception e) {
		throw handleException(e);
	}
}
/**
  * Inizializzo l'oggetto bulk in fase di inserimento, impostando a true il flag
  * che identifica l'impegno su partita di giro "tronco"
  */
public OggettoBulk initializeModelForInsert(ActionContext context,OggettoBulk bulk) throws BusinessProcessException 
{
	try 
	{
		ImpegnoPGiroBulk imp_pgiro = (ImpegnoPGiroBulk) super.initializeModelForInsert( context, bulk );
		imp_pgiro.setFl_isTronco( true );
		return imp_pgiro;
	} catch(Exception e) {
		throw handleException(e);
	}
}
/**
  * Inizializzo l'oggetto bulk in fase di ricerca, impostando a true il flag
  * che identifica l'impegno su partita di giro "tronco"
  */
public OggettoBulk initializeModelForSearch(ActionContext context,OggettoBulk bulk) throws BusinessProcessException 
{
	try 
	{
		ImpegnoPGiroBulk imp_pgiro = (ImpegnoPGiroBulk) super.initializeModelForSearch( context, bulk );
		imp_pgiro.setFl_isTronco( true );
		return imp_pgiro;
	} catch(Exception e) {
		throw handleException(e);
	}
}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy