|
@@ -232,7 +232,7 @@
|
|
|
<tr class="firstBuyTr">
|
|
<tr class="firstBuyTr">
|
|
|
<th>첫구매여부<em class="required" title="필수"></em></th>
|
|
<th>첫구매여부<em class="required" title="필수"></em></th>
|
|
|
<td>
|
|
<td>
|
|
|
- <select name="firstYn" id="firstYn" onchange="firstYnChange(this)" required="required" data-valid-name="첫구매여부">
|
|
|
|
|
|
|
+ <select name="firstOrdYn" id="firstOrdYn" onchange="firstOrdYnChange(this)" required="required" data-valid-name="첫구매여부">
|
|
|
<option value="Y">Y</option>
|
|
<option value="Y">Y</option>
|
|
|
<option value="N" selected="selected">N</option>
|
|
<option value="N" selected="selected">N</option>
|
|
|
</select>
|
|
</select>
|
|
@@ -264,7 +264,7 @@
|
|
|
<tr class="custJoinTr">
|
|
<tr class="custJoinTr">
|
|
|
<th>신규회원여부<em class="required" title="필수"></em></th>
|
|
<th>신규회원여부<em class="required" title="필수"></em></th>
|
|
|
<td>
|
|
<td>
|
|
|
- <select name="custJoinYn" id="custJoinYn" onchange="custJoinYnChange(this)" required="required" data-valid-name="신규회원여부">
|
|
|
|
|
|
|
+ <select name="newCustYn" id="newCustYn" onchange="newCustYnChange(this)" required="required" data-valid-name="신규회원여부">
|
|
|
<option value="Y">Y</option>
|
|
<option value="Y">Y</option>
|
|
|
<option value="N" selected="selected">N</option>
|
|
<option value="N" selected="selected">N</option>
|
|
|
</select>
|
|
</select>
|
|
@@ -312,7 +312,7 @@
|
|
|
</td>
|
|
</td>
|
|
|
<th>다운로드가능여부<em class="required" title="필수"></em></th>
|
|
<th>다운로드가능여부<em class="required" title="필수"></em></th>
|
|
|
<td>
|
|
<td>
|
|
|
- <select name="downYn" id="downYn" required="required" data-valid-name="다운로드가능여부">
|
|
|
|
|
|
|
+ <select name="downAblYn" id="downAblYn" required="required" data-valid-name="다운로드가능여부">
|
|
|
<option value="Y">Y</option>
|
|
<option value="Y">Y</option>
|
|
|
<option value="Y" selected="selected">N</option>
|
|
<option value="Y" selected="selected">N</option>
|
|
|
</select>
|
|
</select>
|
|
@@ -332,7 +332,7 @@
|
|
|
</select>
|
|
</select>
|
|
|
</td>
|
|
</td>
|
|
|
</tr>-->
|
|
</tr>-->
|
|
|
- <tr class="payTypeTr" style="display: none;">
|
|
|
|
|
|
|
+ <!--<tr class="payTypeTr" style="display: none;">
|
|
|
<th>결제수단<em class="required" title="필수"></em></th>
|
|
<th>결제수단<em class="required" title="필수"></em></th>
|
|
|
<td colspan="5">
|
|
<td colspan="5">
|
|
|
<select name="payType" id="payType" data-valid-name="결제수단">
|
|
<select name="payType" id="payType" data-valid-name="결제수단">
|
|
@@ -346,7 +346,7 @@
|
|
|
<td colspan="5">
|
|
<td colspan="5">
|
|
|
|
|
|
|
|
</td>
|
|
</td>
|
|
|
- </tr>
|
|
|
|
|
|
|
+ </tr>-->
|
|
|
<tr>
|
|
<tr>
|
|
|
<th>쿠폰상태<em class="required" title="필수"></em></th>
|
|
<th>쿠폰상태<em class="required" title="필수"></em></th>
|
|
|
<td>
|
|
<td>
|
|
@@ -762,7 +762,7 @@
|
|
|
|
|
|
|
|
function checkValidation(){
|
|
function checkValidation(){
|
|
|
//신규가입 지급한다면 validation 체크
|
|
//신규가입 지급한다면 validation 체크
|
|
|
- if( $('#custJoinYn option:selected').val() == "Y" ){
|
|
|
|
|
|
|
+ if( $('#newCustYn option:selected').val() == "Y" ){
|
|
|
var fromDate = $('#CouponForm input[name=custJoinStdt]').val();
|
|
var fromDate = $('#CouponForm input[name=custJoinStdt]').val();
|
|
|
var toDate = $('#CouponForm input[name=custJoinEddt]').val();
|
|
var toDate = $('#CouponForm input[name=custJoinEddt]').val();
|
|
|
|
|
|
|
@@ -788,7 +788,7 @@
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 첫구매 지급하면 validation 체크
|
|
// 첫구매 지급하면 validation 체크
|
|
|
- if( $('#firstYn option:selected').val() == "Y" ){
|
|
|
|
|
|
|
+ if( $('#firstOrdYn option:selected').val() == "Y" ){
|
|
|
var fromDate = $('#CouponForm input[name=buyStdt]').val();
|
|
var fromDate = $('#CouponForm input[name=buyStdt]').val();
|
|
|
var toDate = $('#CouponForm input[name=buyEddt]').val();
|
|
var toDate = $('#CouponForm input[name=buyEddt]').val();
|
|
|
|
|
|
|
@@ -923,12 +923,12 @@
|
|
|
|
|
|
|
|
// 주문서 쿠폰 선택시 결제수단 노출
|
|
// 주문서 쿠폰 선택시 결제수단 노출
|
|
|
if(radioValue == 'G230_20') {
|
|
if(radioValue == 'G230_20') {
|
|
|
- $('#CouponForm .payTypeTr').show();
|
|
|
|
|
- $('#CouponForm #payType').attr('required' , true);
|
|
|
|
|
|
|
+ //$('#CouponForm .payTypeTr').show();
|
|
|
|
|
+ //$('#CouponForm #payType').attr('required' , true);
|
|
|
$("#CouponForm .dcCdGb").show(); // 할인쿠폰유형 노출
|
|
$("#CouponForm .dcCdGb").show(); // 할인쿠폰유형 노출
|
|
|
} else {
|
|
} else {
|
|
|
- $('#CouponForm .payTypeTr').hide();
|
|
|
|
|
- $('#CouponForm #payType').attr('required' , false );
|
|
|
|
|
|
|
+ //$('#CouponForm .payTypeTr').hide();
|
|
|
|
|
+ //$('#CouponForm #payType').attr('required' , false );
|
|
|
$("#CouponForm .dcCdGb").hide(); // 할인쿠폰유형 숨김
|
|
$("#CouponForm .dcCdGb").hide(); // 할인쿠폰유형 숨김
|
|
|
$("#CouponForm input:radio[name='dcCdGb']:radio[value='G233_00']").prop('checked', true); // 주문서 쿠폰이 아닐 경우 일반 쿠폰으로 설정
|
|
$("#CouponForm input:radio[name='dcCdGb']:radio[value='G233_00']").prop('checked', true); // 주문서 쿠폰이 아닐 경우 일반 쿠폰으로 설정
|
|
|
}
|
|
}
|
|
@@ -943,7 +943,7 @@
|
|
|
$("#CouponForm .dcCdCheck2").show();
|
|
$("#CouponForm .dcCdCheck2").show();
|
|
|
$("#CouponForm .serialCpnArea").hide();
|
|
$("#CouponForm .serialCpnArea").hide();
|
|
|
$("#CouponForm .randomCpnArea").hide();
|
|
$("#CouponForm .randomCpnArea").hide();
|
|
|
- $("#CouponForm #custJoinYn").parent().attr("colspan", "");
|
|
|
|
|
|
|
+ $("#CouponForm #newCustYn").parent().attr("colspan", "");
|
|
|
$("#CouponForm .normalCol").attr("colspan", "5");
|
|
$("#CouponForm .normalCol").attr("colspan", "5");
|
|
|
$('#CouponForm input[name="serialCpnNm"]').attr('required' , false);
|
|
$('#CouponForm input[name="serialCpnNm"]').attr('required' , false);
|
|
|
$('#CouponForm input[name="serialCpnQty"]').attr('required' , false);
|
|
$('#CouponForm input[name="serialCpnQty"]').attr('required' , false);
|
|
@@ -966,7 +966,7 @@
|
|
|
}
|
|
}
|
|
|
$("#CouponForm .dcCdCheck1").hide(); // 총발행제한수량, 1회발행수량, 1인당발행제한수량 숨김
|
|
$("#CouponForm .dcCdCheck1").hide(); // 총발행제한수량, 1회발행수량, 1인당발행제한수량 숨김
|
|
|
$("#CouponForm .dcCdCheck2").hide(); // 총발행제한수량, 1회발행수량, 1인당발행제한수량 숨김
|
|
$("#CouponForm .dcCdCheck2").hide(); // 총발행제한수량, 1회발행수량, 1인당발행제한수량 숨김
|
|
|
- $("#CouponForm #custJoinYn").parent().attr("colspan", "5"); // 총발행제한 수량을 없애면서 신규회원여부 colspan 수정
|
|
|
|
|
|
|
+ $("#CouponForm #newCustYn").parent().attr("colspan", "5"); // 총발행제한 수량을 없애면서 신규회원여부 colspan 수정
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
|
|
@@ -1283,12 +1283,12 @@
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 첫구매여부 변경시
|
|
// 첫구매여부 변경시
|
|
|
- function firstYnChange(pThis){
|
|
|
|
|
|
|
+ function firstOrdYnChange(pThis){
|
|
|
var selectVal = $(pThis).val();
|
|
var selectVal = $(pThis).val();
|
|
|
|
|
|
|
|
if(typeof selectVal == "undefined") {
|
|
if(typeof selectVal == "undefined") {
|
|
|
if(mode == "U") {
|
|
if(mode == "U") {
|
|
|
- selectVal = cpnDetail.firstYn;
|
|
|
|
|
|
|
+ selectVal = cpnDetail.firstOrdYn;
|
|
|
} else {
|
|
} else {
|
|
|
selectVal = "N";
|
|
selectVal = "N";
|
|
|
}
|
|
}
|
|
@@ -1306,12 +1306,12 @@
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 신규회원여부 변경시
|
|
// 신규회원여부 변경시
|
|
|
- function custJoinYnChange(pThis){
|
|
|
|
|
|
|
+ function newCustYnChange(pThis){
|
|
|
var selectVal = $(pThis).val();
|
|
var selectVal = $(pThis).val();
|
|
|
|
|
|
|
|
if(typeof selectVal == "undefined") {
|
|
if(typeof selectVal == "undefined") {
|
|
|
if(mode == "U") {
|
|
if(mode == "U") {
|
|
|
- selectVal = cpnDetail.custJoinYn;
|
|
|
|
|
|
|
+ selectVal = cpnDetail.newCustYn;
|
|
|
} else {
|
|
} else {
|
|
|
selectVal = "N";
|
|
selectVal = "N";
|
|
|
}
|
|
}
|
|
@@ -1485,16 +1485,16 @@
|
|
|
$("#CouponForm #usableCustGb").val(cpnDetail.usableCustGb).prop("selected", true);
|
|
$("#CouponForm #usableCustGb").val(cpnDetail.usableCustGb).prop("selected", true);
|
|
|
$("#CouponForm #usableCustGrade").val(cpnDetail.usableCustGrade).prop("selected", true);
|
|
$("#CouponForm #usableCustGrade").val(cpnDetail.usableCustGrade).prop("selected", true);
|
|
|
$("#CouponForm #endAlimYn").val(cpnDetail.endAlimYn).prop("selected", true);
|
|
$("#CouponForm #endAlimYn").val(cpnDetail.endAlimYn).prop("selected", true);
|
|
|
- $("#CouponForm #firstYn").val(cpnDetail.firstYn).prop("selected", true);
|
|
|
|
|
|
|
+ $("#CouponForm #firstOrdYn").val(cpnDetail.firstOrdYn).prop("selected", true);
|
|
|
$("#CouponForm #reissuance").val(cpnDetail.reissuance).prop("selected", true);
|
|
$("#CouponForm #reissuance").val(cpnDetail.reissuance).prop("selected", true);
|
|
|
$("#CouponForm #dnGb").val(cpnDetail.dnGb).prop("selected", true);
|
|
$("#CouponForm #dnGb").val(cpnDetail.dnGb).prop("selected", true);
|
|
|
$("#CouponForm #cpnStat").val(cpnDetail.cpnStat).prop("selected", true);
|
|
$("#CouponForm #cpnStat").val(cpnDetail.cpnStat).prop("selected", true);
|
|
|
- $("#CouponForm #custJoinYn").val(cpnDetail.custJoinYn).prop("selected", true);
|
|
|
|
|
|
|
+ $("#CouponForm #newCustYn").val(cpnDetail.newCustYn).prop("selected", true);
|
|
|
$("#CouponForm #pdGb").val(cpnDetail.pdGb).prop("selected", true);
|
|
$("#CouponForm #pdGb").val(cpnDetail.pdGb).prop("selected", true);
|
|
|
$("#CouponForm #siteCd").val(cpnDetail.siteCd).prop("selected", true);
|
|
$("#CouponForm #siteCd").val(cpnDetail.siteCd).prop("selected", true);
|
|
|
$("#CouponForm #afChannel").val(cpnDetail.afChannel).prop("selected", true);
|
|
$("#CouponForm #afChannel").val(cpnDetail.afChannel).prop("selected", true);
|
|
|
$("#CouponForm #cpnNm").val(cpnDetail.cpnNm);
|
|
$("#CouponForm #cpnNm").val(cpnDetail.cpnNm);
|
|
|
- $("#CouponForm #downYn").val(cpnDetail.downYn);
|
|
|
|
|
|
|
+ $("#CouponForm #downAblYn").val(cpnDetail.downAblYn);
|
|
|
$("#CouponForm #buyLimitAmt").val(cpnDetail.buyLimitAmt);
|
|
$("#CouponForm #buyLimitAmt").val(cpnDetail.buyLimitAmt);
|
|
|
$("#CouponForm #cpnId").val(cpnDetail.cpnId);
|
|
$("#CouponForm #cpnId").val(cpnDetail.cpnId);
|
|
|
|
|
|
|
@@ -1568,18 +1568,18 @@
|
|
|
$("#CouponForm #usableCustGrade").attr('disabled', true);
|
|
$("#CouponForm #usableCustGrade").attr('disabled', true);
|
|
|
$("#CouponForm #endAlimYn").attr('readonly', true);
|
|
$("#CouponForm #endAlimYn").attr('readonly', true);
|
|
|
$("#CouponForm #endAlimYn").attr('disabled', true);
|
|
$("#CouponForm #endAlimYn").attr('disabled', true);
|
|
|
- $("#CouponForm #firstYn").attr('readonly', true);
|
|
|
|
|
- $("#CouponForm #firstYn").attr('disabled', true);
|
|
|
|
|
|
|
+ $("#CouponForm #firstOrdYn").attr('readonly', true);
|
|
|
|
|
+ $("#CouponForm #firstOrdYn").attr('disabled', true);
|
|
|
$("#CouponForm #reissuance").attr('readonly', true);
|
|
$("#CouponForm #reissuance").attr('readonly', true);
|
|
|
$("#CouponForm #reissuance").attr('disabled', true);
|
|
$("#CouponForm #reissuance").attr('disabled', true);
|
|
|
$("#CouponForm #dnGb").attr('readonly', true);
|
|
$("#CouponForm #dnGb").attr('readonly', true);
|
|
|
$("#CouponForm #dnGb").attr('disabled', true);
|
|
$("#CouponForm #dnGb").attr('disabled', true);
|
|
|
- $("#CouponForm #custJoinYn").attr('readonly', true);
|
|
|
|
|
- $("#CouponForm #custJoinYn").attr('disabled', true);
|
|
|
|
|
|
|
+ $("#CouponForm #newCustYn").attr('readonly', true);
|
|
|
|
|
+ $("#CouponForm #newCustYn").attr('disabled', true);
|
|
|
$("#CouponForm #pdGb").attr('readonly', true);
|
|
$("#CouponForm #pdGb").attr('readonly', true);
|
|
|
$("#CouponForm #pdGb").attr('disabled', true);
|
|
$("#CouponForm #pdGb").attr('disabled', true);
|
|
|
- $("#CouponForm #downYn").attr('readonly', true);
|
|
|
|
|
- $("#CouponForm #downYn").attr('disabled', true);
|
|
|
|
|
|
|
+ $("#CouponForm #downAblYn").attr('readonly', true);
|
|
|
|
|
+ $("#CouponForm #downAblYn").attr('disabled', true);
|
|
|
$("#CouponForm #siteCd").attr('readonly', true);
|
|
$("#CouponForm #siteCd").attr('readonly', true);
|
|
|
$("#CouponForm #siteCd").attr('disabled', true);
|
|
$("#CouponForm #siteCd").attr('disabled', true);
|
|
|
$("#CouponForm #cpnNm").attr('readonly', true);
|
|
$("#CouponForm #cpnNm").attr('readonly', true);
|
|
@@ -1637,7 +1637,7 @@
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
// 첫구매여부 적용하는 경우 날짜 세팅
|
|
// 첫구매여부 적용하는 경우 날짜 세팅
|
|
|
- if (cpnDetail.firstYn == "Y") {
|
|
|
|
|
|
|
+ if (cpnDetail.firstOrdYn == "Y") {
|
|
|
splitDate("start", cpnDetail.buyStdt, "buy");
|
|
splitDate("start", cpnDetail.buyStdt, "buy");
|
|
|
splitDate("end", cpnDetail.buyEddt, "buy");
|
|
splitDate("end", cpnDetail.buyEddt, "buy");
|
|
|
if(issueCnt > 0) {
|
|
if(issueCnt > 0) {
|
|
@@ -1650,7 +1650,7 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
// 신규회원여부 적용하는 경우 날짜 세팅
|
|
// 신규회원여부 적용하는 경우 날짜 세팅
|
|
|
- if (cpnDetail.custJoinYn == "Y") {
|
|
|
|
|
|
|
+ if (cpnDetail.newCustYn == "Y") {
|
|
|
splitDate("start", cpnDetail.custJoinStdt, "custJoin");
|
|
splitDate("start", cpnDetail.custJoinStdt, "custJoin");
|
|
|
splitDate("end", cpnDetail.custJoinEddt, "custJoin");
|
|
splitDate("end", cpnDetail.custJoinEddt, "custJoin");
|
|
|
if(issueCnt > 0) {
|
|
if(issueCnt > 0) {
|
|
@@ -1665,8 +1665,8 @@
|
|
|
}
|
|
}
|
|
|
// 기본세팅
|
|
// 기본세팅
|
|
|
pdGbChange();
|
|
pdGbChange();
|
|
|
- firstYnChange();
|
|
|
|
|
- custJoinYnChange();
|
|
|
|
|
|
|
+ firstOrdYnChange();
|
|
|
|
|
+ newCustYnChange();
|
|
|
fnChangeAfLinkCdList();
|
|
fnChangeAfLinkCdList();
|
|
|
|
|
|
|
|
// 제휴채널2뎁스 기본세팅
|
|
// 제휴채널2뎁스 기본세팅
|