Agenda Dodavatelé - adresář
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?page title="${labels.FindResult}" contentType="text/html;charset=UTF-8"?>
|
||||
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||
<zk>
|
||||
<window id="findResult" title="Výsledek hledání" border="normal" apply="org.zkoss.bind.BindComposer"
|
||||
viewModel="@id('vm') @init('info.bukova.isspst.ui.addressbook.AddressFindResult')"
|
||||
closable="true" width="700px">
|
||||
|
||||
<style src="/app/form.css"/>
|
||||
|
||||
<listbox model="@load(vm.listResult)" height="300px" selectedItem="@bind(vm.selectedAddr)">
|
||||
<listhead>
|
||||
<listheader label="Firma" sort="auto(company)"/>
|
||||
<listheader label="IČ"/>
|
||||
<listheader label="Ulice"/>
|
||||
<listheader label="Číslo domu" width="80px"/>
|
||||
<listheader label="Město"/>
|
||||
</listhead>
|
||||
<template name="model">
|
||||
<listitem>
|
||||
<listcell label="@load(each.company)"/>
|
||||
<listcell label="@load(each.ic)"/>
|
||||
<listcell label="@load(each.street)"/>
|
||||
<listcell label="@load(each.houseNumber)"/>
|
||||
<listcell label="@load(each.city)"/>
|
||||
</listitem>
|
||||
</template>
|
||||
</listbox>
|
||||
<button label="Zvolit" onClick="@global-command('selectAddress', selected=vm.selectedAddr, window=findResult)" disabled="@bind(vm.selected)" sclass="nicebutton"/> <button label="Zavřít" onClick="findResult.detach()" sclass="nicebutton"/>
|
||||
</window>
|
||||
</zk>
|
||||
@@ -0,0 +1,78 @@
|
||||
<?page title="Adresa" contentType="text/html;charset=UTF-8"?>
|
||||
<zk>
|
||||
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||
<window id="editWin" title="Adresa" border="normal" apply="org.zkoss.bind.BindComposer"
|
||||
viewModel="@id('vm') @init('info.bukova.isspst.ui.addressbook.AddressForm')"
|
||||
closable="true" width="600px">
|
||||
|
||||
<style src="/app/form.css"/>
|
||||
|
||||
<grid width="580px">
|
||||
<columns>
|
||||
<column label="" hflex="min"/>
|
||||
<column label="" hflex="min"/>
|
||||
<column label=""/>
|
||||
<column label=""/>
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label value="Firma" /> <textbox value="@bind(vm.dataBean.company)" instant="true"/>
|
||||
<label visible="true" value="@load(vm.errMessages['company'])" style="color:red"/>
|
||||
<button image="/img/search.png" label="Hledat v ARESu" onClick="@command('searchAres')" sclass="nicebutton" disabled="@load((vm.dataBean.ic == 0) && (empty vm.dataBean.company))" />
|
||||
</row>
|
||||
<row>
|
||||
<label value="IČ" /> <textbox value="@bind(vm.dataBean.ic)"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="DIČ" /> <textbox value="@bind(vm.dataBean.dic)"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Oddělení" /> <textbox value="@bind(vm.dataBean.department)"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Kontaktní osoba" /> <textbox value="@bind(vm.dataBean.contactName)"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Ulice" /> <textbox value="@bind(vm.dataBean.street)"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Číslo domu" /> <textbox value="@bind(vm.dataBean.houseNumber)"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Město" /> <textbox value="@bind(vm.dataBean.city)"/>
|
||||
<label visible="true" value="@load(vm.errMessages['city'])" style="color:red"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="PSČ" /> <textbox value="@bind(vm.dataBean.zipCode)"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Telefon" /> <textbox value="@bind(vm.dataBean.phone)"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="E-mail" /> <textbox value="@bind(vm.dataBean.email)"/>
|
||||
<label visible="true" value="@load(vm.errMessages['email'])" style="color:red"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Web" /> <textbox value="@bind(vm.dataBean.web)"/>
|
||||
<label visible="true" value="@load(vm.errMessages['web'])" style="color:red"/>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
<hlayout>
|
||||
<panel>
|
||||
<panelchildren>
|
||||
<vlayout>
|
||||
<panel>
|
||||
<panelchildren><label value="Poznámka"/> </panelchildren>
|
||||
</panel>
|
||||
<panel>
|
||||
<panelchildren><ckeditor height="65px" width="330px" toolbar="Basic" value="@bind(vm.dataBean.description)"/>
|
||||
</panelchildren>
|
||||
</panel>
|
||||
</vlayout>
|
||||
</panelchildren>
|
||||
</panel>
|
||||
</hlayout>
|
||||
<include src="/app/formButtons.zul"/>
|
||||
</window>
|
||||
</zk>
|
||||
@@ -0,0 +1,89 @@
|
||||
<?page title="Dodavatelé" 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"/>
|
||||
<style src="/app/form.css"/>
|
||||
|
||||
<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">
|
||||
<auxhead sclass="category-center" visible="@load(vm.filter)">
|
||||
<auxheader>
|
||||
<image src="/img/funnel.png" />
|
||||
<textbox instant="true" width="85%"
|
||||
value="@bind(vm.filterTemplate.company)" onChange="@command('doFilter')" />
|
||||
</auxheader>
|
||||
<auxheader>
|
||||
<image src="/img/funnel.png" />
|
||||
<textbox instant="true" width="85%"
|
||||
value="@bind(vm.filterTemplate.ic)" onChange="@command('doFilter')" />
|
||||
</auxheader>
|
||||
<auxheader>
|
||||
<image src="/img/funnel.png" />
|
||||
<textbox instant="true" width="85%"
|
||||
value="@bind(vm.filterTemplate.contactName)" onChange="@command('doFilter')"/>
|
||||
</auxheader>
|
||||
<auxheader>
|
||||
<image src="/img/funnel.png" />
|
||||
<textbox instant="true" width="85%"
|
||||
value="@bind(vm.filterTemplate.street)" onChange="@command('doFilter')"/>
|
||||
</auxheader>
|
||||
<auxheader>
|
||||
<image src="/img/funnel.png" />
|
||||
<textbox instant="true" width="85%"
|
||||
value="@bind(vm.filterTemplate.houseNumber)" onChange="@command('doFilter')"/>
|
||||
</auxheader>
|
||||
<auxheader>
|
||||
<image src="/img/funnel.png" />
|
||||
<textbox instant="true" width="85%"
|
||||
value="@bind(vm.filterTemplate.city)" onChange="@command('doFilter')"/>
|
||||
</auxheader>
|
||||
</auxhead>
|
||||
<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')"/>
|
||||
</listhead>
|
||||
<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)"/>
|
||||
</listitem>
|
||||
</template>
|
||||
</listbox>
|
||||
|
||||
<div hflex="4">
|
||||
<label value="Detail:" sclass="bold"/>
|
||||
<grid visible="@load(vm.dataBean ne null)" hflex="1">
|
||||
<columns>
|
||||
<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>
|
||||
</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)"/>
|
||||
</div>
|
||||
</hbox>
|
||||
|
||||
|
||||
</window>
|
||||
|
||||
</zk>
|
||||
@@ -0,0 +1,11 @@
|
||||
<?page title="Dodavatelé" contentType="text/html;charset=UTF-8"?>
|
||||
<?script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyB6sVWLvFMvbK994Pa418XDhbDUZ6Xr4CQ&sensor=false"?>
|
||||
<zk>
|
||||
|
||||
<zscript>
|
||||
String gridZul = "addressbook.zul";
|
||||
</zscript>
|
||||
|
||||
<include src="/app/template.zhtml"/>
|
||||
|
||||
</zk>
|
||||
Reference in New Issue
Block a user