|
|
|
@ -17,7 +17,6 @@
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- tab 공통 -->
|
|
|
|
|
<form id="frmSearch" name="frmSearch">
|
|
|
|
|
<div class="container-search">
|
|
|
|
|
<div class="row">
|
|
|
|
@ -102,8 +101,15 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="searchDetail" class="container-search container-search-detail collapse">
|
|
|
|
|
상세조회조건
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-12">
|
|
|
|
|
<span class="me-5">동적 조회조건</span>
|
|
|
|
|
<label class="form-label fw-bold form-search-title">클릭한 항목</label>
|
|
|
|
|
<input type="text" id="" name="" class="form-control" value="" />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
@ -117,44 +123,7 @@
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="container-search">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-12">
|
|
|
|
|
<span class="me-5">동적 조회조건</span>
|
|
|
|
|
<label class="form-label fw-bold form-search-title">클릭한 항목</label>
|
|
|
|
|
<input type="text" id="" name="" class="form-control" value="" />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div id="tabs" class="nav-align-top mt-3">
|
|
|
|
|
<ul class="nav nav-tabs">
|
|
|
|
|
<li class="nav-item">
|
|
|
|
|
<button id="0" type="button" class="nav-link active" data-bs-toggle="tab" data-bs-target="#tabContent0">전체</button>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="nav-item">
|
|
|
|
|
<button id="1" type="button" class="nav-link" data-bs-toggle="tab" data-bs-target="#tabContent0">부분1</button>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="nav-item">
|
|
|
|
|
<button id="2" type="button" class="nav-link" data-bs-toggle="tab" data-bs-target="#tabContent0">부분2</button>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="nav-item">
|
|
|
|
|
<button id="3" type="button" class="nav-link" data-bs-toggle="tab" data-bs-target="#tabContent0">부분3</button>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="tab-content">
|
|
|
|
|
<div id="tabContent0" style="flex-direction: column" class="tab-pane fade show active">
|
|
|
|
|
<div id="tabs_t0"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="tabContent1" class="tab-pane fade">
|
|
|
|
|
<div id="tabs_t1"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="tabContent2" class="tab-pane fade">
|
|
|
|
|
<div id="tabs_t2"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="grid"></div>
|
|
|
|
|
<div class="d-flex flex-row p-3 justify-content-between">
|
|
|
|
|
<label id="crdnPagingInfo" class="dataTables_info" role="status" aria-live="polite"></label>
|
|
|
|
@ -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();
|
|
|
|
|
|
|
|
|
|