Search in sources :

Example 21 with Button

use of it.cnr.jada.util.jsp.Button in project sigla-main by consiglionazionaledellericerche.

the class PrintSpoolerBP method writeToolbar.

public void writeToolbar(javax.servlet.jsp.PageContext pageContext) throws java.io.IOException, javax.servlet.ServletException {
    Button[] toolbar = getToolbar();
    Print_spoolerBulk print_spool = (Print_spoolerBulk) getFocusedElement();
    if (print_spool != null && Print_spoolerBulk.STATO_ESEGUITA.equalsIgnoreCase(print_spool.getStato()))
        toolbar[1].setHref("doPrint('" + JSPUtils.getAppRoot((HttpServletRequest) pageContext.getRequest()) + "offline_report/" + print_spool.getNomeFile() + "?pg=" + print_spool.getPgStampa().longValue() + "')");
    else
        toolbar[1].setHref(null);
    writeToolbar(pageContext.getOut(), toolbar);
}
Also used : Print_spoolerBulk(it.cnr.contab.reports.bulk.Print_spoolerBulk) Button(it.cnr.jada.util.jsp.Button)

Example 22 with Button

use of it.cnr.jada.util.jsp.Button in project sigla-main by consiglionazionaledellericerche.

the class PrintSpoolerBP method createToolbar.

public it.cnr.jada.util.jsp.Button[] createToolbar() {
    Button[] toolbar = new Button[4];
    int i = 0;
    toolbar[i++] = new it.cnr.jada.util.jsp.Button(it.cnr.jada.util.Config.getHandler().getProperties(getClass()), "Toolbar.refresh");
    toolbar[i++] = new it.cnr.jada.util.jsp.Button(it.cnr.jada.util.Config.getHandler().getProperties(getClass()), "Toolbar.print");
    toolbar[i++] = new it.cnr.jada.util.jsp.Button(it.cnr.jada.util.Config.getHandler().getProperties(getClass()), "Toolbar.delete");
    toolbar[i++] = new it.cnr.jada.util.jsp.Button(it.cnr.jada.util.Config.getHandler().getProperties(getClass()), "Toolbar.close");
    return toolbar;
}
Also used : Button(it.cnr.jada.util.jsp.Button) Button(it.cnr.jada.util.jsp.Button)

Example 23 with Button

use of it.cnr.jada.util.jsp.Button in project sigla-main by consiglionazionaledellericerche.

the class CRUDHelpBP method createToolbar.

@Override
protected Button[] createToolbar() {
    final List<Button> buttons = Arrays.stream(super.createToolbar()).collect(Collectors.toList());
    Button button = new Button(Config.getHandler().getProperties(getClass()), "CRUDToolbar.accessi");
    button.setSeparator(true);
    buttons.add(button);
    return buttons.toArray(new Button[buttons.size()]);
}
Also used : Button(it.cnr.jada.util.jsp.Button)

Example 24 with Button

use of it.cnr.jada.util.jsp.Button in project sigla-main by consiglionazionaledellericerche.

the class CRUDFatturaPassivaElettronicaBP method createToolbar.

@Override
protected Button[] createToolbar() {
    Button[] buttons = super.createToolbar();
    List<Button> toolbar = new ArrayList<Button>();
    toolbar.addAll(Arrays.asList(buttons));
    toolbar.add(new it.cnr.jada.util.jsp.Button(it.cnr.jada.util.Config.getHandler().getProperties(getClass()), "Toolbar.download"));
    toolbar.get(toolbar.size() - 1).setSeparator(true);
    toolbar.add(new it.cnr.jada.util.jsp.Button(it.cnr.jada.util.Config.getHandler().getProperties(getClass()), "Toolbar.downloadFatturaFirmata"));
    toolbar.add(new it.cnr.jada.util.jsp.Button(it.cnr.jada.util.Config.getHandler().getProperties(getClass()), "Toolbar.rifiuta"));
    toolbar.get(toolbar.size() - 1).setSeparator(true);
    toolbar.add(new it.cnr.jada.util.jsp.Button(it.cnr.jada.util.Config.getHandler().getProperties(getClass()), "Toolbar.rifiutaConPEC"));
    toolbar.add(new it.cnr.jada.util.jsp.Button(it.cnr.jada.util.Config.getHandler().getProperties(getClass()), "Toolbar.collegaNota"));
    toolbar.add(new it.cnr.jada.util.jsp.Button(it.cnr.jada.util.Config.getHandler().getProperties(getClass()), "Toolbar.mostraFatturaCollegata"));
    toolbar.add(new it.cnr.jada.util.jsp.Button(it.cnr.jada.util.Config.getHandler().getProperties(getClass()), "Toolbar.mostraNotaCollegata"));
    toolbar.add(new it.cnr.jada.util.jsp.Button(it.cnr.jada.util.Config.getHandler().getProperties(getClass()), "Toolbar.accetta"));
    toolbar.get(toolbar.size() - 1).setSeparator(true);
    toolbar.add(new it.cnr.jada.util.jsp.Button(it.cnr.jada.util.Config.getHandler().getProperties(getClass()), "Toolbar.visuallizza.fattura"));
    toolbar.get(toolbar.size() - 1).setSeparator(true);
    toolbar.add(new it.cnr.jada.util.jsp.Button(it.cnr.jada.util.Config.getHandler().getProperties(getClass()), "Toolbar.esito.rifiutato"));
    toolbar.add(new it.cnr.jada.util.jsp.Button(it.cnr.jada.util.Config.getHandler().getProperties(getClass()), "Toolbar.esito.accettato"));
    toolbar.get(toolbar.size() - 1).setSeparator(true);
    toolbar.add(new it.cnr.jada.util.jsp.Button(it.cnr.jada.util.Config.getHandler().getProperties(getClass()), "Toolbar.esito.reinvia"));
    return toolbar.toArray(new Button[toolbar.size()]);
}
Also used : Button(it.cnr.jada.util.jsp.Button) Button(it.cnr.jada.util.jsp.Button)

Example 25 with Button

use of it.cnr.jada.util.jsp.Button in project sigla-main by consiglionazionaledellericerche.

the class CRUDSelezionatoreDocumentiAmministrativiFatturazioneElettronicaBP method createToolbar.

public it.cnr.jada.util.jsp.Button[] createToolbar() {
    Button[] baseToolbar = super.createToolbar();
    Button[] toolbar = new Button[baseToolbar.length + 2];
    int i = 0;
    for (Button button : baseToolbar) {
        toolbar[i++] = button;
    }
    toolbar[i++] = new it.cnr.jada.util.jsp.Button(it.cnr.jada.util.Config.getHandler().getProperties(getClass()), "CRUDToolbar.predisponi");
    toolbar[i++] = new it.cnr.jada.util.jsp.Button(it.cnr.jada.util.Config.getHandler().getProperties(getClass()), "CRUDToolbar.FirmaInvia");
    return toolbar;
}
Also used : Button(it.cnr.jada.util.jsp.Button) Button(it.cnr.jada.util.jsp.Button)

Aggregations

Button (it.cnr.jada.util.jsp.Button)127 HttpServletRequest (javax.servlet.http.HttpServletRequest)11 HttpServletResponse (javax.servlet.http.HttpServletResponse)6 java.util (java.util)3 ArrayList (java.util.ArrayList)3 V_estrai_glaBulk (it.cnr.contab.docamm00.consultazioni.bulk.V_estrai_glaBulk)1 ArchiviaStampaPdgVariazioneBulk (it.cnr.contab.pdg00.bulk.ArchiviaStampaPdgVariazioneBulk)1 Ass_progetto_piaeco_voceBulk (it.cnr.contab.progettiric00.core.bulk.Ass_progetto_piaeco_voceBulk)1 Progetto_piano_economicoBulk (it.cnr.contab.progettiric00.core.bulk.Progetto_piano_economicoBulk)1 Progetto_rimodulazioneBulk (it.cnr.contab.progettiric00.core.bulk.Progetto_rimodulazioneBulk)1 Voce_piano_economico_prgBulk (it.cnr.contab.progettiric00.tabrif.bulk.Voce_piano_economico_prgBulk)1 Print_spoolerBulk (it.cnr.contab.reports.bulk.Print_spoolerBulk)1 UtilService (it.cnr.contab.spring.service.UtilService)1 it.cnr.contab.util (it.cnr.contab.util)1 HelpBulk (it.cnr.contab.util00.bulk.HelpBulk)1 ActionContext (it.cnr.jada.action.ActionContext)1 BusinessProcessException (it.cnr.jada.action.BusinessProcessException)1 HttpActionContext (it.cnr.jada.action.HttpActionContext)1 OggettoBulk (it.cnr.jada.bulk.OggettoBulk)1 ValidationException (it.cnr.jada.bulk.ValidationException)1