From cd5629476c96d4a458594b7907f775280c7e482a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EC=A4=80=ED=9D=A0?= Date: Mon, 2 Sep 2024 14:20:18 +0900 Subject: [PATCH] add SiteAccount.php --- extdbms/lib/Controller/Billing.php | 42 +------------------ extdbms/lib/Model/SiteAccount.php | 18 ++++++++ extdbms/lib/View/depositbillpaper.php | 26 ++---------- .../jsp/deposit/IdcDepositBillPaperForm.jsp | 21 ++++++++-- 4 files changed, 40 insertions(+), 67 deletions(-) create mode 100644 extdbms/lib/Model/SiteAccount.php diff --git a/extdbms/lib/Controller/Billing.php b/extdbms/lib/Controller/Billing.php index 864c68d..240909b 100644 --- a/extdbms/lib/Controller/Billing.php +++ b/extdbms/lib/Controller/Billing.php @@ -11,51 +11,11 @@ class Billing extends Controller parent::__construct(); } // - final public function getAccounts($site_id) - { - switch ($site_id) { - case 'PRIMEIDC': - return [ - ["id" => "1005-202-907217", "name" => '우리은행', "owner" => "(주)브엘세바"], - ["id" => "355-0040-4154-03", "name" => '농협', "owner" => "(주)브엘세바"], - ]; - break; - case "ITSOLUTION": - return [ - ["id" => "1005-503-404205", "name" => '우리', "owner" => "주식회사 르호봇"], - ["id" => "9002-1932-1654-1", "name" => '새마을금고', "owner" => "주식회사 르호봇"], - ]; - break; - case 'GDIDC': - return [ - ["id" => "1005-204-100758", "name" => '우리은행', "owner" => " (주)브엘라해로이"], - ]; - break; - default: - throw new \Exception(sprintf(__METHOD__ . "에서 오류 SiteID[%s]가 정의되지 않았습니다.", $site_id)); - break; - } - } - - private function bill_process($datas) - { - $bills = []; - foreach (explode("<>", $datas['bills']) as $bill) { - if ($bill != "") { - $temps = explode("||", $bill); - $bills[] = sprintf("{$temps[0]} / {$temps[1]} / %s원", number_format($temps[2])); - } - } - return implode("
", $bills); - } - public function execute($datas) { - $this->view->total_price = number_format($datas['total_price']); - $this->view->bill = $this->bill_process($datas); $this->view->site = $this->getSite(); $this->view->client = $this->getModel("Client")->getData(array(sprintf("Client_Code='%s'", $datas['client_code']))); - $this->view->accounts = $this->getAccounts($this->view->site['id']); + $this->view->accounts = $this->getModel("siteAccount")->getDatas(); return $this->render('depositbillpaper'); } } diff --git a/extdbms/lib/Model/SiteAccount.php b/extdbms/lib/Model/SiteAccount.php new file mode 100644 index 0000000..2a5cc5a --- /dev/null +++ b/extdbms/lib/Model/SiteAccount.php @@ -0,0 +1,18 @@ +입금 하실 계좌 번호 입니다.

accounts as $account) { ?>
- 은행명 :
- 계좌번호 :
- 예금주: + 은행명 : bank ?>
+ 계좌번호 : account ?>
+ 예금주: owner ?>

고객명과 입금자명이 상이한 경우 반드시 확인 연락이 필요합니다.
@@ -76,24 +76,4 @@

5. 서버 운영중 장비부품 문제(예:하드디스크의 고장 등)로 발생한 피해는 저희 site['Title'] ?>에서 책임을 지지 않습니다.
(요청하시면 백업을 위해 무료로 추가 하드를 제공해 드리고 있지만, 추가가 불가능한 경우도 있습니다.
번거로우시더라도 주기적인 데이터백업을 부탁드리겠습니다.)

- -
- 안녕하세요 ITSOLUTION입니다.
- 항상 저희 IDC를 이용해 주셔서 감사합니다.
- 서버비 안내 드립니다.
- ===========================
- bill ?>
- ===========================
- 입금 주실 금액 : total_price ?>원
-
■ ITSOLUTION IDC 계좌
- accounts as $account) { ?> -
- 예금주   : 
- 은행명   : 
- 계좌번호 : 
-
- - ===========================
- 결제담당자분 확인 후 말씀 한번 부탁 드립니다.
- 감사합니다.
\ No newline at end of file diff --git a/idcproject/WebContent/jsp/deposit/IdcDepositBillPaperForm.jsp b/idcproject/WebContent/jsp/deposit/IdcDepositBillPaperForm.jsp index 51ab914..4354656 100644 --- a/idcproject/WebContent/jsp/deposit/IdcDepositBillPaperForm.jsp +++ b/idcproject/WebContent/jsp/deposit/IdcDepositBillPaperForm.jsp @@ -164,9 +164,24 @@ $(function() - - - + +
+ 안녕하세요 ITSolution IDC 입니다.
+ 항상 저희 IDC를 이용해 주셔서 감사합니다.
+ 서버비 안내 드립니다.
+ ===========================
+ ${temp.service_mainip} / ${temp.payment_date} / ${temp.service_amount}원
+ ===========================
+ 입금 주실 금액 :
+
■ ITSolution IDC 계좌
+
+ 예금주   : (주)와이와이와이(영업소)
+ 은행명   : 국민은행
+ 계좌번호 : 989801-00-065482
+
+ ===========================
+ 결제담당자분 확인 후 말씀 한번 부탁 드립니다.
+ 감사합니다.