47 lines
1.5 KiB
PHP
47 lines
1.5 KiB
PHP
<?php
|
|
|
|
namespace lib\Controller;
|
|
|
|
use lib\Core\Controller;
|
|
|
|
class Billing extends Controller
|
|
{
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
} //
|
|
|
|
final public function getAccounts($site_id)
|
|
{
|
|
switch ($site_id) {
|
|
case 'PRIMEIDC':
|
|
return [
|
|
["id" => "331301-04-217387", "name" => '국민은행', "owner" => "주)듀나미스"],
|
|
];
|
|
break;
|
|
case "ITSOLUTION":
|
|
return [
|
|
["id" => "351-0995-6751-73", "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;
|
|
}
|
|
}
|
|
|
|
public function execute($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');
|
|
}
|
|
}
|