Na formulář vyúčtování služební cesty bylo přidáno tlačítko "Uložit a odeslat ke schválení"

closes #218
Verze_2.0
Josef Rokos 10 years ago
parent a6799064f7
commit b6d0546b48

@ -56,10 +56,9 @@ public class TripBillForm extends FormWithUpload<TripBill> {
return false; return false;
} }
@Override
@Command @Command
@NotifyChange("errMessages") @NotifyChange("errMessages")
public void save(@BindingParam("window") Window win) public void saveForApproval(@BindingParam("window") Window win)
{ {
if (StringUtils.isNullOrTrimmedEmpty(this.getDataBean().getResultMessage())) if (StringUtils.isNullOrTrimmedEmpty(this.getDataBean().getResultMessage()))
{ {

@ -19,7 +19,31 @@
label="${labels.TravelOrdersFormTitle}" /> label="${labels.TravelOrdersFormTitle}" />
<vlayout vflex="1"> <vlayout vflex="1">
<include src="../tripBillInterior.zul" vflex="1"/> <include src="../tripBillInterior.zul" vflex="1"/>
<include src="/app/formButtons.zul" /> <vlayout
vflex="min"
hflex="max">
<div
hflex="max"
align="right">
<button
image="~./zul/img/misc/drag-disallow.png"
label="${labels.ButtonStorno}"
onClick="editWin.detach()"
sclass="nicebutton" />
<button
image="/img/save.png"
label="Uložit a odeslat ke schválení"
onClick="@command('saveForApproval', window=editWin) @global-command('refresh')"
disabled="@load(not vm.canSave)"
sclass="nicebutton" />
<button
image="/img/save.png"
label="${labels.ButtonSave}"
onClick="@command('save', window=editWin) @global-command('refresh')"
disabled="@load(not vm.canSave)"
sclass="nicebutton" />
</div>
</vlayout>
</vlayout> </vlayout>
</window> </window>
</zk> </zk>
Loading…
Cancel
Save