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);
}
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;
}
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()]);
}
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()]);
}
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;
}
Aggregations