|
@@ -83,6 +83,8 @@
|
|
|
<!-- //버튼 배치 영역 -->
|
|
<!-- //버튼 배치 영역 -->
|
|
|
|
|
|
|
|
<form id="detailForm" name="detailForm" action="#" th:action="@{'/business/aflink/save'}">
|
|
<form id="detailForm" name="detailForm" action="#" th:action="@{'/business/aflink/save'}">
|
|
|
|
|
+ <input type="hidden" name="mode" value="N"/>
|
|
|
|
|
+
|
|
|
<table class="frmStyle">
|
|
<table class="frmStyle">
|
|
|
<colgroup>
|
|
<colgroup>
|
|
|
<col style="width:30%"/>
|
|
<col style="width:30%"/>
|
|
@@ -91,7 +93,10 @@
|
|
|
<tr>
|
|
<tr>
|
|
|
<th>제휴코드<i class="star"></i></th>
|
|
<th>제휴코드<i class="star"></i></th>
|
|
|
<td>
|
|
<td>
|
|
|
- <input type="text" class="w100" name="afLinkCd" placeholder="" maxlength="5" required="required" data-valid-type="alphaNumeric" data-valid-name="제휴코드" onkeyup="$(this).val($(this).val().toUpperCase());"/>
|
|
|
|
|
|
|
+ <input type="text" class="w100" name="afLinkCd" placeholder="자동생성" maxlength="5" onkeyup="$(this).val($(this).val().toUpperCase());" readonly="readonly"/>
|
|
|
|
|
+ <span class="infoTxt cBlue">
|
|
|
|
|
+ <i class="fa fa-info-circle" aria-hidden="true"></i>AL+일련번호3자리로 자동생성
|
|
|
|
|
+ </span>
|
|
|
</td>
|
|
</td>
|
|
|
</tr>
|
|
</tr>
|
|
|
<tr>
|
|
<tr>
|
|
@@ -176,8 +181,9 @@
|
|
|
if (event.colDef.field != 'afLinkNm')
|
|
if (event.colDef.field != 'afLinkNm')
|
|
|
return;
|
|
return;
|
|
|
|
|
|
|
|
|
|
+ $('#detailForm input[name=mode]').val('U');
|
|
|
$('#detailForm input[name=afLinkCd]').val(event.data.afLinkCd);
|
|
$('#detailForm input[name=afLinkCd]').val(event.data.afLinkCd);
|
|
|
- $('#detailForm input[name=afLinkCd]').attr('readonly', true);
|
|
|
|
|
|
|
+// $('#detailForm input[name=afLinkCd]').attr('readonly', true);
|
|
|
$('#detailForm input[name=afLinkNm]').val(event.data.afLinkNm);
|
|
$('#detailForm input[name=afLinkNm]').val(event.data.afLinkNm);
|
|
|
$('#detailForm select[name=afChannel]').val(event.data.afChannel);
|
|
$('#detailForm select[name=afChannel]').val(event.data.afChannel);
|
|
|
$('#detailForm input[name=feeRate]').val(event.data.feeRate);
|
|
$('#detailForm input[name=feeRate]').val(event.data.feeRate);
|
|
@@ -206,11 +212,12 @@
|
|
|
// 신규
|
|
// 신규
|
|
|
$('#btnNew').on('click', function() {
|
|
$('#btnNew').on('click', function() {
|
|
|
$('#detailForm')[0].reset();
|
|
$('#detailForm')[0].reset();
|
|
|
- $('#detailForm input[name=afLinkCd]').attr('readonly', false);
|
|
|
|
|
- $('#detailForm input[name=afLinkCd]').removeClass('formControl');
|
|
|
|
|
|
|
+ $('#detailForm input[name=mode]').val('N');
|
|
|
|
|
+// $('#detailForm input[name=afLinkCd]').attr('readonly', false);
|
|
|
|
|
+// $('#detailForm input[name=afLinkCd]').removeClass('formControl');
|
|
|
$('#detailForm input:checkbox[name=chkUseYn]').attr('disabled', true);
|
|
$('#detailForm input:checkbox[name=chkUseYn]').attr('disabled', true);
|
|
|
$('#detailForm input:checkbox[name=chkUseYn]').addClass('formControl');
|
|
$('#detailForm input:checkbox[name=chkUseYn]').addClass('formControl');
|
|
|
- $('#detailForm input[name=afLinkCd]').focus();
|
|
|
|
|
|
|
+ $('#detailForm input[name=afLinkNm]').focus();
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
// 사용안함 버튼 클릭 시
|
|
// 사용안함 버튼 클릭 시
|