]> git.mxchange.org Git - jjobs-war.git/commitdiff
Please cherry-pick:
authorRoland Häder <roland@mxchange.org>
Fri, 22 Sep 2017 22:24:16 +0000 (00:24 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 19 Jul 2019 22:25:12 +0000 (00:25 +0200)
- need to change java.util.Calendar (bye bye) to java.util.Date in favour of
  PrimeFaces' p:calendar [!] tag
- added more i18n strings

Signed-off-by: Roland Häder <roland@mxchange.org>
src/java/org/mxchange/jjobs/beans/contact/phone/JobsAdminContactPhoneWebRequestBean.java
src/java/org/mxchange/jjobs/beans/phone/JobsAdminPhoneWebRequestBean.java
src/java/org/mxchange/jjobs/beans/user/activity/JobsUserActivityWebRequestBean.java
src/java/org/mxchange/localization/bundle_de_DE.properties
src/java/org/mxchange/localization/bundle_en_US.properties

index 202210d2c5893395f622716e3f9cf6fd9b35a365..5053f438863f3a6aa5bdb7edda0b8452404394a7 100644 (file)
@@ -17,7 +17,7 @@
 package org.mxchange.jjobs.beans.contact.phone;
 
 import java.text.MessageFormat;
-import java.util.Calendar;
+import java.util.Date;
 import javax.ejb.EJB;
 import javax.enterprise.context.RequestScoped;
 import javax.enterprise.event.Event;
@@ -180,12 +180,12 @@ public class JobsAdminContactPhoneWebRequestBean extends BaseJobsBean implements
        /**
         * When fax number has been created
         */
-       private Calendar phoneEntryCreated;
+       private Date phoneEntryCreated;
 
        /**
         * When fax number has been updated
         */
-       private Calendar phoneEntryUpdated;
+       private Date phoneEntryUpdated;
 
        /**
         * Phone id (primary key)
@@ -1031,7 +1031,7 @@ public class JobsAdminContactPhoneWebRequestBean extends BaseJobsBean implements
         * @param faxNumberEntryCreated Phone entry created
         */
        @SuppressWarnings ("ReturnOfDateField")
-       private Calendar getPhoneEntryCreated () {
+       private Date getPhoneEntryCreated () {
                return this.phoneEntryCreated;
        }
 
@@ -1041,7 +1041,7 @@ public class JobsAdminContactPhoneWebRequestBean extends BaseJobsBean implements
         * @param phoneEntryCreated Phone entry created
         */
        @SuppressWarnings ("AssignmentToDateFieldFromParameter")
-       private void setPhoneEntryCreated (final Calendar phoneEntryCreated) {
+       private void setPhoneEntryCreated (final Date phoneEntryCreated) {
                this.phoneEntryCreated = phoneEntryCreated;
        }
 
@@ -1051,7 +1051,7 @@ public class JobsAdminContactPhoneWebRequestBean extends BaseJobsBean implements
         * @return Phone entry updated
         */
        @SuppressWarnings ("ReturnOfDateField")
-       private Calendar getPhoneEntryUpdated () {
+       private Date getPhoneEntryUpdated () {
                return this.phoneEntryUpdated;
        }
 
@@ -1061,7 +1061,7 @@ public class JobsAdminContactPhoneWebRequestBean extends BaseJobsBean implements
         * @param phoneEntryUpdated Phone entry updated
         */
        @SuppressWarnings ("AssignmentToDateFieldFromParameter")
-       private void setPhoneEntryUpdated (final Calendar phoneEntryUpdated) {
+       private void setPhoneEntryUpdated (final Date phoneEntryUpdated) {
                this.phoneEntryUpdated = phoneEntryUpdated;
        }
 
index 101c79426a7802fec406203899971a27216cf6ba..d0fc3a2924846014c05f5a776b47b6571461f44e 100644 (file)
@@ -17,7 +17,7 @@
 package org.mxchange.jjobs.beans.phone;
 
 import java.text.MessageFormat;
-import java.util.Calendar;
+import java.util.Date;
 import java.util.List;
 import java.util.Objects;
 import javax.ejb.EJB;
@@ -165,12 +165,12 @@ public class JobsAdminPhoneWebRequestBean extends BaseJobsBean implements JobsAd
        /**
         * When the phone entry has been created (persisted)
         */
-       private Calendar phoneEntryCreated;
+       private Date phoneEntryCreated;
 
        /**
         * When the phone entry has been updated
         */
-       private Calendar phoneEntryUpdated;
+       private Date phoneEntryUpdated;
 
        /**
         * Phone id (aka primary key)
@@ -834,7 +834,7 @@ public class JobsAdminPhoneWebRequestBean extends BaseJobsBean implements JobsAd
         * @return Phone entry created timestamp
         */
        @SuppressWarnings ("ReturnOfDateField")
-       public Calendar getPhoneEntryCreated () {
+       public Date getPhoneEntryCreated () {
                return this.phoneEntryCreated;
        }
 
@@ -844,7 +844,7 @@ public class JobsAdminPhoneWebRequestBean extends BaseJobsBean implements JobsAd
         * @param phoneEntryCreated Phone entry created timestamp
         */
        @SuppressWarnings ("AssignmentToDateFieldFromParameter")
-       public void setPhoneEntryCreated (final Calendar phoneEntryCreated) {
+       public void setPhoneEntryCreated (final Date phoneEntryCreated) {
                this.phoneEntryCreated = phoneEntryCreated;
        }
 
@@ -854,7 +854,7 @@ public class JobsAdminPhoneWebRequestBean extends BaseJobsBean implements JobsAd
         * @return Phone entry updated timestamp
         */
        @SuppressWarnings ("ReturnOfDateField")
-       public Calendar getPhoneEntryUpdated () {
+       public Date getPhoneEntryUpdated () {
                return this.phoneEntryUpdated;
        }
 
@@ -864,7 +864,7 @@ public class JobsAdminPhoneWebRequestBean extends BaseJobsBean implements JobsAd
         * @param phoneEntryUpdated Phone entry updated timestamp
         */
        @SuppressWarnings ("AssignmentToDateFieldFromParameter")
-       public void setPhoneEntryUpdated (final Calendar phoneEntryUpdated) {
+       public void setPhoneEntryUpdated (final Date phoneEntryUpdated) {
                this.phoneEntryUpdated = phoneEntryUpdated;
        }
 
index 7b7056ff4bb17340eae6690e94f24a4adfd4dc99..3beb2c04d62308cf020336a86187fd2078300973 100644 (file)
@@ -19,7 +19,7 @@ package org.mxchange.jjobs.beans.user.activity;
 import fish.payara.cdi.jsr107.impl.NamedCache;
 import java.text.MessageFormat;
 import java.util.Collections;
-import java.util.GregorianCalendar;
+import java.util.Date;
 import java.util.LinkedList;
 import java.util.List;
 import javax.annotation.PostConstruct;
@@ -589,7 +589,7 @@ public class JobsUserActivityWebRequestBean extends BaseJobsBean implements Jobs
                }
 
                // Create new activity object
-               final LogableUserActivity userActivity = new UserActivityLog(activityType, user, new GregorianCalendar(), this.determinePrincipalName());
+               final LogableUserActivity userActivity = new UserActivityLog(activityType, user, new Date(), this.determinePrincipalName());
 
                // Call bean to add it
                this.userActivityBean.addUserActivityLog(userActivity);
@@ -631,7 +631,7 @@ public class JobsUserActivityWebRequestBean extends BaseJobsBean implements Jobs
                }
 
                // Create new activity object
-               final LogableUserActivity userActivity = new UserActivityLog(message, activityType, user, new GregorianCalendar(), this.determinePrincipalName());
+               final LogableUserActivity userActivity = new UserActivityLog(message, activityType, user, new Date(), this.determinePrincipalName());
 
                // Call bean to add it
                this.userActivityBean.addUserActivityLog(userActivity);
index ced6360904322b5cf2e33eab110e11b6726da956..f2f21b01716d7ce3a03beb51a01adeac9ded68e6 100644 (file)
@@ -972,3 +972,14 @@ FILTER_BY_MULTIPLE_COMPANIES_TITLE=Liste durch Auswahl von ein oder mehr Unterne
 LABEL_COMPANY_EMPLOYEES=Mitarbeiter
 FILTER_BY_MULTIPLE_COMPANY_EMPLOYEES_TITLE=Liste durch Auswahl von ein oder mehr Mitarbeiter durchsuchen.
 ADMIN_ENTER_BRANCH_OFFICE_NUMBER=Filialnummer eingeben:
+#@TODO Please fix German umlauts!
+ADMIN_SELECT_BRANCH_OFFICE=Filiale auswaehlen:
+#@TODO Please fix German umlauts!
+PLEASE_SELECT=Bitte auswaehlen
+#@TODO Please fix German umlauts!
+ADMIN_SELECT_PAYMENT_TYPE=Bezahlungsart auswaehlen:
+PAYMENT_TYPE_CASH=Bargeld
+PAYMENT_TYPE_CREDIT_CARD=Kreditkarte
+PAYMENT_TYPE_DEBIT_CARD=Kundenkarte
+PAYMENT_TYPE_PREPAYMENT=Vorkasse
+PAYMENT_TYPE_INVOICE=Auf Rechnung
index 665d2f735b6860ed57884b55c3e77892865d0312..bc3b4a241a46c2ac10efbf1b501767b5c13eb44f 100644 (file)
@@ -921,3 +921,11 @@ FILTER_BY_MULTIPLE_COMPANIES_TITLE=Filter list by selecting one or more companie
 LABEL_COMPANY_EMPLOYEES=Employees
 FILTER_BY_MULTIPLE_COMPANY_EMPLOYEES_TITLE=Filter list by selecting one or more employees.
 ADMIN_ENTER_BRANCH_OFFICE_NUMBER=Enter branch office number:
+ADMIN_SELECT_BRANCH_OFFICE=Select branch office:
+PLEASE_SELECT=Please select
+ADMIN_SELECT_PAYMENT_TYPE=Select payment type:
+PAYMENT_TYPE_CASH=Cash
+PAYMENT_TYPE_CREDIT_CARD=Credit card
+PAYMENT_TYPE_DEBIT_CARD=Debit card
+PAYMENT_TYPE_PREPAYMENT=Prepayment
+PAYMENT_TYPE_INVOICE=Per invoice