diff --git a/extdbms/lib/Controllers/DBMS/Client/DashboardController.php b/extdbms/lib/Controllers/DBMS/Client/DashboardController.php index 54a8db7..f915dab 100644 --- a/extdbms/lib/Controllers/DBMS/Client/DashboardController.php +++ b/extdbms/lib/Controllers/DBMS/Client/DashboardController.php @@ -21,6 +21,7 @@ class DashboardController extends ClientController throw new \Exception("client_code 값이 정의되지 않았습니다."); } $client_code = $params['client_code']; + //서비스위치별(치바,도쿄등) $dashboard = []; foreach (DBMS_SERVICE_SWITCHCODE as $district => $switchcodes) { $switchcode_begin = $switchcodes['begin']; @@ -31,10 +32,12 @@ class DashboardController extends ClientController $switchcode_end ); } //foreach + //서비스라인별(일반,방어,전용,테스트,대체등) foreach (DBMS_SERVICE_LINE as $service_line => $label) { $dashboard[$service_line] = $this->getServiceService()->getServiceLineCountByClient($client_code, $service_line); } //foreach - $dashboard['coupon'] = $this->getServiceService()->getCouponCountByClient($client_code); + //서비스상태별(정상,정지,해지등) + $dashboard['coupon'] = intval($this->getServiceService()->getCouponCountByClient($client_code)); $this->dashboard = $dashboard; $this->client_code = $client_code; return $this->render(__FUNCTION__); diff --git a/extdbms/lib/Services/ServiceService.php b/extdbms/lib/Services/ServiceService.php index 49be0d1..219a79e 100644 --- a/extdbms/lib/Services/ServiceService.php +++ b/extdbms/lib/Services/ServiceService.php @@ -85,7 +85,7 @@ class ServiceService extends CommonService } //foreach return $temps; } - //지역(치바,도쿄등)에 따른 사용자별용 서비스 카운트 + //지역(치바,도쿄등)에 따른 사용자별용 서비스스카운트 public function getDistrictCountByClient(string $client_code, string $switchcode_begin, string $switchcode_end): int { $this->getModel()->where("client_code", "{$client_code}"); @@ -103,7 +103,7 @@ class ServiceService extends CommonService // // echo "
" . $this->getModel()->getLastQuery(); // return $stmt->fetch(PDO::FETCH_ASSOC); } - //사용자별용 ServieLine별 카운트 + //ServieLine(일반,방어,전용,테스트,대체등)에 따른 사용자별용 서비스 카운트 public function getServiceLineCountByClient(string $client_code, string $service_line): int { $this->getModel()->where("client_code", "{$client_code}"); @@ -111,7 +111,7 @@ class ServiceService extends CommonService $this->getModel()->where("service_status", 'o'); return $this->getCount(); } - //사용자별용 서비스 쿠폰 + //사용자별용 서비스 쿠폰 카운트 public function getCouponCountByClient(string $client_code): int { $this->getModel()->where("client_code", "{$client_code}"); diff --git a/extdbms/lib/Views/dbms/client/dashboard/totalcount.php b/extdbms/lib/Views/dbms/client/dashboard/totalcount.php index 6c05860..edfcb9b 100644 --- a/extdbms/lib/Views/dbms/client/dashboard/totalcount.php +++ b/extdbms/lib/Views/dbms/client/dashboard/totalcount.php @@ -49,7 +49,13 @@ dashboard['test'] ?> dashboard['substitution'] ?> - dashboard['coupon'] ?> + > + dashboard['coupon']) { ?> + dashboard['coupon'] ?> + + dashboard['coupon'] ?> + +