dbms_primeidc_init...1

This commit is contained in:
최준흠 2025-04-24 13:17:40 +09:00
parent 7e15211a26
commit 5e4499d261
18 changed files with 301 additions and 198 deletions

View File

@ -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 형식으로 처리

View File

@ -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/코드번호

View File

@ -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) {

View File

@ -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

View File

@ -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) {

View File

@ -0,0 +1,57 @@
<?php
namespace lib\Controllers;
use lib\Entities\ClientEntity;
use lib\Services\ClientService;
use lib\Services\OnetimeService;
use lib\Utils\Pagination;
class OnetimeController extends DBMSController
{
private ?ClientService $_clientService = null;
private ?OnetimeService $_onetimeService = null;
public function __construct(array $params = [])
{
parent::__construct($params);
$this->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

View File

@ -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
{

View File

@ -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;

View File

@ -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 "<BR>" . $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);

View File

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

View File

@ -1,48 +1,58 @@
<style>
.table-responsive {
margin: 0 auto;
width: 100%;
}
.table-bordered {
border: 1px solid #ddd;
}
.table-bordered th,
.table-bordered td {
border: 1px solid #ddd;
text-align: center;
}
.table-bordered th {
background-color: #f2f2f2;
}
</style>
@if ($client)
<h3>고객명 : <a href="/serviceDetail.sev?client_code={{$client->getClientCode()}}">{{$client->getTitle()}}</a> / 쿠폰발급대상 : {{count($entities)}} / 전체 남은 수량 : {{$total_coupon}} </h3>
@endif
<div class="table-responsive" id="table">
<input type="hidden" id="token">
<table class="table table-bordered table-hover table-striped" style="text-align:center;">
<table class="table table-bordered table-hover table-striped">
<thead>
<tr>
<th style="text-align:center;">No</th>
<th style="text-align:center;">서비스코드</th>
<th style="text-align:center;">장비명</th>
<th style="text-align:center;">서버IP</th>
<th style="text-align:center;">서비스개시일</th>
<th style="text-align:center;">회선종류</th>
<th style="text-align:center;">쿠폰 누적수</th>
<th style="text-align:center;">쿠폰 잔량수</th>
<th style="text-align:center;">쿠폰 사용수</th>
<th style="text-align:center;">작업업</th>
<th>No</th>
<th>고객명</th>
<th>서비스코드</th>
<th>장비명</th>
<th>사용내역</th>
<th>남은 쿠폰수</th>
<th>사용된 쿠폰수</th>
<th>비고</th>
<th>작업</th>
</tr>
</thead>
<tbody>
@php $i=0 @endphp
@foreach($entities as $entity)
<form method="post" action="{{DBMS_SITE_HOST}}/dbms/client/coupon/insert">
<form method="post" action="{{DBMS_SITE_HOST}}/dbms/client/coupon/update">
<input type="hidden" name="service_code" value="{{$entity->getServiceCode()}}">
<input type="hidden" name="member_code" value="{{$member ? $member->getPK() : ""}}">
<tr>
<td>{{$total-(($curPage-1)*$perPage+$i)}}</td>
<td>{{$clients[$entity->getClientCode()]->getTitle()}}</td>
<td><a href="/serviceDetailSolo.sev?client_code={{$entity->getClientCode()}}&service_code={{$entity->getServiceCode()}}">{{$entity->getServiceCode()}}</td>
<td>{{$entity->getServerCode()}}</td>
<td>{{$entity->service_ip}}</td>
<td>{{$entity->service_open_date}}</td>
<td>{{$entity->service_line}}</td>
<td>{{$entity->getCoupon() + $entity->getUsedCoupon()}}</td>
<td><input type="text" name="title" value="" style="width:100%"></td>
<td><input type="text" name="coupon" value="{{$entity->getCoupon()}}" maxlength="3" size="3"></td>
<td><input type="text" name="coupon_use" value="{{$entity->getUsedCoupon()}}" maxlength="3" size="3"></td>
<td>
@if ($entity->getCoupon() > 0)
<a href="/IdcCouponBuyMK.cup?service_code={{$entity->getServiceCode()}}&mkid={{$member ? $member->getPK() : ""}}">쿠폰사용</a>
@else
<a href="/IdcCouponBuyMK.cup?service_code={{$entity->getServiceCode()}}&mkid={{$member ? $member->getPK() : ""}}">사용완료</a>
@endif
&nbsp;&nbsp;&nbsp;
<input type="submit" value="수정">
</td>
<td><textarea name="coupon_note" rows="2" cols="40">{{$entity->getUsedCoupon()}}</textarea></td>
<td><input type="submit" value="수정">&nbsp;&nbsp;&nbsp;<a href="{{DBMS_SITE_HOST}}/dbms/onetime/index?service_code={{$entity->getServiceCode()}}">내역보기</a></td>
</tr>
</form>
@php $i++ @endphp
@ -50,4 +60,5 @@
</tbody>
</table>
</div>
<div style="text-align:center">{!!$pagination->render(DBMS_SITE_URL . "/IdcCouponUseMK.cup", ['client_code' => $client ? $client->getClientCode() : "", 'mkid' => $member ? $member->getPK() : "", 'curPage' => $curPage, 'perPage' => $perPage])!!}</div>
<div style=" text-align:center">{!!$pagination->render(DBMS_SITE_URL . "/IdcCouponUseMK.cup", ['client_code' => $client ? $client->getClientCode() : "", 'mkid' => $member ? $member->getPK() : "", 'curPage' => $curPage, 'perPage' => $perPage])!!}
</div>

View File

@ -1,57 +0,0 @@
<div class="table-responsive">
<form method="post" action="{{DBMS_SITE_HOST}}/dbms/client/coupon/insert">
<input type="hidden" name="service_code" value="{{$service->getServiceCode()}}">
<input type="hidden" name="mkid" value="{{$member ? $member->getPK() : ""}}">
<table class="table table-bordered table-hover table-striped">
<thead></thead>
<tbody>
<tr>
<td>고객명</td>
<td colspan="5">{{$client->getTitle()}}</td>
</tr>
<tr>
<td>서비스코드</td>
<td colspan="5">{{$service->getServiceCode()}}</td>
</tr>
<tr>
<td>장비번호</td>
<td colspan="5">{{$service->getServerCode()}}</td>
</tr>
<tr>
<td>도메인 구매 수량</td>
<td colspan="5">
<select name="coupon" id="coupon">
@for ($i = 1; $i < $service->getCoupon(); $i++)
<option value="{{$i}}">{{$i}}</option>
@endfor
</select> (개별 서버에 할당된 남은 쿠폰 수량 : {{$service->getCoupon()}})
</td>
</tr>
<tr>
<td>서비스 금액</td>
<td colspan="3">도메인 쿠폰 사용</td>
</tr>
<tr>
<td>도메인 신청일</td>
<td>{{$today}}</td>
<td>쿠폰 사용일</td>
<td colspan="3">{{$today}}</td>
</tr>
<tr>
<td>도메인 리스트</td>
<td colspan="5"><textarea cols="100" rows="4" type="text" name="note" id="note"></textarea>
<br>(공백을 허용하지 않습니다. 예제처럼 붙여쓰기 하세요 / 예제 : test.com/123.com/idcjp.jp)
</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="6">
<input class="btn btn-outline btn-primary" type="submit" value="저장하기">
<input class="btn btn-outline btn-default" type="button" value="취소" onclick="location.href='/IdcCouponUseMK.cup?client_code={{$service->getClientCode()}}'">
</td>
</tr>
</tfoot>
</table>
</form>
</div>

View File

@ -0,0 +1,64 @@
<style>
.table-responsive {
margin: 0 auto;
width: 100%;
}
.table-bordered {
border: 1px solid #ddd;
}
.table-bordered th,
.table-bordered td {
border: 1px solid #ddd;
text-align: center;
}
.table-bordered th {
background-color: #f2f2f2;
}
</style>
<div class="table-responsive" id="table">
<input type="hidden" id="token">
<table class="table table-bordered table-hover table-striped">
<thead>
<tr>
<th>No</th>
<th>고객명</th>
<th>구분</th>
<th>사용내역</th>
<th>금액</th>
<th>청구금액</th>
<th>요청일</th>
<th>미지급금</th>
<th>지급일</th>
<th>상태</th>
<th>관리자명</th>
<th>작업일</th>
</tr>
</thead>
<tbody>
@php $i=0 @endphp
@foreach($entities as $entity)
{{$entity->getMemberCode()}}
<tr>
<td>{{$total-(($curPage-1)*$perPage+$i)}}</td>
<td>{{$clients[$entity->getClientCode()]->getTitle()}}</td>
<td>{{$entity->getType()}}</td>
<td>{{$entity->getTitle()}}</td>
<td>{{number_format($entity->getAmount())}}</td>
<td>{{$entity->getPayment()}}</td>
<td>{{$entity->getRequestDate()}}</td>
<td>{{$entity->getNonPayment()}}</td>
<td>{{$entity->getPaymentDate()}}</td>
<td>{{$entity->getStatus()}}</td>
<td>{{$entity->getMemberCode()}}</td>
<td>{{$entity->getInsertDate()}}</td>
</tr>
@php $i++ @endphp
@endforeach
</tbody>
</table>
</div>
{{DBMS_SITE_HOST}}/dbms/onetime/index?service_code={{$entity->getServiceCode()}}
<div style="text-align:center">{!!$pagination->render(DBMS_SITE_HOST."/dbms/onetime/index", ['service_code' => $service->getServiceCode(), 'curPage' => $curPage, 'perPage' => $perPage])!!}</div>

View File

@ -22,7 +22,7 @@
<h4><i class="fa fa-desktop fa-fw"></i> 도메인 쿠폰 사용하기</h4>
</div>
<div class="panel-body">
<c:import url="${phpurl}/dbms/client/coupon/insert_form?service_code=${mk_service_code}&memer_code=${mk_id}" />
<c:import url="${phpurl}/dbms/client/coupon/update_form?service_code=${mk_service_code}&memer_code=${mk_id}" />
</div>
<!-- panel-body -->
</div>

View File

@ -61,7 +61,7 @@ $(function()
<h4><i class="fa fa-desktop fa-fw"></i> 도메인 쿠폰 리스트</h4>
</div>
<div class="panel-body">
<c:import url="${phpurl}/dbms/client/coupon/index?member_code=${member_code}" />
<c:import url="${phpurl}/dbms/client/coupon/index?&member_code=${member_code}&curPage=${curPage}" />
</div>
<!-- panel-body -->
</div>

View File

@ -11,7 +11,7 @@
<h4><i class="fa fa-desktop fa-fw"></i> 도메인 구매 목록</h4>
</div>
<div class="panel-body">
<c:import url="${phpurl}/dbms/client/coupon/index?client_code=${mk_client_code}" />
<c:import url="${phpurl}/dbms/client/coupon/index?client_code=${mk_client_code}&member_code=${member.id}&curPage=${curPage}" />
</div>
<!-- panel-body -->
</div>

View File

@ -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()); %>
<!-- 여기가 본 페이지이다 -->
<div class="row">
<div class="col-lg-12">
<div class="panel panel-default">
<div class="panel-heading">
<h4><i class="fa fa-desktop fa-fw"></i> 일회성서비스 리스트</h4>
</div>
<div class="panel-body"><c:import url="${phpurl}/dbms/onetime/index?service_code=${param.service_code}" /></div>
<!-- panel-body -->
</div>
<!-- panel panel-default -->
</div>
<!-- col-lg-12 -->
</div>
<!-- row -->
<!-- /#page-wrapper -->

View File

@ -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
{