|
|
@@ -46,9 +46,9 @@
|
|
|
<table class="frmStyle">
|
|
|
<colgroup>
|
|
|
<col style="width:10%">
|
|
|
- <col style="width:40%;">
|
|
|
+ <col style="width:45%;">
|
|
|
<col style="width:10%">
|
|
|
- <col style="width:40%;">
|
|
|
+ <col style="width:35%;">
|
|
|
</colgroup>
|
|
|
<tbody>
|
|
|
<tr th:if="${cpnDetail}">
|
|
|
@@ -94,9 +94,12 @@
|
|
|
<tr>
|
|
|
<th>사용가능고객구분<em class="required" title="필수"></em></th>
|
|
|
<td>
|
|
|
- <select name="usableCustGb" id="usableCustGb" required="required" data-valid-name="사용가능고객구분">
|
|
|
+ <!--<select name="usableCustGb" id="usableCustGb" required="required" data-valid-name="사용가능고객구분">
|
|
|
<option th:if="${usableCustGbList}" th:each="oneData , status : ${usableCustGbList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
|
|
|
- </select>
|
|
|
+ </select>-->
|
|
|
+ <input type="hidden" name="usableCustGb"/>
|
|
|
+ <label class="chkBox"><input type="checkbox" name="chkUsableCustGb" id="chkUsableCustGb10" value="G100_10">일반회원</label>
|
|
|
+ <label class="chkBox"><input type="checkbox" name="chkUsableCustGb" id="chkUsableCustGb20" value="G100_20">임직원</label>
|
|
|
</td>
|
|
|
<th>사이트<em class="required" title="필수"></em></th>
|
|
|
<td>
|
|
|
@@ -108,10 +111,16 @@
|
|
|
<tr>
|
|
|
<th>사용고객등급구분<em class="required" title="필수"></em></th>
|
|
|
<td>
|
|
|
- <select name="usableCustGrade" id="usableCustGrade" required="required" data-valid-name="사용고객등급구분">
|
|
|
+ <!--<select name="usableCustGrade" id="usableCustGrade" required="required" data-valid-name="사용고객등급구분">
|
|
|
<option value="ALL">[전체]</option>
|
|
|
<option th:if="${usableCustGradeList}" th:each="oneData , status : ${usableCustGradeList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
|
|
|
- </select>
|
|
|
+ </select>-->
|
|
|
+ <input type="hidden" name="usableCustGrade"/>
|
|
|
+ <label class="chkBox"><input type="checkbox" name="chkUsableCustGrade" id="chkUsableCustGrade10" value="G110_10">VIP</label>
|
|
|
+ <label class="chkBox"><input type="checkbox" name="chkUsableCustGrade" id="chkUsableCustGrade20" value="G110_20">GOLD</label>
|
|
|
+ <label class="chkBox"><input type="checkbox" name="chkUsableCustGrade" id="chkUsableCustGrade30" value="G110_30">SILVER</label>
|
|
|
+ <label class="chkBox"><input type="checkbox" name="chkUsableCustGrade" id="chkUsableCustGrade40" value="G110_40">BRONZE</label>
|
|
|
+ <label class="chkBox"><input type="checkbox" name="chkUsableCustGrade" id="chkUsableCustGrade50" value="G110_50">WELCOME</label>
|
|
|
</td>
|
|
|
<th>만료알림여부<em class="required" title="필수"></em></th>
|
|
|
<td>
|
|
|
@@ -332,6 +341,12 @@
|
|
|
</select>
|
|
|
</td>
|
|
|
</tr>
|
|
|
+ <tr>
|
|
|
+ <th>멀티결제수단</th>
|
|
|
+ <td colspan="5">
|
|
|
+
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
<tr>
|
|
|
<th>쿠폰상태<em class="required" title="필수"></em></th>
|
|
|
<td>
|
|
|
@@ -659,7 +674,35 @@
|
|
|
});
|
|
|
|
|
|
// 쿠폰 등록 버튼 클릭시
|
|
|
+
|
|
|
function fnCouponCreate(){
|
|
|
+ mcxDialog.confirm('저장하시겠습니까?' , {
|
|
|
+ cancelBtnText:"취소",
|
|
|
+ sureBtnText:"확인",
|
|
|
+ sureBtnClick: function () {
|
|
|
+ var chkUsableCustGb = document.getElementsByName("chkUsableCustGb");
|
|
|
+ var chkUsableCustGrade = document.getElementsByName("chkUsableCustGrade");
|
|
|
+ var usableCustGb = "";
|
|
|
+ var usableCustGrade = "";
|
|
|
+
|
|
|
+ for(let i=0; i<chkUsableCustGb.length; i++){
|
|
|
+ if(chkUsableCustGb[i].checked == true){
|
|
|
+ usableCustGb += chkUsableCustGb[i].value+"|";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ for(let i=0; i<chkUsableCustGrade.length; i++){
|
|
|
+ if(chkUsableCustGrade[i].checked == true){
|
|
|
+ usableCustGrade += chkUsableCustGrade[i].value+"|";
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ $("#CouponForm input[name=usableCustGb]").val(usableCustGb);
|
|
|
+ $("#CouponForm input[name=usableCustGrade]").val(usableCustGrade);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ function fnCouponCreate2(){
|
|
|
mcxDialog.confirm('저장하시겠습니까?' , {
|
|
|
cancelBtnText:"취소",
|
|
|
sureBtnText:"확인",
|