diff --git a/extdbms/lib/Controllers/CommonController.php b/extdbms/lib/Controllers/CommonController.php index e17b1e2..810b6d3 100644 --- a/extdbms/lib/Controllers/CommonController.php +++ b/extdbms/lib/Controllers/CommonController.php @@ -6,8 +6,8 @@ use lib\Core\Controller as Core; class CommonController extends Core { - protected function __construct(array $params = []) + protected function __construct() { - parent::__construct($params); + parent::__construct(); } // } //Class diff --git a/extdbms/lib/Controllers/DBMS/Client/ClientController.php b/extdbms/lib/Controllers/DBMS/Client/ClientController.php index 1cd5244..bb038b7 100644 --- a/extdbms/lib/Controllers/DBMS/Client/ClientController.php +++ b/extdbms/lib/Controllers/DBMS/Client/ClientController.php @@ -10,9 +10,9 @@ class ClientController extends DBMSController { private ?ClientService $_clientService = null; private ?MemberService $_memberService = null; - public function __construct(array $params = []) + public function __construct() { - parent::__construct($params); + parent::__construct(); $this->getView()->setPath('client'); } // final public function getClientService(): ClientService diff --git a/extdbms/lib/Controllers/DBMS/Client/CouponController.php b/extdbms/lib/Controllers/DBMS/Client/CouponController.php index e6bb65c..09092d1 100644 --- a/extdbms/lib/Controllers/DBMS/Client/CouponController.php +++ b/extdbms/lib/Controllers/DBMS/Client/CouponController.php @@ -10,9 +10,9 @@ class CouponController extends ClientController { private ?OnetimeService $_onetimeService = null; private ?HistoryService $_historyService = null; - public function __construct(array $params = []) + public function __construct() { - parent::__construct($params); + parent::__construct(); $this->getView()->setPath('coupon'); } // public function getOnetimeService(): OnetimeService diff --git a/extdbms/lib/Controllers/DBMS/Client/MemoController.php b/extdbms/lib/Controllers/DBMS/Client/MemoController.php index 00b412c..71b08fb 100644 --- a/extdbms/lib/Controllers/DBMS/Client/MemoController.php +++ b/extdbms/lib/Controllers/DBMS/Client/MemoController.php @@ -6,9 +6,9 @@ use lib\Helpers\ServiceHelper; class MemoController extends ClientController { - public function __construct(array $params = []) + public function __construct() { - parent::__construct($params); + parent::__construct(); $this->getView()->setPath('memo'); $this->helper = new ServiceHelper(); } // diff --git a/extdbms/lib/Controllers/DBMS/Client/PaymentController.php b/extdbms/lib/Controllers/DBMS/Client/PaymentController.php index 53da7e2..5ed90f3 100644 --- a/extdbms/lib/Controllers/DBMS/Client/PaymentController.php +++ b/extdbms/lib/Controllers/DBMS/Client/PaymentController.php @@ -6,9 +6,9 @@ use lib\Utils\Pagination; class PaymentController extends ClientController { - public function __construct(array $params = []) + public function __construct() { - parent::__construct($params); + parent::__construct(); $this->getView()->setPath('payment'); } // diff --git a/extdbms/lib/Controllers/DBMS/Client/PointController.php b/extdbms/lib/Controllers/DBMS/Client/PointController.php index 714407e..2b4f77a 100644 --- a/extdbms/lib/Controllers/DBMS/Client/PointController.php +++ b/extdbms/lib/Controllers/DBMS/Client/PointController.php @@ -12,9 +12,9 @@ class PointController extends ClientController private ?PointService $_pointService = null; private ?OnetimeService $_onetimeService = null; private ?HistoryService $_historyService = null; - public function __construct(array $params = []) + public function __construct() { - parent::__construct($params); + parent::__construct(); $this->getView()->setPath('point'); } // public function getPointService(): PointService diff --git a/extdbms/lib/Controllers/DBMS/DBMSController.php b/extdbms/lib/Controllers/DBMS/DBMSController.php index 8a3337b..419c39f 100644 --- a/extdbms/lib/Controllers/DBMS/DBMSController.php +++ b/extdbms/lib/Controllers/DBMS/DBMSController.php @@ -8,9 +8,9 @@ use lib\Services\ServiceService; abstract class DBMSController extends CommonController { private ?ServiceService $_service = null; - protected function __construct(array $params = []) + protected function __construct() { - parent::__construct($params); + parent::__construct(); //View의 추가디렉토리 $this->getView()->setPath('dbms'); } // diff --git a/extdbms/lib/Controllers/DBMS/DashboardController.php b/extdbms/lib/Controllers/DBMS/DashboardController.php index 1f2dd37..4a3cf0c 100644 --- a/extdbms/lib/Controllers/DBMS/DashboardController.php +++ b/extdbms/lib/Controllers/DBMS/DashboardController.php @@ -17,9 +17,9 @@ class DashboardController extends DBMSController private ?KCSService $_kcsService = null; private ?HistoryService $_historyService = null; - public function __construct(array $params = []) + public function __construct() { - parent::__construct($params); + parent::__construct(); $this->getView()->setPath('dashboard'); $this->helper = new ServiceHelper(); } // diff --git a/extdbms/lib/Controllers/DBMS/DefenceController.php b/extdbms/lib/Controllers/DBMS/DefenceController.php index f800f8d..f78803f 100644 --- a/extdbms/lib/Controllers/DBMS/DefenceController.php +++ b/extdbms/lib/Controllers/DBMS/DefenceController.php @@ -8,9 +8,9 @@ use lib\Utils\Pagination; class DefenceController extends DBMSController { private ?DefenceService $_clientService = null; - public function __construct(array $params = []) + public function __construct() { - parent::__construct($params); + parent::__construct(); $this->getView()->setPath('defence'); } // public function getDefenceService(): DefenceService diff --git a/extdbms/lib/Controllers/DBMS/GearlistController.php b/extdbms/lib/Controllers/DBMS/GearlistController.php index a3b95ac..0afcf2f 100644 --- a/extdbms/lib/Controllers/DBMS/GearlistController.php +++ b/extdbms/lib/Controllers/DBMS/GearlistController.php @@ -10,9 +10,9 @@ class GearlistController extends DBMSController { private ?GearlistService $_gearlistServicerService = null; private ?ServerService $_serverService = null; - public function __construct(array $params = []) + public function __construct() { - parent::__construct($params); + parent::__construct(); $this->getView()->setPath('gearlist'); } // public function getGearlistService(): GearlistService diff --git a/extdbms/lib/Controllers/DBMS/NavigatorController.php b/extdbms/lib/Controllers/DBMS/NavigatorController.php index c97e7d4..7fb53b5 100644 --- a/extdbms/lib/Controllers/DBMS/NavigatorController.php +++ b/extdbms/lib/Controllers/DBMS/NavigatorController.php @@ -10,9 +10,9 @@ class NavigatorController extends DBMSController { private ?ClientService $_clientService = null; - public function __construct(array $params = []) + public function __construct() { - parent::__construct($params); + parent::__construct(); $this->getView()->setPath('navigator'); $this->helper = new ServiceHelper(); } // diff --git a/extdbms/lib/Controllers/DBMS/ServerController.php b/extdbms/lib/Controllers/DBMS/ServerController.php index 3b42fe5..2c72c4d 100644 --- a/extdbms/lib/Controllers/DBMS/ServerController.php +++ b/extdbms/lib/Controllers/DBMS/ServerController.php @@ -10,9 +10,9 @@ class ServerController extends DBMSController { private ?ServerService $_serverService = null; private ?ClientService $_clientService = null; - public function __construct(array $params = []) + public function __construct() { - parent::__construct($params); + parent::__construct(); $this->getView()->setPath('server'); } // public function getServerService(): ServerService diff --git a/extdbms/lib/Controllers/DBMS/ServiceController.php b/extdbms/lib/Controllers/DBMS/ServiceController.php index 1162158..1bfef33 100644 --- a/extdbms/lib/Controllers/DBMS/ServiceController.php +++ b/extdbms/lib/Controllers/DBMS/ServiceController.php @@ -12,9 +12,9 @@ class ServiceController extends DBMSController private ?ClientService $_clientService = null; private ?AddDbService $_addDbService = null; - public function __construct(array $params = []) + public function __construct() { - parent::__construct($params); + parent::__construct(); $this->getView()->setPath('service'); } // public function getClientService(): ClientService diff --git a/extdbms/lib/Controllers/HomeController.php b/extdbms/lib/Controllers/HomeController.php index 5c6dc20..641ec0a 100644 --- a/extdbms/lib/Controllers/HomeController.php +++ b/extdbms/lib/Controllers/HomeController.php @@ -6,11 +6,5 @@ use lib\Http\Response; class HomeController { - public function index(array $params = []): void - { - Response::json([ - 'message' => 'Welcome to the home page!', - 'params' => $params - ]); - } + public function index(): void {} } diff --git a/extdbms/lib/Views/dbms/client/point/index.php b/extdbms/lib/Views/dbms/client/point/index.php index 273c101..53a3bef 100644 --- a/extdbms/lib/Views/dbms/client/point/index.php +++ b/extdbms/lib/Views/dbms/client/point/index.php @@ -31,5 +31,12 @@ - -
pagination->render(DBMS_SITE_URL . "/IdcCouponListMK.cup", ['curPage' => $this->curPage, 'perPage' => $this->perPage]) ?>
\ No newline at end of file +
pagination->render(DBMS_SITE_URL . "/IdcClientPointList.cup", ['curPage' => $this->curPage, 'perPage' => $this->perPage]) ?>
+
+
+
+
+ +
+
+
\ No newline at end of file diff --git a/idcproject/WebContent/jsp/client/IdcClientPointList.jsp b/idcproject/WebContent/jsp/client/IdcClientPointList.jsp index 36dc3c3..d136982 100644 --- a/idcproject/WebContent/jsp/client/IdcClientPointList.jsp +++ b/idcproject/WebContent/jsp/client/IdcClientPointList.jsp @@ -1,527 +1,64 @@ <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> -<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> +<% pageContext.setAttribute("phpurl",request.getScheme()+"://"+request.getServerName()); %> - - - +
-

고객 리스트

+

포인트 리스트

-
-
* 주의 : 전화번호 수정시 ( 숫자 or - (하이픈) 이외 문자 사용금지 ) - - -
-
- -
- - - -
- - -
- -
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
No코드고객명리셀러연락처1연락처2E-mailE-mail등록일삭제일비고수정입금삭제복원
${dto.client_num }${dto.client_code } - - - - - -
- - - - - - - - - - - - -
-
-
${dto.client_num }${dto.client_code }${dto.client_name }${dto.client_reseller }${temp_phone1}${temp_phone2}${temp_email1}${temp_email2}${dto.client_receive_date}${dto.client_code }${dto.client_name }${dto.client_reseller }${dto.client_phone1 }${dto.client_phone2 }${dto.client_email1 }${dto.client_email2 }${dto.client_receive_date }${dto.client_renew_date }${dto.client_delete_date }${dto.client_note } -
- - - -
-
-
- - -
-
- -
- -
-
-
-
- -
- - -
+ +
diff --git a/idcproject/src/idc/IdcClientFrontController.java b/idcproject/src/idc/IdcClientFrontController.java index 4609894..323541f 100644 --- a/idcproject/src/idc/IdcClientFrontController.java +++ b/idcproject/src/idc/IdcClientFrontController.java @@ -124,6 +124,14 @@ public class IdcClientFrontController extends HttpServlet { cmd.execute(request,response); request.setAttribute("TargetFile", CLIENT_PATH+"IdcClientAllServerList.jsp"); + } + //현재 서버 보유현황 목록 보기 + if(cmdURI.equals("/IdcClientPointList.cli")) + { + cmd = new IdcClientAllServerListCmd(); + cmd.execute(request,response); + request.setAttribute("TargetFile", CLIENT_PATH+"IdcClientPointList.jsp"); + } //메인페이지 if(cmdURI.equals("/DefaultPage.main")) @@ -133,19 +141,6 @@ public class IdcClientFrontController extends HttpServlet { request.setAttribute("TargetFile", "/IDC/index.jsp"); } - //테스트용 기본페이지. - if(cmdURI.equals("/Test.cli")) - { - request.setAttribute("TargetFile", CLIENT_PATH+"Test.jsp"); - - } - //테스트용 기본페이지. - if(cmdURI.equals("/test2.cli")) - { - request.setAttribute("TargetFile", CLIENT_PATH+"test2.jsp"); - - } - //엑셀 출력 페이지 if(cmdURI.equals("/IdcClientDBListExcel.cli")) { @@ -153,7 +148,6 @@ public class IdcClientFrontController extends HttpServlet { cmd.execute(request, response); request.setAttribute("TargetFile", CLIENT_PATH+"IdcClientDBListExcel.jsp"); } - } else {