|
|
@ -17,7 +17,6 @@
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- tab 공통 -->
|
|
|
|
|
|
|
|
<form id="frmSearch" name="frmSearch">
|
|
|
|
<form id="frmSearch" name="frmSearch">
|
|
|
|
<div class="container-search">
|
|
|
|
<div class="container-search">
|
|
|
|
<div class="row">
|
|
|
|
<div class="row">
|
|
|
@ -102,8 +101,15 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="searchDetail" class="container-search container-search-detail collapse">
|
|
|
|
<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>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</form>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
@ -117,44 +123,7 @@
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</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 id="grid"></div>
|
|
|
|
<div class="d-flex flex-row p-3 justify-content-between">
|
|
|
|
<div class="d-flex flex-row p-3 justify-content-between">
|
|
|
|
<label id="crdnPagingInfo" class="dataTables_info" role="status" aria-live="polite"></label>
|
|
|
|
<label id="crdnPagingInfo" class="dataTables_info" role="status" aria-live="polite"></label>
|
|
|
@ -184,11 +153,6 @@ $(function(){
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* Global Variable
|
|
|
|
* Global Variable
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
/**
|
|
|
|
|
|
|
|
* tab index : 0 부터 시작
|
|
|
|
|
|
|
|
* @type {number}
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
var CUR_TAB_IDX = 0;
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* tui-grid array
|
|
|
|
* tui-grid array
|
|
|
|
* @type {*[]}
|
|
|
|
* @type {*[]}
|
|
|
@ -290,7 +254,6 @@ function renderCrdnList(data) {
|
|
|
|
/*******************************
|
|
|
|
/*******************************
|
|
|
|
* Biz function
|
|
|
|
* Biz function
|
|
|
|
*******************************/
|
|
|
|
*******************************/
|
|
|
|
// tab 전체
|
|
|
|
|
|
|
|
const fnBiz = {
|
|
|
|
const fnBiz = {
|
|
|
|
getParams: () => {
|
|
|
|
getParams: () => {
|
|
|
|
|
|
|
|
|
|
|
@ -300,8 +263,8 @@ const fnBiz = {
|
|
|
|
,schDateFrom: $('#schDateFrom').val()
|
|
|
|
,schDateFrom: $('#schDateFrom').val()
|
|
|
|
,schDateTo: $('#schDateTo').val()
|
|
|
|
,schDateTo: $('#schDateTo').val()
|
|
|
|
,sysSeCd: $('input:radio[name=sysSeCd]:checked').val()
|
|
|
|
,sysSeCd: $('input:radio[name=sysSeCd]:checked').val()
|
|
|
|
,crdnSeCd: CUR_TAB_IDX === 2 ? '09' : $('input:radio[name=crdnSeCd]:checked').val()
|
|
|
|
,crdnSeCd: $('input:radio[name=crdnSeCd]:checked').val()
|
|
|
|
,crdnSttsCd: CUR_TAB_IDX === 2 ? 'NON-INIT' : $('#crdnSttsCd').val()
|
|
|
|
,crdnSttsCd: $('#crdnSttsCd').val()
|
|
|
|
,ctznAnsYn: $('input:radio[name=ctznAnsYn]:checked').val()
|
|
|
|
,ctznAnsYn: $('input:radio[name=ctznAnsYn]:checked').val()
|
|
|
|
,fetchSize: 20
|
|
|
|
,fetchSize: 20
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -362,32 +325,7 @@ const fnBiz = {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
,resetBtn: function() {
|
|
|
|
,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) {
|
|
|
|
,onDblClickGrid: function (props) {
|
|
|
|
popupDiv = 'total';
|
|
|
|
popupDiv = 'total';
|
|
|
@ -405,7 +343,7 @@ const fnBiz = {
|
|
|
|
,{value: '12', text: '계도'}
|
|
|
|
,{value: '12', text: '계도'}
|
|
|
|
,{value: '20', text: '부과'}
|
|
|
|
,{value: '20', text: '부과'}
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
let answerSeCode;
|
|
|
|
var answerSeCode;
|
|
|
|
switch(stsCode){
|
|
|
|
switch(stsCode){
|
|
|
|
// 부과
|
|
|
|
// 부과
|
|
|
|
case '10':
|
|
|
|
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());
|
|
|
|
$('#btnSearch').on('click', () => searchCrdnList());
|
|
|
|
|
|
|
|
|
|
|
@ -508,13 +442,8 @@ const gridColumns = [
|
|
|
|
minWidth: 100,
|
|
|
|
minWidth: 100,
|
|
|
|
sortable: false,
|
|
|
|
sortable: false,
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
formatter: 'listItemText',
|
|
|
|
formatter({value}) {
|
|
|
|
disabled: true,
|
|
|
|
return (new CommonCodes(ComboCodeData.crdnSeCd)).value(value);
|
|
|
|
editor: {
|
|
|
|
|
|
|
|
type: "select",
|
|
|
|
|
|
|
|
options: {
|
|
|
|
|
|
|
|
listItems: [...ComboCodeData.crdnSeCd]
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -675,6 +604,7 @@ const gridOptions = {
|
|
|
|
scrollFuncName : crdnControl.scrollFuncName
|
|
|
|
scrollFuncName : crdnControl.scrollFuncName
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const initGrid = () => {
|
|
|
|
const initGrid = () => {
|
|
|
|
GRID = TuiGrid.of(gridOptions);
|
|
|
|
GRID = TuiGrid.of(gridOptions);
|
|
|
|
GRID.on('dblclick', function (props) { fnBiz.onDblClickGrid(props); });
|
|
|
|
GRID.on('dblclick', function (props) { fnBiz.onDblClickGrid(props); });
|
|
|
@ -683,7 +613,7 @@ const initGrid = () => {
|
|
|
|
$(document).ready(function(){
|
|
|
|
$(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CUR_TAB_IDX = 0;
|
|
|
|
|
|
|
|
fnBiz.resetBtn();
|
|
|
|
fnBiz.resetBtn();
|
|
|
|
initGrid();
|
|
|
|
initGrid();
|
|
|
|
|
|
|
|
|
|
|
|