초기소스

This commit is contained in:
jazz
2025-10-29 17:08:05 +09:00
parent e531aa9540
commit 439a379a02
7551 changed files with 1234427 additions and 3 deletions

View File

@@ -0,0 +1,232 @@
<%@ 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 : OrderCouponUseDtlsPopupR.jsp
Description : 쿠폰 사용 내역 목록조회 화면
Modification Information
수정일 수정자 수정내용
------- -------- ---------------------------
2024-01-24 추지훈 최초 생성
--%>
<script>
$(document).ready(function() {
$('select').niceSelect();
});
</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">
<div class="select-box">
<select id="pageUnit" name="pageUnit" title="페이지당 출력될 목록건수" onchange="fn_search_ordr_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">
<table class="table vertical tight" style="min-width: 1200px;">
<caption>해당 테이블에 대한 설명</caption>
<colgroup>
<col style="width: 3%;">
<col style="width: 7%;">
<col style="width: 6%;">
<col style="width: 6%;">
<col style="width: 6%;">
<col style="width: 10%;">
<col style="width: 12%;">
<col style="width: 7%;">
<col style="width: 8%;">
<col style="width: 6%;">
<col style="width: 5%;">
<col style="width: 3%;">
<col style="width: auto;">
<col style="width: 7%;">
</colgroup>
<thead>
<tr>
<th>번호</th>
<th>쿠폰명</th>
<th>아이디</th>
<th>이름</th>
<th>발급일</th>
<th>인증번호</th>
<th>사용제한<br>단독/금액/상품/중복/다운로드</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 + 1 }" />
</td>
<%-- 쿠폰명 --%>
<td><c:out value="${ couponUseDtls.coupNm }"/></td>
<%-- 회원아이디 --%>
<td><c:out value="${ couponUseDtls.mbrid }"/></td>
<%-- 회원명 --%>
<td><c:out value="${ couponUseDtls.mbrNm }"/></td>
<%-- 발급일 --%>
<td><c:out value="${ couponUseDtls.registDe }"/></td>
<%-- 인증일/인증번호 --%>
<td><c:out value="${ couponUseDtls.oflneCouponCrtnb }"/></td>
<%-- 사용제한 --%>
<td>
<%-- <c:choose>
<c:when test="${ couponUseDtls.}">
</c:when>
</c:choose> --%>
공동
/
<c:out value="${ couponUseDtls.usePosblAmt }"/>원
/
<c:choose>
<c:when test="${ couponUseDtls.goodsCtgryLmttDv eq '01' }">
전체
</c:when>
<c:when test="${ couponUseDtls.goodsCtgryLmttDv eq '02' }">
상품
</c:when>
</c:choose>
/
<c:choose>
<c:when test="${ couponUseDtls.dplctDscntAt eq 'Y' }">
가능
</c:when>
<c:when test="${ couponUseDtls.dplctDscntAt eq 'N' }">
불가능
</c:when>
</c:choose>
/
<c:choose>
<c:when test="${ couponUseDtls.dplctDwldAt eq 'Y' }">
가능
</c:when>
<c:when test="${ couponUseDtls.dplctDwldAt eq 'N' }">
불가능
</c:when>
</c:choose>
</td>
<%-- 유효기간 --%>
<td><c:out value="${ couponUseDtls.validpdBgnDt }"/><br><c:out value="${ couponUseDtls.validpdEndDt }"/></td>
<%-- 혜택 --%>
<td>
<c:choose>
<c:when test="${ couponUseDtls.bnefDv eq '01' || couponUseDtls.bnefDv eq '03' }">
<span class="fw-500">
<c:if test="${ '01' eq couponUseDtls.goodsDscntDv }"><fmt:formatNumber value="${ couponUseDtls.aditDscntRt }" pattern="##" />% 할인</c:if>
<c:if test="${ '02' eq couponUseDtls.goodsDscntDv }"><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.bnefDv eq '02' }">
<span class="fw-500">
<c:if test="${ '01' eq couponUseDtls.dlvyAmtDscntDv }">기본배송비 무료,
</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.dlvyAmtDscntDv }">배송비 <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.couponUseAt eq 'Y' }">
<c:out value="${ couponUseDtls.snggdsApplcAmt }"/>원
</c:when>
<c:when test="${ couponUseDtls.couponUseAt eq 'N' }">
</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:choose>
<c:when test="${ couponUseDtls.couponUseAt eq 'Y' }">
<span class="blue-7 fw-500">사용함</span>
</c:when>
<c:when test="${ couponUseDtls.couponUseAt eq 'N' }">
<span class="red-7 fw-500">미사용</span>
</c:when>
<%-- <c:when test="${ couponUseDtls.validpdEndDt lt now() }">
소멸함
</c:when> --%>
</c:choose>
</td>
<%-- 구매상품 --%>
<td>
<c:choose>
<c:when test="${ couponUseDtls.couponUseAt eq 'Y' }">
<c:out value="${ couponUseDtls.img }"/><c:out value="${ couponUseDtls.optnNm1 }"/>
<br>
<c:out value="${ couponUseDtls.ordrInnb }"/>
</c:when>
<c:when test="${ couponUseDtls.couponUseAt eq 'N' }">
</c:when>
</c:choose>
</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>