|
|
@ -39,7 +39,9 @@ import de.superx.common.SuperX_el; |
|
|
|
import de.superx.common.SxResultRow; |
|
|
|
import de.superx.common.SxResultRow; |
|
|
|
import de.superx.common.ThemenbaumI; |
|
|
|
import de.superx.common.ThemenbaumI; |
|
|
|
import de.superx.common.TransletCache; |
|
|
|
import de.superx.common.TransletCache; |
|
|
|
|
|
|
|
import de.superx.servlet.ServletUtils; |
|
|
|
import de.superx.util.SqlStringUtils; |
|
|
|
import de.superx.util.SqlStringUtils; |
|
|
|
|
|
|
|
import freemarker.template.TemplateModelException; |
|
|
|
|
|
|
|
|
|
|
|
public class Themenbaum implements ThemenbaumI, Serializable { |
|
|
|
public class Themenbaum implements ThemenbaumI, Serializable { |
|
|
|
|
|
|
|
|
|
|
@ -104,7 +106,7 @@ public class Themenbaum implements ThemenbaumI, Serializable { |
|
|
|
* @throws NichtAngemeldetException |
|
|
|
* @throws NichtAngemeldetException |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private StringBuffer getMenuXmlAndInitMenu() throws SQLException, |
|
|
|
private StringBuffer getMenuXmlAndInitMenu() throws SQLException, |
|
|
|
DBServletException, KeyParentEqualException, NoMainEntryException, NichtAngemeldetException { |
|
|
|
DBServletException, KeyParentEqualException, NoMainEntryException, NichtAngemeldetException { |
|
|
|
StringBuffer result = new StringBuffer(); |
|
|
|
StringBuffer result = new StringBuffer(); |
|
|
|
result.append("<menue hisinone_active=\"" |
|
|
|
result.append("<menue hisinone_active=\"" |
|
|
|
+ (SuperXManager.isHis1 ? "true" : "false") + "\"\n" |
|
|
|
+ (SuperXManager.isHis1 ? "true" : "false") + "\"\n" |
|
|
@ -116,6 +118,8 @@ public class Themenbaum implements ThemenbaumI, Serializable { |
|
|
|
|
|
|
|
|
|
|
|
result.append(">"); |
|
|
|
result.append(">"); |
|
|
|
result.append(Maske.addGeneralInfo()); |
|
|
|
result.append(Maske.addGeneralInfo()); |
|
|
|
|
|
|
|
result.append(ServletUtils.addCustomElementsToXml(mandantenID)); |
|
|
|
|
|
|
|
|
|
|
|
String welcomedPerson = login_name; |
|
|
|
String welcomedPerson = login_name; |
|
|
|
if (login_name == null || login_name.trim().equals("")) |
|
|
|
if (login_name == null || login_name.trim().equals("")) |
|
|
|
welcomedPerson = userid.toString(); |
|
|
|
welcomedPerson = userid.toString(); |
|
|
@ -344,10 +348,12 @@ public class Themenbaum implements ThemenbaumI, Serializable { |
|
|
|
+ " showNavigation=\""+showNavigation+"\""); |
|
|
|
+ " showNavigation=\""+showNavigation+"\""); |
|
|
|
if (SxPools.get(mandantenID).getRepository().containsKey("K_aufklappbarer Themenbaum")&&SxPools.get(mandantenID).getRepository().get("K_aufklappbarer Themenbaum").toString().equals("1")) |
|
|
|
if (SxPools.get(mandantenID).getRepository().containsKey("K_aufklappbarer Themenbaum")&&SxPools.get(mandantenID).getRepository().get("K_aufklappbarer Themenbaum").toString().equals("1")) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
//TODO: klappt noch nicht in Tabellen:
|
|
|
|
result.append(" aufklappbarer_themenbaum=\"true\""); |
|
|
|
result.append(" aufklappbarer_themenbaum=\"true\""); |
|
|
|
} |
|
|
|
} |
|
|
|
result.append(">\n"); |
|
|
|
result.append(">\n"); |
|
|
|
result.append(Maske.addGeneralInfo()); |
|
|
|
result.append(Maske.addGeneralInfo()); |
|
|
|
|
|
|
|
result.append(ServletUtils.addCustomElementsToXml(mandantenID)); |
|
|
|
result.append("<user id=\"" + Themenbaum.this.userid + "\" admin=\"" |
|
|
|
result.append("<user id=\"" + Themenbaum.this.userid + "\" admin=\"" |
|
|
|
+ (Themenbaum.this.isAdmin ? "true" : "false") + "\"><![CDATA[" |
|
|
|
+ (Themenbaum.this.isAdmin ? "true" : "false") + "\"><![CDATA[" |
|
|
|
+ Themenbaum.this.login_name + "]]></user>\n"); |
|
|
|
+ Themenbaum.this.login_name + "]]></user>\n"); |
|
|
|