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"?>
|
||||
<zk>
|
||||
<vbox>
|
||||
<label value="Dopravní prostředky:"/>
|
||||
<button label="${labels.AddItem}" onClick="@command('addVehicle')"/>
|
||||
<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>
|
||||
<tabbox>
|
||||
<tabs>
|
||||
<tab label="${labels.GlobalSettingsRefunds}"/>
|
||||
<tab label="${labels.GlobalSettingsVehicles}"/>
|
||||
</tabs>
|
||||
<tabpanels>
|
||||
<tabpanel>
|
||||
<grid model="@load(vm.refundsHours)">
|
||||
<auxhead>
|
||||
<auxheader colspan="1"/>
|
||||
<auxheader label="${labels.GlobalSettingsFreeMealsCount}" colspan="4"/>
|
||||
</auxhead>
|
||||
<columns>
|
||||
<column label="${labels.GlobalSettingsHours}"/>
|
||||
<column label="0"/>
|
||||
<column label="1"/>
|
||||
<column label="2"/>
|
||||
<column label="3"/>
|
||||
</columns>
|
||||
<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>
|
Loading…
Reference in New Issue