change IdcDepositBillPagerForm

This commit is contained in:
최준흠 2024-08-30 17:00:16 +09:00
parent 430087168c
commit b60a0848fd
4 changed files with 27 additions and 7 deletions

View File

@ -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());
}

View File

@ -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');
}
}

View File

@ -73,3 +73,21 @@
(요청하시면 백업을 위해 무료로 추가 하드를 제공해 드리고 있지만, 추가가 불가능한 경우도 있습니다.<br />
번거로우시더라도 주기적인 데이터백업을 부탁드리겠습니다.) </p>
</div>
<div style="border:1px solid red; background-color:pink;">
안녕하세요 ITSOLUTION입니다.<BR>
항상 저희 IDC를 이용해 주셔서 감사합니다.<BR>
서버비 안내 드립니다.<BR>
===========================<BR>
<?=$this->bill?><BR>
===========================<BR>
입금 주실 금액 : <?=$this->total_price?>원<BR>
<BR> ITSOLUTION IDC 계좌<BR>
<?php foreach ($this->accounts as $account) {?>
예금주&nbsp;&nbsp;&nbsp;:&nbsp;<?=$account['owner']?><br>
은행명&nbsp;&nbsp;&nbsp;:&nbsp;<?=$account['name']?><br>
계좌번호&nbsp;:&nbsp;<?=$account['id']?><br>
<?php }?>
===========================<BR>
결제담당자분 확인 말씀 한번 부탁 드립니다.<BR>
감사합니다.<BR>
</div>

View File

@ -164,7 +164,9 @@ $(function()
</tfoot>
</table>
</div>
<c:import url="${phpurl}/depositbillpaper.php?client_code=${ClientDto.client_code}" />
<c:set var="bills" value="" />
<c:forEach items="${IdcBillPaperList }" var="temp"><c:set var="bills" value="${bills}${temp.service_mainip}||${temp.payment_date}||${temp.service_amount}<>" /></c:forEach>
<c:import url="${phpurl}/depositbillpaper.php?client_code=${ClientDto.client_code}&total_price=${total_price}&bills=${bills}" />
</div>
</div>
<!-- panel-body -->