Přepracovány styly pro celkový vzhled okna, nastavení rolování gridu.
BigDecimalConverter přesunut do báze... Odstraněna stará cesta k původním požadavkům. Nové požadavky připraveny do tabů.multitenant
@ -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<Requirement>
|
||||||
|
{
|
||||||
|
|
||||||
|
@WireVariable
|
||||||
|
private RequirementService requirementService;
|
||||||
|
|
||||||
|
@WireVariable
|
||||||
|
private UserService userService;
|
||||||
|
|
||||||
|
@WireVariable
|
||||||
|
private WorkgroupService workgroupService;
|
||||||
|
|
||||||
|
public List<Workgroup> 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<Requirement> getListFromService()
|
||||||
|
{
|
||||||
|
return super.getListFromService();
|
||||||
|
}
|
||||||
|
}
|
@ -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<Requirement>
|
||||||
|
{
|
||||||
|
|
||||||
|
@WireVariable
|
||||||
|
private RequirementService requirementService;
|
||||||
|
|
||||||
|
@WireVariable
|
||||||
|
private UserService userService;
|
||||||
|
|
||||||
|
@WireVariable
|
||||||
|
private WorkgroupService workgroupService;
|
||||||
|
|
||||||
|
public List<Workgroup> 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<Requirement> getListFromService()
|
||||||
|
{
|
||||||
|
return super.getListFromService();
|
||||||
|
}
|
||||||
|
}
|
@ -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<Requirement>
|
||||||
|
{
|
||||||
|
|
||||||
|
@WireVariable
|
||||||
|
private RequirementService requirementService;
|
||||||
|
|
||||||
|
@WireVariable
|
||||||
|
private UserService userService;
|
||||||
|
|
||||||
|
@WireVariable
|
||||||
|
private WorkgroupService workgroupService;
|
||||||
|
|
||||||
|
public List<Workgroup> 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<Requirement> getListFromService()
|
||||||
|
{
|
||||||
|
return super.getListFromService();
|
||||||
|
}
|
||||||
|
}
|
@ -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<Requirement>
|
||||||
|
{
|
||||||
|
|
||||||
|
@WireVariable
|
||||||
|
private RequirementService requirementService;
|
||||||
|
|
||||||
|
@WireVariable
|
||||||
|
private UserService userService;
|
||||||
|
|
||||||
|
@WireVariable
|
||||||
|
private WorkgroupService workgroupService;
|
||||||
|
|
||||||
|
public List<Workgroup> 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<Requirement> getListFromService()
|
||||||
|
{
|
||||||
|
return super.getListFromService();
|
||||||
|
}
|
||||||
|
}
|
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 698 B |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 679 B |
After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 712 B |
After Width: | Height: | Size: 1.8 KiB |
@ -1,17 +1,15 @@
|
|||||||
<?page title="${labels.AgendaActRequirements}" contentType="text/html;charset=UTF-8"?>
|
|
||||||
<zk>
|
<zk>
|
||||||
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||||
<window
|
<window
|
||||||
border="normal"
|
vflex="1"
|
||||||
|
border="none"
|
||||||
apply="org.zkoss.bind.BindComposer"
|
apply="org.zkoss.bind.BindComposer"
|
||||||
viewModel="@id('vm') @init('info.bukova.isspst.ui.requirement.RequirementList')">
|
viewModel="@id('vm') @init('info.bukova.isspst.ui.main.orders.requirements.ReqListMy')">
|
||||||
<caption
|
|
||||||
zclass="form-caption"
|
|
||||||
label="${labels.AgendaActRequirements}" />
|
|
||||||
<include src="/app/toolbar.zul" />
|
<include src="/app/toolbar.zul" />
|
||||||
<listbox
|
<listbox
|
||||||
model="@load(vm.dataList)"
|
vflex="1"
|
||||||
selectedItem="@bind(vm.dataBean)">
|
selectedItem="@bind(vm.dataBean)"
|
||||||
|
model="@load(vm.dataList)">
|
||||||
<listhead menupopup="auto">
|
<listhead menupopup="auto">
|
||||||
<listheader
|
<listheader
|
||||||
label="${labels.RequirementsGridNumberSerie}"
|
label="${labels.RequirementsGridNumberSerie}"
|
@ -0,0 +1,144 @@
|
|||||||
|
<zk>
|
||||||
|
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||||
|
<window
|
||||||
|
vflex="1"
|
||||||
|
border="none"
|
||||||
|
apply="org.zkoss.bind.BindComposer"
|
||||||
|
viewModel="@id('vm') @init('info.bukova.isspst.ui.main.orders.requirements.ReqListMyAll')">
|
||||||
|
<include src="/main/toolbar.zul" />
|
||||||
|
<listbox
|
||||||
|
vflex="1"
|
||||||
|
selectedItem="@bind(vm.dataBean)"
|
||||||
|
model="@load(vm.dataList)">
|
||||||
|
<listhead menupopup="auto">
|
||||||
|
<listheader
|
||||||
|
label="${labels.RequirementsGridNumberSerie}"
|
||||||
|
sort="czech(numser)"
|
||||||
|
width="7%" />
|
||||||
|
<listheader
|
||||||
|
label="${labels.RequirementsGridReqDate}"
|
||||||
|
sort="auto(reqDate)"
|
||||||
|
width="13%" />
|
||||||
|
<listheader
|
||||||
|
label="${labels.RequirementsGridCenter}"
|
||||||
|
sort="czech(description)"
|
||||||
|
width="10%" />
|
||||||
|
<listheader
|
||||||
|
label="${labels.RequirementsGridDeliveryDate}"
|
||||||
|
sort="auto(reqDate)"
|
||||||
|
width="13%" />
|
||||||
|
<listheader
|
||||||
|
label="${labels.Amount}"
|
||||||
|
sort="auto(sumTotal)"
|
||||||
|
align="right"
|
||||||
|
width="10%" />
|
||||||
|
<listheader
|
||||||
|
label="${labels.RequirementsGridDescription}"
|
||||||
|
sort="czech(description)"
|
||||||
|
width="60%" />
|
||||||
|
</listhead>
|
||||||
|
<auxhead
|
||||||
|
sclass="category-center"
|
||||||
|
visible="@load(vm.filter)">
|
||||||
|
<auxheader>
|
||||||
|
<div sclass="find-grid-cell">
|
||||||
|
<div sclass="find-grid-divtextbox">
|
||||||
|
<textbox
|
||||||
|
value="@bind(vm.filterTemplate.numser)"
|
||||||
|
instant="true"
|
||||||
|
onChange="@command('doFilter')"
|
||||||
|
sclass="find-grid-textbox" />
|
||||||
|
</div>
|
||||||
|
<div sclass="find-grid-img">
|
||||||
|
<image src="/img/funnel.png" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</auxheader>
|
||||||
|
<auxheader>
|
||||||
|
<div sclass="find-grid-cell">
|
||||||
|
<div sclass="find-grid-divtextbox">
|
||||||
|
<datebox
|
||||||
|
value="@bind(vm.filterTemplate.reqDate)"
|
||||||
|
format="${labels.DateFormat}"
|
||||||
|
instant="true"
|
||||||
|
onChange="@command('doFilter')"
|
||||||
|
sclass="find-grid-textbox" />
|
||||||
|
</div>
|
||||||
|
<div sclass="find-grid-img">
|
||||||
|
<image src="/img/funnel.png" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</auxheader>
|
||||||
|
<auxheader>
|
||||||
|
<div sclass="find-grid-cell">
|
||||||
|
<combobox
|
||||||
|
model="@load(vm.centres)"
|
||||||
|
readonly="true"
|
||||||
|
width="100%"
|
||||||
|
selectedItem="@bind(vm.filterTemplate.workgroup)">
|
||||||
|
<template name="model">
|
||||||
|
<comboitem label="@load(each.fullName)" />
|
||||||
|
</template>
|
||||||
|
</combobox>
|
||||||
|
<div sclass="find-grid-img">
|
||||||
|
<image src="/img/funnel.png" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</auxheader>
|
||||||
|
<auxheader>
|
||||||
|
<div sclass="find-grid-cell">
|
||||||
|
<div sclass="find-grid-divtextbox">
|
||||||
|
<datebox
|
||||||
|
value="@bind(vm.filterTemplate.deliveryDate)"
|
||||||
|
format="${labels.DateFormat}"
|
||||||
|
instant="true"
|
||||||
|
onChange="@command('doFilter')"
|
||||||
|
sclass="find-grid-textbox" />
|
||||||
|
</div>
|
||||||
|
<div sclass="find-grid-img">
|
||||||
|
<image src="/img/funnel.png" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</auxheader>
|
||||||
|
<auxheader>
|
||||||
|
<div sclass="find-grid-cell">
|
||||||
|
<div sclass="find-grid-divtextbox">
|
||||||
|
<textbox
|
||||||
|
value="@bind(vm.filterTemplate.sumTotal) @converter(vm.bigDecimalConverter)"
|
||||||
|
instant="true"
|
||||||
|
onChange="@command('doFilter')"
|
||||||
|
sclass="find-grid-textbox" />
|
||||||
|
</div>
|
||||||
|
<div sclass="find-grid-img">
|
||||||
|
<image src="/img/funnel.png" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</auxheader>
|
||||||
|
<auxheader>
|
||||||
|
<div sclass="find-grid-cell">
|
||||||
|
<div sclass="find-grid-divtextbox">
|
||||||
|
<textbox
|
||||||
|
value="@bind(vm.filterTemplate.description)"
|
||||||
|
instant="true"
|
||||||
|
onChange="@command('doFilter')"
|
||||||
|
sclass="find-grid-textbox" />
|
||||||
|
</div>
|
||||||
|
<div sclass="find-grid-img">
|
||||||
|
<image src="/img/funnel.png" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</auxheader>
|
||||||
|
</auxhead>
|
||||||
|
<template name="model">
|
||||||
|
<listitem>
|
||||||
|
<listcell label="@load(each.numser)" />
|
||||||
|
<listcell label="@load(each.reqDate) @converter('formatedDate', format=labels.DateFormat)" />
|
||||||
|
<listcell label="@load(each.workgroup.fullName)" />
|
||||||
|
<listcell label="@load(each.deliveryDate) @converter('formatedDate', format=labels.DateFormat)" />
|
||||||
|
<listcell label="@load(each.sumTotal) @converter(vm.bigDecimalConverter)" />
|
||||||
|
<listcell label="@load(each.description)" />
|
||||||
|
</listitem>
|
||||||
|
</template>
|
||||||
|
</listbox>
|
||||||
|
</window>
|
||||||
|
</zk>
|
@ -0,0 +1,144 @@
|
|||||||
|
<zk>
|
||||||
|
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||||
|
<window
|
||||||
|
vflex="1"
|
||||||
|
border="none"
|
||||||
|
apply="org.zkoss.bind.BindComposer"
|
||||||
|
viewModel="@id('vm') @init('info.bukova.isspst.ui.main.orders.requirements.ReqListMyCenters')">
|
||||||
|
<include src="/main/toolbar.zul" />
|
||||||
|
<listbox
|
||||||
|
vflex="1"
|
||||||
|
selectedItem="@bind(vm.dataBean)"
|
||||||
|
model="@load(vm.dataList)">
|
||||||
|
<listhead menupopup="auto">
|
||||||
|
<listheader
|
||||||
|
label="${labels.RequirementsGridNumberSerie}"
|
||||||
|
sort="czech(numser)"
|
||||||
|
width="7%" />
|
||||||
|
<listheader
|
||||||
|
label="${labels.RequirementsGridReqDate}"
|
||||||
|
sort="auto(reqDate)"
|
||||||
|
width="13%" />
|
||||||
|
<listheader
|
||||||
|
label="${labels.RequirementsGridCenter}"
|
||||||
|
sort="czech(description)"
|
||||||
|
width="10%" />
|
||||||
|
<listheader
|
||||||
|
label="${labels.RequirementsGridDeliveryDate}"
|
||||||
|
sort="auto(reqDate)"
|
||||||
|
width="13%" />
|
||||||
|
<listheader
|
||||||
|
label="${labels.Amount}"
|
||||||
|
sort="auto(sumTotal)"
|
||||||
|
align="right"
|
||||||
|
width="10%" />
|
||||||
|
<listheader
|
||||||
|
label="${labels.RequirementsGridDescription}"
|
||||||
|
sort="czech(description)"
|
||||||
|
width="60%" />
|
||||||
|
</listhead>
|
||||||
|
<auxhead
|
||||||
|
sclass="category-center"
|
||||||
|
visible="@load(vm.filter)">
|
||||||
|
<auxheader>
|
||||||
|
<div sclass="find-grid-cell">
|
||||||
|
<div sclass="find-grid-divtextbox">
|
||||||
|
<textbox
|
||||||
|
value="@bind(vm.filterTemplate.numser)"
|
||||||
|
instant="true"
|
||||||
|
onChange="@command('doFilter')"
|
||||||
|
sclass="find-grid-textbox" />
|
||||||
|
</div>
|
||||||
|
<div sclass="find-grid-img">
|
||||||
|
<image src="/img/funnel.png" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</auxheader>
|
||||||
|
<auxheader>
|
||||||
|
<div sclass="find-grid-cell">
|
||||||
|
<div sclass="find-grid-divtextbox">
|
||||||
|
<datebox
|
||||||
|
value="@bind(vm.filterTemplate.reqDate)"
|
||||||
|
format="${labels.DateFormat}"
|
||||||
|
instant="true"
|
||||||
|
onChange="@command('doFilter')"
|
||||||
|
sclass="find-grid-textbox" />
|
||||||
|
</div>
|
||||||
|
<div sclass="find-grid-img">
|
||||||
|
<image src="/img/funnel.png" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</auxheader>
|
||||||
|
<auxheader>
|
||||||
|
<div sclass="find-grid-cell">
|
||||||
|
<combobox
|
||||||
|
model="@load(vm.centres)"
|
||||||
|
readonly="true"
|
||||||
|
width="100%"
|
||||||
|
selectedItem="@bind(vm.filterTemplate.workgroup)">
|
||||||
|
<template name="model">
|
||||||
|
<comboitem label="@load(each.fullName)" />
|
||||||
|
</template>
|
||||||
|
</combobox>
|
||||||
|
<div sclass="find-grid-img">
|
||||||
|
<image src="/img/funnel.png" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</auxheader>
|
||||||
|
<auxheader>
|
||||||
|
<div sclass="find-grid-cell">
|
||||||
|
<div sclass="find-grid-divtextbox">
|
||||||
|
<datebox
|
||||||
|
value="@bind(vm.filterTemplate.deliveryDate)"
|
||||||
|
format="${labels.DateFormat}"
|
||||||
|
instant="true"
|
||||||
|
onChange="@command('doFilter')"
|
||||||
|
sclass="find-grid-textbox" />
|
||||||
|
</div>
|
||||||
|
<div sclass="find-grid-img">
|
||||||
|
<image src="/img/funnel.png" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</auxheader>
|
||||||
|
<auxheader>
|
||||||
|
<div sclass="find-grid-cell">
|
||||||
|
<div sclass="find-grid-divtextbox">
|
||||||
|
<textbox
|
||||||
|
value="@bind(vm.filterTemplate.sumTotal) @converter(vm.bigDecimalConverter)"
|
||||||
|
instant="true"
|
||||||
|
onChange="@command('doFilter')"
|
||||||
|
sclass="find-grid-textbox" />
|
||||||
|
</div>
|
||||||
|
<div sclass="find-grid-img">
|
||||||
|
<image src="/img/funnel.png" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</auxheader>
|
||||||
|
<auxheader>
|
||||||
|
<div sclass="find-grid-cell">
|
||||||
|
<div sclass="find-grid-divtextbox">
|
||||||
|
<textbox
|
||||||
|
value="@bind(vm.filterTemplate.description)"
|
||||||
|
instant="true"
|
||||||
|
onChange="@command('doFilter')"
|
||||||
|
sclass="find-grid-textbox" />
|
||||||
|
</div>
|
||||||
|
<div sclass="find-grid-img">
|
||||||
|
<image src="/img/funnel.png" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</auxheader>
|
||||||
|
</auxhead>
|
||||||
|
<template name="model">
|
||||||
|
<listitem>
|
||||||
|
<listcell label="@load(each.numser)" />
|
||||||
|
<listcell label="@load(each.reqDate) @converter('formatedDate', format=labels.DateFormat)" />
|
||||||
|
<listcell label="@load(each.workgroup.fullName)" />
|
||||||
|
<listcell label="@load(each.deliveryDate) @converter('formatedDate', format=labels.DateFormat)" />
|
||||||
|
<listcell label="@load(each.sumTotal) @converter(vm.bigDecimalConverter)" />
|
||||||
|
<listcell label="@load(each.description)" />
|
||||||
|
</listitem>
|
||||||
|
</template>
|
||||||
|
</listbox>
|
||||||
|
</window>
|
||||||
|
</zk>
|
@ -0,0 +1,144 @@
|
|||||||
|
<zk>
|
||||||
|
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||||
|
<window
|
||||||
|
vflex="1"
|
||||||
|
border="none"
|
||||||
|
apply="org.zkoss.bind.BindComposer"
|
||||||
|
viewModel="@id('vm') @init('info.bukova.isspst.ui.main.orders.requirements.ReqListMyWorkgroups')">
|
||||||
|
<include src="/main/toolbar.zul" />
|
||||||
|
<listbox
|
||||||
|
vflex="1"
|
||||||
|
selectedItem="@bind(vm.dataBean)"
|
||||||
|
model="@load(vm.dataList)">
|
||||||
|
<listhead menupopup="auto">
|
||||||
|
<listheader
|
||||||
|
label="${labels.RequirementsGridNumberSerie}"
|
||||||
|
sort="czech(numser)"
|
||||||
|
width="7%" />
|
||||||
|
<listheader
|
||||||
|
label="${labels.RequirementsGridReqDate}"
|
||||||
|
sort="auto(reqDate)"
|
||||||
|
width="13%" />
|
||||||
|
<listheader
|
||||||
|
label="${labels.RequirementsGridCenter}"
|
||||||
|
sort="czech(description)"
|
||||||
|
width="10%" />
|
||||||
|
<listheader
|
||||||
|
label="${labels.RequirementsGridDeliveryDate}"
|
||||||
|
sort="auto(reqDate)"
|
||||||
|
width="13%" />
|
||||||
|
<listheader
|
||||||
|
label="${labels.Amount}"
|
||||||
|
sort="auto(sumTotal)"
|
||||||
|
align="right"
|
||||||
|
width="10%" />
|
||||||
|
<listheader
|
||||||
|
label="${labels.RequirementsGridDescription}"
|
||||||
|
sort="czech(description)"
|
||||||
|
width="60%" />
|
||||||
|
</listhead>
|
||||||
|
<auxhead
|
||||||
|
sclass="category-center"
|
||||||
|
visible="@load(vm.filter)">
|
||||||
|
<auxheader>
|
||||||
|
<div sclass="find-grid-cell">
|
||||||
|
<div sclass="find-grid-divtextbox">
|
||||||
|
<textbox
|
||||||
|
value="@bind(vm.filterTemplate.numser)"
|
||||||
|
instant="true"
|
||||||
|
onChange="@command('doFilter')"
|
||||||
|
sclass="find-grid-textbox" />
|
||||||
|
</div>
|
||||||
|
<div sclass="find-grid-img">
|
||||||
|
<image src="/img/funnel.png" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</auxheader>
|
||||||
|
<auxheader>
|
||||||
|
<div sclass="find-grid-cell">
|
||||||
|
<div sclass="find-grid-divtextbox">
|
||||||
|
<datebox
|
||||||
|
value="@bind(vm.filterTemplate.reqDate)"
|
||||||
|
format="${labels.DateFormat}"
|
||||||
|
instant="true"
|
||||||
|
onChange="@command('doFilter')"
|
||||||
|
sclass="find-grid-textbox" />
|
||||||
|
</div>
|
||||||
|
<div sclass="find-grid-img">
|
||||||
|
<image src="/img/funnel.png" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</auxheader>
|
||||||
|
<auxheader>
|
||||||
|
<div sclass="find-grid-cell">
|
||||||
|
<combobox
|
||||||
|
model="@load(vm.centres)"
|
||||||
|
readonly="true"
|
||||||
|
width="100%"
|
||||||
|
selectedItem="@bind(vm.filterTemplate.workgroup)">
|
||||||
|
<template name="model">
|
||||||
|
<comboitem label="@load(each.fullName)" />
|
||||||
|
</template>
|
||||||
|
</combobox>
|
||||||
|
<div sclass="find-grid-img">
|
||||||
|
<image src="/img/funnel.png" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</auxheader>
|
||||||
|
<auxheader>
|
||||||
|
<div sclass="find-grid-cell">
|
||||||
|
<div sclass="find-grid-divtextbox">
|
||||||
|
<datebox
|
||||||
|
value="@bind(vm.filterTemplate.deliveryDate)"
|
||||||
|
format="${labels.DateFormat}"
|
||||||
|
instant="true"
|
||||||
|
onChange="@command('doFilter')"
|
||||||
|
sclass="find-grid-textbox" />
|
||||||
|
</div>
|
||||||
|
<div sclass="find-grid-img">
|
||||||
|
<image src="/img/funnel.png" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</auxheader>
|
||||||
|
<auxheader>
|
||||||
|
<div sclass="find-grid-cell">
|
||||||
|
<div sclass="find-grid-divtextbox">
|
||||||
|
<textbox
|
||||||
|
value="@bind(vm.filterTemplate.sumTotal) @converter(vm.bigDecimalConverter)"
|
||||||
|
instant="true"
|
||||||
|
onChange="@command('doFilter')"
|
||||||
|
sclass="find-grid-textbox" />
|
||||||
|
</div>
|
||||||
|
<div sclass="find-grid-img">
|
||||||
|
<image src="/img/funnel.png" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</auxheader>
|
||||||
|
<auxheader>
|
||||||
|
<div sclass="find-grid-cell">
|
||||||
|
<div sclass="find-grid-divtextbox">
|
||||||
|
<textbox
|
||||||
|
value="@bind(vm.filterTemplate.description)"
|
||||||
|
instant="true"
|
||||||
|
onChange="@command('doFilter')"
|
||||||
|
sclass="find-grid-textbox" />
|
||||||
|
</div>
|
||||||
|
<div sclass="find-grid-img">
|
||||||
|
<image src="/img/funnel.png" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</auxheader>
|
||||||
|
</auxhead>
|
||||||
|
<template name="model">
|
||||||
|
<listitem>
|
||||||
|
<listcell label="@load(each.numser)" />
|
||||||
|
<listcell label="@load(each.reqDate) @converter('formatedDate', format=labels.DateFormat)" />
|
||||||
|
<listcell label="@load(each.workgroup.fullName)" />
|
||||||
|
<listcell label="@load(each.deliveryDate) @converter('formatedDate', format=labels.DateFormat)" />
|
||||||
|
<listcell label="@load(each.sumTotal) @converter(vm.bigDecimalConverter)" />
|
||||||
|
<listcell label="@load(each.description)" />
|
||||||
|
</listitem>
|
||||||
|
</template>
|
||||||
|
</listbox>
|
||||||
|
</window>
|
||||||
|
</zk>
|
@ -0,0 +1,21 @@
|
|||||||
|
<?page title="new page title" contentType="text/html;charset=UTF-8"?>
|
||||||
|
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||||
|
<zk>
|
||||||
|
<zscript>
|
||||||
|
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";
|
||||||
|
</zscript>
|
||||||
|
<window
|
||||||
|
vflex="1"
|
||||||
|
border="normal">
|
||||||
|
<caption
|
||||||
|
image="/img/req-order-032.png"
|
||||||
|
zclass="form-caption"
|
||||||
|
label="${labels.AgendaActRequirements}" />
|
||||||
|
<include
|
||||||
|
vflex="1"
|
||||||
|
src="/main/tabPanels.zul" />
|
||||||
|
</window>
|
||||||
|
</zk>
|
@ -0,0 +1,22 @@
|
|||||||
|
<tabbox vflex="1">
|
||||||
|
<tabs>
|
||||||
|
<tab label="${labels.RequirementsGridMy}" />
|
||||||
|
<tab label="${labels.RequirementsGridMyCentres}" />
|
||||||
|
<tab label="${labels.RequirementsGridMyWorkgroups}" />
|
||||||
|
<tab label="${labels.RequirementsGridAll}" />
|
||||||
|
</tabs>
|
||||||
|
<tabpanels>
|
||||||
|
<tabpanel>
|
||||||
|
<include src="${gridMy}" />
|
||||||
|
</tabpanel>
|
||||||
|
<tabpanel>
|
||||||
|
<include src="${gridMyCenters}" />
|
||||||
|
</tabpanel>
|
||||||
|
<tabpanel>
|
||||||
|
<include src="${gridMyWorkgroups}" />
|
||||||
|
</tabpanel>
|
||||||
|
<tabpanel>
|
||||||
|
<include src="${gridAll}" />
|
||||||
|
</tabpanel>
|
||||||
|
</tabpanels>
|
||||||
|
</tabbox>
|
@ -0,0 +1,8 @@
|
|||||||
|
<?page title="req toolbar" contentType="text/html;charset=UTF-8"?>
|
||||||
|
<zk>
|
||||||
|
<toolbar>
|
||||||
|
<toolbarbutton image="/img/edit.png" tooltiptext="${labels.ToolbarRecEdit}" id="btnEdit" onClick="@command('edit')" disabled="@load(empty vm.dataBean ? 'true' : 'false')"/>
|
||||||
|
<toolbarbutton image="/img/funnel.png" tooltiptext="${labels.ToolbarRecFilter}" id="btnFilter" onClick="@command('filter')" />
|
||||||
|
<toolbarbutton image="/img/print.png" tooltiptext="${labels.ToolbarPrint}" id="btnPrint" onClick="@command('onPrint')" />
|
||||||
|
</toolbar>
|
||||||
|
</zk>
|