Loading bundles/ch.elexis.core.data/src/ch/elexis/data/Mandant.java +13 −0 Original line number Diff line number Diff line Loading @@ -15,6 +15,7 @@ package ch.elexis.data; import java.util.Objects; import ch.elexis.core.constants.StringConstants; import ch.elexis.core.model.IPersistentObject; import ch.rgw.tools.JdbcLink; /** Loading Loading @@ -130,4 +131,16 @@ public class Mandant extends Anwender { return Kontakt.TABLENAME; } public IPersistentObject getReferencedObject(String fieldl){ if (fieldl != null) { if ("Responsible".equals(fieldl)) { String responsibleId = (String) getExtInfoStoredObjectByKey("ch.elexis.tarmedprefs.responsible"); if (responsibleId != null && !responsibleId.isEmpty()) { return Mandant.load(responsibleId); } } } return null; } } bundles/ch.elexis.core.ui/src/ch/elexis/core/ui/text/TextContainer.java +8 −0 Original line number Diff line number Diff line Loading @@ -452,6 +452,14 @@ public class TextContainer { Fall fall = (Fall) parent; return fall.getReferencedObject(fieldl); } else if (parent instanceof Mandant) { String fieldl = field; if (fieldl.substring(0, 1).equalsIgnoreCase(DONT_SHOW_REPLACEMENT_ERRORS)) { fieldl = fieldl.substring(1); } Mandant mandant = (Mandant) parent; return mandant.getReferencedObject(fieldl); } else { // not yet supported return null; Loading Loading
bundles/ch.elexis.core.data/src/ch/elexis/data/Mandant.java +13 −0 Original line number Diff line number Diff line Loading @@ -15,6 +15,7 @@ package ch.elexis.data; import java.util.Objects; import ch.elexis.core.constants.StringConstants; import ch.elexis.core.model.IPersistentObject; import ch.rgw.tools.JdbcLink; /** Loading Loading @@ -130,4 +131,16 @@ public class Mandant extends Anwender { return Kontakt.TABLENAME; } public IPersistentObject getReferencedObject(String fieldl){ if (fieldl != null) { if ("Responsible".equals(fieldl)) { String responsibleId = (String) getExtInfoStoredObjectByKey("ch.elexis.tarmedprefs.responsible"); if (responsibleId != null && !responsibleId.isEmpty()) { return Mandant.load(responsibleId); } } } return null; } }
bundles/ch.elexis.core.ui/src/ch/elexis/core/ui/text/TextContainer.java +8 −0 Original line number Diff line number Diff line Loading @@ -452,6 +452,14 @@ public class TextContainer { Fall fall = (Fall) parent; return fall.getReferencedObject(fieldl); } else if (parent instanceof Mandant) { String fieldl = field; if (fieldl.substring(0, 1).equalsIgnoreCase(DONT_SHOW_REPLACEMENT_ERRORS)) { fieldl = fieldl.substring(1); } Mandant mandant = (Mandant) parent; return mandant.getReferencedObject(fieldl); } else { // not yet supported return null; Loading