diff --git a/extdbms/lib/Configs/Route.php b/extdbms/lib/Configs/Route.php
index ca8ac85..06368d1 100644
--- a/extdbms/lib/Configs/Route.php
+++ b/extdbms/lib/Configs/Route.php
@@ -10,6 +10,7 @@ use lib\Controllers\Client\PointController;
use lib\Controllers\DashboardController;
use lib\Controllers\DefenceController;
use lib\Controllers\GearlistController;
+use lib\Controllers\OnetimeController;
use lib\Controllers\ServiceController;
use lib\Core\Router;
@@ -41,14 +42,14 @@ $router->group('dbms/client', function (Router $router) {
return $controller->index();
// Response::view($result);
});
- $router->add('GET', 'insert_form', function ($params) {
+ $router->add('GET', 'update_form', function ($params) {
$controller = new CouponController($params);
- return $controller->insert_form();
+ return $controller->update_form();
// Response::view($result);
});
- $router->add('POST', 'insert', function ($params) {
+ $router->add('POST', 'update', function ($params) {
$controller = new CouponController($params);
- return $controller->insert();
+ return $controller->update();
// Response::view($result);
});
});
@@ -85,6 +86,16 @@ $router->group('dbms/client', function (Router $router) {
});
});
+$router->group('dbms/onetime', function (Router $router) {
+ // 동적 파라미터 없이 기본 path에 추가 파라미터를 받아 key/value 형식으로 처리
+ $router->add('GET', 'index', function ($params) {
+ $controller = new OnetimeController($params);
+ return $controller->index();
+ // Response::view($result);
+ });
+});
+
+
// 예제 라우트 그룹: dbms/dashboard/index 이후에 key/value 파라미터 허용
$router->group('dbms/dashboard', function (Router $router) {
// // 동적 파라미터 없이 기본 path에 추가 파라미터를 받아 key/value 형식으로 처리
diff --git a/extdbms/lib/Controllers/Client/ClientController.php b/extdbms/lib/Controllers/Client/ClientController.php
index f0fbf7f..7e3bbfa 100644
--- a/extdbms/lib/Controllers/Client/ClientController.php
+++ b/extdbms/lib/Controllers/Client/ClientController.php
@@ -4,12 +4,10 @@ namespace lib\Controllers\Client;
use lib\Controllers\DBMSController;
use lib\Services\ClientService;
-use lib\Services\MemberService;
class ClientController extends DBMSController
{
private ?ClientService $_clientService = null;
- private ?MemberService $_memberService = null;
public function __construct(array $params = [])
{
parent::__construct($params);
@@ -22,54 +20,7 @@ class ClientController extends DBMSController
}
return $this->_clientService;
}
- final public function getMemberService(): MemberService
- {
- if ($this->_memberService === null) {
- $this->_memberService = new MemberService();
- }
- return $this->_memberService;
- }
- //자식Controller에서 기본적으로 필요한 client_code, mkid, service_code를 설정합니다.
- final protected function setDefaultRequestData($client = null, $member = null, $service = null): array
- {
- //사용자정보
- $this->client_code = $this->request->get('client_code');
- if ($client && !$this->client_code) {
- throw new \Exception("[client_code]가 정의되지 않았습니다.");
- }
- if ($this->client_code) {
- $this->getClientService()->getModel()->where('Client_Code', $this->client_code);
- $client = $this->getClientService()->getEntity();
- if (!$client) {
- throw new \Exception("[$this->client_code]에 해당하는 고객정보가 존재하지 않습니다.");
- }
- }
- //관리자정보(등록자)
- $this->member_code = $this->request->get('member_code');
- if ($member && !$this->member_code) {
- throw new \Exception("[member_code]가 정의되지 않았습니다.");
- }
- if ($this->member_code) {
- $this->getMemberService()->getModel()->where('id', $this->member_code);
- $member = $this->getMemberService()->getEntity();
- if (!$member) {
- throw new \Exception("[$this->member_code]에 해당하는 관리자정보가 존재하지 않습니다.");
- }
- }
- //서비스정보
- $this->service_code = $this->request->get('service_code');
- if ($service && !$this->service_code) {
- throw new \Exception("[service_code]가 정의되지 않았습니다.");
- }
- if ($this->service_code) {
- $this->getServiceService()->getModel()->where('service_code', $this->service_code);
- $service = $this->getServiceService()->getEntity();
- if (!$service) {
- throw new \Exception("[$this->service_code]에 해당하는 서비스정보가 존재하지 않습니다.");
- }
- }
- return [$client, $member, $service];
- }
+
//사용자용메모장 , customer_memo.php
//CLI 접속방법 : php index.php site/client/update_form/client_code/코드번호
//WEB 접속방법 : http://localhost/site/client/update_form/client_code/코드번호
diff --git a/extdbms/lib/Controllers/Client/CouponController.php b/extdbms/lib/Controllers/Client/CouponController.php
index c6a2c29..89cbae1 100644
--- a/extdbms/lib/Controllers/Client/CouponController.php
+++ b/extdbms/lib/Controllers/Client/CouponController.php
@@ -38,7 +38,7 @@ class CouponController extends ClientController
{
//기본적으로 필요한 client_code, member_code, service_code를 설정합니다.
list($this->client, $this->member, $this->service) = $this->setDefaultRequestData();
- //사용자별로 쿠폰정보보기
+ //사용자 코드가 있으면
if ($this->client instanceof ClientEntity) {
$this->getServiceService()->getModel()->where('client_code', $this->client->getClientCode());
}
@@ -48,26 +48,20 @@ class CouponController extends ClientController
$this->perPage = intval($this->request->get('perPage', APP_VIEW_LIST_PERPAGE));
[$this->total, $this->entities] = $this->getServiceService()->getList($this->curPage, $this->perPage);
$this->pagination = new Pagination($this->total, (int)$this->curPage, (int)$this->perPage);
- //고객이 지정되어 있는경우
- if ($this->client) {
- $total_coupon = 0;
- foreach ($this->entities as $entity) {
- $total_coupon += $entity->getCoupon();
- }
- $this->total_coupon = $total_coupon;
- }
+
+ //전체 사용자정보
+ $this->clients = $this->getClientService()->getEntities();
return $this->render(__FUNCTION__);
}
//IdcCouponBuyMK.jsp -> domain_coupon_buy.php
//CLI 접속방법 : php index.php site/client/counpon/insert_form
//WEB 접속방법 : http://localhost/site/client/coupon/insert_form
- public function insert_form()
+ public function update_form()
{
//기본적으로 필요한 client_code, member_code, service_code를 설정합니다.
list($this->client, $this->member, $this->service) = $this->setDefaultRequestData(null, true, true);
//기본적으로 필요한 client_code, mkid, service_code를 설정합니다.
- list($client_code, $member_code, $service_code) = $this->setDefaultRequestData();
$this->today = date("Y-m-d");
return $this->render(__FUNCTION__);
}
@@ -75,10 +69,10 @@ class CouponController extends ClientController
//IdcCouponBuyMK.jsp -> domain_coupon_buy.php
//CLI 접속방법 : php index.php site/client/counpon/insert_form
//WEB 접속방법 : http://localhost/site/client/coupon/insert_form
- public function insert()
+ public function update()
{
- //기본적으로 필요한 client_code, mkid, service_code를 설정합니다.
- list($client_code, $member_code, $service_code) = $this->setDefaultRequestData();
+ //기본적으로 필요한 client_code, member_code, service_code를 설정합니다.
+ list($this->client, $this->member, $this->service) = $this->setDefaultRequestData(null, true, true);
//onetime_sub 도메인 구매 수량
$coupon = $this->request->get('coupon');
if (! $coupon || $coupon < 1) {
diff --git a/extdbms/lib/Controllers/DBMSController.php b/extdbms/lib/Controllers/DBMSController.php
index b96d72c..cad13b4 100644
--- a/extdbms/lib/Controllers/DBMSController.php
+++ b/extdbms/lib/Controllers/DBMSController.php
@@ -4,10 +4,12 @@ namespace lib\Controllers;
use lib\Controllers\CommonController;
use lib\Services\ServiceService;
+use lib\Services\MemberService;
abstract class DBMSController extends CommonController
{
private ?ServiceService $_service = null;
+ private ?MemberService $_memberService = null;
protected function __construct(array $params = [])
{
parent::__construct($params);
@@ -23,4 +25,53 @@ abstract class DBMSController extends CommonController
}
return $this->_service;
}
+
+ final public function getMemberService(): MemberService
+ {
+ if ($this->_memberService === null) {
+ $this->_memberService = new MemberService();
+ }
+ return $this->_memberService;
+ }
+ //자식Controller에서 기본적으로 필요한 client_code, mkid, service_code를 설정합니다.
+ final protected function setDefaultRequestData($client = null, $member = null, $service = null): array
+ {
+ //사용자정보
+ $this->client_code = $this->request->get('client_code');
+ if ($client && !$this->client_code) {
+ throw new \Exception("[client_code]가 정의되지 않았습니다.");
+ }
+ if ($this->client_code) {
+ $this->getClientService()->getModel()->where('Client_Code', $this->client_code);
+ $client = $this->getClientService()->getEntity();
+ if (!$client) {
+ throw new \Exception("[$this->client_code]에 해당하는 고객정보가 존재하지 않습니다.");
+ }
+ }
+ //관리자정보(등록자)
+ $this->member_code = $this->request->get('member_code');
+ if ($member && !$this->member_code) {
+ throw new \Exception("[member_code]가 정의되지 않았습니다.");
+ }
+ if ($this->member_code) {
+ $this->getMemberService()->getModel()->where('id', $this->member_code);
+ $member = $this->getMemberService()->getEntity();
+ if (!$member) {
+ throw new \Exception("[$this->member_code]에 해당하는 관리자정보가 존재하지 않습니다.");
+ }
+ }
+ //서비스정보
+ $this->service_code = $this->request->get('service_code');
+ if ($service && !$this->service_code) {
+ throw new \Exception("[service_code]가 정의되지 않았습니다.");
+ }
+ if ($this->service_code) {
+ $this->getServiceService()->getModel()->where('service_code', $this->service_code);
+ $service = $this->getServiceService()->getEntity();
+ if (!$service) {
+ throw new \Exception("[$this->service_code]에 해당하는 서비스정보가 존재하지 않습니다.");
+ }
+ }
+ return [$client, $member, $service];
+ }
} //Class
diff --git a/extdbms/lib/Controllers/DashboardController.php b/extdbms/lib/Controllers/DashboardController.php
index bd3d111..e33f108 100644
--- a/extdbms/lib/Controllers/DashboardController.php
+++ b/extdbms/lib/Controllers/DashboardController.php
@@ -2,7 +2,6 @@
namespace lib\Controllers;
-use lib\Services\MemberService;
use lib\Services\ClientService;
use lib\Services\VPCService;
use lib\Services\KCSService;
@@ -11,7 +10,6 @@ use lib\Helpers\ServiceHelper;
class DashboardController extends DBMSController
{
- private ?MemberService $_memberService = null;
private ?ClientService $_clientService = null;
private ?VPCService $_vpcService = null;
private ?KCSService $_kcsService = null;
@@ -23,14 +21,6 @@ class DashboardController extends DBMSController
$this->setPath('dashboard');
$this->helper = new ServiceHelper();
} //
- public function getMemberService(): MemberService
- {
- if ($this->_memberService === null) {
- $this->_memberService = new MemberService();
- }
- return $this->_memberService;
- }
-
public function getClientService(): ClientService
{
if ($this->_clientService === null) {
diff --git a/extdbms/lib/Controllers/OnetimeController.php b/extdbms/lib/Controllers/OnetimeController.php
new file mode 100644
index 0000000..726d5ef
--- /dev/null
+++ b/extdbms/lib/Controllers/OnetimeController.php
@@ -0,0 +1,57 @@
+setPath('onetime');
+ } //
+ public function getClientService(): ClientService
+ {
+ if ($this->_clientService === null) {
+ $this->_clientService = new ClientService();
+ }
+ return $this->_clientService;
+ }
+ public function getOnetimeService(): OnetimeService
+ {
+ if ($this->_onetimeService === null) {
+ $this->_onetimeService = new OnetimeService();
+ }
+ return $this->_onetimeService;
+ }
+ //IdcCouponListMK.jsp -> domain_coupon.php
+ //CLI 접속방법 : php index.php site/client/onetime/index
+ //WEB 접속방법 : http://localhost/site/client/onetime/index
+ public function index()
+ {
+ //기본적으로 필요한 client_code, member_code, service_code를 설정합니다.
+ list($this->client, $this->member, $this->service) = $this->setDefaultRequestData(null, null, true);
+ //사용자 코드가 있으면
+ if ($this->client instanceof ClientEntity) {
+ $this->getOnetimeService()->getModel()->where('client_code', $this->client->getClientCode());
+ }
+ //업체명_일회성만 나오게하기 위해서
+ $this->getOnetimeService()->getModel()->where('service_code', $this->service->getServiceCode());
+ $this->curPage = intval($this->request->get('curPage', 1));
+ $this->perPage = intval($this->request->get('perPage', APP_VIEW_LIST_PERPAGE));
+ [$this->total, $this->entities] = $this->getOnetimeService()->getList($this->curPage, $this->perPage);
+ $this->pagination = new Pagination($this->total, (int)$this->curPage, (int)$this->perPage);
+
+ //전체 사용자정보
+ $this->clients = $this->getClientService()->getEntities();
+ //전체 관리자정보
+ $this->members = $this->getMemberService()->getEntities();
+ return $this->render(__FUNCTION__);
+ }
+} //Class
diff --git a/extdbms/lib/Core/Database/QueryBuilder.php b/extdbms/lib/Core/Database/QueryBuilder.php
index 6f469cd..225b4bb 100644
--- a/extdbms/lib/Core/Database/QueryBuilder.php
+++ b/extdbms/lib/Core/Database/QueryBuilder.php
@@ -8,7 +8,6 @@ use PDOStatement;
class QueryBuilder
{
private bool $_debug = false;
- private bool $_continue = false;
protected PDO $pdo;
protected string $latestQuery = "";
protected string $table = '';
@@ -28,10 +27,6 @@ class QueryBuilder
{
$this->_debug = $debug;
}
- final public function setContinue(bool $continue): void
- {
- $this->_continue = $continue;
- }
final public function getLastQuery(): string
{
return $this->latestQuery;
@@ -269,28 +264,27 @@ class QueryBuilder
$stmt->execute();
return $stmt;
}
- final public function get(?string $select = null): array
+ final public function count(string $select = "COUNT(*) as cnt", string $column = 'cnt'): int
{
$stmt = $this->execute($select);
- if (!$this->_continue) {
- $this->where = [];
- $this->bindings = [];
- }
- $this->setContinue(false);
+ $result = $stmt->fetch(PDO::FETCH_ASSOC);
+ return (int)($result[$column] ?? 0);
+ }
+ final public function get(?string $select = null): mixed
+ {
+ $stmt = $this->execute($select);
+ $this->where = [];
+ $this->bindings = [];
+ $result = $stmt->fetch(PDO::FETCH_ASSOC);
+ return $result ?? null;
+ }
+ final public function getAll(?string $select = null): array
+ {
+ $stmt = $this->execute($select);
+ $this->where = [];
+ $this->bindings = [];
return $stmt->fetchAll(PDO::FETCH_ASSOC);
}
- final public function first(): ?array
- {
- $this->limit = 1;
- $results = $this->get();
- return $results[0] ?? null;
- }
- final public function count(string $select = "COUNT(*) as cnt"): int
- {
- $results = $this->get($select);
- return (int)($results[0]['cnt'] ?? 0);
- }
-
//CUD부분
final public function insert(array $data): bool|int
{
diff --git a/extdbms/lib/Entities/OnetimeEntity.php b/extdbms/lib/Entities/OnetimeEntity.php
index 992e328..c509d3e 100644
--- a/extdbms/lib/Entities/OnetimeEntity.php
+++ b/extdbms/lib/Entities/OnetimeEntity.php
@@ -27,15 +27,23 @@ class OnetimeEntity extends Entity
{
return $this->client_code;
}
+ public function getType(): string
+ {
+ return $this->onetime_case;
+ }
public function getAmount(): string
{
return $this->onetime_amount;
}
+ public function getPayment(): string
+ {
+ return $this->onetime_payment;
+ }
public function getNonPayment(): string
{
return $this->onetime_nonpayment;
}
- public function getRequestDate(): string
+ public function getRequestDate(): mixed
{
return $this->onetime_request_date;
}
@@ -43,6 +51,14 @@ class OnetimeEntity extends Entity
{
return $this->onetime_payment_date;
}
+ public function getInsertDate(): mixed
+ {
+ return $this->onetime_insert_date;
+ }
+ public function getStatus(): string
+ {
+ return $this->onetime_accountStatus;
+ }
public function getNote(): string
{
return $this->onetime_note;
diff --git a/extdbms/lib/Services/CommonService.php b/extdbms/lib/Services/CommonService.php
index 9f0557a..77d7fd3 100644
--- a/extdbms/lib/Services/CommonService.php
+++ b/extdbms/lib/Services/CommonService.php
@@ -24,7 +24,7 @@ abstract class CommonService extends Core
}
final public function getEntity(): mixed
{
- $result = $this->getModel()->first();
+ $result = $this->getModel()->get();
if (!$result) { //결과값이 없으면 null
return $result;
}
@@ -34,7 +34,7 @@ abstract class CommonService extends Core
final public function getEntities(): array
{
$entitys = [];
- foreach ($this->getModel()->get() as $result) {
+ foreach ($this->getModel()->getAll() as $result) {
$entityClass = $this->getEntityClass();
$entity = new $entityClass($result);
$pairField = $this->getModel()->getPairField();
@@ -42,16 +42,14 @@ abstract class CommonService extends Core
}
return $entitys;
} //
- final public function getCount(string $select = "COUNT(*) as cnt"): int
+ final public function getCount(string $select = "COUNT(*) as cnt", string $column = 'cnt'): int
{
- $count = $this->getModel()->count($select);
+ $count = $this->getModel()->count($select, $column);
// echo " " . $this->getModel()->getLastQuery();
return $count;
}
final public function getList(int $curPage = 1, int $perPage = APP_VIEW_LIST_PERPAGE): array
{
- //Query문 Rest여부 -> 같은조건에 Count 받고, 결과값을 받고 싶을때는 continue()
- $this->getModel()->setContinue(true);
$total = $this->getCount();
//limit, offset 설정
$this->getModel()->limit($perPage);
diff --git a/extdbms/lib/Services/ServiceService.php b/extdbms/lib/Services/ServiceService.php
index 3201144..3326153 100644
--- a/extdbms/lib/Services/ServiceService.php
+++ b/extdbms/lib/Services/ServiceService.php
@@ -44,8 +44,6 @@ class ServiceService extends CommonService
$this->getModel()->whereNotIn("{$addDbTable}.client_code", $exclude_clients);
$this->getModel()->whereNotIn("{$addDbTable}.addDB_accountStatus", ["complete"]);
$this->getModel()->orderBy("service_payment_date", "DESC");
- //Query문 Rest여부 -> 같은조건에 Count 받고, 결과값을 받고 싶을때는 continue()
- $this->getModel()->setContinue(true);
$total = $this->getCount();
//limit, offset 설정
$this->getModel()->limit($perPage);
diff --git a/extdbms/lib/Views/dbms/client/coupon/index.php b/extdbms/lib/Views/dbms/client/coupon/index.php
index 1c6c72f..f02d5f0 100644
--- a/extdbms/lib/Views/dbms/client/coupon/index.php
+++ b/extdbms/lib/Views/dbms/client/coupon/index.php
@@ -1,48 +1,58 @@
+
@if ($client)
고객명 : {{$client->getTitle()}} / 쿠폰발급대상 : {{count($entities)}} 대 / 전체 남은 수량 : {{$total_coupon}} 개
@endif
-
+
- No
- 서비스코드
- 장비명
- 서버IP
- 서비스개시일
- 회선종류
- 쿠폰 누적수
- 쿠폰 잔량수
- 쿠폰 사용수
- 작업업
+ No
+ 고객명
+ 서비스코드
+ 장비명
+ 사용내역
+ 남은 쿠폰수
+ 사용된 쿠폰수
+ 비고
+ 작업
@php $i=0 @endphp
@foreach($entities as $entity)
-
@php $i++ @endphp
@@ -50,4 +60,5 @@
-{!!$pagination->render(DBMS_SITE_URL . "/IdcCouponUseMK.cup", ['client_code' => $client ? $client->getClientCode() : "", 'mkid' => $member ? $member->getPK() : "", 'curPage' => $curPage, 'perPage' => $perPage])!!}
\ No newline at end of file
+{!!$pagination->render(DBMS_SITE_URL . "/IdcCouponUseMK.cup", ['client_code' => $client ? $client->getClientCode() : "", 'mkid' => $member ? $member->getPK() : "", 'curPage' => $curPage, 'perPage' => $perPage])!!}
+
\ No newline at end of file
diff --git a/extdbms/lib/Views/dbms/client/coupon/insert_form.php b/extdbms/lib/Views/dbms/client/coupon/insert_form.php
deleted file mode 100644
index 1d33631..0000000
--- a/extdbms/lib/Views/dbms/client/coupon/insert_form.php
+++ /dev/null
@@ -1,57 +0,0 @@
-
\ No newline at end of file
diff --git a/extdbms/lib/Views/dbms/onetime/index.php b/extdbms/lib/Views/dbms/onetime/index.php
new file mode 100644
index 0000000..d79c372
--- /dev/null
+++ b/extdbms/lib/Views/dbms/onetime/index.php
@@ -0,0 +1,64 @@
+
+
+
+
+
+
+ No
+ 고객명
+ 구분
+ 사용내역
+ 금액
+ 청구금액
+ 요청일
+ 미지급금
+ 지급일
+ 상태
+ 관리자명
+ 작업일
+
+
+
+ @php $i=0 @endphp
+ @foreach($entities as $entity)
+ {{$entity->getMemberCode()}}
+
+ {{$total-(($curPage-1)*$perPage+$i)}}
+ {{$clients[$entity->getClientCode()]->getTitle()}}
+ {{$entity->getType()}}
+ {{$entity->getTitle()}}
+ {{number_format($entity->getAmount())}}
+ {{$entity->getPayment()}}
+ {{$entity->getRequestDate()}}
+ {{$entity->getNonPayment()}}
+ {{$entity->getPaymentDate()}}
+ {{$entity->getStatus()}}
+ {{$entity->getMemberCode()}}
+ {{$entity->getInsertDate()}}
+
+ @php $i++ @endphp
+ @endforeach
+
+
+
+{{DBMS_SITE_HOST}}/dbms/onetime/index?service_code={{$entity->getServiceCode()}}
+{!!$pagination->render(DBMS_SITE_HOST."/dbms/onetime/index", ['service_code' => $service->getServiceCode(), 'curPage' => $curPage, 'perPage' => $perPage])!!}
\ No newline at end of file
diff --git a/idcproject/WebContent/jsp/cupon/IdcCouponBuyMK.jsp b/idcproject/WebContent/jsp/cupon/IdcCouponBuyMK.jsp
index 292f693..64d7fb4 100644
--- a/idcproject/WebContent/jsp/cupon/IdcCouponBuyMK.jsp
+++ b/idcproject/WebContent/jsp/cupon/IdcCouponBuyMK.jsp
@@ -22,7 +22,7 @@
도메인 쿠폰 사용하기
-
+
diff --git a/idcproject/WebContent/jsp/cupon/IdcCouponListMK.jsp b/idcproject/WebContent/jsp/cupon/IdcCouponListMK.jsp
index 1710bc4..d3bcf96 100644
--- a/idcproject/WebContent/jsp/cupon/IdcCouponListMK.jsp
+++ b/idcproject/WebContent/jsp/cupon/IdcCouponListMK.jsp
@@ -61,7 +61,7 @@ $(function()
도메인 쿠폰 리스트
-
+
diff --git a/idcproject/WebContent/jsp/cupon/IdcDomainBuyListMK.jsp b/idcproject/WebContent/jsp/cupon/IdcDomainBuyListMK.jsp
index be11721..4eca64a 100644
--- a/idcproject/WebContent/jsp/cupon/IdcDomainBuyListMK.jsp
+++ b/idcproject/WebContent/jsp/cupon/IdcDomainBuyListMK.jsp
@@ -11,7 +11,7 @@
도메인 구매 목록
-
+
diff --git a/idcproject/WebContent/jsp/service/IdcOnetimeList.jsp b/idcproject/WebContent/jsp/service/IdcOnetimeList.jsp
new file mode 100644
index 0000000..646da74
--- /dev/null
+++ b/idcproject/WebContent/jsp/service/IdcOnetimeList.jsp
@@ -0,0 +1,19 @@
+<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
+<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<% pageContext.setAttribute("phpurl",request.getScheme()+"://"+request.getServerName()); %>
+
+
+
+
diff --git a/idcproject/src/idc/IdcServiceFrontController.java b/idcproject/src/idc/IdcServiceFrontController.java
index 3d5bfc9..022c96e 100644
--- a/idcproject/src/idc/IdcServiceFrontController.java
+++ b/idcproject/src/idc/IdcServiceFrontController.java
@@ -78,8 +78,6 @@ public class IdcServiceFrontController extends HttpServlet {
cmd.execute(request, response);
request.setAttribute("TargetFile", SERVICE_PATH+"serviceDetailSolo.jsp");
}
-
-
//서비스 등록 화면 제공
if(cmdURI.equals("/serviceWriteForm.sev")){
cmd = new IdcServiceWriteFormCmd();
@@ -470,6 +468,14 @@ public class IdcServiceFrontController extends HttpServlet {
cmd.execute(request, response);
request.setAttribute("TargetFile", SERVICE_PATH+"deffenceInfoExcel.jsp");
}
+
+ //2025-04-24 choi.jh onetime 기능추가
+ //Onetime 사용 목록 보기
+ if(cmdURI.equals("/IdcOnetimeList.sev"))
+ {
+ request.setAttribute("TargetFile", SERVICE_PATH+"IdcOnetimeList.jsp");
+ }
+ //2025-04-21 choi.jh 포인트 기능추가
}
else
{