it.cnr.contab.doccont00.action.Stampa_scadenzario_accertamentiAction 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.action;
import it.cnr.contab.doccont00.core.bulk.Stampa_scadenzario_accertamentiBulk;
import it.cnr.contab.config00.sto.bulk.Unita_organizzativaBulk;
import it.cnr.jada.action.*;
import it.cnr.jada.util.action.FormField;
/**
* Insert the type's description here.
* Creation date: (07/04/2003 13.53.58)
* @author: Gennaro Borriello
*/
public class Stampa_scadenzario_accertamentiAction extends it.cnr.contab.reports.action.ParametricPrintAction {
/**
* Stampa_scadenzario_accertamentiAction constructor comment.
*/
public Stampa_scadenzario_accertamentiAction() {
super();
}
/**
* Richiamato quando si cerca un nuovo CDS Origine: resetta anche il SearchTool dell'Unità Organizzativa
*/
public Forward doBlankSearchFindCdsForPrint (ActionContext context, Stampa_scadenzario_accertamentiBulk stampa) {
try {
fillModel(context);
FormField field = getFormField(context, "main.findCdsForPrint");
stampa.setUoForPrint(new Unita_organizzativaBulk());
blankSearch(context, field, createEmptyModelForSearchTool(context, field));
return context.findDefaultForward();
} catch (Throwable t) {
return handleException(context, t);
}
}
/**
* Stampa_scadenzario_accertamentiAction constructor comment.
*/
public Forward doBringBackSearchFindCdsForPrint (ActionContext context, Stampa_scadenzario_accertamentiBulk stampa, it.cnr.contab.config00.sto.bulk.CdsBulk cds) {
try {
it.cnr.contab.config00.sto.bulk.CdsBulk old_cds = stampa.getCdsOrigineForPrint();
fillModel(context);
if (cds != null && old_cds!= null) {
stampa.setUoForPrint(new Unita_organizzativaBulk());
stampa.setCdsOrigineForPrint(cds);
}
return context.findDefaultForward();
} catch (Throwable t) {
return handleException(context, t);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy