From: Roland Häder Date: Mon, 11 May 2020 01:12:04 +0000 (+0200) Subject: Please cherry-pick: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8195733c163462bbc2ca53943230bfcad1ae08dd;p=jjobs-war.git Please cherry-pick: - since departments, headquarters and branch offices cannot link to employes, so also the view navigation rules must reflect this. Employees can have a relationship to any these 3 entities and would lead to endless loop - introduced adminDepartmentActionController instead of without "Action", let us keep these empty ("dead") backing beans around, they may one day be filled with life again. Or they will be removed if no purpose could be found. - closed some TODOs in views where p:fieldset allows a title attribute - also a ui:fragment can be avoided when p:fieldset allows a render attribute - added view for administrative editing of departments - removed double // NOI18N strings (ops?) which is for some language string scanning and translation tools to ignore these lines (exception messages should normally not show up to the user). Signed-off-by: Roland Häder --- diff --git a/src/java/org/mxchange/jjobs/beans/business/branchoffice/JobsAdminBranchOfficeWebRequestController.java b/src/java/org/mxchange/jjobs/beans/business/branchoffice/JobsAdminBranchOfficeWebRequestController.java index bf2be0d5..1d62624d 100644 --- a/src/java/org/mxchange/jjobs/beans/business/branchoffice/JobsAdminBranchOfficeWebRequestController.java +++ b/src/java/org/mxchange/jjobs/beans/business/branchoffice/JobsAdminBranchOfficeWebRequestController.java @@ -19,7 +19,7 @@ package org.mxchange.jjobs.beans.business.branchoffice; import java.io.Serializable; /** - * An interface for administrative branch office controller + * An interface for administrative department controller *

* @author Roland Häder */ diff --git a/src/java/org/mxchange/jjobs/beans/business/branchoffice/action/JobsAdminDepartmentActionWebRequestBean.java b/src/java/org/mxchange/jjobs/beans/business/branchoffice/action/JobsAdminDepartmentActionWebRequestBean.java new file mode 100644 index 00000000..60422207 --- /dev/null +++ b/src/java/org/mxchange/jjobs/beans/business/branchoffice/action/JobsAdminDepartmentActionWebRequestBean.java @@ -0,0 +1,412 @@ +/* + * Copyright (C) 2017 - 2020 Free Software Foundation + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ +package org.mxchange.jjobs.beans.business.department.action; + +import java.text.MessageFormat; +import java.util.Objects; +import javax.ejb.EJB; +import javax.enterprise.context.RequestScoped; +import javax.enterprise.event.Event; +import javax.enterprise.inject.Any; +import javax.faces.FacesException; +import javax.faces.application.FacesMessage; +import javax.inject.Inject; +import javax.inject.Named; +import org.mxchange.jcontacts.model.contact.Contact; +import org.mxchange.jcontactsbusiness.events.department.added.AdminDepartmentAddedEvent; +import org.mxchange.jcontactsbusiness.events.department.added.ObservableAdminDepartmentAddedEvent; +import org.mxchange.jcontactsbusiness.events.department.updated.AdminDepartmentUpdatedEvent; +import org.mxchange.jcontactsbusiness.events.department.updated.ObservableAdminDepartmentUpdatedEvent; +import org.mxchange.jcontactsbusiness.exceptions.department.DepartmentAlreadyAddedException; +import org.mxchange.jcontactsbusiness.exceptions.department.DepartmentNotFoundException; +import org.mxchange.jcontactsbusiness.model.basicdata.BasicData; +import org.mxchange.jcontactsbusiness.model.branchoffice.BranchOffice; +import org.mxchange.jcontactsbusiness.model.department.AdminDepartmentSessionBeanRemote; +import org.mxchange.jcontactsbusiness.model.department.BusinessDepartment; +import org.mxchange.jcontactsbusiness.model.department.Department; +import org.mxchange.jcontactsbusiness.model.department.Departments; +import org.mxchange.jcontactsbusiness.model.headquarter.Headquarter; +import org.mxchange.jjobs.beans.BaseJobsBean; +import org.mxchange.jjobs.beans.business.department.list.JobsDepartmentListWebViewController; +import org.mxchange.jusercore.model.user.User; + +/** + * An administrative action bean for departments + *

+ * @author Roland Häder + */ +@Named ("adminDepartmentActionController") +@RequestScoped +public class JobsAdminDepartmentActionWebRequestBean extends BaseJobsBean implements JobsAdminDepartmentActionWebRequestController { + + /** + * Serial number + */ + private static final long serialVersionUID = 5_028_697_360_473L; + + /** + * EJB for administrative purposes + */ + @EJB (lookup = "java:global/jjobs-ejb/adminDepartment!org.mxchange.jcontactsbusiness.model.department.AdminDepartmentSessionBeanRemote") + private AdminDepartmentSessionBeanRemote adminDepartmentBean; + + /** + * Currently worked on department + */ + private Department currentDepartment; + + /** + * An event being fired when a department has been successfully added + */ + @Inject + @Any + private Event departmentAddedEvent; + + /** + * Assigned branch office (if apply-able) + */ + private BranchOffice departmentBranchOffice; + + /** + * Assigned company for this department + */ + private BasicData departmentCompany; + + /** + * Assigned headquarter (if apply-able) + */ + private Headquarter departmentHeadquarter; + + /** + * Department name + */ + private String departmentI18nKey; + + /** + * Primary key of department + */ + private Long departmentId; + + /** + * Lead person of this department + */ + private Contact departmentLead; + + /** + * A general department controller (backing bean) + */ + @Inject + private JobsDepartmentListWebViewController departmentListController; + + /** + * Owning user instance (which this department is assigned to) + */ + private User departmentUserOwner; + + /** + * Event being fired when a department has been updated + */ + @Inject + @Any + private Event updatedDepartmentEvent; + + /** + * Default constructor + */ + public JobsAdminDepartmentActionWebRequestBean () { + // Call super constructor + super(); + } + + /** + * Adds department with all data from this backing bean. First this action + * method will validate if the department's address is already registered + * and if found, it will output a proper faces message. + */ + public void addDepartment () { + // Get instance + final Department department = this.createDepartment(); + + // Is the department not created yet? + if (this.departmentListController.isDepartmentAlreadyAdded(department)) { + // Then show proper faces message + this.showFacesMessage("form-admin-add-department:branchStreet", "ADMIN_DEPARTMENT_ALREADY_CREATED", FacesMessage.SEVERITY_WARN); //NOI18N + return; + } + + // Delcare updated instance + final Department updatedDepartment; + + try { + // Try to call EJB + updatedDepartment = this.adminDepartmentBean.addDepartment(department); + } catch (final DepartmentAlreadyAddedException ex) { + // Output message + this.showFacesMessage("form-admin-add-department:departmentI18nKey", "ADMIN_DEPARTMENT_ALREADY_CREATED", FacesMessage.SEVERITY_ERROR); //NOI18N + return; + } + + // Fire event + this.departmentAddedEvent.fire(new AdminDepartmentAddedEvent(updatedDepartment)); + } + + /** + * Copies all properties from current department to this bean. + */ + public void copyAllDepartmentProperties () { + // Is current department set? + if (this.getCurrentDepartment() == null) { + // Throw NPE + throw new NullPointerException("this.currentDepartment is null"); //NOI18N + } else if (this.getCurrentDepartment().getDepartmentId() == null) { + // Throw NPE + throw new NullPointerException("this.currentDepartment.departmentId is null"); //NOI18N + } else if (this.getCurrentDepartment().getDepartmentId() < 1) { + // Throw IAE + throw new IllegalArgumentException(MessageFormat.format("this.currentDepartment.departmentId={0} is not valid", this.getCurrentDepartment().getDepartmentId())); //NOI18N + } + + // Copy all fields + this.setDepartmentBranchOffice(this.getCurrentDepartment().getDepartmentBranchOffice()); + this.setDepartmentCompany(this.getCurrentDepartment().getDepartmentCompany()); + this.setDepartmentHeadquarter(this.getCurrentDepartment().getDepartmentHeadquarter()); + this.setDepartmentI18nKey(this.getCurrentDepartment().getDepartmentI18nKey()); + this.setDepartmentId(this.getCurrentDepartment().getDepartmentId()); + this.setDepartmentLead(this.getCurrentDepartment().getDepartmentLead()); + this.setDepartmentUserOwner(this.getCurrentDepartment().getDepartmentUserOwner()); + } + + /** + * Getter for current department + *

+ * @return Current department + */ + public Department getCurrentDepartment () { + return this.currentDepartment; + } + + /** + * Setter for current department + *

+ * @param currentDepartment Current department + */ + public void setCurrentDepartment (final Department currentDepartment) { + this.currentDepartment = currentDepartment; + } + + /** + * Getter for assigned branch office + *

+ * @return Branch office + */ + public BranchOffice getDepartmentBranchOffice () { + return this.departmentBranchOffice; + } + + /** + * Setter for assigned branch office + *

+ * @param departmentDepartment Branch office + */ + public void setDepartmentBranchOffice (final BranchOffice departmentDepartment) { + this.departmentBranchOffice = departmentDepartment; + } + + /** + * Getter for basic company data + *

+ * @return Basic company data + */ + public BasicData getDepartmentCompany () { + return this.departmentCompany; + } + + /** + * Setter for basic company data + *

+ * @param departmentCompany Basic company data + */ + public void setDepartmentCompany (final BasicData departmentCompany) { + this.departmentCompany = departmentCompany; + } + + /** + * Getter for assigned headquarter data + *

+ * @return Headquarter data + */ + public Headquarter getDepartmentHeadquarter () { + return this.departmentHeadquarter; + } + + /** + * Setter for assigned headquarter data + *

+ * @param departmentHeadquarter Headquarter data + */ + public void setDepartmentHeadquarter (final Headquarter departmentHeadquarter) { + this.departmentHeadquarter = departmentHeadquarter; + } + + /** + * Getter for department name + *

+ * @return Department name + */ + public String getDepartmentI18nKey () { + return this.departmentI18nKey; + } + + /** + * Setter for department name + *

+ * @param departmentI18nKey Department name + */ + public void setDepartmentI18nKey (final String departmentI18nKey) { + this.departmentI18nKey = departmentI18nKey; + } + + /** + * Getter for primary key + *

+ * @return Primary key + */ + public Long getDepartmentId () { + return this.departmentId; + } + + /** + * Setter for primary key + *

+ * @param departmentId Primary key + */ + public void setDepartmentId (final Long departmentId) { + this.departmentId = departmentId; + } + + /** + * Getter for department contact person + *

+ * @return Department contact person + */ + public Contact getDepartmentLead () { + return this.departmentLead; + } + + /** + * Setter for department contact person + *

+ * @param departmentLead Department contact person + */ + public void setDepartmentLead (final Contact departmentLead) { + this.departmentLead = departmentLead; + } + + /** + * Getter for owning user instance + *

+ * @return Owning user instance + */ + public User getDepartmentUserOwner () { + return this.departmentUserOwner; + } + + /** + * Setter for owning user instance + *

+ * @param departmentUserOwner Owning user instance + */ + public void setDepartmentUserOwner (final User departmentUserOwner) { + this.departmentUserOwner = departmentUserOwner; + } + + /** + * Updates department record with data from this bean. + *

+ * @return Redirection outcome + */ + public String updateDepartment () { + // Is current department set? + if (this.getCurrentDepartment() == null) { + // Throw NPE + throw new NullPointerException("this.currentDepartment is null"); //NOI18N + } else if (this.getCurrentDepartment().getDepartmentId() == null) { + // Throw NPE + throw new NullPointerException("this.currentDepartment.departmentId is null"); //NOI18N + } else if (this.getCurrentDepartment().getDepartmentId() < 1) { + // Throw IAE + throw new IllegalArgumentException(MessageFormat.format("this.currentDepartment.departmentId={0} is not valid", this.getCurrentDepartment().getDepartmentId())); //NOI18N + } + + // Init instance with current data + final Department department = this.createDepartment(); + + // Does current (not updated) and just created (maybe updated) match? + System.out.println("this.currentDepartment.departmentLead=" + this.getCurrentDepartment().getDepartmentLead() + ",department.departmentLead=" + department.getDepartmentLead() + " - BEFORE!"); + if (Objects.equals(this.getCurrentDepartment(), department)) { + // Yes, then output message + this.showFacesMessage("form-admin-edit-department:departmentI18nKey", "ADMIN_DEPARTMENT_NOT_UPDATED", FacesMessage.SEVERITY_WARN); //NOI18N + + // Skip below code + return ""; //NOI18N + } + + // Copy all fields + Departments.copyDepartmentData(this.getCurrentDepartment(), department); + + // Initialize updated instance + final Department updatedDepartment; + + // Try it + try { + // Invoke EJB + updatedDepartment = this.adminDepartmentBean.updateDepartment(department); + } catch (final DepartmentNotFoundException ex) { + // Throw as a cause + throw new FacesException(ex); + } + + // Fire event + this.updatedDepartmentEvent.fire(new AdminDepartmentUpdatedEvent(updatedDepartment)); + + // Return to list view + return "admin_list_departments"; //NOI18N + } + + /** + * Prepares an instance of a Department object (entity) with all data from + * this bean. If a complete fax number or land-line number was provided, it + * will be set in the instance as well. + *

+ * @return An instance of a Department class (entity) + */ + private Department createDepartment () { + // Create new department instance + final Department department = new BusinessDepartment(this.getDepartmentCompany(), this.getDepartmentI18nKey()); + + // Add all optional fields + department.setDepartmentBranchOffice(this.getDepartmentBranchOffice()); + department.setDepartmentHeadquarter(this.getDepartmentHeadquarter()); + department.setDepartmentId(this.getDepartmentId()); + department.setDepartmentLead(this.getDepartmentLead()); + department.setDepartmentUserOwner(this.getDepartmentUserOwner()); + + // Return fully prepared instance + return department; + } + +} diff --git a/src/java/org/mxchange/jjobs/beans/business/branchoffice/action/JobsAdminDepartmentActionWebRequestController.java b/src/java/org/mxchange/jjobs/beans/business/branchoffice/action/JobsAdminDepartmentActionWebRequestController.java new file mode 100644 index 00000000..2423b621 --- /dev/null +++ b/src/java/org/mxchange/jjobs/beans/business/branchoffice/action/JobsAdminDepartmentActionWebRequestController.java @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2017 - 2020 Free Software Foundation + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ +package org.mxchange.jjobs.beans.business.department.action; + +import java.io.Serializable; + +/** + * An interface for administrative action department controller + *

+ * @author Roland Häder + */ +public interface JobsAdminDepartmentActionWebRequestController extends Serializable { + +} diff --git a/src/java/org/mxchange/jjobs/beans/business/department/JobsAdminDepartmentWebRequestBean.java b/src/java/org/mxchange/jjobs/beans/business/department/JobsAdminDepartmentWebRequestBean.java index b55c6625..58f03e76 100644 --- a/src/java/org/mxchange/jjobs/beans/business/department/JobsAdminDepartmentWebRequestBean.java +++ b/src/java/org/mxchange/jjobs/beans/business/department/JobsAdminDepartmentWebRequestBean.java @@ -16,26 +16,9 @@ */ package org.mxchange.jjobs.beans.business.department; -import javax.ejb.EJB; import javax.enterprise.context.RequestScoped; -import javax.enterprise.event.Event; -import javax.enterprise.inject.Any; -import javax.faces.application.FacesMessage; -import javax.inject.Inject; import javax.inject.Named; -import org.mxchange.jcontactsbusiness.events.department.added.DepartmentAddedEvent; -import org.mxchange.jcontactsbusiness.events.department.added.ObservableDepartmentAddedEvent; -import org.mxchange.jcontactsbusiness.exceptions.department.DepartmentAlreadyAddedException; -import org.mxchange.jcontactsbusiness.model.basicdata.BasicData; -import org.mxchange.jcontactsbusiness.model.branchoffice.BranchOffice; -import org.mxchange.jcontactsbusiness.model.department.AdminDepartmentSessionBeanRemote; -import org.mxchange.jcontactsbusiness.model.department.BusinessDepartment; -import org.mxchange.jcontactsbusiness.model.department.Department; -import org.mxchange.jcontactsbusiness.model.employee.Employable; -import org.mxchange.jcontactsbusiness.model.headquarter.Headquarter; import org.mxchange.jjobs.beans.BaseJobsBean; -import org.mxchange.jjobs.beans.business.department.list.JobsDepartmentListWebViewController; -import org.mxchange.jusercore.model.user.User; /** * An administrative bean for departments @@ -51,55 +34,6 @@ public class JobsAdminDepartmentWebRequestBean extends BaseJobsBean implements J */ private static final long serialVersionUID = 5_028_697_360_464L; - /** - * EJB for administrative purposes - */ - @EJB (lookup = "java:global/jjobs-ejb/adminDepartment!org.mxchange.jcontactsbusiness.model.department.AdminDepartmentSessionBeanRemote") - private AdminDepartmentSessionBeanRemote adminDepartmentBean; - - /** - * An event being fired when a department has been successfully added - */ - @Inject - @Any - private Event departmentAddedEvent; - - /** - * Assigned branch office (if apply-able) - */ - private BranchOffice departmentBranchOffice; - - /** - * Assigned company for this department - */ - private BasicData departmentCompany; - - /** - * Assigned headquarter (if apply-able) - */ - private Headquarter departmentHeadquarter; - - /** - * Department name - */ - private String departmentI18nKey; - - /** - * Lead person of this department - */ - private Employable departmentLead; - - /** - * A general department controller (backing bean) - */ - @Inject - private JobsDepartmentListWebViewController departmentListController; - - /** - * Owning user instance (which this department is assigned to) - */ - private User departmentUserOwner; - /** * Default constructor */ @@ -108,165 +42,4 @@ public class JobsAdminDepartmentWebRequestBean extends BaseJobsBean implements J super(); } - /** - * Adds department with all data from this backing bean. First this action - * method will validate if the department's address is already registered - * and if found, it will output a proper faces message. - */ - public void addDepartment () { - // Get instance - final Department department = this.createDepartment(); - - // Is the department not created yet? - if (this.departmentListController.isDepartmentAlreadyAdded(department)) { - // Then show proper faces message - this.showFacesMessage("form-admin-add-department:branchStreet", "ADMIN_DEPARTMENT_ALREADY_CREATED", FacesMessage.SEVERITY_WARN); //NOI18N - return; - } - - // Delcare updated instance - final Department updatedDepartment; - - try { - // Try to call EJB - updatedDepartment = this.adminDepartmentBean.addDepartment(department); - } catch (final DepartmentAlreadyAddedException ex) { - // Output message - this.showFacesMessage("form-admin-add-department:departmentI18nKey", "ADMIN_DEPARTMENT_ALREADY_CREATED", FacesMessage.SEVERITY_ERROR); //NOI18N - return; - } - - // Fire event - this.departmentAddedEvent.fire(new DepartmentAddedEvent(updatedDepartment)); - } - - /** - * Getter for assigned branch office - *

- * @return Branch office - */ - public BranchOffice getDepartmentBranchOffice () { - return this.departmentBranchOffice; - } - - /** - * Setter for assigned branch office - *

- * @param departmentBranchOffice Branch office - */ - public void setDepartmentBranchOffice (final BranchOffice departmentBranchOffice) { - this.departmentBranchOffice = departmentBranchOffice; - } - - /** - * Getter for basic company data - *

- * @return Basic company data - */ - public BasicData getDepartmentCompany () { - return this.departmentCompany; - } - - /** - * Setter for basic company data - *

- * @param departmentCompany Basic company data - */ - public void setDepartmentCompany (final BasicData departmentCompany) { - this.departmentCompany = departmentCompany; - } - - /** - * Getter for assigned headquarter data - *

- * @return Headquarter data - */ - public Headquarter getDepartmentHeadquarter () { - return this.departmentHeadquarter; - } - - /** - * Setter for assigned headquarter data - *

- * @param departmentHeadquarter Headquarter data - */ - public void setDepartmentHeadquarter (final Headquarter departmentHeadquarter) { - this.departmentHeadquarter = departmentHeadquarter; - } - - /** - * Getter for department name - *

- * @return Department name - */ - public String getDepartmentI18nKey () { - return this.departmentI18nKey; - } - - /** - * Setter for department name - *

- * @param departmentI18nKey Department name - */ - public void setDepartmentI18nKey (final String departmentI18nKey) { - this.departmentI18nKey = departmentI18nKey; - } - - /** - * Getter for department contact person - *

- * @return Department contact person - */ - public Employable getDepartmentLead () { - return this.departmentLead; - } - - /** - * Setter for department contact person - *

- * @param departmentLead Department contact person - */ - public void setDepartmentLead (final Employable departmentLead) { - this.departmentLead = departmentLead; - } - - /** - * Getter for owning user instance - *

- * @return Owning user instance - */ - public User getDepartmentUserOwner () { - return this.departmentUserOwner; - } - - /** - * Setter for owning user instance - *

- * @param departmentUserOwner Owning user instance - */ - public void setDepartmentUserOwner (final User departmentUserOwner) { - this.departmentUserOwner = departmentUserOwner; - } - - /** - * Prepares an instance of a Department object (entity) with all data from - * this bean. If a complete fax number or land-line number was provided, it - * will be set in the instance as well. - *

- * @return An instance of a Department class (entity) - */ - private Department createDepartment () { - // Create new department instance - final Department department = new BusinessDepartment(this.getDepartmentCompany(), this.getDepartmentI18nKey()); - - // Add all optional fields - department.setDepartmentHeadquarter(this.getDepartmentHeadquarter()); - department.setDepartmentBranchOffice(this.getDepartmentBranchOffice()); - department.setDepartmentLead(this.getDepartmentLead()); - department.setDepartmentUserOwner(this.getDepartmentUserOwner()); - - // Return fully prepared instance - return department; - } - } diff --git a/src/java/org/mxchange/jjobs/beans/business/department/action/JobsAdminBranchOfficeActionWebRequestBean.java b/src/java/org/mxchange/jjobs/beans/business/department/action/JobsAdminBranchOfficeActionWebRequestBean.java index 7d339305..d912a3fb 100644 --- a/src/java/org/mxchange/jjobs/beans/business/department/action/JobsAdminBranchOfficeActionWebRequestBean.java +++ b/src/java/org/mxchange/jjobs/beans/business/department/action/JobsAdminBranchOfficeActionWebRequestBean.java @@ -29,6 +29,7 @@ import javax.faces.FacesException; import javax.faces.application.FacesMessage; import javax.inject.Inject; import javax.inject.Named; +import org.mxchange.jcontacts.model.contact.Contact; import org.mxchange.jcontactsbusiness.events.branchoffice.added.AdminBranchOfficeAddedEvent; import org.mxchange.jcontactsbusiness.events.branchoffice.added.ObservableAdminBranchOfficeAddedEvent; import org.mxchange.jcontactsbusiness.events.branchoffice.updated.AdminBranchOfficeUpdatedEvent; @@ -40,7 +41,6 @@ import org.mxchange.jcontactsbusiness.model.branchoffice.AdminBranchOfficeSessio import org.mxchange.jcontactsbusiness.model.branchoffice.BranchOffice; import org.mxchange.jcontactsbusiness.model.branchoffice.BranchOffices; import org.mxchange.jcontactsbusiness.model.branchoffice.BusinessBranchOffice; -import org.mxchange.jcontactsbusiness.model.employee.Employable; import org.mxchange.jcontactsbusiness.model.opening_time.BusinessOpeningTime; import org.mxchange.jcontactsbusiness.model.opening_time.OpeningTime; import org.mxchange.jcoreee.dates.DayOfTheWeek; @@ -91,7 +91,7 @@ public class JobsAdminBranchOfficeActionWebRequestBean extends BaseJobsBean impl /** * Contact person in branch office */ - private Employable branchContactEmployee; + private Contact branchContactEmployee; /** * Country @@ -144,7 +144,7 @@ public class JobsAdminBranchOfficeActionWebRequestBean extends BaseJobsBean impl /** * Owner/leader of branch office */ - private Employable branchOwnerEmployee; + private Contact branchOwnerEmployee; /** * Store @@ -396,7 +396,7 @@ public class JobsAdminBranchOfficeActionWebRequestBean extends BaseJobsBean impl *

* @return Branch office contact person */ - public Employable getBranchContactEmployee () { + public Contact getBranchContactEmployee () { return this.branchContactEmployee; } @@ -405,7 +405,7 @@ public class JobsAdminBranchOfficeActionWebRequestBean extends BaseJobsBean impl *

* @param branchContactEmployee Branch office contact person */ - public void setBranchContactEmployee (final Employable branchContactEmployee) { + public void setBranchContactEmployee (final Contact branchContactEmployee) { this.branchContactEmployee = branchContactEmployee; } @@ -560,7 +560,7 @@ public class JobsAdminBranchOfficeActionWebRequestBean extends BaseJobsBean impl *

* @return Branch office contact person */ - public Employable getBranchOwnerEmployee () { + public Contact getBranchOwnerEmployee () { return this.branchOwnerEmployee; } @@ -569,7 +569,7 @@ public class JobsAdminBranchOfficeActionWebRequestBean extends BaseJobsBean impl *

* @param branchOwnerEmployee Branch office contact person */ - public void setBranchOwnerEmployee (final Employable branchOwnerEmployee) { + public void setBranchOwnerEmployee (final Contact branchOwnerEmployee) { this.branchOwnerEmployee = branchOwnerEmployee; } @@ -871,8 +871,17 @@ public class JobsAdminBranchOfficeActionWebRequestBean extends BaseJobsBean impl * @return Redirection outcome */ public String updateBranchOffice () { - // Id should be set - if (this.getBranchId() == null) { + // Validate current product instance and id + if (this.getCurrentBranchOffice() == null) { + // Throw NPE + throw new NullPointerException("this.product is null"); //NOI18N + } else if (this.getCurrentBranchOffice().getBranchId() == null) { + // Throw NPE again + throw new NullPointerException("this.product.branchId is null"); //NOI18N + } else if (this.getCurrentBranchOffice().getBranchId() < 1) { + // Not valid + throw new IllegalStateException(MessageFormat.format("this.product.branchId={0} is not valid.", this.getCurrentBranchOffice().getBranchId())); //NOI18N + } else if (this.getBranchId() == null) { // Throw NPE throw new NullPointerException("this.branchId is null"); //NOI18N } else if (this.getBranchId() < 1) { diff --git a/src/java/org/mxchange/jjobs/beans/business/department/list/JobsDepartmentListWebViewBean.java b/src/java/org/mxchange/jjobs/beans/business/department/list/JobsDepartmentListWebViewBean.java index 3d2d155d..82328f79 100644 --- a/src/java/org/mxchange/jjobs/beans/business/department/list/JobsDepartmentListWebViewBean.java +++ b/src/java/org/mxchange/jjobs/beans/business/department/list/JobsDepartmentListWebViewBean.java @@ -28,7 +28,7 @@ import javax.enterprise.event.Observes; import javax.faces.view.ViewScoped; import javax.inject.Inject; import javax.inject.Named; -import org.mxchange.jcontactsbusiness.events.department.added.ObservableDepartmentAddedEvent; +import org.mxchange.jcontactsbusiness.events.department.added.ObservableAdminDepartmentAddedEvent; import org.mxchange.jcontactsbusiness.exceptions.department.DepartmentNotFoundException; import org.mxchange.jcontactsbusiness.model.department.Department; import org.mxchange.jcontactsbusiness.model.department.DepartmentSessionBeanRemote; @@ -97,25 +97,25 @@ public class JobsDepartmentListWebViewBean extends BaseJobsBean implements JobsD * null * @throws IllegalArgumentException If the branchId is zero or lower */ - public void afterDepartmentAddedEvent (@Observes final ObservableDepartmentAddedEvent event) { + public void afterDepartmentAddedEvent (@Observes final ObservableAdminDepartmentAddedEvent event) { // Validate parameter if (null == event) { // Throw NPE throw new NullPointerException("event is null"); //NOI18N - } else if (event.getDepartment() == null) { + } else if (event.getAddedDepartment() == null) { // Throw NPE again throw new NullPointerException("event.department is null"); //NOI18N - } else if (event.getDepartment().getDepartmentId() == null) { + } else if (event.getAddedDepartment().getDepartmentId() == null) { // Throw it again throw new NullPointerException("event.department.branchId is null"); //NOI18N - } else if (event.getDepartment().getDepartmentId() < 1) { + } else if (event.getAddedDepartment().getDepartmentId() < 1) { // Throw IAE - throw new IllegalArgumentException(MessageFormat.format("event.department.branchId={0} is not valid", event.getDepartment().getDepartmentId())); //NOI18N + throw new IllegalArgumentException(MessageFormat.format("event.department.branchId={0} is not valid", event.getAddedDepartment().getDepartmentId())); //NOI18N } // Add instance to cache - this.departmentCache.put(event.getDepartment().getDepartmentId(), event.getDepartment()); - this.getAllDepartments().add(event.getDepartment()); + this.departmentCache.put(event.getAddedDepartment().getDepartmentId(), event.getAddedDepartment()); + this.getAllDepartments().add(event.getAddedDepartment()); } @Override diff --git a/src/java/org/mxchange/jjobs/beans/business/headquarter/action/JobsAdminHeadquarterActionWebRequestBean.java b/src/java/org/mxchange/jjobs/beans/business/headquarter/action/JobsAdminHeadquarterActionWebRequestBean.java index 4d622a31..bea4d475 100644 --- a/src/java/org/mxchange/jjobs/beans/business/headquarter/action/JobsAdminHeadquarterActionWebRequestBean.java +++ b/src/java/org/mxchange/jjobs/beans/business/headquarter/action/JobsAdminHeadquarterActionWebRequestBean.java @@ -27,10 +27,10 @@ import javax.enterprise.inject.Any; import javax.faces.application.FacesMessage; import javax.inject.Inject; import javax.inject.Named; +import org.mxchange.jcontacts.model.contact.Contact; import org.mxchange.jcontactsbusiness.events.headquarter.added.HeadquarterAddedEvent; import org.mxchange.jcontactsbusiness.events.headquarter.added.ObservableHeadquarterAddedEvent; import org.mxchange.jcontactsbusiness.exceptions.headquarter.HeadquarterAlreadyAddedException; -import org.mxchange.jcontactsbusiness.model.employee.Employable; import org.mxchange.jcontactsbusiness.model.headquarter.AdminHeadquarterSessionBeanRemote; import org.mxchange.jcontactsbusiness.model.headquarter.BusinessHeadquarter; import org.mxchange.jcontactsbusiness.model.headquarter.Headquarter; @@ -106,7 +106,7 @@ public class JobsAdminHeadquarterActionWebRequestBean extends BaseJobsBean imple /** * Contact person in headquarter */ - private Employable headquarterContactEmployee; + private Contact headquarterContactEmployee; /** * Country @@ -380,7 +380,7 @@ public class JobsAdminHeadquarterActionWebRequestBean extends BaseJobsBean imple *

* @return Headquarter contact person */ - public Employable getHeadquarterContactEmployee () { + public Contact getHeadquarterContactEmployee () { return this.headquarterContactEmployee; } @@ -389,7 +389,7 @@ public class JobsAdminHeadquarterActionWebRequestBean extends BaseJobsBean imple *

* @param headquarterContactEmployee Headquarter contact person */ - public void setHeadquarterContactEmployee (final Employable headquarterContactEmployee) { + public void setHeadquarterContactEmployee (final Contact headquarterContactEmployee) { this.headquarterContactEmployee = headquarterContactEmployee; } diff --git a/src/java/org/mxchange/jjobs/beans/contact/JobsAdminContactWebRequestBean.java b/src/java/org/mxchange/jjobs/beans/contact/JobsAdminContactWebRequestBean.java index d99296c4..8bb3fdb8 100644 --- a/src/java/org/mxchange/jjobs/beans/contact/JobsAdminContactWebRequestBean.java +++ b/src/java/org/mxchange/jjobs/beans/contact/JobsAdminContactWebRequestBean.java @@ -332,10 +332,10 @@ public class JobsAdminContactWebRequestBean extends BaseJobsBean implements Jobs throw new NullPointerException("event is null"); //NOI18N } else if (event.getCreatedContact() == null) { // Throw NPE again - throw new NullPointerException("event.createdContact is null"); //NOI18N //NOI18N + throw new NullPointerException("event.createdContact is null"); //NOI18N } else if (event.getCreatedContact().getContactId() == null) { // Throw NPE again - throw new NullPointerException("event.createdContact.contactId is null"); //NOI18N //NOI18N + throw new NullPointerException("event.createdContact.contactId is null"); //NOI18N } else if (event.getCreatedContact().getContactId() < 1) { // Not valid throw new IllegalStateException(MessageFormat.format("event.createdContact.contactId={0} is not valid.", event.getCreatedContact().getContactId())); //NOI18N @@ -565,7 +565,7 @@ public class JobsAdminContactWebRequestBean extends BaseJobsBean implements Jobs throw new NullPointerException("beanHelper.contact is null"); //NOI18N } else if (createdContact.getContactId() == null) { // Throw NPE again - throw new NullPointerException("beanHelper.contact.contactId is null"); //NOI18N //NOI18N + throw new NullPointerException("beanHelper.contact.contactId is null"); //NOI18N } else if (createdContact.getContactId() < 1) { // Invalid id throw new IllegalStateException(MessageFormat.format("beanHelper.contact.contactId={0} is invalid", createdContact.getContactId())); //NOI18N @@ -1193,7 +1193,7 @@ public class JobsAdminContactWebRequestBean extends BaseJobsBean implements Jobs throw new NullPointerException("contact is null"); //NOI18N } else if (contact.getContactId() == null) { // Throw NPE again - throw new NullPointerException("contact.contactId is null"); //NOI18N //NOI18N + throw new NullPointerException("contact.contactId is null"); //NOI18N } else if (contact.getContactId() < 1) { // Invalid id throw new IllegalStateException(MessageFormat.format("contact.contactId={0} is invalid", contact.getContactId())); //NOI18N diff --git a/src/java/org/mxchange/jjobs/beans/contact/list/JobsContactListWebViewBean.java b/src/java/org/mxchange/jjobs/beans/contact/list/JobsContactListWebViewBean.java index c4de0434..beacb843 100644 --- a/src/java/org/mxchange/jjobs/beans/contact/list/JobsContactListWebViewBean.java +++ b/src/java/org/mxchange/jjobs/beans/contact/list/JobsContactListWebViewBean.java @@ -118,7 +118,7 @@ public class JobsContactListWebViewBean extends BaseJobsBean implements JobsCont throw new NullPointerException("event.addedContact.contactId is null"); //NOI18N } else if (event.getAddedContact().getContactId() < 1) { // Not valid - throw new IllegalArgumentException(MessageFormat.format("event.addedContact.contactId={0} is not valid", event.getAddedContact().getContactId())); //NOI18N //NOI18N + throw new IllegalArgumentException(MessageFormat.format("event.addedContact.contactId={0} is not valid", event.getAddedContact().getContactId())); //NOI18N } // Call other method diff --git a/src/java/org/mxchange/jjobs/beans/contact/mobile/JobsAdminContactMobileWebRequestBean.java b/src/java/org/mxchange/jjobs/beans/contact/mobile/JobsAdminContactMobileWebRequestBean.java index a0c26bb3..fe7653f1 100644 --- a/src/java/org/mxchange/jjobs/beans/contact/mobile/JobsAdminContactMobileWebRequestBean.java +++ b/src/java/org/mxchange/jjobs/beans/contact/mobile/JobsAdminContactMobileWebRequestBean.java @@ -213,10 +213,10 @@ public class JobsAdminContactMobileWebRequestBean extends BaseJobsBean implement throw new NullPointerException("event is null"); //NOI18N } else if (event.getCreatedContact() == null) { // Throw NPE again - throw new NullPointerException("event.createdContact is null"); //NOI18N //NOI18N + throw new NullPointerException("event.createdContact is null"); //NOI18N } else if (event.getCreatedContact().getContactId() == null) { // Throw NPE again - throw new NullPointerException("event.createdContact.contactId is null"); //NOI18N //NOI18N + throw new NullPointerException("event.createdContact.contactId is null"); //NOI18N } else if (event.getCreatedContact().getContactId() < 1) { // Not valid throw new IllegalStateException(MessageFormat.format("event.createdContact.contactId={0} is not valid.", event.getCreatedContact().getContactId())); //NOI18N diff --git a/src/java/org/mxchange/jjobs/beans/contact/phone/JobsAdminContactPhoneWebRequestBean.java b/src/java/org/mxchange/jjobs/beans/contact/phone/JobsAdminContactPhoneWebRequestBean.java index eb8a01fe..e074842c 100644 --- a/src/java/org/mxchange/jjobs/beans/contact/phone/JobsAdminContactPhoneWebRequestBean.java +++ b/src/java/org/mxchange/jjobs/beans/contact/phone/JobsAdminContactPhoneWebRequestBean.java @@ -266,10 +266,10 @@ public class JobsAdminContactPhoneWebRequestBean extends BaseJobsBean implements throw new NullPointerException("event is null"); //NOI18N } else if (event.getCreatedContact() == null) { // Throw NPE again - throw new NullPointerException("event.createdContact is null"); //NOI18N //NOI18N + throw new NullPointerException("event.createdContact is null"); //NOI18N } else if (event.getCreatedContact().getContactId() == null) { // Throw NPE again - throw new NullPointerException("event.createdContact.contactId is null"); //NOI18N //NOI18N + throw new NullPointerException("event.createdContact.contactId is null"); //NOI18N } else if (event.getCreatedContact().getContactId() < 1) { // Not valid throw new IllegalStateException(MessageFormat.format("event.createdContact.contactId={0} is not valid.", event.getCreatedContact().getContactId())); //NOI18N diff --git a/src/java/org/mxchange/localization/generic_de_DE.properties b/src/java/org/mxchange/localization/generic_de_DE.properties index 0062dd5f..6b7efdb4 100644 --- a/src/java/org/mxchange/localization/generic_de_DE.properties +++ b/src/java/org/mxchange/localization/generic_de_DE.properties @@ -291,8 +291,7 @@ ADMIN_MENU_COUNTRY_TITLE=L\u00e4nderdaten ADMIN_LINK_LIST_COUNTRIES=L\u00e4nder ADMIN_LINK_LIST_COUNTRIES_TITLE=Bestehende L\u00e4nderdaten auflisten, neue hinzuf\u00fcgen, \u00e4ndern und l\u00f6schen. PAGE_TITLE_ADMIN_LIST_COUNTRY=L\u00e4nderdaten auflisten -#@TODO Please fix German umlauts! -CONTENT_TITLE_ADMIN_LIST_COUNTRY=Auflisten von Laenderdaten: +CONTENT_TITLE_ADMIN_LIST_COUNTRY=Auflisten von L\u00e4nderdaten: ADMIN_ADD_COUNTRY_TITLE=Neues Land hinzuf\u00fcgen ADMIN_COUNTRY_DATA_MINIMUM_NOTICE=Bitte geben Sie alle Felder an. ADMIN_ADD_COUNTRY_I18N_KEY_NOTICE=Der Schl\u00fcssel f\u00fcr das Sprachpaket ist in Grossbuchstaben und Unterstrichen zu schreiben. Beispiel: COUNTRY_GERMANY f\u00fcr Deutschland @@ -928,12 +927,11 @@ ADMIN_LINK_EDIT_MOBILE_PROVIDER_TITLE=Edieren des Mobilfunkanbieters. #@TODO Please fix German umlauts! ADMIN_LINK_DELETE_MOBILE_PROVIDER_TITLE=Loescht den Mobilfunkanbieter. ADMIN_LINK_SHOW_COUNTRY_TITLE=Zeigt Details des Landes an. +ADMIN_LINK_EDIT_COUNTRY_TITLE=Editieren der L\u00e4nderdaten. #@TODO Please fix German umlauts! -ADMIN_LINK_EDIT_COUNTRY_TITLE=Editieren der Laenderdaten. -#@TODO Please fix German umlauts! -ADMIN_LINK_DELETE_COUNTRY_TITLE=Loescht die Laenderdaten. +ADMIN_LINK_DELETE_COUNTRY_TITLE=Loescht die L\u00e4nderdaten. #@TODO Please fix German umlauts! -ADMIN_EMPTY_LIST_COUNTRY=Es befinden sich keine Laender in der Datenbank. Oder Ihre Suche ergab keine Uebereinstimmungen. +ADMIN_EMPTY_LIST_COUNTRY=Es befinden sich keine L\u00e4nder in der Datenbank. Oder Ihre Suche ergab keine Uebereinstimmungen. #@TODO Please fix German umlauts! ADMIN_EMPTY_LIST_FAX_NUMBER=Es befinden sich keine Faxnummern in der Datenbank oder Ihre Suche ergab keine Uebereinstimmungen. #@TODO Please fix German umlauts! @@ -944,10 +942,8 @@ ADMIN_EMPTY_LIST_MOBILE_NUMBER=Es befinden sich keine Mobilfunknummern in der Da ADMIN_EMPTY_LIST_CONTACT_MOBILE=Es befinden sich keine Mobilfunknummern von Kontakten in der Datenbank oder Ihre Suche ergab keine Uebereinstimmungen. #@TODO Please fix German umlauts! ADMIN_MOBILE_PROVIDER_COUNTRY_REQUIRED=Bitte waehlen Sie ein Land f\u00fcr den Mobilfunkanbieter aus. -#@TODO Please fix German umlauts! -LABEL_COUNTRIES=Laender -#@TODO Please fix German umlauts! -FILTER_BY_MULTIPLE_COUNTRY_TITLE=Liste durch Auswahl von ein oder mehr Laendern durchsuchen. +LABEL_COUNTRIES=L\u00e4nder +FILTER_BY_MULTIPLE_COUNTRY_TITLE=Liste durch Auswahl von ein oder mehr L\u00e4ndern durchsuchen. ADMIN_LIST_MOBILE_PROVIDERS_HEADER=Liste aller Mobilfunkanbieter SELECT_SHOWN_COLUMNS=Angezeigte Spalten ADMIN_LIST_BRANCH_OFFICES_HEADER=Alle Filialen auflisten @@ -1239,3 +1235,13 @@ CONTENT_TITLE_ADMIN_EDIT_BRANCH_OFFICE=Filiale editieren: ADMIN_EDIT_BRANCH_OFFICE_TITLE=Filiale mit Id-Nummer {0} editieren: ADMIN_EDIT_BRANCH_OFFICE_NUMBER_TITLE=Filiale Nummer {1} (Id {0}) editieren: BUTTON_ADMIN_EDIT_BRANCH_OFFICE=Filiale \u00e4ndern +ERROR_PARAMETER_DEPARTMENT_ID_NOT_SET=Fehler: Parameter "departmentId" ist nicht gesetzt. +PARAMETER_DEPARTMENT_ID_INVALID=Unter der angegebenen Id-Nummer konnte keine Abteilung gefunden werden.. +PAGE_TITLE_ADMIN_EDIT_DEPARTMENT=Abteilung editieren +CONTENT_TITLE_ADMIN_EDIT_DEPARTMENT=Abteilung editieren: +ADMIN_EDIT_DEPARTMENT_TITLE=Editing department {0} (Id {1}): +#@TODO Please fix German umlauts! +ADMIN_DEPARTMENT_MINIMUM_DATA=Bitte geben Sie mindestens den Internationalisierungsschlussel ein, waehlen Sie ein Unternehmen aus und entweder eine Filiale oder einen Hauptsitz als mindest benoetigte Daten aus. +BUTTON_ADMIN_EDIT_DEPARTMENT=Abteilung \u00e4ndern +#@TODO Please fix German umlauts! +ADMIN_DEPARTMENT_NOT_UPDATED=Sie haben keine Daten der Filiale geaendert. diff --git a/src/java/org/mxchange/localization/generic_en_US.properties b/src/java/org/mxchange/localization/generic_en_US.properties index 9c03ef6d..37d3e8bb 100644 --- a/src/java/org/mxchange/localization/generic_en_US.properties +++ b/src/java/org/mxchange/localization/generic_en_US.properties @@ -1145,3 +1145,11 @@ CONTENT_TITLE_ADMIN_EDIT_BRANCH_OFFICE=Edit branch office: ADMIN_EDIT_BRANCH_OFFICE_TITLE=Edit branch office with id {0}: ADMIN_EDIT_BRANCH_OFFICE_NUMBER_TITLE=Edit branch office number {1} (Id {0}): BUTTON_ADMIN_EDIT_BRANCH_OFFICE=Change branch office +ERROR_PARAMETER_DEPARTMENT_ID_NOT_SET=Error: Parameter "departmentId" is not set. +PARAMETER_DEPARTMENT_ID_INVALID=No depatment could be found by provided id number. +PAGE_TITLE_ADMIN_EDIT_DEPARTMENT=Edit department +CONTENT_TITLE_ADMIN_EDIT_DEPARTMENT=Edit department: +ADMIN_EDIT_DEPARTMENT_TITLE=Editing department {0} (Id {1}): +ADMIN_DEPARTMENT_MINIMUM_DATA=Please entet at least an i18n string, selecct a company and either select a branch office or a headquarter as minimum required data. +BUTTON_ADMIN_EDIT_DEPARTMENT=Change department +ADMIN_DEPARTMENT_NOT_UPDATED=You have not changed any data of the department. diff --git a/web/WEB-INF/faces-config.xml b/web/WEB-INF/faces-config.xml index 1529c0ee..84e09fa3 100644 --- a/web/WEB-INF/faces-config.xml +++ b/web/WEB-INF/faces-config.xml @@ -129,7 +129,7 @@ /admin/opening_time/admin_opening_time_list.xhtml - admin_list_company_employee + admin_list_employee /admin/employee/admin_employee_list.xhtml @@ -757,8 +757,8 @@ /admin/basic_data/admin_basic_data_assign_owner.xhtml - admin_show_employee - /admin/company_employee/admin_company_employee_show.xhtml + admin_show_contact + /admin/contact/admin_contact_show.xhtml admin_assign_basic_data_employee @@ -788,12 +788,12 @@ /admin/headquarter/admin_headquarter_assign_owner.xhtml - admin_show_employee - /admin/company_employee/admin_company_employee_show.xhtml + admin_show_contact + /admin/contact/admin_contact_show.xhtml - admin_assign_headquarter_employee - /admin/headquarter/admin_headquarter_assign_employee.xhtml + admin_assign_headquarter_contact + /admin/headquarter/admin_headquarter_assign_contact.xhtml @@ -823,8 +823,8 @@ /admin/basic_data/admin_basic_data_show.xhtml - admin_show_employee - /admin/company_employee/admin_company_employee_show.xhtml + admin_show_contact + /admin/contact/admin_contact_show.xhtml admin_assign_branch_office_employee @@ -870,8 +870,8 @@ /admin/department/admin_assign_department_branch_office.xhtml - admin_show_employee - /admin/employee/admin_employee_show.xhtml + admin_show_contact + /admin/contact/admin_contact_show.xhtml admin_assign_department_employee @@ -882,6 +882,14 @@ /admin/department/admin_assign_department_user.xhtml + + /admin/department/admin_department_edit.xhtml + + admin_list_departments + /admin/department/admin_department_list.xhtml + + + /admin/employee/admin_employee_list.xhtml diff --git a/web/WEB-INF/resources/tags/admin/form_data/contact/admin_form_contact_data.tpl b/web/WEB-INF/resources/tags/admin/form_data/contact/admin_form_contact_data.tpl index 5a0557a9..769aef85 100644 --- a/web/WEB-INF/resources/tags/admin/form_data/contact/admin_form_contact_data.tpl +++ b/web/WEB-INF/resources/tags/admin/form_data/contact/admin_form_contact_data.tpl @@ -8,11 +8,11 @@ xmlns:ui="http://xmlns.jcp.org/jsf/facelets" xmlns:p="http://primefaces.org/ui" > - - - + - - - - - - + + + + - - + + - - + + - - + + - - + + - + - - - - + + + + - -

+ diff --git a/web/WEB-INF/templates/admin/branch_office/admin_form_branch_office_data.tpl b/web/WEB-INF/templates/admin/branch_office/admin_form_branch_office_data.tpl index 8cc47ec8..2864d093 100644 --- a/web/WEB-INF/templates/admin/branch_office/admin_form_branch_office_data.tpl +++ b/web/WEB-INF/templates/admin/branch_office/admin_form_branch_office_data.tpl @@ -48,15 +48,15 @@ filterMatchMode="contains" > - + @@ -68,15 +68,15 @@ filterMatchMode="contains" > - + diff --git a/web/WEB-INF/templates/admin/department/admin_form_department_data.tpl b/web/WEB-INF/templates/admin/department/admin_form_department_data.tpl index 2a8e99ba..0ef2e0d8 100644 --- a/web/WEB-INF/templates/admin/department/admin_form_department_data.tpl +++ b/web/WEB-INF/templates/admin/department/admin_form_department_data.tpl @@ -20,7 +20,7 @@ @@ -28,7 +28,7 @@ @@ -69,7 +69,7 @@ @@ -89,7 +89,7 @@ @@ -99,17 +99,17 @@ diff --git a/web/WEB-INF/templates/admin/employee/admin_form_employee_data.tpl b/web/WEB-INF/templates/admin/employee/admin_form_employee_data.tpl index 7e2dd3f7..3efb0ef9 100644 --- a/web/WEB-INF/templates/admin/employee/admin_form_employee_data.tpl +++ b/web/WEB-INF/templates/admin/employee/admin_form_employee_data.tpl @@ -1,7 +1,4 @@ - - + - - + - + diff --git a/web/admin/branch_office/admin_branch_office_list.xhtml b/web/admin/branch_office/admin_branch_office_list.xhtml index f491f4d0..3eb65bed 100644 --- a/web/admin/branch_office/admin_branch_office_list.xhtml +++ b/web/admin/branch_office/admin_branch_office_list.xhtml @@ -234,28 +234,28 @@ updateLabel="true" title="#{msg.FILTER_BY_MULTIPLE_EMPLOYEES_TITLE}" > - + - + - + - + diff --git a/web/admin/department/admin_department_edit.xhtml b/web/admin/department/admin_department_edit.xhtml new file mode 100644 index 00000000..fd1917db --- /dev/null +++ b/web/admin/department/admin_department_edit.xhtml @@ -0,0 +1,80 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/web/admin/department/admin_department_list.xhtml b/web/admin/department/admin_department_list.xhtml index 807e1628..f64afc28 100644 --- a/web/admin/department/admin_department_list.xhtml +++ b/web/admin/department/admin_department_list.xhtml @@ -192,7 +192,7 @@ @@ -205,30 +205,30 @@ updateLabel="true" title="#{msg.FILTER_BY_MULTIPLE_EMPLOYEES_TITLE}" > - + - + @@ -387,7 +387,7 @@ diff --git a/web/admin/headquarter/admin_headquarter_list.xhtml b/web/admin/headquarter/admin_headquarter_list.xhtml index f8f18a88..c19e0f27 100644 --- a/web/admin/headquarter/admin_headquarter_list.xhtml +++ b/web/admin/headquarter/admin_headquarter_list.xhtml @@ -2,7 +2,6 @@ - + - + - - - +