From dc0607c072ea2ceb9d7c5be5ea67eb9b7baa7c5e Mon Sep 17 00:00:00 2001 From: Josef Rokos Date: Sat, 20 Jun 2015 23:49:49 +0200 Subject: [PATCH] =?UTF-8?q?Vytvo=C5=99en=C3=ADm=20po=C5=BEadavku=20na=20sl?= =?UTF-8?q?u=C5=BEebn=C3=AD=20cestu=20se=20ode=C5=A1le=20e-mail=20spoluces?= =?UTF-8?q?tuj=C3=ADc=C3=ADm.=20closes=20#235?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../info/bukova/isspst/data/SettingsData.java | 10 ++++++ .../TripRequirementServiceImpl.java | 22 +++++++++---- .../WEB-INF/locales/zk-label.properties | 1 + src/main/webapp/settings/global/email.zul | 31 +++++++++++++++++++ 4 files changed, 58 insertions(+), 6 deletions(-) diff --git a/src/main/java/info/bukova/isspst/data/SettingsData.java b/src/main/java/info/bukova/isspst/data/SettingsData.java index b068c08b..9272a483 100644 --- a/src/main/java/info/bukova/isspst/data/SettingsData.java +++ b/src/main/java/info/bukova/isspst/data/SettingsData.java @@ -15,6 +15,7 @@ public class SettingsData { private MailMessage authReqTemplate; private MailMessage confReqTemplate; private MailMessage confReqTripPassenger; + private MailMessage reqPassenger; private Address mainAddress; private List
shippingAddrs; private String bankName; @@ -30,6 +31,7 @@ public class SettingsData { authReqTemplate = new MailMessage(); confReqTemplate = new MailMessage(); confReqTripPassenger = new MailMessage(); + reqPassenger = new MailMessage(); mainAddress = new Address(); shippingAddrs = new ArrayList
(); vehicles = new ArrayList(); @@ -160,4 +162,12 @@ public class SettingsData { public void setConfReqTripPassenger(MailMessage confReqTripPassenger) { this.confReqTripPassenger = confReqTripPassenger; } + + public MailMessage getReqPassenger() { + return reqPassenger; + } + + public void setReqPassenger(MailMessage reqPassenger) { + this.reqPassenger = reqPassenger; + } } diff --git a/src/main/java/info/bukova/isspst/services/requirement/TripRequirementServiceImpl.java b/src/main/java/info/bukova/isspst/services/requirement/TripRequirementServiceImpl.java index 0a2c823c..52f7e8da 100644 --- a/src/main/java/info/bukova/isspst/services/requirement/TripRequirementServiceImpl.java +++ b/src/main/java/info/bukova/isspst/services/requirement/TripRequirementServiceImpl.java @@ -77,6 +77,21 @@ public class TripRequirementServiceImpl extends RequirementBaseServiceImpl + @@ -91,6 +92,31 @@ + + + + + + + + + + + + + +