From: Roland Häder Date: Sat, 31 Mar 2018 14:32:49 +0000 (+0200) Subject: Please cherry-pick: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=abd49d664e7dac0ccbf2e7760aca14534e697ef3;p=jfinancials-war.git Please cherry-pick: - removed with value="#{null}" in filter selection box, was anoying there and no use anyway - added beanHelper.renderUser(user) which is a helper method for rendering user names - added missing i18n strings Signed-off-by: Roland Häder --- diff --git a/src/java/org/mxchange/jfinancials/beans/helper/FinancialsWebRequestHelperBean.java b/src/java/org/mxchange/jfinancials/beans/helper/FinancialsWebRequestHelperBean.java index 80128ef3..361cebd0 100644 --- a/src/java/org/mxchange/jfinancials/beans/helper/FinancialsWebRequestHelperBean.java +++ b/src/java/org/mxchange/jfinancials/beans/helper/FinancialsWebRequestHelperBean.java @@ -765,6 +765,35 @@ public class FinancialsWebRequestHelperBean extends BaseFinancialsBean implement return sb.toString(); } + /** + * Returns the user's personal title, family name and name. If null is + * provided, an empty string is returned. + *

+ * @param user User instance + *

+ * @return User's full name + */ + public String renderUser (final User user) { + // Default is empty string, so let's get started + final StringBuilder sb = new StringBuilder(20); + + // Is user given? + if (user instanceof User) { + // Add user name first + sb.append(user.getUserName()); + sb.append(" ("); //NOI18N + + // Add contact data + sb.append(this.renderContact(user.getUserContact())); + + // Close brace + sb.append(")"); //NOI18N + } + + // Return it + return sb.toString(); + } + /** * Set's all given contact's phone instances: land-line, mobile and * faxNumber diff --git a/src/java/org/mxchange/localization/generic_de_DE.properties b/src/java/org/mxchange/localization/generic_de_DE.properties index 14abb3df..b232c43a 100644 --- a/src/java/org/mxchange/localization/generic_de_DE.properties +++ b/src/java/org/mxchange/localization/generic_de_DE.properties @@ -1167,3 +1167,6 @@ SEARCH_ALL_FIELDS=Alle Felder durchsuchen: BASIC_DATA_LINK_MASK={0} (Nr. {1}) #@TODO Please fix German umlauts! ADMIN_LINK_LIST_OPENING_TIMES_TITLE=Listet alle Oeffnungszeiten auf. +LABEL_PAYMENT_TYPES=Bezahlungsarten +BRANCH_OFFICE=Filiale: +USER_HEADER=Benutzer: diff --git a/src/java/org/mxchange/localization/generic_en_US.properties b/src/java/org/mxchange/localization/generic_en_US.properties index a734d82b..ca01156b 100644 --- a/src/java/org/mxchange/localization/generic_en_US.properties +++ b/src/java/org/mxchange/localization/generic_en_US.properties @@ -1054,3 +1054,6 @@ ENTER_KEYWORD=Enter keyword ... SEARCH_ALL_FIELDS=Search all fields: BASIC_DATA_LINK_MASK={0} (No. {1}) ADMIN_LINK_LIST_OPENING_TIMES_TITLE=Lists all opening times. +LABEL_PAYMENT_TYPES=Payment types +BRANCH_OFFICE=Branch office: +USER_HEADER=User: diff --git a/web/admin/basic_data/admin_basic_data_list.xhtml b/web/admin/basic_data/admin_basic_data_list.xhtml index 9e982d7a..42796918 100644 --- a/web/admin/basic_data/admin_basic_data_list.xhtml +++ b/web/admin/basic_data/admin_basic_data_list.xhtml @@ -64,7 +64,6 @@ title="#{msg.FILTER_BY_MULTIPLE_USERS_TITLE}" > - @@ -97,7 +96,6 @@ title="#{msg.FILTER_BY_MULTIPLE_EMPLOYEES_TITLE}" > - @@ -122,7 +120,6 @@ title="#{msg.FILTER_BY_MULTIPLE_EMPLOYEES_TITLE}" > - diff --git a/web/admin/branch_office/admin_branch_office_list.xhtml b/web/admin/branch_office/admin_branch_office_list.xhtml index 12049dd4..4fc44e87 100644 --- a/web/admin/branch_office/admin_branch_office_list.xhtml +++ b/web/admin/branch_office/admin_branch_office_list.xhtml @@ -64,7 +64,6 @@ title="#{msg.FILTER_BY_MULTIPLE_USERS_TITLE}" > - @@ -119,7 +118,6 @@ title="#{msg.FILTER_BY_MULTIPLE_EMPLOYEES_TITLE}" > - diff --git a/web/admin/department/admin_department_list.xhtml b/web/admin/department/admin_department_list.xhtml index cd1597bd..6fe368d0 100644 --- a/web/admin/department/admin_department_list.xhtml +++ b/web/admin/department/admin_department_list.xhtml @@ -88,7 +88,6 @@ title="#{msg.FILTER_BY_MULTIPLE_EMPLOYEES_TITLE}" > - @@ -113,7 +112,6 @@ title="#{msg.FILTER_BY_MULTIPLE_EMPLOYEES_TITLE}" > - @@ -138,7 +136,6 @@ title="#{msg.FILTER_BY_MULTIPLE_USERS_TITLE}" > - diff --git a/web/admin/employee/admin_employee_list.xhtml b/web/admin/employee/admin_employee_list.xhtml index 59316f7e..a4932ee8 100644 --- a/web/admin/employee/admin_employee_list.xhtml +++ b/web/admin/employee/admin_employee_list.xhtml @@ -64,7 +64,6 @@ title="#{msg.FILTER_BY_MULTIPLE_EMPLOYEES_TITLE}" > - @@ -88,7 +87,6 @@ updateLabel="true" title="#{msg.FILTER_BY_MULTIPLE_USERS_TITLE}" > - diff --git a/web/admin/headquarter/admin_headquarter_list.xhtml b/web/admin/headquarter/admin_headquarter_list.xhtml index 60a8fe39..7202ff33 100644 --- a/web/admin/headquarter/admin_headquarter_list.xhtml +++ b/web/admin/headquarter/admin_headquarter_list.xhtml @@ -63,7 +63,6 @@ title="#{msg.FILTER_BY_MULTIPLE_USERS_TITLE}" > - @@ -98,7 +97,6 @@ title="#{msg.FILTER_BY_MULTIPLE_EMPLOYEES_TITLE}" > - diff --git a/web/admin/opening_time/admin_opening_time_list.xhtml b/web/admin/opening_time/admin_opening_time_list.xhtml index 9f646c92..20b7f80f 100644 --- a/web/admin/opening_time/admin_opening_time_list.xhtml +++ b/web/admin/opening_time/admin_opening_time_list.xhtml @@ -62,7 +62,6 @@ title="#{msg.FILTER_BY_MULTIPLE_WEEK_DAYS_TITLE}" > - @@ -79,7 +78,6 @@ title="#{msg.FILTER_BY_MULTIPLE_WEEK_DAYS_TITLE}" > - diff --git a/web/admin/user/admin_user_list.xhtml b/web/admin/user/admin_user_list.xhtml index 68f37a2f..d3cff187 100644 --- a/web/admin/user/admin_user_list.xhtml +++ b/web/admin/user/admin_user_list.xhtml @@ -65,7 +65,6 @@ title="#{msg.FILTER_BY_SINGLE_PERSONAL_TITLE}" > - - - -