From 0f169f8be9c4f8d1578dc94a8b3b0efd4b323e42 Mon Sep 17 00:00:00 2001 From: Josef Rokos Date: Sun, 17 May 2015 21:06:26 +0200 Subject: [PATCH] =?UTF-8?q?Na=20formul=C3=A1=C5=99i=20vy=C3=BA=C4=8Dtov?= =?UTF-8?q?=C3=A1n=C3=AD=20slu=C5=BEebn=C3=AD=20cesty=20se=20automaticky?= =?UTF-8?q?=20p=C5=99edvypln=C3=AD=20datum=20v=20poli=20"Zpr=C3=A1va=20z?= =?UTF-8?q?=20pracovn=C3=AD=20cesty=20pod=C3=A1na=20dne",=20pokud=20je=20p?= =?UTF-8?q?ole=20pr=C3=A1zdn=C3=A9.=20closes=20#216?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/info/bukova/isspst/ui/tripbill/TripBillForm.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/info/bukova/isspst/ui/tripbill/TripBillForm.java b/src/main/java/info/bukova/isspst/ui/tripbill/TripBillForm.java index 578d61fd..286269a6 100644 --- a/src/main/java/info/bukova/isspst/ui/tripbill/TripBillForm.java +++ b/src/main/java/info/bukova/isspst/ui/tripbill/TripBillForm.java @@ -19,6 +19,7 @@ import org.zkoss.zul.Messagebox; import org.zkoss.zul.Window; import java.util.ArrayList; +import java.util.Date; import java.util.List; public class TripBillForm extends FormWithUpload { @@ -36,6 +37,11 @@ public class TripBillForm extends FormWithUpload { vehicles = new ArrayList(); vehicles.add(null); vehicles.addAll(settingsService.getSettings().getVehicles()); + TripBill bill = getDataBean(); + + if (bill.getResultMessageDate() == null) { + bill.setResultMessageDate(new Date()); + } } @Command