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

it.cnr.contab.config00.sto.bulk.DipartimentoBulk 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 .
 */

/*
* Creted by Generator 1.0
* Date 18/02/2005
*/
package it.cnr.contab.config00.sto.bulk;
import it.cnr.jada.action.ActionContext;
import it.cnr.jada.bulk.OggettoBulk;
import it.cnr.jada.util.action.CRUDBP;
public class DipartimentoBulk extends DipartimentoBase {
	private it.cnr.contab.anagraf00.core.bulk.TerzoBulk direttore = new it.cnr.contab.anagraf00.core.bulk.TerzoBulk();	
	public DipartimentoBulk() {
		super();
	}
	public DipartimentoBulk(java.lang.String cd_dipartimento) {
		super(cd_dipartimento);
	}
	/**
	 * @return
	 */
	public it.cnr.contab.anagraf00.core.bulk.TerzoBulk getDirettore() {
		return direttore;
	}

	/**
	 * @param bulk
	 */
	public void setDirettore(
		it.cnr.contab.anagraf00.core.bulk.TerzoBulk bulk) {
		direttore = bulk;
	}
	public java.lang.Integer getCd_terzo() {
		it.cnr.contab.anagraf00.core.bulk.TerzoBulk direttore = this.getDirettore();
		if (direttore == null)
			return null;
		return direttore.getCd_terzo();
	}
	/**
	 * Restituisce il valore della proprietà 'ds_responsabile'
	 *
	 * @return Il valore della proprietà 'ds_responsabile'
	 */
	public java.lang.String getDs_direttore() {
		if ( direttore != null && direttore.getAnagrafico() != null )
			return direttore.getAnagrafico().getCognome() + " " + direttore.getAnagrafico().getNome();
		return "";	
	}	
	public OggettoBulk initializeForInsert(it.cnr.jada.util.action.CRUDBP bp,it.cnr.jada.action.ActionContext context) {
		setDirettore(new it.cnr.contab.anagraf00.core.bulk.V_terzo_persona_fisicaBulk());
		return this;
	}	
	public OggettoBulk initializeForSearch(it.cnr.jada.util.action.CRUDBP bp,it.cnr.jada.action.ActionContext context) {
		setDirettore(new it.cnr.contab.anagraf00.core.bulk.V_terzo_persona_fisicaBulk());
		return this;
	}	
	/**
	 * Determina quando abilitare o meno nell'interfaccia utente il campo direttore
	 * @return boolean true quando il campo deve essere disabilitato
	 */

	public boolean isRODirettore() {
		return direttore == null || direttore.getCrudStatus() == NORMAL;
	}
	public void setCd_terzo(java.lang.Integer cd_direttore) {
		this.getDirettore().setCd_terzo(cd_direttore);
	}		
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy