IDEMPIERE-724 Zk: Make iDempiere theme more easily customizable - Added theme preference for trademark text for standard report footer.
This commit is contained in:
parent
dd40704ba2
commit
916636c30f
|
@ -92,7 +92,7 @@ public final class Adempiere
|
|||
|
||||
/** Subtitle */
|
||||
static public final String SUB_TITLE = "Smart Suite ERP, CRM and SCM";
|
||||
static public final String ADEMPIERE_R = "iDempiere\u00AE";
|
||||
static public String ADEMPIERE_R = "iDempiere\u00AE";
|
||||
static public final String COPYRIGHT = "\u00A9 1999-2013 iDempiere\u00AE";
|
||||
|
||||
static private String s_ImplementationVersion = null;
|
||||
|
|
|
@ -41,6 +41,7 @@ import org.adempiere.webui.session.SessionManager;
|
|||
import org.adempiere.webui.theme.ThemeManager;
|
||||
import org.adempiere.webui.util.BrowserToken;
|
||||
import org.adempiere.webui.util.UserPreference;
|
||||
import org.compiere.Adempiere;
|
||||
import org.compiere.model.MRole;
|
||||
import org.compiere.model.MSession;
|
||||
import org.compiere.model.MSysConfig;
|
||||
|
@ -132,6 +133,8 @@ public class AdempiereWebUI extends Window implements EventListener<Event>, IWeb
|
|||
{
|
||||
this.getPage().setTitle(ThemeManager.getBrowserTitle());
|
||||
|
||||
Adempiere.ADEMPIERE_R = ThemeManager.getStandardReportFooterTrademarkText();
|
||||
|
||||
SessionManager.setSessionApplication(this);
|
||||
Session session = Executions.getCurrent().getDesktop().getSession();
|
||||
@SuppressWarnings("unchecked")
|
||||
|
|
|
@ -16,6 +16,7 @@ package org.adempiere.webui.theme;
|
|||
import java.io.IOException;
|
||||
|
||||
import org.adempiere.webui.AdempiereWebUI;
|
||||
import org.compiere.Adempiere;
|
||||
import org.compiere.model.MClientInfo;
|
||||
import org.compiere.model.MImage;
|
||||
import org.compiere.model.MSysConfig;
|
||||
|
@ -144,4 +145,12 @@ public final class ThemeManager {
|
|||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return trademark text for standard report footer
|
||||
*/
|
||||
public static String getStandardReportFooterTrademarkText() {
|
||||
String s = Env.getContext(Env.getCtx(), "#ZK_STANDARD_REPORT_FOOTER_TRADEMARK_TEXT");
|
||||
return Util.isEmpty(s) ? Adempiere.ADEMPIERE_R : s;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue