|
|
|
@ -1,22 +1,19 @@
|
|
|
|
|
<?page title="Dodavatelé" contentType="text/html;charset=UTF-8"?>
|
|
|
|
|
<?page title="${labels.AgendaSuppliers}" contentType="text/html;charset=UTF-8"?>
|
|
|
|
|
<zk>
|
|
|
|
|
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
|
|
|
|
<window title="Dodavatelé" border="normal"
|
|
|
|
|
apply="org.zkoss.bind.BindComposer" height="570px"
|
|
|
|
|
viewModel="@id('vm') @init('info.bukova.isspst.ui.addressbook.AddressList')">
|
|
|
|
|
|
|
|
|
|
<include src="/app/toolbar.zul"/>
|
|
|
|
|
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
|
|
|
|
<window border="normal" apply="org.zkoss.bind.BindComposer" height="570px" viewModel="@id('vm') @init('info.bukova.isspst.ui.addressbook.AddressList')">
|
|
|
|
|
<caption zclass="form-caption" label="${labels.AgendaSuppliers}" />
|
|
|
|
|
<include src="/app/toolbar.zul" />
|
|
|
|
|
|
|
|
|
|
<hbox width="100%">
|
|
|
|
|
<listbox id="dataGrid" model="@load(vm.dataList)" selectedItem="@bind(vm.dataBean)"
|
|
|
|
|
onAfterRender="@command('afterRender')" selectedIndex="@load(vm.selIndex)" hflex="6" height="480px">
|
|
|
|
|
<listhead vflex="true">
|
|
|
|
|
<listheader label="Firma" sort="auto(company)" onSort="@command('onSort', column='company')" />
|
|
|
|
|
<listheader label="IČ" width="100px"/>
|
|
|
|
|
<listheader label="Kontaktní osoba"/>
|
|
|
|
|
<listheader label="Ulice"/>
|
|
|
|
|
<listheader label="Číslo domu" width="80px"/>
|
|
|
|
|
<listheader label="Město" sort="auto(city)" onSort="@command('onSort', column='city')"/>
|
|
|
|
|
<listbox id="dataGrid" model="@load(vm.dataList)" selectedItem="@bind(vm.dataBean)" onAfterRender="@command('afterRender')" selectedIndex="@load(vm.selIndex)" hflex="6" height="480px">
|
|
|
|
|
<listhead vflex="true" menupopup="auto">
|
|
|
|
|
<listheader label="${labels.SuppliersGridColumnCompany}" sort="auto(company)" />
|
|
|
|
|
<listheader label="${labels.SuppliersGridColumnIC}" sort="auto(ic)" width="100px" />
|
|
|
|
|
<listheader label="${labels.SuppliersGridColumnContact}" sort="auto(contactName)" />
|
|
|
|
|
<listheader label="${labels.SuppliersGridColumnStreet}" sort="auto(street)" />
|
|
|
|
|
<listheader label="${labels.SuppliersGridColumnNo}" sort="auto(houseNumber)" width="80px" />
|
|
|
|
|
<listheader label="${labels.SuppliersGridColumnCity}" sort="auto(city)" />
|
|
|
|
|
</listhead>
|
|
|
|
|
|
|
|
|
|
<auxhead sclass="category-center" visible="@load(vm.filter)">
|
|
|
|
@ -84,37 +81,46 @@
|
|
|
|
|
|
|
|
|
|
<template name="model">
|
|
|
|
|
<listitem>
|
|
|
|
|
<listcell label="@load(each.company)"/>
|
|
|
|
|
<listcell label="@load(each.ic)"/>
|
|
|
|
|
<listcell label="@load(each.contactName)"/>
|
|
|
|
|
<listcell label="@load(each.street)"/>
|
|
|
|
|
<listcell label="@load(each.houseNumber)"/>
|
|
|
|
|
<listcell label="@load(each.city)"/>
|
|
|
|
|
<listcell label="@load(each.company)" />
|
|
|
|
|
<listcell label="@load(each.ic)" />
|
|
|
|
|
<listcell label="@load(each.contactName)" />
|
|
|
|
|
<listcell label="@load(each.street)" />
|
|
|
|
|
<listcell label="@load(each.houseNumber)" />
|
|
|
|
|
<listcell label="@load(each.city)" />
|
|
|
|
|
</listitem>
|
|
|
|
|
</template>
|
|
|
|
|
</listbox>
|
|
|
|
|
|
|
|
|
|
<div hflex="4">
|
|
|
|
|
<label value="Detail:" sclass="bold"/>
|
|
|
|
|
<label value="${labels.SuppliersGridColumnDetail}:" sclass="bold" />
|
|
|
|
|
<grid visible="@load(vm.dataBean ne null)" hflex="1">
|
|
|
|
|
<columns>
|
|
|
|
|
<column hflex="min"/>
|
|
|
|
|
<column/>
|
|
|
|
|
<column hflex="min" />
|
|
|
|
|
<column />
|
|
|
|
|
</columns>
|
|
|
|
|
<rows>
|
|
|
|
|
<row><label value="Oddělení"/><label value="@load(vm.dataBean.department)"/></row>
|
|
|
|
|
<row><label value="Telefon"/><label value="@load(vm.dataBean.phone)"/></row>
|
|
|
|
|
<row><label value="Email"/><label value="@load(vm.dataBean.email)"/></row>
|
|
|
|
|
<row><label value="Web"/><label value="@load(vm.dataBean.web)"/></row>
|
|
|
|
|
<row>
|
|
|
|
|
<label value="${labels.SuppliersGridColumnDepartment}" />
|
|
|
|
|
<label value="@load(vm.dataBean.department)" />
|
|
|
|
|
</row>
|
|
|
|
|
<row>
|
|
|
|
|
<label value="${labels.SuppliersGridColumnPhone}" />
|
|
|
|
|
<label value="@load(vm.dataBean.phone)" />
|
|
|
|
|
</row>
|
|
|
|
|
<row>
|
|
|
|
|
<label value="${labels.SuppliersGridColumnEmail}" />
|
|
|
|
|
<label value="@load(vm.dataBean.email)" />
|
|
|
|
|
</row>
|
|
|
|
|
<row>
|
|
|
|
|
<label value="${labels.SuppliersGridColumnWWW}" />
|
|
|
|
|
<label value="@load(vm.dataBean.web)" />
|
|
|
|
|
</row>
|
|
|
|
|
</rows>
|
|
|
|
|
</grid>
|
|
|
|
|
<label value="Poznámka:" visible="@load(not empty vm.dataBean.description)" sclass="bold"/>
|
|
|
|
|
<html style="font-family:arial,sans-serif;font-size:12px;" content="@load(vm.dataBean.description)"/>
|
|
|
|
|
<mapa address="@load((empty vm.dataBean.street ? vm.dataBean.city : vm.dataBean.street).concat(' ').concat(vm.dataBean.houseNumber).concat(', ').concat(vm.dataBean.city))" width="360px" height="180px" visible="@load(vm.dataBean ne null)"/>
|
|
|
|
|
<label value="${labels.SuppliersGridColumnNote}:" visible="@load(not empty vm.dataBean.description)" sclass="bold" />
|
|
|
|
|
<html style="font-family:arial,sans-serif;font-size:12px;" content="@load(vm.dataBean.description)" />
|
|
|
|
|
<mapa address="@load((empty vm.dataBean.street ? vm.dataBean.city : vm.dataBean.street).concat(' ').concat(vm.dataBean.houseNumber).concat(', ').concat(vm.dataBean.city))" width="100%" height="300px" visible="@load(vm.dataBean ne null)" />
|
|
|
|
|
</div>
|
|
|
|
|
</hbox>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</window>
|
|
|
|
|
|
|
|
|
|
</window>
|
|
|
|
|
</zk>
|