diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/initData-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/initData-main.jsp
index cc604506..bb97de85 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/crdn/initData-main.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/initData-main.jsp
@@ -17,7 +17,6 @@
-
@@ -117,44 +123,7 @@
-
-
-
- 동적 조회조건
-
-
-
-
-
-
-
-
- -
-
-
- -
-
-
- -
-
-
- -
-
-
-
-
-
-
+
@@ -184,11 +153,6 @@ $(function(){
/**************************************************************************
* Global Variable
**************************************************************************/
-/**
- * tab index : 0 부터 시작
- * @type {number}
- */
-var CUR_TAB_IDX = 0;
/**
* tui-grid array
* @type {*[]}
@@ -290,7 +254,6 @@ function renderCrdnList(data) {
/*******************************
* Biz function
*******************************/
- // tab 전체
const fnBiz = {
getParams: () => {
@@ -300,8 +263,8 @@ const fnBiz = {
,schDateFrom: $('#schDateFrom').val()
,schDateTo: $('#schDateTo').val()
,sysSeCd: $('input:radio[name=sysSeCd]:checked').val()
- ,crdnSeCd: CUR_TAB_IDX === 2 ? '09' : $('input:radio[name=crdnSeCd]:checked').val()
- ,crdnSttsCd: CUR_TAB_IDX === 2 ? 'NON-INIT' : $('#crdnSttsCd').val()
+ ,crdnSeCd: $('input:radio[name=crdnSeCd]:checked').val()
+ ,crdnSttsCd: $('#crdnSttsCd').val()
,ctznAnsYn: $('input:radio[name=ctznAnsYn]:checked').val()
,fetchSize: 20
}
@@ -362,32 +325,7 @@ const fnBiz = {
}
}
,resetBtn: function() {
- switch(CUR_TAB_IDX){
- case 0:
- $('#btnExtrRegist').show();
- $('#divImpose').hide();
- $('#divAnswer').hide();
- $('#ansDiv').hide();
- $('#crdnSttsCd').show();
- $('#fldCrdnSeCd').show();
- break;
- case 1:
- $('#btnExtrRegist').hide();
- $('#divImpose').show();
- $('#divAnswer').hide();
- $('#ansDiv').hide();
- $('#crdnSttsCd').show();
- $('#fldCrdnSeCd').show();
- break;
- case 2:
- $('#btnExtrRegist').hide();
- $('#divImpose').hide();
- $('#divAnswer').show();
- $('#ansDiv').show();
- $('#crdnSttsCd').show();
- $('#fldCrdnSeCd').hide();
- break;
- }
+
}
,onDblClickGrid: function (props) {
popupDiv = 'total';
@@ -405,7 +343,7 @@ const fnBiz = {
,{value: '12', text: '계도'}
,{value: '20', text: '부과'}
*/
- let answerSeCode;
+ var answerSeCode;
switch(stsCode){
// 부과
case '10':
@@ -430,11 +368,7 @@ const fnBiz = {
**************************************************************************/
$(() => {
- $("#tabs").on("click", "li", function () {
-
- CUR_TAB_IDX = parseInt($("#tabs .nav-link.active").attr("id"));
-
- });
+
$('#btnSearch').on('click', () => searchCrdnList());
@@ -508,13 +442,8 @@ const gridColumns = [
minWidth: 100,
sortable: false,
align: 'center',
- formatter: 'listItemText',
- disabled: true,
- editor: {
- type: "select",
- options: {
- listItems: [...ComboCodeData.crdnSeCd]
- }
+ formatter({value}) {
+ return (new CommonCodes(ComboCodeData.crdnSeCd)).value(value);
}
},
{
@@ -675,6 +604,7 @@ const gridOptions = {
scrollFuncName : crdnControl.scrollFuncName
};
+
const initGrid = () => {
GRID = TuiGrid.of(gridOptions);
GRID.on('dblclick', function (props) { fnBiz.onDblClickGrid(props); });
@@ -683,7 +613,7 @@ const initGrid = () => {
$(document).ready(function(){
- CUR_TAB_IDX = 0;
+
fnBiz.resetBtn();
initGrid();