diff --git a/src/main/java/info/bukova/isspst/filters/InvoicingFilter.java b/src/main/java/info/bukova/isspst/filters/InvoicingFilter.java index 166f44f5..8573b4a5 100644 --- a/src/main/java/info/bukova/isspst/filters/InvoicingFilter.java +++ b/src/main/java/info/bukova/isspst/filters/InvoicingFilter.java @@ -4,6 +4,7 @@ import info.bukova.isspst.DateTimeUtils; import info.bukova.isspst.StringUtils; import info.bukova.isspst.data.Invoicing; import info.bukova.isspst.data.Requirement; +import info.bukova.isspst.data.User; import info.bukova.isspst.data.Workgroup; import org.hamcrest.Description; @@ -48,8 +49,9 @@ public class InvoicingFilter implements Filter boolean foundReqDate = DateTimeUtils.isEqualByDateForFilter(item.getRequirement().getReqDate(), condition.getRequirement().getReqDate()); boolean foundCenter = Workgroup.isEqualByWorkgroupForFilter(item.getRequirement().getCentre(), condition.getRequirement().getCentre()); boolean foundWorkgroup = Workgroup.isEqualByWorkgroupForFilter(item.getRequirement().getWorkgroup(), condition.getRequirement().getWorkgroup()); + boolean foundUser = User.isEqualByUserForFilter(item.getRequirement().getOwnedBy(), condition.getRequirement().getOwnedBy()); boolean foundDescription = StringUtils.isEqualForFilter(item.getRequirement().getDescription(), condition.getRequirement().getDescription()); - return (foundNumser && foundReqDate && foundCenter && foundDescription && foundWorkgroup); + return (foundNumser && foundReqDate && foundCenter && foundDescription && foundWorkgroup && foundUser); } @Factory diff --git a/src/main/java/info/bukova/isspst/ui/main/approved/ApprovedList.java b/src/main/java/info/bukova/isspst/ui/main/approved/ApprovedList.java index f708fab5..ecdfc471 100644 --- a/src/main/java/info/bukova/isspst/ui/main/approved/ApprovedList.java +++ b/src/main/java/info/bukova/isspst/ui/main/approved/ApprovedList.java @@ -85,7 +85,7 @@ public class ApprovedList extends ListViewModel public List getUsers() { - return this.userService.getAll(); + return this.userService.getUsersForCombo(); } @Command diff --git a/src/main/java/info/bukova/isspst/ui/main/invoicing/InvoicingList.java b/src/main/java/info/bukova/isspst/ui/main/invoicing/InvoicingList.java index 1c38b78a..2de94126 100644 --- a/src/main/java/info/bukova/isspst/ui/main/invoicing/InvoicingList.java +++ b/src/main/java/info/bukova/isspst/ui/main/invoicing/InvoicingList.java @@ -3,9 +3,11 @@ package info.bukova.isspst.ui.main.invoicing; import java.util.List; import info.bukova.isspst.data.Invoicing; +import info.bukova.isspst.data.User; import info.bukova.isspst.data.Workgroup; import info.bukova.isspst.filters.InvoicingFilter; import info.bukova.isspst.services.invoicing.InvoicingService; +import info.bukova.isspst.services.users.UserService; import info.bukova.isspst.services.workgroups.WorkgroupService; import info.bukova.isspst.ui.ListViewModel; @@ -18,6 +20,8 @@ public class InvoicingList extends ListViewModel { private InvoicingService invoicingService; @WireVariable private WorkgroupService workgroupService; + @WireVariable + private UserService userService; @Init(superclass = true) public void initInvoicing() { @@ -45,4 +49,8 @@ public class InvoicingList extends ListViewModel { return workgroupService.getWorkgroups(); } + public List getUsers() { + return userService.getUsersForCombo(); + } + } diff --git a/src/main/webapp/WEB-INF/locales/zk-label.properties b/src/main/webapp/WEB-INF/locales/zk-label.properties index 3702bcbb..8ee17a75 100644 --- a/src/main/webapp/WEB-INF/locales/zk-label.properties +++ b/src/main/webapp/WEB-INF/locales/zk-label.properties @@ -362,8 +362,8 @@ WorkgroupFormCannotAddWorkgroup=Komisi nelze přidat WorkgroupFormOrderLimit=Limit nákupů WorkgroupIsInWorkgroup=Komisi nelze smazat, protože je členem některého střediska -Help=Příručka GoogleDriveUrl=Odkaz na Google Drive +Help=Příručka ModuleNotActive=Modul není aktivovaný diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml index 3939089e..c22c19b6 100644 --- a/src/main/webapp/WEB-INF/web.xml +++ b/src/main/webapp/WEB-INF/web.xml @@ -192,6 +192,10 @@ /error.zul + + 480 + + index.zul index.zhtml diff --git a/src/main/webapp/app/mainMenu.zul b/src/main/webapp/app/mainMenu.zul index 14f55811..e4a003c6 100644 --- a/src/main/webapp/app/mainMenu.zul +++ b/src/main/webapp/app/mainMenu.zul @@ -142,5 +142,8 @@ href="/app/search" visible="${module:isActive('SEARCH') }" disabled="${not sec:isAllGranted('PERM_SEARCH_SEARCH')}" /> + \ No newline at end of file diff --git a/src/main/webapp/app/template.zhtml b/src/main/webapp/app/template.zhtml index bca9beb4..2bdf230c 100644 --- a/src/main/webapp/app/template.zhtml +++ b/src/main/webapp/app/template.zhtml @@ -51,6 +51,6 @@
- + \ No newline at end of file diff --git a/src/main/webapp/main/invoicing/invoicingGrid.zul b/src/main/webapp/main/invoicing/invoicingGrid.zul index c2fdd775..53ae6fa6 100644 --- a/src/main/webapp/main/invoicing/invoicingGrid.zul +++ b/src/main/webapp/main/invoicing/invoicingGrid.zul @@ -123,6 +123,27 @@ + +
+
+ + + +
+
+ +
+
+