This commit is contained in:
ITN_디자인팀 2023-08-07 16:28:07 +09:00
commit 6cad041295
18 changed files with 159 additions and 30 deletions

View File

@ -1837,6 +1837,10 @@ public class MjonPayController {
}
model.addAttribute("tabType", tabType);
MberGrdVO mberGrdVO = new MberGrdVO();
List<MberGrdVO> mberGrdSettingList = mberGrdService.selectMberGrdSettingList(mberGrdVO);
model.addAttribute("mberGrdSettingList", mberGrdSettingList);
return "/web/pay/PayView";
}

View File

@ -670,7 +670,7 @@ function fn_updateSendRealTime(userId, msgGroupId){
<c:choose>
<c:when test="${result.delayCompleteYn eq 'Y' && not empty result.cancelDate}">
<span style="color: blue;">
[이용정지]<br/>
[발송취소]<br/>
<c:out value="${result.cancelDate}"/>
</span>
</c:when>

View File

@ -3815,7 +3815,7 @@ function kakaoATDelayCancel(msgGroupId){
</c:when>
<c:when test="${mjonMsgSentList.delayYn eq 'Y' && mjonMsgSentList.delayCompleteYn eq 'Y' && not empty mjonMsgSentList.cancelDate}">
<span style="color: red;">
[이용정지]<br />
[발송취소]<br />
<fmt:formatDate value="${mjonMsgSentList.cancelDate}" pattern="MM-dd HH:mm"/>
</span>
</c:when>
@ -4022,7 +4022,7 @@ function kakaoATDelayCancel(msgGroupId){
</c:when>
<c:when test="${mjonMsgSentList.delayYn eq 'Y' && mjonMsgSentList.delayCompleteYn eq 'Y' && not empty mjonMsgSentList.cancelDate}">
<span style="color: red;">
[이용정지]<br />
[발송취소]<br />
<fmt:formatDate value="${mjonMsgSentList.cancelDate}" pattern="yyyy-MM-dd HH:mm"/>
</span>
</c:when>

View File

@ -594,7 +594,7 @@ function msgDetailClose(obj){
<c:choose>
<c:when test="${result.delayCompleteYn eq 'Y' && not empty result.cancelDate}">
<span style="color: blue;">
[이용정지]<br/>
[발송취소]<br/>
<c:out value="${result.cancelDate}"/>
</span>
</c:when>

View File

@ -554,7 +554,7 @@ function fnSmishingUpdate(flag) {
<c:choose>
<c:when test="${result.atDelayCompleteYn eq 'Y' && not empty result.cancelDate}">
<span style="color: #0000FF;">
<c:if test="${result.smishingYn eq 'Y'}">온</c:if><c:if test="${result.smishingYn eq 'N'}">오프</c:if>[이용정지]
<c:if test="${result.smishingYn eq 'Y'}">온</c:if><c:if test="${result.smishingYn eq 'N'}">오프</c:if>[발송취소]
<span style="overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;margin-top:3px;" title="<c:out value="${result.cancelDate}"/>">
<fmt:parseDate value="${result.cancelDate}" var="cancelDateValue" pattern="yyyy-MM-dd HH:mm"/>
<fmt:formatDate value="${cancelDateValue}" pattern="MM-dd HH:mm"/>

View File

@ -565,7 +565,7 @@ function fnAtSmishingUpdate(flag) {
<c:when test="${result.atDelayCompleteYn eq 'Y' && not empty result.cancelDate}">
<span style="color: #0000FF;">
<c:if test="${result.atSmishingYn eq 'Y'}">온</c:if>
<c:if test="${result.atSmishingYn eq 'N'}">오프</c:if>[이용정지]
<c:if test="${result.atSmishingYn eq 'N'}">오프</c:if>[발송취소]
<span style="overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;margin-top:3px;" title="<c:out value="${result.cancelDate}"/>">
<fmt:parseDate value="${result.cancelDate}" var="cancelDateValue" pattern="yyyy-MM-dd HH:mm"/>
<fmt:formatDate value="${cancelDateValue}" pattern="MM-dd HH:mm"/>

View File

@ -546,7 +546,7 @@ function fnSmishingUpdate(flag) {
<c:choose>
<c:when test="${result.delayCompleteYn eq 'Y' && not empty result.cancelDate}">
<span style="color: #0000FF;">
<c:if test="${result.smishingYn eq 'Y'}">온</c:if><c:if test="${result.smishingYn eq 'N'}">오프</c:if>[이용정지]
<c:if test="${result.smishingYn eq 'Y'}">온</c:if><c:if test="${result.smishingYn eq 'N'}">오프</c:if>[발송취소]
<span style="overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;margin-top:3px;" title="<c:out value="${result.cancelDate}"/>">
<fmt:parseDate value="${result.cancelDate}" var="cancelDateValue" pattern="yyyy-MM-dd HH:mm"/>
<fmt:formatDate value="${cancelDateValue}" pattern="MM-dd HH:mm"/>

View File

@ -550,7 +550,7 @@ function fnSmishingUpdate(flag) {
<c:choose>
<c:when test="${result.delayCompleteYn eq 'Y' && not empty result.cancelDate}">
<span style="color: #0000FF;">
<c:if test="${result.smishingYn eq 'Y'}">온</c:if><c:if test="${result.smishingYn eq 'N'}">오프</c:if>[이용정지]
<c:if test="${result.smishingYn eq 'Y'}">온</c:if><c:if test="${result.smishingYn eq 'N'}">오프</c:if>[발송취소]
<span style="overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;margin-top:3px;" title="<c:out value="${result.cancelDate}"/>">
<fmt:parseDate value="${result.cancelDate}" var="cancelDateValue" pattern="yyyy-MM-dd HH:mm"/>
<fmt:formatDate value="${cancelDateValue}" pattern="MM-dd HH:mm"/>

View File

@ -52,6 +52,12 @@ input[type="checkbox"] {
position: relative;
vertical-align: middle;
}
input[type="text"] {
padding: 0 7px 0 7px;
min-width: 70px;
width: 90px;
}
</style>
<script type="text/javaScript" language="javascript">
@ -93,7 +99,7 @@ function biznoPop() {
// 머니핀 Show
function setMoneyPinShow() {
$("#btnMoneypin").text("머니핀 페이지 CLOSE");
$("#btnMoneypin").text("머니핀 CLOSE");
$("#btnMoneypin").removeClass("btnType1");
$("#btnMoneypin").addClass("btnType2");
@ -105,7 +111,7 @@ function setMoneyPinShow() {
// 머니핀 Hide
function setMoneyPinHide() {
$("#btnMoneypin").text("머니핀 페이지 OPEN");
$("#btnMoneypin").text("머니핀 OPEN");
$("#btnMoneypin").removeClass("btnType2");
$("#btnMoneypin").addClass("btnType1");
@ -122,17 +128,17 @@ function setHomeTaxApi() {
var v_start_dt = $('#start_dt').val();
if (v_start_dt==""){
alert("설립일은 필수값 입니다.\n제출한 사업자 등록증에서 해당 값을 확인 하시고 입력해주세요~");
alert("설립일(개업일)은 필수값 입니다.\n제출한 사업자 등록증에서 해당 값을 확인 하시고 입력해주세요~");
return;
}
$.ajax({
url : "<c:url value='/uss/umt/user/checkBizNoTaxAjax.do' />",
type : 'POST',
data : {
"b_no": "${bizNo}" //사업자등록번호
, "b_nm": "${mberNm}" //업체명
, "p_nm": "${ceoNm}" //대표자명
"b_no": $("#bizNo").val() //사업자등록번호
, "b_nm": $("#mberNmC").val() //업체명
, "p_nm": $("#ceoNm").val() //대표자명
, "start_dt": v_start_dt //설립일자
},
dataType:'json',
@ -151,7 +157,7 @@ function setHomeTaxApi() {
* 13: 폐업자
*/
if (data.result=='11') {
alert('기업이름, 사업자번호, 대표자 성명, 설립일 모두 정상값으로 확인되었습니다.');
alert('기업정보 모두 정상값으로 확인되었습니다.\n기업이름, 사업자번호, 대표자 성명, 설립일');
}
else {
alert("데이터 검증에 실패했습니다."+data.msg);
@ -403,15 +409,19 @@ function fn_Update() {
<table class="tbType1">
<colgroup>
<col style="width: *%">
<col style="width: 25%">
<col style="width: 20%">
</colgroup>
<thead>
<tr>
<td class="left" style="padding: 10px 0 10px 0; line-height: 1.6em;">
<button id="btnMoneypin" class="btnType1" onclick="biznoPop();return false;">머니핀 페이지 OPEN</button>
<button id="btnMoneypin" class="btnType1" onclick="biznoPop();return false;">머니핀 OPEN</button>
&nbsp;&nbsp;&nbsp;
<input id="start_dt" name="start_dt" class="recentSearch" type="text" value="" size="25" title="설립일" maxlength="10" placeholder="설립일(개업일) ex:2018-02-08"/>
<button class="btnType1" onclick="setHomeTaxApi(); return false;">국세청 API호출</button>
<input type="text" name="mberNmC" id="mberNmC" value="${mberNm}" style="width: 120px;" /> <!-- 회사명 -->
<input type="text" name="ceoNm" id="ceoNm" value="${ceoNm}"/> <!-- 대표자명 -->
<input type="text" name="bizNo" id="bizNo" value="${bizNo}"/> <!-- 사업자등록번호 -->
<input type="text" name="start_dt" id="start_dt" style="width: 160px !important;" value="" title="설립일" maxlength="10" placeholder="설립일 Ex:20180208"/>
<button class="btnType1" onclick="setHomeTaxApi(); return false;">국세청</button>
</td>
<td style="padding: 10px 0 10px 0; vertical-align: middle;">
<c:if test="${hstSttus eq '01'}">

View File

@ -322,7 +322,7 @@ function getMberSettingDetail() {
$(document).ready(function (){
//등급제 시행 ON/OFF 체크
//getMberSettingDetail();
getMberSettingDetail();
//미리보기 이미지 영역 숨김 처리
$('.preiew_img').hide();

View File

@ -467,7 +467,7 @@ function getMberSettingDetail() {
$(document).ready(function (){
//등급제 시행 ON/OFF 체크
//getMberSettingDetail();
getMberSettingDetail();
$('.preiew_img').hide();
$('.prePhoto').hide();

View File

@ -474,7 +474,7 @@ function getMberSettingDetail() {
$(document).ready(function (){
//등급제 시행 ON/OFF 체크
//getMberSettingDetail();
getMberSettingDetail();
// Bline 확연 및 라디오 버튼 클릭 이벤트 추가
var blineCodeYn = $("#blineCode").val();

View File

@ -618,7 +618,7 @@ function getMberSettingDetail() {
$(document).ready(function (){
//등급제 시행 ON/OFF 체크
//getMberSettingDetail();
getMberSettingDetail();
// Bline 확연 및 라디오 버튼 클릭 이벤트 추가
var blineCodeYn = $("#blineCode").val();

View File

@ -66,10 +66,10 @@ $(document).ready(function () {
}
//등급제 시행 ON/OFF 체크
//getMberSettingDetail();
getMberSettingDetail();
// 등급제 대상 여부
//getMberGrdChk();
getMberGrdChk();
});

View File

@ -90,7 +90,7 @@ $(document).ready(function(){
})
// 등급제 대상 여부
//getMberGrdChk();
getMberGrdChk();
});

View File

@ -25,6 +25,11 @@ $(document).ready(function(){
$("#btnDdedicatedAccount").trigger("click");
}
//등급제 시행 ON/OFF 체크
getMberSettingDetail();
// 등급제 대상 여부
getMberGrdChk();
});
@ -426,6 +431,57 @@ function TabTypePay(obj, tabId) {
// 충전금액 세팅
setPriceMake();
}
//등급제 시행 ON/OFF 체크
function getMberSettingDetail() {
$.ajax({
type: "POST",
url: "/web/grd/mberSettDetailAjax.do",
data: {},
dataType:'json',
async: false,
success: function (data) {
if (data.isSuccess) {
// 문자(등급별 요금 안내)
$("#mberGrdSettingArea").show();
}
else {
//alert("Msg : " + data.msg);
}
},
error: function (e) {
//alert("ERROR : " + JSON.stringify(e));
}
});
}
// 등급제 대상 여부
function getMberGrdChk() {
$.ajax({
type: "POST",
url: "/web/grd/mberGrdChkAjax.do",
data: {},
dataType:'json',
async: false,
success: function (data) {
if (data.isSuccess) {
// 등급제 누적결제액 세부내역
var sHtml = "";
sHtml += "<p>등급 : <span><img src='/publish/images/level/level_icon/level_small/" + data.rtnMberGrdVO.grdSetIcon + "_small_icon.png' alt='등급 스몰 아이콘'>" + data.rtnMberGrdVO.grdSetNm;
sHtml += "(누적결제액 : &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span>" + numberWithCommas(data.rtnMberGrdVO.totAmt) + "</span>원)</span></p>";
$("#grdShowArea").html(sHtml);
$("#grdShowArea").show();
$("#levelSubTitle").html("(" + data.rtnMberGrdVO.grdDate + " ~ 현재)");
}
else {
//alert("Msg : " + data.msg);
}
},
error: function (e) {
//alert("ERROR : " + JSON.stringify(e));
}
});
}
</script>
<!-- </head>
@ -788,6 +844,65 @@ function TabTypePay(obj, tabId) {
</div>
<!-- //즉시이체 -->
</div>
<!--누적결제액별 등급 및 단가 추가 시작-->
<div class="accrue_price" id="grdShowArea" style="display: none;">
</div>
<div class="accrue_level" id="mberGrdSettingArea" style="display: none;">
<p class="tType1_title level"><img src="/publish/images/level/accrue.png" alt="누적결제액별 등급 및 단가 아이콘"> 누적결제액별 등급 및 단가
</p>
<table class="tType2 tType2_level">
<caption></caption>
<colgroup>
<col style="width: 13%;">
<col style="width: auto;">
<col style="width: 11%;">
<col style="width: 11%;">
<col style="width: 11%;">
<col style="width: 11%;">
<col style="width: 11%;">
</colgroup>
<thead>
<tr>
<th>등급</th>
<th class="th_second">누적결제액<span id="levelSubTitle"></span></th>
<th>단문</th>
<th>장문</th>
<th>그림(1장)</th>
<th>그림(2장)</th>
<th>그림(3장)</th>
</tr>
</thead>
<tbody>
<c:forEach var="result" items="${mberGrdSettingList}" varStatus="status">
<tr>
<th><c:out value="${result.grdSetNm}"/></th>
<td class="level_price"><c:out value="${result.stdAmtComma}"/></td>
<td><c:out value="${result.shortPrice}"/></td>
<td><c:out value="${result.longPrice}"/></td>
<td><c:out value="${result.picturePrice}"/></td>
<td><c:out value="${result.picture2Price}"/></td>
<td><c:out value="${result.picture3Price}"/></td>
</tr>
</c:forEach>
</tbody>
</table>
<span class="reqTxt4">
* 등급별 요금제는 당사의 정책 및 운영의 필요상 수정, 중단 또는 변경될 수 있습니다. <br>
* 누적결제액은 등급별 요금제 적용일로부터 적립된 결제금액을 말하며, 누적결제액에 따라 등급은 자동으로 적용됩니다. <br>
* "첫결제 이벤트" 등 이벤트 결제금액은 등급별 요금제 누적결제액에서 제외됩니다. <br>
</span>
<p class="reqTxt4 reqTxt4_last">
* 문자피싱, 스미싱, 주식, 도박, 로또, 스팸, 사기, 협박, 범죄, 유사투자, 유사수신 등을 목적으로 하거나 교사 또는 방조하는 내용의 정보, 발신번호 조작
등으로 인지되는 문자에 대해서는
사전 또는 즉시 발송을 차단하고
이용을 정지시킬 수 있으며, 이에 대한 어떠한 환불이나 보상을 실시하지 않습니다. 또한, 상기 문자를 발송한 회원에 대해서는 그 즉시 등급별 요금제 혜택을
취소합니다.
</p>
</div>
<!--문자_등급별 요금 안내 추가 끝-->
</div><!-- 결제관리 - 결제하기 -->
</div><!--// send top -->
</div>

View File

@ -30,10 +30,10 @@ $(document).ready(function(){
}
//등급제 시행 ON/OFF 체크
//getMberSettingDetail();
getMberSettingDetail();
// 등급제 대상 여부
//getMberGrdChk();
getMberGrdChk();
});

View File

@ -18,7 +18,7 @@ $(document).ready(function(){
payUserListAjax(1);
// 등급제 대상 여부
//getMberGrdChk();
getMberGrdChk();
var date = new Date() ;
//이전달 첫날/마지막날 조회