초기소스
This commit is contained in:
@@ -0,0 +1,280 @@
|
||||
<%@ page import="java.util.Date" %>
|
||||
<%@ 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"%>
|
||||
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
||||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
|
||||
<%@ taglib prefix="ui" uri="http://www.winbit.kr/ctl/ui"%>
|
||||
|
||||
<%--
|
||||
Class Name : CouponIssuUseDtlsR.jsp
|
||||
Description : 쿠폰 사용 내역 목록조회 화면
|
||||
Modification Information
|
||||
|
||||
수정일 수정자 수정내용
|
||||
------- -------- ---------------------------
|
||||
2024-01-22 추지훈 최초 생성
|
||||
--%>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('select').niceSelect();
|
||||
|
||||
fn_set_date();
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
const fn_coupon_excel_download = function(couponSndngInnb) {
|
||||
var form = $('#listForm');
|
||||
|
||||
form.find('input[name="couponSndngInnb"]').remove();
|
||||
|
||||
form.append($('<input/>', {
|
||||
type: 'hidden',
|
||||
name: 'couponSndngInnb',
|
||||
value: couponSndngInnb
|
||||
}));
|
||||
|
||||
form.serialize();
|
||||
|
||||
form.attr('method', 'post');
|
||||
form.attr('action', '<c:url value="/mngr/promtn/coupon/selectCouponListExcelDwld"/>');
|
||||
form.submit();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<div class="form-control-container">
|
||||
<div class="left">
|
||||
<div class="search-number">
|
||||
<span class="search-number__text">총 <strong><c:out value="${ resultMap.paginationInfo.totalRecordCount }"/></strong>건</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="center">
|
||||
</div>
|
||||
<div class="right">
|
||||
<form id="listForm">
|
||||
</form>
|
||||
<div class="">
|
||||
<button type="button" id="couponExcelDwld" onclick="fn_coupon_excel_download(<c:out value="${ resultMap.paramVO.couponSndngInnb }"/>)" class="btn outline sm">
|
||||
<i class="icon icon_excel"></i>엑셀 다운로드
|
||||
</button>
|
||||
<button id="" type="button" class="btn xsm gray" onclick="fn_use_coupon_procs_all(<c:out value="${ resultMap.paramVO.couponSndngInnb }"/>); return false;">발급된 쿠폰 전체 회수</button>
|
||||
</div>
|
||||
<div class="select-box">
|
||||
<select id="pageUnit" name="pageUnit" title="페이지당 출력될 목록건수" onchange="fn_search_coupon_use_history_pop(1, this.value);">
|
||||
<c:forEach items="${ resultMap.paginationInfo.pageUnitArr }" var="pageUnit" varStatus="pageUnitStatus">
|
||||
<option value="<c:out value="${ pageUnit }"/>" <c:if test="${ resultMap.paginationInfo.recordCountPerPage eq pageUnit}">selected="selected"</c:if>><c:out value="${ pageUnit }"/>개씩</option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<hr class="spacing">
|
||||
<div class="table-wrapper">
|
||||
<spring:eval expression="@environment.getProperty('mngrfo.common.fileupload.cdnurl')" var="cdnurl"/>
|
||||
<table class="table vertical tight" style="min-width: 1200px;">
|
||||
<caption>해당 테이블에 대한 설명</caption>
|
||||
<colgroup>
|
||||
<col style="width: 3%;">
|
||||
<col style="width: 10%;">
|
||||
<col style="width: 7%;">
|
||||
<col style="width: 6%;">
|
||||
<col style="width: 10%;">
|
||||
<col style="width: 5%;">
|
||||
<col style="width: 8%;">
|
||||
<col style="width: 6%;">
|
||||
<col style="width: 5%;">
|
||||
<col style="width: 3%;">
|
||||
<col style="width: 6%;">
|
||||
<col style="width: auto;">
|
||||
<col style="width: 7%;">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>번호</th>
|
||||
<th>쿠폰명</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>
|
||||
<c:choose>
|
||||
<c:when test="${ not empty resultMap.result && fn:length(resultMap.result) > 0 }">
|
||||
|
||||
<c:forEach items="${ resultMap.result }" var="couponUseDtls" varStatus="status">
|
||||
<tr>
|
||||
<%-- 번호 --%>
|
||||
<td>
|
||||
<c:out value="${ resultMap.paginationInfo.totalRecordCount - (couponUseDtls.rnum + (resultMap.paginationInfo.currentPageNo - 1) * resultMap.paginationInfo.recordCountPerPage) + 1 }" />
|
||||
</td>
|
||||
<%-- 쿠폰명 --%>
|
||||
<td><c:out value="${ couponUseDtls.coupNm }"/></td>
|
||||
<%-- 회원아이디 --%>
|
||||
<td>
|
||||
<c:choose>
|
||||
<c:when test="${ couponUseDtls.joinMthCd eq 'KAKAO'}">
|
||||
<i class="icon icon_kakao-id"></i> <c:out value="${ couponUseDtls.mbrNm }"/>
|
||||
</c:when>
|
||||
<c:when test="${ couponUseDtls.joinMthCd eq 'NAVER'}">
|
||||
<i class="icon icon_word-badge_naver"></i> <c:out value="${ couponUseDtls.mbrNm }"/>
|
||||
</c:when>
|
||||
<c:when test="${ couponUseDtls.joinMthCd eq 'pos'}">
|
||||
<i class="icon icon_word-badge_pos"></i> <c:out value="${ couponUseDtls.mbrNm }"/>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<c:out value="${ couponUseDtls.mbrId }"/>
|
||||
<c:if test="${ not empty couponUseDtls.mbrNm }">
|
||||
<br> <c:out value="${ couponUseDtls.mbrNm }"/>
|
||||
</c:if>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</td>
|
||||
<%-- 발급일 --%>
|
||||
<td><c:out value="${ couponUseDtls.registDt }"/></td>
|
||||
<%-- 인증일/인증번호 --%>
|
||||
<td><c:out value="${ couponUseDtls.oflneCouponCrtnb }"/></td>
|
||||
<%-- 문자 재발송 --%>
|
||||
<td>
|
||||
<c:if test="${ not empty couponUseDtls.oflneCouponCrtnb and couponUseDtls.sndngTrgetTyCd ne '03' }">
|
||||
<button type="button" class="btn xsm outline" onclick="fn_resndng_coupon_crtnb(
|
||||
<c:out value="${ couponUseDtls.dwldCouponInnb }"/>, <c:out
|
||||
value="${ couponUseDtls.oflneCouponCrtnb }"/>); return false;">
|
||||
재발송
|
||||
</button>
|
||||
</c:if>
|
||||
</td>
|
||||
<%-- 혜택 --%>
|
||||
<td>
|
||||
<c:choose>
|
||||
<c:when test="${ couponUseDtls.bnefDvCd eq '01' || couponUseDtls.bnefDvCd eq '03' }">
|
||||
<span class="fw-500">
|
||||
<c:if test="${ '01' eq couponUseDtls.aditDscntCd }"><fmt:formatNumber value="${ couponUseDtls.aditDscntAmt }" pattern="##" />% 할인</c:if>
|
||||
<c:if test="${ '02' eq couponUseDtls.aditDscntCd }"><fmt:formatNumber value="${ couponUseDtls.aditDscntAmt }" pattern="#,###" />원 할인</c:if>
|
||||
</span><br/>
|
||||
<c:if test="${ '01' eq couponUseDtls.goodsDscntDv }">
|
||||
<span class="gray-8">최대 <fmt:formatNumber value="${ couponUseDtls.dscntMxmmAmt }" pattern="#,###" />원 할인</span>
|
||||
</c:if>
|
||||
</c:when>
|
||||
<c:when test="${ couponUseDtls.bnefDvCd eq '02' }">
|
||||
<span class="fw-500">
|
||||
<c:if test="${ '01' eq couponUseDtls.dlvyAmtDscntDvCd }">기본배송비 무료,
|
||||
</span>
|
||||
<br>
|
||||
<span class="gray-8">
|
||||
최대 <fmt:formatNumber value="${ couponUseDtls.dlvyAmtMxmmDscntAmt }" pattern="#,###" />원 할인</c:if>
|
||||
</span>
|
||||
<span class="fw-500">
|
||||
<c:if test="${ '02' eq couponUseDtls.dlvyAmtDscntDvCd }">배송비 <fmt:formatNumber value="${ couponUseDtls.dlvyAmtDscntAmt }" pattern="#,###" />원 할인</c:if>
|
||||
</span>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</td>
|
||||
<%-- 할인금액 --%>
|
||||
<td>
|
||||
<c:choose>
|
||||
<c:when test="${ couponUseDtls.bnefDvCd eq '01' && not empty couponUseDtls.goodsCouponDscntAmt }">
|
||||
<c:out value="${ couponUseDtls.goodsCouponDscntAmt }"/>원
|
||||
</c:when>
|
||||
<c:when test="${ couponUseDtls.bnefDvCd eq '02' && not empty couponUseDtls.dlvyCouponDscntAmt }">
|
||||
<c:out value="${ couponUseDtls.dlvyCouponDscntAmt }"/>원
|
||||
</c:when>
|
||||
<c:when test="${ couponUseDtls.bnefDvCd eq '03' && not empty couponUseDtls.cartCouponDscntAmt }">
|
||||
<c:out value="${ couponUseDtls.cartCouponDscntAmt }"/>원
|
||||
</c:when>
|
||||
</c:choose>
|
||||
</td>
|
||||
<%-- 조회버튼 --%>
|
||||
<td>
|
||||
<button id="coupon-info-pop-trigger" type="button" class="btn xsm outline" onclick="fn_open_modal_coupon_dtl('#modalDiv', '#couponInfoPopup', '<c:out value="/mngr/promtn/coupon/selectCouponInfoInqirePopup"/>', '<c:out value="${ couponUseDtls.dwldCouponInnb }"/>'); return false;">조회</button>
|
||||
</td>
|
||||
<%-- 사용여부 --%>
|
||||
<td>
|
||||
<c:set var="today" value="<%=new java.util.Date()%>" />
|
||||
<c:set var="date"><fmt:formatDate value="${today}" pattern="yyyy-MM-dd hh:mm:ss" /></c:set>
|
||||
<c:choose>
|
||||
<c:when test="${ couponUseDtls.couponSttusCd eq '03' }">
|
||||
<span class="blue-7 fw-500">사용함</span>
|
||||
</c:when>
|
||||
<c:when test="${ couponUseDtls.couponSttusCd eq '02' && couponUseDtls.validpdEndDt gt date }">
|
||||
<span class="red-7 fw-500">미사용</span>
|
||||
</c:when>
|
||||
<c:when test="${ couponUseDtls.couponSttusCd eq '02' && couponUseDtls.validpdEndDt lt date }">
|
||||
<span class="gray-7 fw-500">소멸함</span>
|
||||
</c:when>
|
||||
</c:choose>
|
||||
</td>
|
||||
<%-- 사용처리 --%>
|
||||
<td>
|
||||
<c:if test="${ couponUseDtls.couponSttusCd eq '02' }">
|
||||
<button id="coupon-info-pop-trigger" type="button" class="btn xsm outline" onclick="fn_use_coupon_procs(<c:out value="${ couponUseDtls.dwldCouponInnb }"/>); return false;">회수처리</button>
|
||||
</c:if>
|
||||
</td>
|
||||
<%-- 구매상품 --%>
|
||||
<td>
|
||||
<div class="product-search-box__product">
|
||||
<c:if test="${ couponUseDtls.couponSttusCd eq '03' }">
|
||||
<c:choose>
|
||||
<c:when test="${ couponUseDtls.bnefDvCd eq '01'}">
|
||||
<c:if test="${ not empty couponUseDtls.img }">
|
||||
<img src="<c:out value="${ cdnurl }${ couponUseDtls.img }"/>" onerror="this.src='<c:url value="/mngr/images/image_placeholder.png"/>'" width="64" alt="${ couponUseDtls.goodsNm }">
|
||||
</c:if>
|
||||
<div class="d-flex flex-col gap-3">
|
||||
<button type="button" onclick="fn_move_goods_dtl_common(<c:out value="${couponUseDtls.goodsInnb}"/>, 'mngr', '01', '_self')" class="under-line"><c:out value="${ couponUseDtls.goodsNm }"/></button>
|
||||
<c:if test="${ not empty couponUseDtls.ordrInnb }">
|
||||
<button type="button" onclick="fn_go_ordr_dtl('<c:out value="${ couponUseDtls.ordrInnb }"/>', '<c:out value="${ couponUseDtls.couponSopmalCd }"/>')" class="under-line stone-8">[<c:out value="${ couponUseDtls.ordrInnb }"/>]</button>
|
||||
</c:if>
|
||||
</div>
|
||||
</c:when>
|
||||
<c:when test="${ couponUseDtls.bnefDvCd eq '02'}">
|
||||
<img src="<c:out value="${ cdnurl }${ couponUseDtls.img }"/>" onerror="this.src='<c:url value="/mngr/images/image_placeholder.png"/>'" width="64" alt="${ couponUseDtls.goodsNm }">
|
||||
<div class="d-flex flex-col gap-3">
|
||||
<c:if test="${ not empty couponUseDtls.ordrInnb }">
|
||||
<button type="button" onclick="fn_go_ordr_dtl('<c:out value="${ couponUseDtls.ordrInnb }"/>', '<c:out value="${ couponUseDtls.couponSopmalCd }"/>')" class="under-line stone-8">[<c:out value="${ couponUseDtls.ordrInnb }"/>]</button>
|
||||
</c:if>
|
||||
</div>
|
||||
</c:when>
|
||||
<c:when test="${ couponUseDtls.bnefDvCd eq '03'}">
|
||||
<c:if test="${ not empty couponUseDtls.ordrInnb }">
|
||||
<button type="button" onclick="fn_go_ordr_dtl('<c:out value="${ couponUseDtls.ordrInnb }"/>', '<c:out value="${ couponUseDtls.couponSopmalCd }"/>')" class="under-line stone-8">[<c:out value="${ couponUseDtls.ordrInnb }"/>]</button>
|
||||
</c:if>
|
||||
</c:when>
|
||||
</c:choose>
|
||||
</c:if>
|
||||
</div>
|
||||
</td>
|
||||
<%-- 사용일 --%>
|
||||
<td><c:out value="${ couponUseDtls.dtlsRegistDt }"/></td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<tr>
|
||||
<td colspan="100%" ><spring:message code="common.nodata"/></td>
|
||||
</tr>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="pagination__container">
|
||||
<ui:pagination paginationInfo="${resultMap.paginationInfo}" type="image" jsFunction="fn_search_coupon_use_history_pop" />
|
||||
</div>
|
||||
<div id="modalDiv">
|
||||
</div>
|
||||
Reference in New Issue
Block a user