use of it.cnr.jada.util.jsp.Button in project sigla-main by consiglionazionaledellericerche.
the class CRUDDistintaCassiereBP method writeToolbar.
public void writeToolbar(PageContext pagecontext) throws IOException, ServletException {
Button[] toolbar = getToolbar();
if (!this.getParametriCnr().getFl_tesoreria_unica().booleanValue()) {
if (getFile() != null) {
HttpServletResponse httpservletresp = (HttpServletResponse) pagecontext.getResponse();
HttpServletRequest httpservletrequest = (HttpServletRequest) pagecontext.getRequest();
StringBuffer stringbuffer = new StringBuffer();
stringbuffer.append(pagecontext.getRequest().getScheme());
stringbuffer.append("://");
stringbuffer.append(pagecontext.getRequest().getServerName());
stringbuffer.append(':');
stringbuffer.append(pagecontext.getRequest().getServerPort());
stringbuffer.append(JSPUtils.getAppRoot(httpservletrequest));
toolbar[10].setHref("javascript:doPrint('" + stringbuffer + getFile() + "')");
}
}
super.writeToolbar(pagecontext);
}
use of it.cnr.jada.util.jsp.Button in project sigla-main by consiglionazionaledellericerche.
the class CRUDDistintaCassiereBP method createToolbar.
protected it.cnr.jada.util.jsp.Button[] createToolbar() {
Button[] toolbar = super.createToolbar();
List<Button> newToolbarTesoreria = new ArrayList<Button>();
newToolbarTesoreria.addAll(Arrays.asList(toolbar));
if (isAttivoSiopeplus()) {
newToolbarTesoreria.add(new it.cnr.jada.util.jsp.Button(it.cnr.jada.util.Config.getHandler().getProperties(getClass()), "CRUDToolbar.salvaDef"));
newToolbarTesoreria.add(new it.cnr.jada.util.jsp.Button(it.cnr.jada.util.Config.getHandler().getProperties(getClass()), "CRUDToolbar.uploadsiopeplus"));
newToolbarTesoreria.add(new it.cnr.jada.util.jsp.Button(it.cnr.jada.util.Config.getHandler().getProperties(getClass()), "CRUDToolbar.inviaPEC"));
return newToolbarTesoreria.toArray(new it.cnr.jada.util.jsp.Button[newToolbarTesoreria.size()]);
} else {
if (this.getParametriCnr().getFl_tesoreria_unica().booleanValue() && !isFlusso() && !isAnnulli()) {
newToolbarTesoreria.add(new it.cnr.jada.util.jsp.Button(it.cnr.jada.util.Config.getHandler().getProperties(getClass()), "CRUDToolbar.stampaProv"));
newToolbarTesoreria.add(new it.cnr.jada.util.jsp.Button(it.cnr.jada.util.Config.getHandler().getProperties(getClass()), "CRUDToolbar.firma"));
newToolbarTesoreria.add(new it.cnr.jada.util.jsp.Button(it.cnr.jada.util.Config.getHandler().getProperties(getClass()), "CRUDToolbar.downloadFirmato"));
return newToolbarTesoreria.toArray(new it.cnr.jada.util.jsp.Button[newToolbarTesoreria.size()]);
}
if (this.getParametriCnr().getFl_tesoreria_unica().booleanValue() && (isFlusso() || isAnnulli())) {
newToolbarTesoreria.add(new it.cnr.jada.util.jsp.Button(it.cnr.jada.util.Config.getHandler().getProperties(getClass()), "CRUDToolbar.stampaProv"));
newToolbarTesoreria.add(new it.cnr.jada.util.jsp.Button(it.cnr.jada.util.Config.getHandler().getProperties(getClass()), "CRUDToolbar.salvaDef"));
newToolbarTesoreria.add(new it.cnr.jada.util.jsp.Button(it.cnr.jada.util.Config.getHandler().getProperties(getClass()), "CRUDToolbar.firma"));
newToolbarTesoreria.add(new it.cnr.jada.util.jsp.Button(it.cnr.jada.util.Config.getHandler().getProperties(getClass()), "CRUDToolbar.downloadnew"));
newToolbarTesoreria.add(new it.cnr.jada.util.jsp.Button(it.cnr.jada.util.Config.getHandler().getProperties(getClass()), "CRUDToolbar.downloadFirmato"));
return newToolbarTesoreria.toArray(new it.cnr.jada.util.jsp.Button[newToolbarTesoreria.size()]);
} else if (this.isFlusso()) {
newToolbarTesoreria.add(new it.cnr.jada.util.jsp.Button(it.cnr.jada.util.Config.getHandler().getProperties(getClass()), "CRUDToolbar.flusso"));
newToolbarTesoreria.add(new it.cnr.jada.util.jsp.Button(it.cnr.jada.util.Config.getHandler().getProperties(getClass()), "CRUDToolbar.download"));
return newToolbarTesoreria.toArray(new it.cnr.jada.util.jsp.Button[newToolbarTesoreria.size()]);
} else {
return toolbar;
}
}
}
use of it.cnr.jada.util.jsp.Button in project sigla-main by consiglionazionaledellericerche.
the class AbstractFirmaDigitaleDocContBP method createToolbar.
public it.cnr.jada.util.jsp.Button[] createToolbar() {
Button[] baseToolbar = super.createToolbar();
Button[] toolbar = new Button[baseToolbar.length + 9];
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()), "Toolbar.refresh");
toolbar[i - 1].setSeparator(true);
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.deletesign");
toolbar[i - 1].setSeparator(true);
toolbar[i++] = new it.cnr.jada.util.jsp.Button(it.cnr.jada.util.Config.getHandler().getProperties(getClass()), "Toolbar.predisponi");
toolbar[i++] = new it.cnr.jada.util.jsp.Button(it.cnr.jada.util.Config.getHandler().getProperties(getClass()), "Toolbar.allegadocumenti");
toolbar[i++] = new it.cnr.jada.util.jsp.Button(it.cnr.jada.util.Config.getHandler().getProperties(getClass()), "Toolbar.zipdocumenti");
toolbar[i++] = new it.cnr.jada.util.jsp.Button(it.cnr.jada.util.Config.getHandler().getProperties(getClass()), "Toolbar.pdfdocumenti");
toolbar[i - 1].setSeparator(true);
toolbar[i++] = new it.cnr.jada.util.jsp.Button(it.cnr.jada.util.Config.getHandler().getProperties(getClass()), "Toolbar.detail");
toolbar[i++] = new it.cnr.jada.util.jsp.Button(it.cnr.jada.util.Config.getHandler().getProperties(getClass()), "Toolbar.sign");
toolbar[i - 1].setSeparator(true);
return toolbar;
}
use of it.cnr.jada.util.jsp.Button in project sigla-main by consiglionazionaledellericerche.
the class CRUDAccertamentoBP method createToolbar.
protected it.cnr.jada.util.jsp.Button[] createToolbar() {
Button[] toolbar = super.createToolbar();
Button[] newToolbar = new Button[toolbar.length + 1];
for (int i = 0; i < toolbar.length; i++) newToolbar[i] = toolbar[i];
newToolbar[toolbar.length] = new it.cnr.jada.util.jsp.Button(it.cnr.jada.util.Config.getHandler().getProperties(getClass()), "Toolbar.copia");
return newToolbar;
}
use of it.cnr.jada.util.jsp.Button in project sigla-main by consiglionazionaledellericerche.
the class CRUDAccertamentoResiduoBP method createToolbar.
protected it.cnr.jada.util.jsp.Button[] createToolbar() {
Button[] toolbar = super.createToolbar();
Button[] newToolbar = new Button[toolbar.length + 1];
for (int i = 0; i < toolbar.length; i++) newToolbar[i] = toolbar[i];
newToolbar[toolbar.length] = new it.cnr.jada.util.jsp.Button(it.cnr.jada.util.Config.getHandler().getProperties(getClass()), "Toolbar.modaccertamento");
return newToolbar;
}
Aggregations