diff --git a/src/main/java/info/bukova/isspst/ui/main/orders/requirements/ReqListMy.java b/src/main/java/info/bukova/isspst/ui/main/orders/requirements/ReqListMy.java new file mode 100644 index 00000000..e412d0d7 --- /dev/null +++ b/src/main/java/info/bukova/isspst/ui/main/orders/requirements/ReqListMy.java @@ -0,0 +1,48 @@ +package info.bukova.isspst.ui.main.orders.requirements; + +import info.bukova.isspst.data.Requirement; +import info.bukova.isspst.data.Workgroup; +import info.bukova.isspst.filters.RequirementFilter; +import info.bukova.isspst.services.requirement.RequirementService; +import info.bukova.isspst.services.users.UserService; +import info.bukova.isspst.services.workgroups.WorkgroupService; +import info.bukova.isspst.ui.requirement.RequirementSubpage; + +import java.util.List; + +import org.zkoss.bind.annotation.Init; +import org.zkoss.zk.ui.select.annotation.WireVariable; + +public class ReqListMy extends RequirementSubpage +{ + + @WireVariable + private RequirementService requirementService; + + @WireVariable + private UserService userService; + + @WireVariable + private WorkgroupService workgroupService; + + public List getCentres() + { + return workgroupService.getUserCentres(userService.getCurrent()); + } + + @Init + public void init() + { + super.init(); + service = requirementService; + dataClass = Requirement.class; + formZul = "reqForm.zul"; + dataFilter = new RequirementFilter(getFilterTemplate()); + } + + @Override + protected List getListFromService() + { + return super.getListFromService(); + } +} diff --git a/src/main/java/info/bukova/isspst/ui/main/orders/requirements/ReqListMyAll.java b/src/main/java/info/bukova/isspst/ui/main/orders/requirements/ReqListMyAll.java new file mode 100644 index 00000000..29336b4a --- /dev/null +++ b/src/main/java/info/bukova/isspst/ui/main/orders/requirements/ReqListMyAll.java @@ -0,0 +1,48 @@ +package info.bukova.isspst.ui.main.orders.requirements; + +import info.bukova.isspst.data.Requirement; +import info.bukova.isspst.data.Workgroup; +import info.bukova.isspst.filters.RequirementFilter; +import info.bukova.isspst.services.requirement.RequirementService; +import info.bukova.isspst.services.users.UserService; +import info.bukova.isspst.services.workgroups.WorkgroupService; +import info.bukova.isspst.ui.requirement.RequirementSubpage; + +import java.util.List; + +import org.zkoss.bind.annotation.Init; +import org.zkoss.zk.ui.select.annotation.WireVariable; + +public class ReqListMyAll extends RequirementSubpage +{ + + @WireVariable + private RequirementService requirementService; + + @WireVariable + private UserService userService; + + @WireVariable + private WorkgroupService workgroupService; + + public List getCentres() + { + return workgroupService.getUserCentres(userService.getCurrent()); + } + + @Init + public void init() + { + super.init(); + service = requirementService; + dataClass = Requirement.class; + formZul = "reqForm.zul"; + dataFilter = new RequirementFilter(getFilterTemplate()); + } + + @Override + protected List getListFromService() + { + return super.getListFromService(); + } +} diff --git a/src/main/java/info/bukova/isspst/ui/main/orders/requirements/ReqListMyCenters.java b/src/main/java/info/bukova/isspst/ui/main/orders/requirements/ReqListMyCenters.java new file mode 100644 index 00000000..c3a651dc --- /dev/null +++ b/src/main/java/info/bukova/isspst/ui/main/orders/requirements/ReqListMyCenters.java @@ -0,0 +1,48 @@ +package info.bukova.isspst.ui.main.orders.requirements; + +import info.bukova.isspst.data.Requirement; +import info.bukova.isspst.data.Workgroup; +import info.bukova.isspst.filters.RequirementFilter; +import info.bukova.isspst.services.requirement.RequirementService; +import info.bukova.isspst.services.users.UserService; +import info.bukova.isspst.services.workgroups.WorkgroupService; +import info.bukova.isspst.ui.requirement.RequirementSubpage; + +import java.util.List; + +import org.zkoss.bind.annotation.Init; +import org.zkoss.zk.ui.select.annotation.WireVariable; + +public class ReqListMyCenters extends RequirementSubpage +{ + + @WireVariable + private RequirementService requirementService; + + @WireVariable + private UserService userService; + + @WireVariable + private WorkgroupService workgroupService; + + public List getCentres() + { + return workgroupService.getUserCentres(userService.getCurrent()); + } + + @Init + public void init() + { + super.init(); + service = requirementService; + dataClass = Requirement.class; + formZul = "reqForm.zul"; + dataFilter = new RequirementFilter(getFilterTemplate()); + } + + @Override + protected List getListFromService() + { + return super.getListFromService(); + } +} diff --git a/src/main/java/info/bukova/isspst/ui/main/orders/requirements/ReqListMyWorkgroups.java b/src/main/java/info/bukova/isspst/ui/main/orders/requirements/ReqListMyWorkgroups.java new file mode 100644 index 00000000..cc20ee71 --- /dev/null +++ b/src/main/java/info/bukova/isspst/ui/main/orders/requirements/ReqListMyWorkgroups.java @@ -0,0 +1,48 @@ +package info.bukova.isspst.ui.main.orders.requirements; + +import info.bukova.isspst.data.Requirement; +import info.bukova.isspst.data.Workgroup; +import info.bukova.isspst.filters.RequirementFilter; +import info.bukova.isspst.services.requirement.RequirementService; +import info.bukova.isspst.services.users.UserService; +import info.bukova.isspst.services.workgroups.WorkgroupService; +import info.bukova.isspst.ui.requirement.RequirementSubpage; + +import java.util.List; + +import org.zkoss.bind.annotation.Init; +import org.zkoss.zk.ui.select.annotation.WireVariable; + +public class ReqListMyWorkgroups extends RequirementSubpage +{ + + @WireVariable + private RequirementService requirementService; + + @WireVariable + private UserService userService; + + @WireVariable + private WorkgroupService workgroupService; + + public List getCentres() + { + return workgroupService.getUserCentres(userService.getCurrent()); + } + + @Init + public void init() + { + super.init(); + service = requirementService; + dataClass = Requirement.class; + formZul = "reqForm.zul"; + dataFilter = new RequirementFilter(getFilterTemplate()); + } + + @Override + protected List getListFromService() + { + return super.getListFromService(); + } +} diff --git a/src/main/java/info/bukova/isspst/ui/requirement/RequirementSubpage.java b/src/main/java/info/bukova/isspst/ui/requirement/RequirementSubpage.java index 2f9a723b..0f0601d9 100644 --- a/src/main/java/info/bukova/isspst/ui/requirement/RequirementSubpage.java +++ b/src/main/java/info/bukova/isspst/ui/requirement/RequirementSubpage.java @@ -2,14 +2,34 @@ package info.bukova.isspst.ui.requirement; import info.bukova.isspst.data.RequirementBase; import info.bukova.isspst.services.requirement.RequirementBaseService; +import info.bukova.isspst.ui.BigDecimalConverter; import info.bukova.isspst.ui.ListViewModel; import org.zkoss.bind.BindUtils; import org.zkoss.bind.annotation.Command; +import org.zkoss.bind.annotation.Init; import org.zkoss.bind.annotation.NotifyChange; public class RequirementSubpage extends ListViewModel { + private BigDecimalConverter bigDecimalConverter; + + public BigDecimalConverter getBigDecimalConverter() + { + return bigDecimalConverter; + } + + public void setBigDecimalConverter(BigDecimalConverter bigDecimalConverter) + { + this.bigDecimalConverter = bigDecimalConverter; + } + + @Init + public void init() + { + this.bigDecimalConverter = new BigDecimalConverter(); + } + @SuppressWarnings("unchecked") private RequirementBaseService getReqService() { diff --git a/src/main/webapp/WEB-INF/locales/zk-label.properties b/src/main/webapp/WEB-INF/locales/zk-label.properties index 4edf85ce..d2d55f7e 100644 --- a/src/main/webapp/WEB-INF/locales/zk-label.properties +++ b/src/main/webapp/WEB-INF/locales/zk-label.properties @@ -207,7 +207,10 @@ false=Ne Information=Informace Requirements=Požadavky Orders=Objednávky +CurrentRequirements=Aktuální požadavky +ApprovedOrders=Schválené objednávky BussinessTrips=Služební cesty +TravelOrders=Cestovní příkazy Lists=Seznamy Settings=Nastavení Administration=Administrace diff --git a/src/main/webapp/app/mainMenu.zul b/src/main/webapp/app/mainMenu.zul index 279dff1f..ed19343c 100644 --- a/src/main/webapp/app/mainMenu.zul +++ b/src/main/webapp/app/mainMenu.zul @@ -11,15 +11,28 @@ label="${labels.Information}" href="/" /> - - - + + + + + + + + + + + + @@ -40,6 +53,7 @@ href="/lists/buildings" disabled="${not sec:isAllGranted('PERM_READ_BUILDINGS')}" /> @@ -48,6 +62,7 @@ -
+
-
+
- +
\ No newline at end of file diff --git a/src/main/webapp/css/page.css b/src/main/webapp/css/page.css index 9a4740a5..98347b8d 100644 --- a/src/main/webapp/css/page.css +++ b/src/main/webapp/css/page.css @@ -1,43 +1,69 @@ html { /*vertical scrollbar allways visible */ - overflow: -moz-scrollbars-vertical; - overflow-y: scroll; + --overflow: -moz-scrollbars-vertical; + --overflow-y: scroll; + font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; } -#container { +html, body { + height: 100%; + margin: 0px 0px 0px 0px; + padding: 0px; +} + +#screen { + width: 100%; min-height: 100%; - position: relative; + margin: 0px 0px 0px 0px; } #header { - width: auto; height: 60px; - border: 1px solid #ccc; + padding-top: 5px; + padding-bottom: 5px; + /* při úzkém sloupci gridu neodřádkuje slova podle mezer */ + white-space: nowrap; + overflow: hidden; } -#navbar { - border: 1px solid #ccc; +#mainMenu { + height: 30px; + overflow: hidden; } -#maincolumn { - padding-top: 5px; - padding-bottom: 25px; /* Height of the footer */ +#mainData { + position: absolute; + width: 100%; + top: 105px; + bottom: 25px; + + overflow: auto; + margin: 0px 0px 0px 0px; + padding: 0px; } #footer { - width: 100%; - clear: both; position: absolute; - bottom: 5px; - height: 20px; /* Height of the footer */ - border: 1px solid #ccc; + bottom: 0px; + + width: 100%; + height: 20px; /* height of the footer */ + margin: 0px; + padding: 0px; + padding-top: 5px; + + border: 0px solid #ccc; text-align: center; vertical-align: center; font-size: 10px; color: gray; + + /* při úzkém sloupci gridu neodřádkuje slova podle mezer */ + white-space: nowrap; + overflow: hidden; } .form-caption { @@ -51,3 +77,15 @@ html { .form-caption-content { float: left; } + +.form-caption-image { + padding-right: 5px; +} + +/* +html, body { background-color: red; } +#screen { background-color: lightgreen; } +#mainMenu { background-color: yellow; } +#mainData { background-color: cyan; } +#footer { background-color: orange; } +*/ diff --git a/src/main/webapp/css/zk-modify.css b/src/main/webapp/css/zk-modify.css index 6d13c000..6364f59f 100644 --- a/src/main/webapp/css/zk-modify.css +++ b/src/main/webapp/css/zk-modify.css @@ -37,5 +37,12 @@ } .row-title { + /* ve formuláři zarovná u víceřádkových editů label nahoru */ vertical-align: top; -} \ No newline at end of file +} + +.z-listcell-content { + /* při úzkém sloupci gridu neodřádkuje slova podle mezer */ + white-space: nowrap; +} + diff --git a/src/main/webapp/img/global-setting-016.png b/src/main/webapp/img/global-setting-016.png new file mode 100644 index 00000000..8858cf1e Binary files /dev/null and b/src/main/webapp/img/global-setting-016.png differ diff --git a/src/main/webapp/img/global-setting-032.png b/src/main/webapp/img/global-setting-032.png new file mode 100644 index 00000000..d0bd2193 Binary files /dev/null and b/src/main/webapp/img/global-setting-032.png differ diff --git a/src/main/webapp/img/munits.png b/src/main/webapp/img/munits.png deleted file mode 100644 index bc56ed73..00000000 Binary files a/src/main/webapp/img/munits.png and /dev/null differ diff --git a/src/main/webapp/img/req-order-016.png b/src/main/webapp/img/req-order-016.png new file mode 100644 index 00000000..32d48bf3 Binary files /dev/null and b/src/main/webapp/img/req-order-016.png differ diff --git a/src/main/webapp/img/req-order-032.png b/src/main/webapp/img/req-order-032.png new file mode 100644 index 00000000..615f0c22 Binary files /dev/null and b/src/main/webapp/img/req-order-032.png differ diff --git a/src/main/webapp/img/req-trip-016.png b/src/main/webapp/img/req-trip-016.png new file mode 100644 index 00000000..ba011791 Binary files /dev/null and b/src/main/webapp/img/req-trip-016.png differ diff --git a/src/main/webapp/img/req-trip-032.png b/src/main/webapp/img/req-trip-032.png new file mode 100644 index 00000000..5cffe51b Binary files /dev/null and b/src/main/webapp/img/req-trip-032.png differ diff --git a/src/main/webapp/img/settings.png b/src/main/webapp/img/settings.png deleted file mode 100644 index 833e607d..00000000 Binary files a/src/main/webapp/img/settings.png and /dev/null differ diff --git a/src/main/webapp/img/tape-measure-016.png b/src/main/webapp/img/tape-measure-016.png new file mode 100644 index 00000000..e8b63857 Binary files /dev/null and b/src/main/webapp/img/tape-measure-016.png differ diff --git a/src/main/webapp/img/tape-measure-032.png b/src/main/webapp/img/tape-measure-032.png new file mode 100644 index 00000000..f2188eb1 Binary files /dev/null and b/src/main/webapp/img/tape-measure-032.png differ diff --git a/src/main/webapp/lists/munits/munitsForm.zul b/src/main/webapp/lists/munits/munitsForm.zul index e4916af2..1fdafd9b 100644 --- a/src/main/webapp/lists/munits/munitsForm.zul +++ b/src/main/webapp/lists/munits/munitsForm.zul @@ -1,24 +1,41 @@ - - + + - + ${labels.MUnitsFormName} : - + ${labels.MUnitsFormDescription} : - + diff --git a/src/main/webapp/lists/munits/munitsGrid.zul b/src/main/webapp/lists/munits/munitsGrid.zul index b7d00df8..c1f71706 100644 --- a/src/main/webapp/lists/munits/munitsGrid.zul +++ b/src/main/webapp/lists/munits/munitsGrid.zul @@ -1,21 +1,41 @@ - - + + - - + - - + + - - +
- +
@@ -25,7 +45,11 @@
- +
@@ -33,7 +57,6 @@
- - \ No newline at end of file diff --git a/src/main/webapp/requirements/actual/index.zul b/src/main/webapp/main/orders/requirements/index.zul similarity index 57% rename from src/main/webapp/requirements/actual/index.zul rename to src/main/webapp/main/orders/requirements/index.zul index 86024360..57ae3d87 100644 --- a/src/main/webapp/requirements/actual/index.zul +++ b/src/main/webapp/main/orders/requirements/index.zul @@ -2,9 +2,9 @@ - String gridZul = "requirements.zul"; + String gridZul = "setup.zul"; - + \ No newline at end of file diff --git a/src/main/webapp/requirements/actual/requirementsForm.zul b/src/main/webapp/main/orders/requirements/reqForm.zul similarity index 99% rename from src/main/webapp/requirements/actual/requirementsForm.zul rename to src/main/webapp/main/orders/requirements/reqForm.zul index 6d58d45b..e71ba831 100644 --- a/src/main/webapp/requirements/actual/requirementsForm.zul +++ b/src/main/webapp/main/orders/requirements/reqForm.zul @@ -9,7 +9,7 @@ viewModel="@id('vm') @init('info.bukova.isspst.ui.requirement.RequirementForm')" validationMessages="@id('vmsg')"> - + viewModel="@id('vm') @init('info.bukova.isspst.ui.main.orders.requirements.ReqListMy')"> + vflex="1" + selectedItem="@bind(vm.dataBean)" + model="@load(vm.dataList)"> + + + + + + + + + + + + + + +
+
+ +
+
+ +
+
+
+ +
+
+ +
+
+ +
+
+
+ +
+ + + +
+ +
+
+
+ +
+
+ +
+
+ +
+
+
+ +
+
+ +
+
+ +
+
+
+ +
+
+ +
+
+ +
+
+
+
+ +
+
+
\ No newline at end of file diff --git a/src/main/webapp/main/orders/requirements/reqListMyCenters.zul b/src/main/webapp/main/orders/requirements/reqListMyCenters.zul new file mode 100644 index 00000000..1767962f --- /dev/null +++ b/src/main/webapp/main/orders/requirements/reqListMyCenters.zul @@ -0,0 +1,144 @@ + + + + + + + + + + + + + + + +
+
+ +
+
+ +
+
+
+ +
+
+ +
+
+ +
+
+
+ +
+ + + +
+ +
+
+
+ +
+
+ +
+
+ +
+
+
+ +
+
+ +
+
+ +
+
+
+ +
+
+ +
+
+ +
+
+
+
+ +
+
+
\ No newline at end of file diff --git a/src/main/webapp/main/orders/requirements/reqListMyWorkgroups.zul b/src/main/webapp/main/orders/requirements/reqListMyWorkgroups.zul new file mode 100644 index 00000000..30ef9e6c --- /dev/null +++ b/src/main/webapp/main/orders/requirements/reqListMyWorkgroups.zul @@ -0,0 +1,144 @@ + + + + + + + + + + + + + + + +
+
+ +
+
+ +
+
+
+ +
+
+ +
+
+ +
+
+
+ +
+ + + +
+ +
+
+
+ +
+
+ +
+
+ +
+
+
+ +
+
+ +
+
+ +
+
+
+ +
+
+ +
+
+ +
+
+
+
+ +
+
+
\ No newline at end of file diff --git a/src/main/webapp/main/orders/requirements/setup.zul b/src/main/webapp/main/orders/requirements/setup.zul new file mode 100644 index 00000000..4b31918a --- /dev/null +++ b/src/main/webapp/main/orders/requirements/setup.zul @@ -0,0 +1,21 @@ + + + + + String gridMy = "/main/orders/requirements/reqListMy.zul"; + String gridMyCenters = "/main/orders/requirements/reqListMyCenters.zul"; + String gridMyWorkgroups = "/main/orders/requirements/reqListMyWorkgroups.zul"; + String gridAll = "/main/orders/requirements/reqListMyAll.zul"; + + + + + + \ No newline at end of file diff --git a/src/main/webapp/main/tabPanels.zul b/src/main/webapp/main/tabPanels.zul new file mode 100644 index 00000000..072ee3af --- /dev/null +++ b/src/main/webapp/main/tabPanels.zul @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/webapp/main/toolbar.zul b/src/main/webapp/main/toolbar.zul new file mode 100644 index 00000000..f80975e2 --- /dev/null +++ b/src/main/webapp/main/toolbar.zul @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/src/main/webapp/settings/globalSettings.zul b/src/main/webapp/settings/globalSettings.zul index 6af0f30d..14b45da8 100644 --- a/src/main/webapp/settings/globalSettings.zul +++ b/src/main/webapp/settings/globalSettings.zul @@ -1,40 +1,50 @@ - + - - - - - - - - - - - - - -
- -
-
- - - - - - - - - - - - -
-
- - - -
+ + + + + + + + + + + + +
+ +
+
+ + + + + + + + + + + + +
+
+ +
\ No newline at end of file