parent
67629cf312
commit
b63a2c3944
@ -1,408 +1,522 @@
|
|||||||
<zk xmlns="http://www.zkoss.org/2005/zul"
|
<zk
|
||||||
|
xmlns="http://www.zkoss.org/2005/zul"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://www.zkoss.org/2005/zul http://www.zkoss.org/2005/zul/zul.xsd">
|
xsi:schemaLocation="http://www.zkoss.org/2005/zul http://www.zkoss.org/2005/zul/zul.xsd">
|
||||||
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||||
|
|
||||||
<grid>
|
<grid>
|
||||||
<columns visible="false">
|
<columns visible="false">
|
||||||
<column hflex="min"/>
|
<column hflex="min" />
|
||||||
<column hflex="min"/>
|
<column hflex="min" />
|
||||||
<column hflex="2"/>
|
<column hflex="2" />
|
||||||
<column hflex="2"/>
|
<column hflex="2" />
|
||||||
<column hflex="2"/>
|
<column hflex="2" />
|
||||||
</columns>
|
</columns>
|
||||||
<auxhead>
|
<auxhead>
|
||||||
<auxheader label="${labels.TripBillTravelBegin}" colspan="2"/>
|
<auxheader
|
||||||
<auxheader label="${labels.TripBillTravelTarget}"/>
|
label="${labels.TripBillTravelBegin}"
|
||||||
<auxheader label="${labels.TripBillPurpose}"/>
|
colspan="2" />
|
||||||
<auxheader label="${labels.TripBillTravelEnd}"/>
|
<auxheader label="${labels.TripBillTravelTarget}" />
|
||||||
|
<auxheader label="${labels.TripBillPurpose}" />
|
||||||
|
<auxheader label="${labels.TripBillTravelEnd}" />
|
||||||
</auxhead>
|
</auxhead>
|
||||||
<rows>
|
<rows>
|
||||||
<row>
|
<row>
|
||||||
<cell colspan="2">
|
<cell colspan="2">
|
||||||
<label value="@load(vm.dataBean.requirement.from)"/>
|
<label value="@load(vm.dataBean.requirement.from)" />
|
||||||
</cell>
|
|
||||||
<cell>
|
|
||||||
<label value="@load(vm.dataBean.requirement.to)"/>
|
|
||||||
</cell>
|
|
||||||
<cell>
|
|
||||||
<label value="@load(vm.dataBean.requirement.description)"/>
|
|
||||||
</cell>
|
|
||||||
<cell>
|
|
||||||
<label value="@load(vm.dataBean.requirement.end)"/>
|
|
||||||
</cell>
|
|
||||||
</row>
|
|
||||||
<row>
|
|
||||||
<label value="@load(vm.dataBean.requirement.tripDate) @converter('formatedDate', format=labels.DateFormat)"/>
|
|
||||||
<label value="@load(vm.dataBean.requirement.tripDate) @converter('formatedDate', format='hh:mm')"/>
|
|
||||||
<cell/>
|
|
||||||
<cell/>
|
|
||||||
<label value="@load(vm.dataBean.requirement.endDate) @converter('formatedDate', format=labels.DateFormat)"/>
|
|
||||||
</row>
|
|
||||||
</rows>
|
|
||||||
</grid>
|
|
||||||
<grid>
|
|
||||||
<columns>
|
|
||||||
<column hflex="min" />
|
|
||||||
<column hflex="min" />
|
|
||||||
<column hflex="1" />
|
|
||||||
</columns>
|
|
||||||
<rows>
|
|
||||||
<row>
|
|
||||||
<cell>
|
|
||||||
<label value="${labels.TripBillResultMessage}" />
|
|
||||||
</cell>
|
</cell>
|
||||||
<cell>
|
<cell>
|
||||||
<datebox
|
<label value="@load(vm.dataBean.requirement.to)" />
|
||||||
value="@bind(vm.dataBean.resultMessageDate)"
|
|
||||||
disabled="${disabled}"
|
|
||||||
format="${labels.DateFormat}" />
|
|
||||||
</cell>
|
|
||||||
</row>
|
|
||||||
<row>
|
|
||||||
<cell rowspan="3">
|
|
||||||
<textbox
|
|
||||||
placeholder="${labels.TripBillResultMessageText}"
|
|
||||||
value="@bind(vm.dataBean.resultMessage)"
|
|
||||||
style="resize:none"
|
|
||||||
rows="3"
|
|
||||||
cols="80" />
|
|
||||||
</cell>
|
</cell>
|
||||||
<cell>
|
<cell>
|
||||||
<checkbox
|
<label value="@load(vm.dataBean.requirement.description)" />
|
||||||
label="${labels.TripBillFreeMeals}"
|
|
||||||
checked="@bind(vm.dataBean.freeMeals)"
|
|
||||||
onCheck="@command('calculate')"
|
|
||||||
disabled="@load(vm.billDisabled or disabled)" />
|
|
||||||
</cell>
|
</cell>
|
||||||
</row>
|
|
||||||
<row>
|
|
||||||
<cell>
|
<cell>
|
||||||
<checkbox
|
<label value="@load(vm.dataBean.requirement.end)" />
|
||||||
label="${labels.TripBillFreeHousing}"
|
|
||||||
checked="@bind(vm.dataBean.freeHousing)"
|
|
||||||
disabled="@load(vm.billDisabled or disabled)" />
|
|
||||||
</cell>
|
</cell>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<cell>
|
<label value="@load(vm.dataBean.requirement.tripDate) @converter('formatedDate', format=labels.DateFormat)" />
|
||||||
<checkbox
|
<label value="@load(vm.dataBean.requirement.tripDate) @converter('formatedDate', format='hh:mm')" />
|
||||||
label="${labels.TripBillFreeCarfare}"
|
<cell />
|
||||||
checked="@bind(vm.dataBean.freeCarfare)"
|
<cell />
|
||||||
disabled="@load(vm.billDisabled or disabled)" />
|
<label value="@load(vm.dataBean.requirement.endDate) @converter('formatedDate', format=labels.DateFormat)" />
|
||||||
</cell>
|
|
||||||
</row>
|
</row>
|
||||||
</rows>
|
</rows>
|
||||||
</grid>
|
</grid>
|
||||||
<groupbox closable="true" mold="3d" open="false">
|
<hlayout vflex="min">
|
||||||
<caption src="/img/expand-016.png" label="Přiložené soubory"/>
|
<grid hflex="min">
|
||||||
<include src="/app/uploadComponents.zul"/>
|
<columns>
|
||||||
</groupbox>
|
<column hflex="min" />
|
||||||
|
<column hflex="min" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<cell>
|
||||||
|
<label value="${labels.TripBillResultMessage}" />
|
||||||
|
</cell>
|
||||||
|
<cell>
|
||||||
|
<datebox
|
||||||
|
value="@bind(vm.dataBean.resultMessageDate)"
|
||||||
|
disabled="${disabled}"
|
||||||
|
format="${labels.DateFormat}" />
|
||||||
|
</cell>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<cell rowspan="5">
|
||||||
|
<textbox
|
||||||
|
placeholder="${labels.TripBillResultMessageText}"
|
||||||
|
value="@bind(vm.dataBean.resultMessage)"
|
||||||
|
style="resize:none"
|
||||||
|
rows="9"
|
||||||
|
cols="80" />
|
||||||
|
</cell>
|
||||||
|
<cell>
|
||||||
|
<checkbox
|
||||||
|
label="${labels.TripBillFreeMeals}"
|
||||||
|
checked="@bind(vm.dataBean.freeMeals)"
|
||||||
|
onCheck="@command('calculate')"
|
||||||
|
disabled="@load(vm.billDisabled or disabled)" />
|
||||||
|
</cell>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<cell>
|
||||||
|
<checkbox
|
||||||
|
label="${labels.TripBillFreeHousing}"
|
||||||
|
checked="@bind(vm.dataBean.freeHousing)"
|
||||||
|
disabled="@load(vm.billDisabled or disabled)" />
|
||||||
|
</cell>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<cell>
|
||||||
|
<checkbox
|
||||||
|
label="${labels.TripBillFreeCarfare}"
|
||||||
|
checked="@bind(vm.dataBean.freeCarfare)"
|
||||||
|
disabled="@load(vm.billDisabled or disabled)" />
|
||||||
|
</cell>
|
||||||
|
</row>
|
||||||
|
<row />
|
||||||
|
<row />
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
<groupbox
|
||||||
|
sclass="addScrollbar"
|
||||||
|
hflex="1"
|
||||||
|
vflex="1"
|
||||||
|
closable="false"
|
||||||
|
mold="3d">
|
||||||
|
<caption
|
||||||
|
src="/img/expand-016.png"
|
||||||
|
label="Přiložené soubory" />
|
||||||
|
<include
|
||||||
|
hflex="1"
|
||||||
|
height="160px"
|
||||||
|
src="/app/uploadComponents.zul" />
|
||||||
|
</groupbox>
|
||||||
|
</hlayout>
|
||||||
<grid
|
<grid
|
||||||
model="@load(vm.dataBean.billItems)"
|
sclass="addScrollbar"
|
||||||
vflex="1">
|
model="@load(vm.dataBean.billItems)"
|
||||||
<auxhead>
|
vflex="1">
|
||||||
|
<auxhead vflex="min">
|
||||||
<auxheader rowspan="2">
|
<auxheader rowspan="2">
|
||||||
<div sclass="vertikaal" height="50px">
|
<div
|
||||||
<label value="${labels.TripBillDate}" sclass="bold"/>
|
sclass="vertikaal"
|
||||||
|
height="50px">
|
||||||
|
<label
|
||||||
|
value="${labels.TripBillDate}"
|
||||||
|
sclass="bold" />
|
||||||
</div>
|
</div>
|
||||||
</auxheader>
|
</auxheader>
|
||||||
<auxheader colspan="2">
|
<auxheader colspan="2">
|
||||||
<label value=""/>
|
<label value="" />
|
||||||
</auxheader>
|
</auxheader>
|
||||||
<!-- <auxheader >
|
<!-- <auxheader >
|
||||||
<label value=""/>
|
<label value=""/>
|
||||||
</auxheader> -->
|
</auxheader> -->
|
||||||
<auxheader colspan="2" align="center">
|
<auxheader
|
||||||
<label value="${labels.TripBillDepartureArrival}" sclass="bold"/>
|
colspan="2"
|
||||||
|
align="center">
|
||||||
|
<label
|
||||||
|
value="${labels.TripBillDepartureArrival}"
|
||||||
|
sclass="bold" />
|
||||||
</auxheader>
|
</auxheader>
|
||||||
<!-- <auxheader>
|
<!-- <auxheader>
|
||||||
<label value=""/>
|
<label value=""/>
|
||||||
</auxheader> -->
|
</auxheader> -->
|
||||||
<auxheader rowspan="2" valign="bottom" height="110px">
|
<auxheader
|
||||||
<div sclass="vertikaal" height="88px" width="88px">
|
rowspan="2"
|
||||||
|
valign="bottom"
|
||||||
|
height="110px">
|
||||||
|
<div
|
||||||
|
sclass="vertikaal"
|
||||||
|
height="88px"
|
||||||
|
width="88px">
|
||||||
<vbox>
|
<vbox>
|
||||||
<label value="${labels.TripBillUsed}" sclass="bold"/>
|
<label
|
||||||
<label value="${labels.TripBillVehicle}" sclass="bold"/>
|
value="${labels.TripBillUsed}"
|
||||||
|
sclass="bold" />
|
||||||
|
<label
|
||||||
|
value="${labels.TripBillVehicle}"
|
||||||
|
sclass="bold" />
|
||||||
</vbox>
|
</vbox>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</auxheader>
|
</auxheader>
|
||||||
<auxheader rowspan="2" valign="bottom" height="112px">
|
<auxheader
|
||||||
<div sclass="vertikaal" height="101px" width="90px">
|
rowspan="2"
|
||||||
|
valign="bottom"
|
||||||
|
height="112px">
|
||||||
|
<div
|
||||||
|
sclass="vertikaal"
|
||||||
|
height="101px"
|
||||||
|
width="90px">
|
||||||
<vbox>
|
<vbox>
|
||||||
<label value="${labels.TripBillBeginEnd}" sclass="bold"/>
|
<label
|
||||||
<label value="${labels.TripBillWork}" sclass="bold"/>
|
value="${labels.TripBillBeginEnd}"
|
||||||
|
sclass="bold" />
|
||||||
|
<label
|
||||||
|
value="${labels.TripBillWork}"
|
||||||
|
sclass="bold" />
|
||||||
</vbox>
|
</vbox>
|
||||||
</div>
|
</div>
|
||||||
</auxheader>
|
</auxheader>
|
||||||
<auxheader>
|
<auxheader>
|
||||||
<html>
|
<html>
|
||||||
<![CDATA[${labels.TripBillTraveled} <br /> ${labels.TripBillKm} ]]>
|
|
||||||
|
<![CDATA[${labels.TripBillTraveled} <br /> ${labels.TripBillKm} ]]>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
</auxheader>
|
</auxheader>
|
||||||
<auxheader>
|
<auxheader>
|
||||||
<html>
|
<html>
|
||||||
<![CDATA[${labels.TripBillConsumption} <br /> ${labels.TripBillPHM} ]]>
|
|
||||||
|
<![CDATA[${labels.TripBillConsumption} <br /> ${labels.TripBillPHM} ]]>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
</auxheader>
|
</auxheader>
|
||||||
<auxheader rowspan="2">
|
<auxheader rowspan="2">
|
||||||
<html>
|
<html>
|
||||||
<![CDATA[${labels.TripBillCarfare} <br /> ${labels.TripBillLocal} <br /> ${labels.TripBillTransportation} ]]>
|
|
||||||
|
<![CDATA[${labels.TripBillCarfare} <br /> ${labels.TripBillLocal} <br /> ${labels.TripBillTransportation} ]]>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
</auxheader>
|
</auxheader>
|
||||||
<auxheader rowspan="2">
|
<auxheader rowspan="2">
|
||||||
<label value="${labels.TripBillHousing}" sclass="bold"/>
|
<label
|
||||||
|
value="${labels.TripBillHousing}"
|
||||||
|
sclass="bold" />
|
||||||
</auxheader>
|
</auxheader>
|
||||||
<auxheader rowspan="2">
|
<auxheader rowspan="2">
|
||||||
<html>
|
<html>
|
||||||
<![CDATA[${labels.TripBillNumber} <br /> ${labels.TripBillMeals} <br /> ${labels.TripBillFree} ]]>
|
|
||||||
|
<![CDATA[${labels.TripBillNumber} <br /> ${labels.TripBillMeals} <br /> ${labels.TripBillFree} ]]>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
</auxheader>
|
</auxheader>
|
||||||
<auxheader rowspan="2">
|
<auxheader rowspan="2">
|
||||||
<label value="${labels.TripBillMealExpenses}" sclass="bold"/>
|
<label
|
||||||
|
value="${labels.TripBillMealExpenses}"
|
||||||
|
sclass="bold" />
|
||||||
</auxheader>
|
</auxheader>
|
||||||
<auxheader rowspan="2">
|
<auxheader rowspan="2">
|
||||||
<html>
|
<html>
|
||||||
<![CDATA[${labels.TripBillNecessary} <br /> ${labels.TripBillOther} <br /> ${labels.TripBillExpenses} ]]>
|
|
||||||
|
<![CDATA[${labels.TripBillNecessary} <br /> ${labels.TripBillOther} <br /> ${labels.TripBillExpenses} ]]>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
</auxheader>
|
</auxheader>
|
||||||
<auxheader rowspan="2">
|
<auxheader rowspan="2">
|
||||||
<label value="${labels.TripBillTotal}" sclass="bold"/>
|
<label
|
||||||
|
value="${labels.TripBillTotal}"
|
||||||
|
sclass="bold" />
|
||||||
</auxheader>
|
</auxheader>
|
||||||
<auxheader rowspan="2">
|
<auxheader rowspan="2">
|
||||||
<label value="${labels.TripBillAdjusted}" sclass="bold"/>
|
<label
|
||||||
|
value="${labels.TripBillAdjusted}"
|
||||||
|
sclass="bold" />
|
||||||
</auxheader>
|
</auxheader>
|
||||||
</auxhead>
|
</auxhead>
|
||||||
<auxhead>
|
<auxhead>
|
||||||
<!-- <auxheader>
|
<!-- <auxheader>
|
||||||
<label value=""/>
|
<label value=""/>
|
||||||
</auxheader> -->
|
</auxheader> -->
|
||||||
<auxheader colspan="2" align="center">
|
<auxheader
|
||||||
<label value="${labels.TripBillTravelTarget}" sclass="bold"/>
|
colspan="2"
|
||||||
|
align="center">
|
||||||
|
<label
|
||||||
|
value="${labels.TripBillTravelTarget}"
|
||||||
|
sclass="bold" />
|
||||||
</auxheader>
|
</auxheader>
|
||||||
<!-- <auxheader >
|
<!-- <auxheader >
|
||||||
<label value=""/>
|
<label value=""/>
|
||||||
</auxheader> -->
|
</auxheader> -->
|
||||||
<auxheader>
|
<auxheader>
|
||||||
<label value="${labels.TripBillHourMin}" sclass="bold"/>
|
<label
|
||||||
|
value="${labels.TripBillHourMin}"
|
||||||
|
sclass="bold" />
|
||||||
</auxheader>
|
</auxheader>
|
||||||
<auxheader>
|
<auxheader>
|
||||||
<label value="${labels.TripBillHourMin}" sclass="bold"/>
|
<label
|
||||||
|
value="${labels.TripBillHourMin}"
|
||||||
|
sclass="bold" />
|
||||||
</auxheader>
|
</auxheader>
|
||||||
<!-- <auxheader>
|
<!-- <auxheader>
|
||||||
<label value=""/>
|
<label value=""/>
|
||||||
</auxheader>-->
|
</auxheader>-->
|
||||||
<!-- <auxheader>
|
<!-- <auxheader>
|
||||||
<label value=""/>
|
<label value=""/>
|
||||||
</auxheader> -->
|
</auxheader> -->
|
||||||
<auxheader>
|
<auxheader>
|
||||||
<html>
|
<html>
|
||||||
<![CDATA[<div> ${labels.TripBillTraveled} <br /> ${labels.TripBillKm} <br /> ${labels.TripBillInKc}</div> ]]>
|
|
||||||
|
<![CDATA[<div> ${labels.TripBillTraveled} <br /> ${labels.TripBillKm} <br /> ${labels.TripBillInKc}</div> ]]>
|
||||||
|
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
</auxheader>
|
</auxheader>
|
||||||
<auxheader>
|
<auxheader>
|
||||||
<html>
|
<html>
|
||||||
<![CDATA[${labels.TripBillConsumption} <br /> ${labels.TripBillPHM} <br /> ${labels.TripBillInKc}]]>
|
|
||||||
|
<![CDATA[${labels.TripBillConsumption} <br /> ${labels.TripBillPHM} <br /> ${labels.TripBillInKc}]]>
|
||||||
|
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
</auxheader>
|
</auxheader>
|
||||||
<!-- <auxheader>
|
<!-- <auxheader>
|
||||||
<label value=""/>
|
<label value=""/>
|
||||||
</auxheader>
|
</auxheader>
|
||||||
<auxheader>
|
<auxheader>
|
||||||
<label value=""/>
|
<label value=""/>
|
||||||
</auxheader>
|
</auxheader>
|
||||||
<auxheader>
|
<auxheader>
|
||||||
<label value=""/>
|
<label value=""/>
|
||||||
</auxheader>
|
</auxheader>
|
||||||
<auxheader>
|
<auxheader>
|
||||||
<label value=""/>
|
<label value=""/>
|
||||||
</auxheader>
|
</auxheader>
|
||||||
<auxheader>
|
<auxheader>
|
||||||
<label value=""/>
|
<label value=""/>
|
||||||
</auxheader>
|
</auxheader>
|
||||||
<auxheader>
|
<auxheader>
|
||||||
<label value=""/>
|
<label value=""/>
|
||||||
</auxheader>-->
|
</auxheader>-->
|
||||||
</auxhead>
|
</auxhead>
|
||||||
<columns visible="false">
|
<columns visible="false">
|
||||||
<column width="60px"/>
|
<column width="60px" />
|
||||||
<column width="60px"/>
|
<column width="60px" />
|
||||||
<column hflex="max"/>
|
<column hflex="max" />
|
||||||
<column width="70px"/>
|
<column width="70px" />
|
||||||
<column width="70px"/>
|
<column width="70px" />
|
||||||
<column width="70px"/>
|
<column width="70px" />
|
||||||
<column width="70px"/>
|
<column width="70px" />
|
||||||
<column width="70px"/>
|
<column width="70px" />
|
||||||
<column width="70px"/>
|
<column width="70px" />
|
||||||
<column width="70px"/>
|
<column width="70px" />
|
||||||
<column width="70px"/>
|
<column width="70px" />
|
||||||
<column width="70px"/>
|
<column width="70px" />
|
||||||
<column width="70px"/>
|
<column width="70px" />
|
||||||
<column width="70px"/>
|
<column width="70px" />
|
||||||
<column width="70px"/>
|
<column width="70px" />
|
||||||
<column width="70px"/>
|
<column width="70px" />
|
||||||
</columns>
|
</columns>
|
||||||
<rows>
|
<rows
|
||||||
|
sclass="addScrollbar"
|
||||||
|
vflex="1">
|
||||||
<template name="model">
|
<template name="model">
|
||||||
<row>
|
<row>
|
||||||
<label value="@load(each.date) @converter('formatedDate', format='dd.MM')"/>
|
<label value="@load(each.date) @converter('formatedDate', format='dd.MM')" />
|
||||||
<vbox>
|
<vbox>
|
||||||
<label value="${labels.TripBillTo}"/>
|
<label value="${labels.TripBillTo}" />
|
||||||
<label value="${labels.TripBillBack}"/>
|
<label value="${labels.TripBillBack}" />
|
||||||
</vbox>
|
</vbox>
|
||||||
<vbox hflex="max">
|
<vbox hflex="max">
|
||||||
<textbox inplace="true"
|
<textbox
|
||||||
value="@load(each.to)"
|
inplace="true"
|
||||||
maxlength="@load(vm.lengthText)"
|
value="@load(each.to)"
|
||||||
sclass="grid-textbox-max-left"
|
maxlength="@load(vm.lengthText)"
|
||||||
readonly="@load(vm.billDisabled or disabled)"/>
|
sclass="grid-textbox-max-left"
|
||||||
<textbox inplace="true"
|
readonly="@load(vm.billDisabled or disabled)" />
|
||||||
value="@load(each.back)"
|
<textbox
|
||||||
maxlength="@load(vm.lengthText)"
|
inplace="true"
|
||||||
sclass="grid-textbox-max-left"
|
value="@load(each.back)"
|
||||||
readonly="@load(vm.billDisabled or disabled)"/>
|
maxlength="@load(vm.lengthText)"
|
||||||
|
sclass="grid-textbox-max-left"
|
||||||
|
readonly="@load(vm.billDisabled or disabled)" />
|
||||||
</vbox>
|
</vbox>
|
||||||
<vbox>
|
<vbox>
|
||||||
<timebox inplace="true"
|
<timebox
|
||||||
width="68px"
|
inplace="true"
|
||||||
value="@bind(each.toArrival)"
|
width="68px"
|
||||||
onChange="@command('calculate')"
|
value="@bind(each.toArrival)"
|
||||||
format="short"
|
onChange="@command('calculate')"
|
||||||
disabled="@load(vm.billDisabled or disabled)"/>
|
format="short"
|
||||||
<timebox inplace="true"
|
disabled="@load(vm.billDisabled or disabled)" />
|
||||||
width="68px"
|
<timebox
|
||||||
value="@bind(each.backArrival)"
|
inplace="true"
|
||||||
onChange="@command('calculate')"
|
width="68px"
|
||||||
format="short"
|
value="@bind(each.backArrival)"
|
||||||
disabled="@load(vm.billDisabled or disabled)"/>
|
onChange="@command('calculate')"
|
||||||
|
format="short"
|
||||||
|
disabled="@load(vm.billDisabled or disabled)" />
|
||||||
</vbox>
|
</vbox>
|
||||||
<vbox>
|
<vbox>
|
||||||
<timebox inplace="true"
|
<timebox
|
||||||
width="68px"
|
inplace="true"
|
||||||
value="@bind(each.toDeparture)"
|
width="68px"
|
||||||
onChange="@command('calculate')"
|
value="@bind(each.toDeparture)"
|
||||||
format="short"
|
onChange="@command('calculate')"
|
||||||
disabled="@load(vm.billDisabled or disabled)"/>
|
format="short"
|
||||||
<timebox inplace="true"
|
disabled="@load(vm.billDisabled or disabled)" />
|
||||||
width="68px"
|
<timebox
|
||||||
value="@bind(each.backDeparture)"
|
inplace="true"
|
||||||
onChange="@command('calculate')"
|
width="68px"
|
||||||
format="short"
|
value="@bind(each.backDeparture)"
|
||||||
disabled="@load(vm.billDisabled or disabled)"/>
|
onChange="@command('calculate')"
|
||||||
|
format="short"
|
||||||
|
disabled="@load(vm.billDisabled or disabled)" />
|
||||||
</vbox>
|
</vbox>
|
||||||
<vbox>
|
<vbox>
|
||||||
<combobox inplace="true"
|
<combobox
|
||||||
model="@load(vm.vehicles)"
|
inplace="true"
|
||||||
selectedItem="@bind(each.toVehicle)"
|
model="@load(vm.vehicles)"
|
||||||
width="67px"
|
selectedItem="@bind(each.toVehicle)"
|
||||||
readonly="true"
|
width="67px"
|
||||||
disabled="@load(vm.billDisabled or disabled)">
|
readonly="true"
|
||||||
|
disabled="@load(vm.billDisabled or disabled)">
|
||||||
<template name="model">
|
<template name="model">
|
||||||
<comboitem label="@load(each.code)"/>
|
<comboitem label="@load(each.code)" />
|
||||||
</template>
|
</template>
|
||||||
</combobox>
|
</combobox>
|
||||||
|
<combobox
|
||||||
<combobox inplace="true"
|
inplace="true"
|
||||||
model="@load(vm.vehicles)"
|
model="@load(vm.vehicles)"
|
||||||
selectedItem="@bind(each.backVehicle)"
|
selectedItem="@bind(each.backVehicle)"
|
||||||
width="67px"
|
width="67px"
|
||||||
readonly="true"
|
readonly="true"
|
||||||
disabled="@load(vm.billDisabled or disabled)">
|
disabled="@load(vm.billDisabled or disabled)">
|
||||||
<template name="model">
|
<template name="model">
|
||||||
<comboitem label="@load(each.code)"/>
|
<comboitem label="@load(each.code)" />
|
||||||
</template>
|
</template>
|
||||||
</combobox>
|
</combobox>
|
||||||
</vbox>
|
</vbox>
|
||||||
<vbox>
|
<vbox>
|
||||||
<timebox inplace="true"
|
<timebox
|
||||||
width="68px"
|
inplace="true"
|
||||||
value="@bind(each.beginWork)"
|
width="68px"
|
||||||
format="short"
|
value="@bind(each.beginWork)"
|
||||||
disabled="@load(vm.billDisabled or disabled)"/>
|
format="short"
|
||||||
<timebox inplace="true"
|
disabled="@load(vm.billDisabled or disabled)" />
|
||||||
width="68px"
|
<timebox
|
||||||
value="@bind(each.endWork)"
|
inplace="true"
|
||||||
format="short"
|
width="68px"
|
||||||
disabled="@load(vm.billDisabled or disabled)"/>
|
value="@bind(each.endWork)"
|
||||||
|
format="short"
|
||||||
|
disabled="@load(vm.billDisabled or disabled)" />
|
||||||
</vbox>
|
</vbox>
|
||||||
<vbox>
|
<vbox>
|
||||||
<textbox
|
<textbox
|
||||||
inplace="true"
|
inplace="true"
|
||||||
width="68px"
|
width="68px"
|
||||||
maxlength="@load(vm.lengthText)"
|
maxlength="@load(vm.lengthText)"
|
||||||
value="@bind(each.distance) @converter(vm.standardBigDecimalConverter)"
|
value="@bind(each.distance) @converter(vm.standardBigDecimalConverter)"
|
||||||
readonly="@load(vm.billDisabled or disabled)"/>
|
readonly="@load(vm.billDisabled or disabled)" />
|
||||||
<textbox
|
<textbox
|
||||||
inplace="true"
|
inplace="true"
|
||||||
width="68px"
|
width="68px"
|
||||||
value="@bind(each.distanceAmount) @converter(vm.standardBigDecimalConverter)"
|
value="@bind(each.distanceAmount) @converter(vm.standardBigDecimalConverter)"
|
||||||
maxlength="@load(vm.lengthText)"
|
maxlength="@load(vm.lengthText)"
|
||||||
onChange="@command('calculate')"
|
onChange="@command('calculate')"
|
||||||
readonly="@load(vm.billDisabled or disabled)"/>
|
readonly="@load(vm.billDisabled or disabled)" />
|
||||||
</vbox>
|
</vbox>
|
||||||
<vbox>
|
<vbox>
|
||||||
<textbox
|
<textbox
|
||||||
inplace="true"
|
|
||||||
width="68px"
|
|
||||||
maxlength="@load(vm.lengthText)"
|
|
||||||
value="@bind(each.fuelConsumption) @converter(vm.standardBigDecimalConverter)"
|
|
||||||
readonly="@load(vm.billDisabled or disabled)"/>
|
|
||||||
<textbox
|
|
||||||
inplace="true"
|
|
||||||
width="68px"
|
|
||||||
value="@bind(each.fuelAmount) @converter(vm.standardBigDecimalConverter)"
|
|
||||||
maxlength="@load(vm.lengthText)"
|
|
||||||
onChange="@command('calculate')"
|
|
||||||
readonly="@load(vm.billDisabled or disabled)"/>
|
|
||||||
</vbox>
|
|
||||||
<textbox
|
|
||||||
inplace="true"
|
inplace="true"
|
||||||
value="@bind(each.carefare) @converter(vm.standardBigDecimalConverter)"
|
width="68px"
|
||||||
maxlength="@load(vm.lengthText)"
|
maxlength="@load(vm.lengthText)"
|
||||||
onChange="@command('calculate')"
|
value="@bind(each.fuelConsumption) @converter(vm.standardBigDecimalConverter)"
|
||||||
readonly="@load(vm.billDisabled or disabled)"/>
|
readonly="@load(vm.billDisabled or disabled)" />
|
||||||
<textbox
|
<textbox
|
||||||
inplace="true"
|
inplace="true"
|
||||||
value="@bind(each.housing) @converter(vm.standardBigDecimalConverter)"
|
width="68px"
|
||||||
|
value="@bind(each.fuelAmount) @converter(vm.standardBigDecimalConverter)"
|
||||||
maxlength="@load(vm.lengthText)"
|
maxlength="@load(vm.lengthText)"
|
||||||
onChange="@command('calculate')"
|
onChange="@command('calculate')"
|
||||||
readonly="@load(vm.billDisabled or disabled)"/>
|
readonly="@load(vm.billDisabled or disabled)" />
|
||||||
<combobox inplace="true" selectedIndex="@bind(each.freeMealsCount)"
|
</vbox>
|
||||||
readonly="true"
|
<textbox
|
||||||
disabled="@load(vm.billDisabled or disabled)"
|
inplace="true"
|
||||||
width="60px"
|
value="@bind(each.carefare) @converter(vm.standardBigDecimalConverter)"
|
||||||
|
maxlength="@load(vm.lengthText)"
|
||||||
onBlur="@command('calculate')">
|
onChange="@command('calculate')"
|
||||||
<comboitem value="0" label="0"/>
|
readonly="@load(vm.billDisabled or disabled)" />
|
||||||
<comboitem value="1" label="1"/>
|
<textbox
|
||||||
<comboitem value="2" label="2"/>
|
inplace="true"
|
||||||
<comboitem value="3" label="3"/>
|
value="@bind(each.housing) @converter(vm.standardBigDecimalConverter)"
|
||||||
|
maxlength="@load(vm.lengthText)"
|
||||||
|
onChange="@command('calculate')"
|
||||||
|
readonly="@load(vm.billDisabled or disabled)" />
|
||||||
|
<combobox
|
||||||
|
inplace="true"
|
||||||
|
selectedIndex="@bind(each.freeMealsCount)"
|
||||||
|
readonly="true"
|
||||||
|
disabled="@load(vm.billDisabled or disabled)"
|
||||||
|
width="60px"
|
||||||
|
onBlur="@command('calculate')">
|
||||||
|
<comboitem
|
||||||
|
value="0"
|
||||||
|
label="0" />
|
||||||
|
<comboitem
|
||||||
|
value="1"
|
||||||
|
label="1" />
|
||||||
|
<comboitem
|
||||||
|
value="2"
|
||||||
|
label="2" />
|
||||||
|
<comboitem
|
||||||
|
value="3"
|
||||||
|
label="3" />
|
||||||
</combobox>
|
</combobox>
|
||||||
<label value="@load(each.meals) @converter(vm.standardBigDecimalConverter)"/>
|
<label value="@load(each.meals) @converter(vm.standardBigDecimalConverter)" />
|
||||||
<textbox
|
<textbox
|
||||||
inplace="true"
|
inplace="true"
|
||||||
value="@bind(each.otherExpenses) @converter(vm.standardBigDecimalConverter)"
|
value="@bind(each.otherExpenses) @converter(vm.standardBigDecimalConverter)"
|
||||||
maxlength="@load(vm.lengthText)"
|
maxlength="@load(vm.lengthText)"
|
||||||
onChange="@command('calculate')"
|
onChange="@command('calculate')"
|
||||||
readonly="@load(vm.billDisabled or disabled)"/>
|
readonly="@load(vm.billDisabled or disabled)" />
|
||||||
<label value="@load(each.total) @converter(vm.standardBigDecimalConverter)"/>
|
<label value="@load(each.total) @converter(vm.standardBigDecimalConverter)" />
|
||||||
<label value="@load(each.adjustedTotal) @converter(vm.standardBigDecimalConverter)"/>
|
<label value="@load(each.adjustedTotal) @converter(vm.standardBigDecimalConverter)" />
|
||||||
</row>
|
</row>
|
||||||
</template>
|
</template>
|
||||||
</rows>
|
</rows>
|
||||||
</grid>
|
</grid>
|
||||||
<div hflex="1" align="end" >
|
<div
|
||||||
|
hflex="1"
|
||||||
|
align="end">
|
||||||
<vbox>
|
<vbox>
|
||||||
<hbox>
|
<hbox>
|
||||||
<label value="Záloha: " style="font-size: 14px;"/>
|
<label
|
||||||
<label value="@load(vm.dataBean.requirement.downPayment) @converter(vm.standardBigDecimalConverter)" style="font-size: 14px;"/>
|
value="Záloha: "
|
||||||
|
style="font-size: 14px;" />
|
||||||
|
<label
|
||||||
|
value="@load(vm.dataBean.requirement.downPayment) @converter(vm.standardBigDecimalConverter)"
|
||||||
|
style="font-size: 14px;" />
|
||||||
</hbox>
|
</hbox>
|
||||||
<hbox>
|
<hbox>
|
||||||
<label value="${labels.TripBillTotal}: " style="font-size: 14px; font-weight: bold;"/>
|
<label
|
||||||
<label value="@load(vm.dataBean.total) @converter(vm.standardBigDecimalConverter)" style="font-size: 14px; font-weight: bold;"/>
|
value="${labels.TripBillTotal}: "
|
||||||
|
style="font-size: 14px; font-weight: bold;" />
|
||||||
|
<label
|
||||||
|
value="@load(vm.dataBean.total) @converter(vm.standardBigDecimalConverter)"
|
||||||
|
style="font-size: 14px; font-weight: bold;" />
|
||||||
</hbox>
|
</hbox>
|
||||||
</vbox>
|
</vbox>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</zk>
|
</zk>
|
Loading…
Reference in New Issue