|
@@ -60,6 +60,8 @@
|
|
|
<!-- 등록/수정 -->
|
|
<!-- 등록/수정 -->
|
|
|
<div class="panelStyle">
|
|
<div class="panelStyle">
|
|
|
<form id="detailForm" name="detailForm" action="#" th:action="@{'/envset/customer/grade/policy/create'}">
|
|
<form id="detailForm" name="detailForm" action="#" th:action="@{'/envset/customer/grade/policy/create'}">
|
|
|
|
|
+ <input type="hidden" name="mode" value="N"/>
|
|
|
|
|
+
|
|
|
<table class="frmStyle" aria-describedby="등록/상세폼">
|
|
<table class="frmStyle" aria-describedby="등록/상세폼">
|
|
|
<colgroup>
|
|
<colgroup>
|
|
|
<col style="width:10%;"/>
|
|
<col style="width:10%;"/>
|
|
@@ -223,6 +225,7 @@
|
|
|
if (event.colDef.field != 'gradeCd')
|
|
if (event.colDef.field != 'gradeCd')
|
|
|
return;
|
|
return;
|
|
|
|
|
|
|
|
|
|
+ $('#detailForm input[name=mode]').val('U');
|
|
|
$('#detailForm select[name=siteCd]').val(event.data.siteCd);
|
|
$('#detailForm select[name=siteCd]').val(event.data.siteCd);
|
|
|
$('#detailForm select[name=gradeCd]').val(event.data.gradeCd);
|
|
$('#detailForm select[name=gradeCd]').val(event.data.gradeCd);
|
|
|
$('#detailForm input[name=iconNm]').val(event.data.iconNm);
|
|
$('#detailForm input[name=iconNm]').val(event.data.iconNm);
|
|
@@ -264,6 +267,7 @@
|
|
|
// 신규
|
|
// 신규
|
|
|
$('#btnNew').on('click', function() {
|
|
$('#btnNew').on('click', function() {
|
|
|
$('#detailForm')[0].reset();
|
|
$('#detailForm')[0].reset();
|
|
|
|
|
+ $('#detailForm input[name=mode]').val('N');
|
|
|
$('#iconPrefix').html('');
|
|
$('#iconPrefix').html('');
|
|
|
$('#detailForm select[name=siteCd]').focus();
|
|
$('#detailForm select[name=siteCd]').focus();
|
|
|
});
|
|
});
|