From b60a0848fd75005bcf807791146019bb2517d175 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=EC=B5=9C=EC=A4=80=ED=9D=A0?=
Date: Fri, 30 Aug 2024 17:00:16 +0900
Subject: [PATCH] change IdcDepositBillPagerForm
---
extdbms/depositbillpaper.php | 2 +-
extdbms/lib/Controller/Billing.php | 10 +++++-----
extdbms/lib/View/depositbillpaper.php | 18 ++++++++++++++++++
.../jsp/deposit/IdcDepositBillPaperForm.jsp | 4 +++-
4 files changed, 27 insertions(+), 7 deletions(-)
diff --git a/extdbms/depositbillpaper.php b/extdbms/depositbillpaper.php
index 860a2bb..5c7c216 100644
--- a/extdbms/depositbillpaper.php
+++ b/extdbms/depositbillpaper.php
@@ -4,7 +4,7 @@ namespace lib\Controller;
require_once "lib/autoload.php";
try {
$billing = new Billing();
- return $billing->execute($_GET['client_code']);
+ return $billing->execute($_GET);
} catch (\Exception $e) {
die($e->getMessage());
}
diff --git a/extdbms/lib/Controller/Billing.php b/extdbms/lib/Controller/Billing.php
index c84a397..f21e35c 100644
--- a/extdbms/lib/Controller/Billing.php
+++ b/extdbms/lib/Controller/Billing.php
@@ -38,11 +38,11 @@ class Billing extends Controller
public function execute($client_code)
{
- $site = $this->getSite();
-
- $this->view->client = $this->getModel("Client")->getData(array(sprintf("Client_Code='%s'", $client_code)));
- $this->view->site = $site;
- $this->view->accounts = $this->getAccounts($site['id']);
+ $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']);
return $this->render('depositbillpaper');
}
}
diff --git a/extdbms/lib/View/depositbillpaper.php b/extdbms/lib/View/depositbillpaper.php
index ccaeb12..06d651d 100644
--- a/extdbms/lib/View/depositbillpaper.php
+++ b/extdbms/lib/View/depositbillpaper.php
@@ -73,3 +73,21 @@
(요청하시면 백업을 위해 무료로 추가 하드를 제공해 드리고 있지만, 추가가 불가능한 경우도 있습니다.
번거로우시더라도 주기적인 데이터백업을 부탁드리겠습니다.)
+
+안녕하세요 ITSOLUTION입니다.
+항상 저희 IDC를 이용해 주셔서 감사합니다.
+서버비 안내 드립니다.
+===========================
+=$this->bill?>
+===========================
+입금 주실 금액 : =$this->total_price?>원
+
■ ITSOLUTION IDC 계좌
+accounts as $account) {?>
+예금주 : =$account['owner']?>
+은행명 : =$account['name']?>
+계좌번호 : =$account['id']?>
+
+===========================
+결제담당자분 확인 후 말씀 한번 부탁 드립니다.
+감사합니다.
+
\ No newline at end of file
diff --git a/idcproject/WebContent/jsp/deposit/IdcDepositBillPaperForm.jsp b/idcproject/WebContent/jsp/deposit/IdcDepositBillPaperForm.jsp
index 62557d0..51ab914 100644
--- a/idcproject/WebContent/jsp/deposit/IdcDepositBillPaperForm.jsp
+++ b/idcproject/WebContent/jsp/deposit/IdcDepositBillPaperForm.jsp
@@ -164,7 +164,9 @@ $(function()
-
+
+
+