parent
0a4ba55b82
commit
7f1f214b5d
@ -0,0 +1,24 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapping PUBLIC "-//EXOLAB/Castor Mapping DTD Version 1.0//EN"
|
||||||
|
"http://castor.codehaus.org/mapping.dtd">
|
||||||
|
|
||||||
|
<mapping>
|
||||||
|
|
||||||
|
<class name="info.bukova.isspst.data.SettingsData" auto-complete="true" >
|
||||||
|
<map-to xml="settings-data"/>
|
||||||
|
<field name="refunds" collection="map">
|
||||||
|
|
||||||
|
<bind-xml name="refunds">
|
||||||
|
<class name="org.exolab.castor.mapping.MapItem">
|
||||||
|
<field name="key" type="java.lang.Integer">
|
||||||
|
<bind-xml name="key" node="attribute" />
|
||||||
|
</field>
|
||||||
|
<field name="value" collection="array" type="java.math.BigDecimal">
|
||||||
|
<bind-xml name="nested" />
|
||||||
|
</field>
|
||||||
|
</class>
|
||||||
|
</bind-xml>
|
||||||
|
</field>
|
||||||
|
</class>
|
||||||
|
|
||||||
|
</mapping>
|
@ -1,23 +1,60 @@
|
|||||||
<?page title="travel orders" contentType="text/html;charset=UTF-8"?>
|
<?page title="travel orders" contentType="text/html;charset=UTF-8"?>
|
||||||
<zk>
|
<zk>
|
||||||
<vbox>
|
<tabbox>
|
||||||
<label value="Dopravní prostředky:"/>
|
<tabs>
|
||||||
<button label="${labels.AddItem}" onClick="@command('addVehicle')"/>
|
<tab label="${labels.GlobalSettingsRefunds}"/>
|
||||||
<grid model="@load(vm.settings.vehicles)">
|
<tab label="${labels.GlobalSettingsVehicles}"/>
|
||||||
<columns>
|
</tabs>
|
||||||
<column label="${labels.code}"/>
|
<tabpanels>
|
||||||
<column label="${labels.name}"/>
|
<tabpanel>
|
||||||
<column/>
|
<grid model="@load(vm.refundsHours)">
|
||||||
</columns>
|
<auxhead>
|
||||||
<rows>
|
<auxheader colspan="1"/>
|
||||||
<template name="model">
|
<auxheader label="${labels.GlobalSettingsFreeMealsCount}" colspan="4"/>
|
||||||
<row>
|
</auxhead>
|
||||||
<textbox inplace="true" value="@bind(each.code)"/>
|
<columns>
|
||||||
<textbox inplace="true" value="@bind(each.description)"/>
|
<column label="${labels.GlobalSettingsHours}"/>
|
||||||
<button label="${labels.RemoveItem}" onClick="@command('removeVehicle', vehicle=each)"/>
|
<column label="0"/>
|
||||||
</row>
|
<column label="1"/>
|
||||||
</template>
|
<column label="2"/>
|
||||||
</rows>
|
<column label="3"/>
|
||||||
</grid>
|
</columns>
|
||||||
</vbox>
|
<rows>
|
||||||
|
<template name="model">
|
||||||
|
<row>
|
||||||
|
<label value="@load(each)"/>
|
||||||
|
<textbox value="@bind(vm.settings.refunds[each][0])" inplace="true"/>
|
||||||
|
<textbox value="@bind(vm.settings.refunds[each][1])" inplace="true"/>
|
||||||
|
<textbox value="@bind(vm.settings.refunds[each][2])" inplace="true"/>
|
||||||
|
<textbox value="@bind(vm.settings.refunds[each][3])" inplace="true"/>
|
||||||
|
</row>
|
||||||
|
|
||||||
|
</template>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
</tabpanel>
|
||||||
|
<tabpanel>
|
||||||
|
<vbox>
|
||||||
|
<button label="${labels.AddItem}" onClick="@command('addVehicle')" sclass="nicebutton"/>
|
||||||
|
<grid model="@load(vm.settings.vehicles)">
|
||||||
|
<columns>
|
||||||
|
<column label="${labels.code}"/>
|
||||||
|
<column label="${labels.name}"/>
|
||||||
|
<column/>
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<template name="model">
|
||||||
|
<row>
|
||||||
|
<textbox inplace="true" value="@bind(each.code)"/>
|
||||||
|
<textbox inplace="true" value="@bind(each.description)"/>
|
||||||
|
<button label="${labels.RemoveItem}" onClick="@command('removeVehicle', vehicle=each)"/>
|
||||||
|
</row>
|
||||||
|
</template>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
</vbox>
|
||||||
|
</tabpanel>
|
||||||
|
</tabpanels>
|
||||||
|
</tabbox>
|
||||||
|
|
||||||
</zk>
|
</zk>
|
Loading…
Reference in New Issue