Přepracováno vykreslování dialogu Faturace požadavků.

Vyhledávací edit dostane focus po otevření okna.
Opraveno Main menu.


closes #210
Verze_2.0
František Přibyl 10 years ago
parent f94afbc3ed
commit c4f5671327

@ -135,6 +135,7 @@
href="/j_spring_security_logout" /> href="/j_spring_security_logout" />
</menupopup> </menupopup>
</menu> </menu>
<menuitem label="${labels.Help}" target="blank"
href="https://drive.google.com/folderview?id=0B2inqAvr2t-TODg4ZWZoSThYbGM&amp;usp=sharing_eid" href="https://drive.google.com/folderview?id=0B2inqAvr2t-TODg4ZWZoSThYbGM&amp;usp=sharing_eid"
tooltiptext="${labels.GoogleDriveUrl}" /> tooltiptext="${labels.GoogleDriveUrl}" />
<menuseparator /> <menuseparator />

@ -18,7 +18,7 @@
<vbox> <vbox>
<image src="/img/lucene_logo.png"/> <image src="/img/lucene_logo.png"/>
<hbox> <hbox>
<textbox value="@bind(vm.keyWord)" instant="true" width="250px" <textbox value="@bind(vm.keyWord)" instant="true" width="250px" onCreate="self.setFocus(true)"
onOK="@command('doSearch')"/> onOK="@command('doSearch')"/>
<button label="${labels.Search}" onClick="@command('doSearch')" sclass="nicebutton" <button label="${labels.Search}" onClick="@command('doSearch')" sclass="nicebutton"
image="/img/search.png"/> image="/img/search.png"/>

@ -1,4 +1,4 @@
<?page title="${labels.Invoicing}" contentType="text/html;charset=UTF-8"?> <?page contentType="text/html;charset=UTF-8"?>
<zk> <zk>
<window <window
id="editWin" id="editWin"
@ -14,122 +14,122 @@
zclass="form-caption" zclass="form-caption"
label="${labels.InvoicingFormTitle}" /> label="${labels.InvoicingFormTitle}" />
<vlayout vflex="1"> <vlayout vflex="1">
<hbox> <hbox
vflex="min"
<vbox height="300px"> hflex="1">
<button <button
image="/img/item-add.png" image="/img/item-add.png"
label="${labels.InvoicingAdd}" label="${labels.InvoicingAdd}"
sclass="nicebutton" sclass="nicebutton"
onClick="@command('addItem')"/> onClick="@command('addItem')" />
</hbox>
<listbox <hbox vflex="1">
model="@load(vm.dataBean.items)" <vbox vflex="1">
vflex="1" <listbox
selectedItem="@bind(vm.selectedItem)" model="@load(vm.dataBean.items)"
selectedIndex="@bind(vm.selectedIndex)"> vflex="1"
<listhead> selectedItem="@bind(vm.selectedItem)"
<listheader selectedIndex="@bind(vm.selectedIndex)">
label="${labels.InvoicingDate}" <listhead>
width="150px"/> <listheader
<listheader label="${labels.InvoicingInvoiceNumber}" /> label="${labels.InvoicingDate}"
<listheader width="150px" />
label="${labels.InvoicingAmount}" <listheader label="${labels.InvoicingInvoiceNumber}" />
align="right" <listheader
width="90px"/> label="${labels.InvoicingAmount}"
<listheader/> align="right"
</listhead> width="90px" />
<template name="model"> <listheader />
<listitem> </listhead>
<listcell> <template name="model">
<datebox <listitem>
value="@bind(each.invoiceDate)" <listcell>
inplace="true" <datebox
onFocus="@command('onFocus', item=each)"/> value="@bind(each.invoiceDate)"
</listcell> inplace="true"
<listcell> onFocus="@command('onFocus', item=each)" />
<textbox </listcell>
value="@bind(each.invoiceNumber)" <listcell>
sclass="grid-textbox-max" <textbox
inplace="true" value="@bind(each.invoiceNumber)"
sclass="grid-textbox-max"
inplace="true"
maxlength="@load(vm.lengthText)"
onFocus="@command('onFocus', item=each)" />
</listcell>
<listcell>
<textbox
value="@bind(each.amount) @converter(vm.standardBigDecimalConverter)"
sclass="grid-textbox-max"
inplace="true"
onFocus="@command('onFocus', item=each)"
maxlength="@load(vm.lengthText)"
onChange="@command('calculate')" />
</listcell>
<listcell>
<button
label="${labels.RemoveItem}"
sclass="nicebutton"
onClick="@command('removeItem', item=each)" />
</listcell>
</listitem>
</template>
</listbox>
</vbox>
<grid hflex="min">
<columns>
<column
align="right"
hflex="min" />
<column />
</columns>
<rows>
<row>
<cell sclass="row-title">${labels.InvoicingRequirementNumber} :</cell>
<cell>
<textbox
width="200px"
value="@bind(vm.dataBean.requirement.numser)"
style="font-weight: bold;"
maxlength="@load(vm.lengthText)" maxlength="@load(vm.lengthText)"
onFocus="@command('onFocus', item=each)"/> readonly="true" />
</listcell> </cell>
<listcell> </row>
<textbox <row>
value="@bind(each.amount) @converter(vm.standardBigDecimalConverter)" <cell sclass="row-title">${labels.InvoicingDescription} :</cell>
sclass="grid-textbox-max" <cell>
inplace="true" <textbox
onFocus="@command('onFocus', item=each)" width="350px"
rows="5"
value="@bind(vm.dataBean.requirement.description)"
maxlength="@load(vm.lengthDescription)"
readonly="true" />
</cell>
</row>
<row>
<cell sclass="row-title">${labels.InvoicingRequirementPrice} :</cell>
<cell>
<textbox
width="150px"
value="@bind(vm.dataBean.requirement.sumTotal) @converter(vm.standardBigDecimalConverter)"
maxlength="@load(vm.lengthText)" maxlength="@load(vm.lengthText)"
onChange="@command('calculate')"/> readonly="true" />
</listcell> </cell>
<listcell> </row>
<button label="${labels.RemoveItem}" sclass="nicebutton" onClick="@command('removeItem', item=each)"/> <row>
</listcell> <cell sclass="row-title">${labels.InvoicingInvoicedPrice} :</cell>
</listitem> <cell>
</template> <textbox
</listbox> width="150px"
</vbox> value="@bind(vm.dataBean.totalInvoiced) @converter(vm.standardBigDecimalConverter)"
readonly="true"
<grid hflex="min"> maxlength="@load(vm.lengthText)"
<columns> style="@load(vm.dataBean.totalInvoiced gt vm.dataBean.requirement.sumTotal ? ' color: red;' : '' )" />
<column </cell>
align="right" </row>
hflex="min" /> </rows>
<column /> </grid>
</columns>
<rows>
<row>
<cell sclass="row-title">${labels.InvoicingRequirementNumber} :</cell>
<cell>
<textbox
width="200px"
value="@bind(vm.dataBean.requirement.numser)"
style="font-weight: bold;"
maxlength="@load(vm.lengthText)"
readonly="true"/>
</cell>
</row>
<row>
<cell sclass="row-title">${labels.InvoicingDescription} :</cell>
<cell>
<textbox
width="350px"
rows="5"
value="@bind(vm.dataBean.requirement.description)"
maxlength="@load(vm.lengthDescription)"
readonly="true" />
</cell>
</row>
<row>
<cell sclass="row-title">${labels.InvoicingRequirementPrice} :</cell>
<cell>
<textbox
width="150px"
value="@bind(vm.dataBean.requirement.sumTotal) @converter(vm.standardBigDecimalConverter)"
maxlength="@load(vm.lengthText)"
readonly="true"/>
</cell>
</row>
<row>
<cell sclass="row-title">${labels.InvoicingInvoicedPrice} :</cell>
<cell>
<textbox
width="150px"
value="@bind(vm.dataBean.totalInvoiced) @converter(vm.standardBigDecimalConverter)"
readonly="true"
maxlength="@load(vm.lengthText)"
style="@load(vm.dataBean.totalInvoiced gt vm.dataBean.requirement.sumTotal ? ' color: red;' : '' )"/>
</cell>
</row>
</rows>
</grid>
</hbox> </hbox>
<listbox <listbox
vflex="1" vflex="1"
model="@load(vm.dataBean.requirement.items)"> model="@load(vm.dataBean.requirement.items)">
@ -169,7 +169,7 @@
<template name="model"> <template name="model">
<listitem> <listitem>
<listcell> <listcell>
<label value="@load(each.code)"/> <label value="@load(each.code)" />
</listcell> </listcell>
<listcell> <listcell>
<label value="@load(each.name)" /> <label value="@load(each.name)" />
@ -190,7 +190,7 @@
<label value="@bind(each.total) @converter(vm.standardBigDecimalConverter)" /> <label value="@bind(each.total) @converter(vm.standardBigDecimalConverter)" />
</listcell> </listcell>
<listcell> <listcell>
<checkbox checked="@bind(each.paid)"/> <checkbox checked="@bind(each.paid)" />
</listcell> </listcell>
<listcell> <listcell>
<label value="@bind(each.description)" /> <label value="@bind(each.description)" />
@ -198,7 +198,6 @@
</listitem> </listitem>
</template> </template>
</listbox> </listbox>
<include src="/app/formButtons.zul" /> <include src="/app/formButtons.zul" />
</vlayout> </vlayout>
</window> </window>

Loading…
Cancel
Save