@ -442,12 +442,15 @@
<tr>
<tr>
<td colspan="12" class="b-top-0">
<td colspan="12" class="b-top-0">
<h2 style="max-height: 45px;">
<h2 id="calcH2" style="max-height: 45px;">
<strong>부과총액 = <span id="levyWholAmtDisplay"></span></strong>
<strong>부과총액 = <span id="levyWholAmtDisplay"></span></strong>
<c:if test="${mode ne 'V'}">
<c:if test="${mode ne 'V'}">
<button type="button" id="btnCalculate" class="newbtns bg3" style="vertical-align: top; margin-left: 10px;">계산하기</button>
<button type="button" id="btnCalculate" class="newbtns bg3" style="vertical-align: top; margin-left: 10px;">계산하기</button>
</c:if>
</c:if>
</h2>
</h2>
<h2 id="noneH2" style="max-height: 45px; display: none;">
<strong>조치완료로 부과대상 아닙니다.</strong>
</h2>
<input type="hidden" class="input numericMask" id="levyWholAmt" value="">
<input type="hidden" class="input numericMask" id="levyWholAmt" value="">
</td>
</td>
</tr>
</tr>
@ -553,8 +556,16 @@
var self = this;
var self = this;
return [
return [
{header: '이행강제금산출', name: 'levyCnt', align: 'center', width: 120, formatter: function(e){
{header: '이행강제금산출', name: 'levyCnt', align: 'center', width: 120, formatter: function(e){
return e.value > 0 ? '등록':'미등록'; }
if( e.row.actnPrcsSttsCd === '3' ){
return '조치완료';
}else if( e.row.actnPrcsSttsCd !== '3' && e.value > 0 ){
return '등록';
}else{
return '미등록';
}
}
},
},
{ header: '조치처리상태코드', name: 'actnPrcsSttsCd', align: 'center', width: 120, hidden: true},
{ header: '조치처리상태', name: 'actnPrcsSttsCdNm', align: 'center', width: 120},
{ header: '조치처리상태', name: 'actnPrcsSttsCdNm', align: 'center', width: 120},
{ header: '행위유형코드', name: 'actTypeCd', align: 'center', width: 60, hidden: true},
{ header: '행위유형코드', name: 'actTypeCd', align: 'center', width: 60, hidden: true},
{ header: '행위유형산정률1', name: 'actCmpttnRt', align: 'center', width: 60, hidden: true},
{ header: '행위유형산정률1', name: 'actCmpttnRt', align: 'center', width: 60, hidden: true},
@ -743,7 +754,7 @@
var totalLevyCntLess = 0;
var totalLevyCntLess = 0;
allRows.forEach(function(row) {
allRows.forEach(function(row) {
if( row.levyCnt == 0 ){
if( row.levyCnt == 0 && row.actnPrcsSttsCd !== '3' ){
totalLevyCntLess++;
totalLevyCntLess++;
}
}
@ -823,11 +834,22 @@
var existingData = response.data;
var existingData = response.data;
setLevyInfoToForm(existingData);
setLevyInfoToForm(existingData);
$("#btnSave").text('수정');
$("#btnSave").text('수정');
$("#noneH2").hide();
$("#calcH2").show();
console.log('기존 부과정보로 화면 복원 완료');
console.log('기존 부과정보로 화면 복원 완료');
} else {
} else {
// 기존 부과정보가 없는 경우 - 행위정보로 기본값 설정
// 기존 부과정보가 없는 경우 - 행위정보로 기본값 설정, 조치처리상태가 조치완료일경우 계산 및 저장 비활성
setActInfoToForm(rowData);
setActInfoToForm(rowData);
$("#btnSave").text('등록');
$("#btnSave").text('등록');
if( rowData.actnPrcsSttsCd === '3' ){
$("#btnSave").hide();
$("#calcH2").hide();
$("#noneH2").show();
}else{
$("#btnSave").show();
$("#calcH2").show();
$("#noneH2").hide();
}
$("#btnDel").hide();
$("#btnDel").hide();
console.log('신규 등록 모드 - 행위정보로 기본값 설정 완료');
console.log('신규 등록 모드 - 행위정보로 기본값 설정 완료');
}
}