|
|
|
@ -4,6 +4,8 @@
|
|
|
|
|
<window
|
|
|
|
|
id="editWin"
|
|
|
|
|
closable="true"
|
|
|
|
|
width="95%"
|
|
|
|
|
height="95%"
|
|
|
|
|
border="normal"
|
|
|
|
|
position="center"
|
|
|
|
|
apply="org.zkoss.bind.BindComposer"
|
|
|
|
@ -12,7 +14,7 @@
|
|
|
|
|
src="/img/pickup-032.png"
|
|
|
|
|
zclass="form-caption"
|
|
|
|
|
label="${labels.TravelOrdersFormTitle}" />
|
|
|
|
|
<vlayout>
|
|
|
|
|
<vlayout vflex="1">
|
|
|
|
|
<grid>
|
|
|
|
|
<columns visible="false">
|
|
|
|
|
<column hflex="min"/>
|
|
|
|
@ -78,7 +80,9 @@
|
|
|
|
|
</row>
|
|
|
|
|
</rows>
|
|
|
|
|
</grid>
|
|
|
|
|
<grid model="@load(vm.dataBean.billItems)">
|
|
|
|
|
<grid
|
|
|
|
|
model="@load(vm.dataBean.billItems)"
|
|
|
|
|
vflex="1">
|
|
|
|
|
<auxhead>
|
|
|
|
|
<auxheader rowspan="2">
|
|
|
|
|
<div sclass="vertikaal" height="50px">
|
|
|
|
@ -271,15 +275,15 @@
|
|
|
|
|
<timebox inplace="true" width="68px" value="@bind(each.endWork)" format="short"/>
|
|
|
|
|
</vbox>
|
|
|
|
|
<vbox>
|
|
|
|
|
<textbox inplace="true" width="68px" value="@bind(each.distance) @converter(vm.bigDecimalConverter)"/>
|
|
|
|
|
<textbox inplace="true" width="68px" value="@bind(each.distanceAmount) @converter(vm.bigDecimalConverter)" onChange="@command('calculate')"/>
|
|
|
|
|
<textbox inplace="true" width="68px" value="@bind(each.distance) @converter(vm.standardBigDecimalConverter)"/>
|
|
|
|
|
<textbox inplace="true" width="68px" value="@bind(each.distanceAmount) @converter(vm.standardBigDecimalConverter)" onChange="@command('calculate')"/>
|
|
|
|
|
</vbox>
|
|
|
|
|
<vbox>
|
|
|
|
|
<textbox inplace="true" width="68px" value="@bind(each.fuelConsumption) @converter(vm.bigDecimalConverter)"/>
|
|
|
|
|
<textbox inplace="true" width="68px" value="@bind(each.fuelAmount) @converter(vm.bigDecimalConverter)" onChange="@command('calculate')"/>
|
|
|
|
|
<textbox inplace="true" width="68px" value="@bind(each.fuelConsumption) @converter(vm.standardBigDecimalConverter)"/>
|
|
|
|
|
<textbox inplace="true" width="68px" value="@bind(each.fuelAmount) @converter(vm.standardBigDecimalConverter)" onChange="@command('calculate')"/>
|
|
|
|
|
</vbox>
|
|
|
|
|
<textbox inplace="true" value="@bind(each.carefare) @converter(vm.bigDecimalConverter)" onChange="@command('calculate')"/>
|
|
|
|
|
<textbox inplace="true" value="@bind(each.housing) @converter(vm.bigDecimalConverter)" onChange="@command('calculate')"/>
|
|
|
|
|
<textbox inplace="true" value="@bind(each.carefare) @converter(vm.standardBigDecimalConverter)" onChange="@command('calculate')"/>
|
|
|
|
|
<textbox inplace="true" value="@bind(each.housing) @converter(vm.standardBigDecimalConverter)" onChange="@command('calculate')"/>
|
|
|
|
|
<combobox inplace="true" selectedIndex="@bind(each.freeMealsCount)"
|
|
|
|
|
readonly="true"
|
|
|
|
|
width="60px"
|
|
|
|
@ -290,10 +294,10 @@
|
|
|
|
|
<comboitem value="2" label="2"/>
|
|
|
|
|
<comboitem value="3" label="3"/>
|
|
|
|
|
</combobox>
|
|
|
|
|
<label value="@load(each.meals) @converter(vm.bigDecimalConverter)"/>
|
|
|
|
|
<textbox inplace="true" value="@bind(each.otherExpenses) @converter(vm.bigDecimalConverter)" onChange="@command('calculate')"/>
|
|
|
|
|
<label value="@load(each.total) @converter(vm.bigDecimalConverter)"/>
|
|
|
|
|
<label value="@load(each.adjustedTotal) @converter(vm.bigDecimalConverter)"/>
|
|
|
|
|
<label value="@load(each.meals) @converter(vm.standardBigDecimalConverter)"/>
|
|
|
|
|
<textbox inplace="true" value="@bind(each.otherExpenses) @converter(vm.standardBigDecimalConverter)" onChange="@command('calculate')"/>
|
|
|
|
|
<label value="@load(each.total) @converter(vm.standardBigDecimalConverter)"/>
|
|
|
|
|
<label value="@load(each.adjustedTotal) @converter(vm.standardBigDecimalConverter)"/>
|
|
|
|
|
</row>
|
|
|
|
|
</template>
|
|
|
|
|
</rows>
|
|
|
|
@ -302,11 +306,11 @@
|
|
|
|
|
<vbox>
|
|
|
|
|
<hbox>
|
|
|
|
|
<label value="Záloha: " style="font-size: 14px;"/>
|
|
|
|
|
<label value="@load(vm.dataBean.requirement.downPayment) @converter(vm.bigDecimalConverter)" style="font-size: 14px;"/>
|
|
|
|
|
<label value="@load(vm.dataBean.requirement.downPayment) @converter(vm.standardBigDecimalConverter)" style="font-size: 14px;"/>
|
|
|
|
|
</hbox>
|
|
|
|
|
<hbox>
|
|
|
|
|
<label value="${labels.TripBillTotal}: " style="font-size: 14px; font-weight: bold;"/>
|
|
|
|
|
<label value="@load(vm.dataBean.total) @converter(vm.bigDecimalConverter)" style="font-size: 14px; font-weight: bold;"/>
|
|
|
|
|
<label value="@load(vm.dataBean.total) @converter(vm.standardBigDecimalConverter)" style="font-size: 14px; font-weight: bold;"/>
|
|
|
|
|
</hbox>
|
|
|
|
|
</vbox>
|
|
|
|
|
</div>
|
|
|
|
|