From a8020789bed33830578625624a78067cf4865f05 Mon Sep 17 00:00:00 2001 From: Josef Rokos Date: Thu, 17 Jul 2014 12:40:22 +0200 Subject: [PATCH] =?UTF-8?q?P=C5=99id=C3=A1no=20nastaven=C3=AD=20adres=20a?= =?UTF-8?q?=20bankovn=C3=ADho=20spojen=C3=AD=20do=20glob=C3=A1ln=C3=ADho?= =?UTF-8?q?=20nastaven=C3=AD.=20closes=20#101?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../info/bukova/isspst/data/SettingsData.java | 50 ++++++++++ .../settings/GlobalSettingServiceImpl.java | 8 ++ .../isspst/ui/settings/GlobalSettingsVM.java | 22 +++++ .../WEB-INF/locales/zk-label.properties | 6 ++ src/main/webapp/settings/global/address.zul | 71 ++++++++++++++ src/main/webapp/settings/global/bank.zul | 23 +++++ src/main/webapp/settings/global/email.zul | 84 +++++++++++++++++ src/main/webapp/settings/globalSettings.zul | 94 +++---------------- 8 files changed, 275 insertions(+), 83 deletions(-) create mode 100644 src/main/webapp/settings/global/address.zul create mode 100644 src/main/webapp/settings/global/bank.zul create mode 100644 src/main/webapp/settings/global/email.zul diff --git a/src/main/java/info/bukova/isspst/data/SettingsData.java b/src/main/java/info/bukova/isspst/data/SettingsData.java index 89434b41..23125e93 100644 --- a/src/main/java/info/bukova/isspst/data/SettingsData.java +++ b/src/main/java/info/bukova/isspst/data/SettingsData.java @@ -1,5 +1,8 @@ package info.bukova.isspst.data; +import java.util.ArrayList; +import java.util.List; + import info.bukova.isspst.mail.MailMessage; public class SettingsData { @@ -8,11 +11,18 @@ public class SettingsData { private MailMessage newReqTemplate; private MailMessage authReqTemplate; private MailMessage confReqTemplate; + private Address mainAddress; + private List
shippingAddrs; + private String bankName; + private String accountNumber; + private String bankCode; public SettingsData() { newReqTemplate = new MailMessage(); authReqTemplate = new MailMessage(); confReqTemplate = new MailMessage(); + mainAddress = new Address(); + shippingAddrs = new ArrayList
(); } public boolean isEnableRequirements() { @@ -46,5 +56,45 @@ public class SettingsData { public void setConfReqTemplate(MailMessage confReqTemplate) { this.confReqTemplate = confReqTemplate; } + + public Address getMainAddress() { + return mainAddress; + } + + public void setMainAddress(Address mainAddress) { + this.mainAddress = mainAddress; + } + + public List
getShippingAddrs() { + return shippingAddrs; + } + + public void setShippingAddrs(List
shippingAddrs) { + this.shippingAddrs = shippingAddrs; + } + + public String getBankName() { + return bankName; + } + + public void setBankName(String bankName) { + this.bankName = bankName; + } + + public String getAccountNumber() { + return accountNumber; + } + + public void setAccountNumber(String accountNumber) { + this.accountNumber = accountNumber; + } + + public String getBankCode() { + return bankCode; + } + + public void setBankCode(String bankCode) { + this.bankCode = bankCode; + } } diff --git a/src/main/java/info/bukova/isspst/services/settings/GlobalSettingServiceImpl.java b/src/main/java/info/bukova/isspst/services/settings/GlobalSettingServiceImpl.java index a06a322f..7a746092 100644 --- a/src/main/java/info/bukova/isspst/services/settings/GlobalSettingServiceImpl.java +++ b/src/main/java/info/bukova/isspst/services/settings/GlobalSettingServiceImpl.java @@ -13,6 +13,7 @@ import org.slf4j.LoggerFactory; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.transaction.annotation.Transactional; +import info.bukova.isspst.data.Address; import info.bukova.isspst.data.GlobalSettings; import info.bukova.isspst.data.SettingsData; import info.bukova.isspst.services.AbstractOwnedService; @@ -100,6 +101,13 @@ public class GlobalSettingServiceImpl extends AbstractOwnedService + + + + + + + + + + + + + + + + + + + + + + + + +