diff --git a/src/main/webapp/WEB-INF/jsp/fims/biz/cmm/cmmFimsCrackdownTotMgtPopup.jsp b/src/main/webapp/WEB-INF/jsp/fims/biz/cmm/cmmFimsCrackdownTotMgtPopup.jsp index 846edb63..0778d92b 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/biz/cmm/cmmFimsCrackdownTotMgtPopup.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/biz/cmm/cmmFimsCrackdownTotMgtPopup.jsp @@ -1322,8 +1322,10 @@ Date Author Description } } - - + $("#popupTabs .nav-link").on("click", function(){ + let popupHeight = $("#wrap").height(); + $(window.frameElement).attr("height",popupHeight); + }); $(document).ready(function(){ initPopupGrid(); diff --git a/src/main/webapp/WEB-INF/jsp/fims/biz/rt/rtInitialDataForm.jsp b/src/main/webapp/WEB-INF/jsp/fims/biz/rt/rtInitialDataForm.jsp index 24bbef43..aa66aea0 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/biz/rt/rtInitialDataForm.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/biz/rt/rtInitialDataForm.jsp @@ -314,6 +314,9 @@ Date Author Description } } ,setDblClickEvent: function (idx) { + + ARR_GRID[idx].off('dblclick'); + ARR_GRID[idx].on('dblclick', function (props) { popupDiv = 'total'; const rowDatas = ARR_GRID[idx].store.data.rawData.map(d => { @@ -676,34 +679,43 @@ Date Author Description } } }; + + let resetFlag = true; const gridResponseReset = (res, idx) => { - // FIXME:: scroll type 사용시 - ARR_GRID[idx].resetData([]); - ARR_GRID[idx].refreshLayout(); - // FIXME:: scroll type 사용시 - ARR_TOTCNT[idx] = res.data.pagination.totalCount; - $('#totCnt span').text(ARR_TOTCNT[idx]); - const gridInfo = ARR_NAV[idx]?.gridInfo; - if(gridInfo && gridInfo?.pageMove) { - - let datas; - if(popupDiv === 'answerPreview'){ - datas = res.data?.contents.map(d => { - return {tmplatId: '${ctznTmplatId}', answerSeCode: fnBiz.getAnswerSeCode(d.regltProcessSttusCode), resnCode: d.erppSeCode, interfaceSeqN: d.interfaceSeqN, vhcleNo: d.vhcleNo} - }) - }else { - datas = res.data?.contents.map(d => { - return {regltId: d.regltId, regltSeCode: d.regltSeCode, regltProcessSttusCode: d.regltProcessSttusCode} + + if(resetFlag){ + // FIXME:: scroll type 사용시 + ARR_GRID[idx].resetData([]); + ARR_GRID[idx].refreshLayout(); + // FIXME:: scroll type 사용시 + ARR_TOTCNT[idx] = res.data.pagination.totalCount; + $('#totCnt span').text(ARR_TOTCNT[idx]); + const gridInfo = ARR_NAV[idx]?.gridInfo; + if(gridInfo && gridInfo?.pageMove) { + + let datas; + if(popupDiv === 'answerPreview'){ + datas = res.data?.contents.map(d => { + return {tmplatId: '${ctznTmplatId}', answerSeCode: fnBiz.getAnswerSeCode(d.regltProcessSttusCode), resnCode: d.erppSeCode, interfaceSeqN: d.interfaceSeqN, vhcleNo: d.vhcleNo}; + }); + }else { + datas = res.data?.contents.map(d => { + return {regltId: d.regltId, regltSeCode: d.regltSeCode, regltProcessSttusCode: d.regltProcessSttusCode}; + }); + } + + ARR_NAV[idx].resetGrid(res, datas, (pagiNavigation)=>{ + ARR_NAV[idx] = pagiNavigation; + fnBiz.pagePopup(popupDiv, ARR_NAV[idx].gridInfo.curRowData); }); } - ARR_NAV[idx].resetGrid(res, datas, (pagiNavigation)=>{ - ARR_NAV[idx] = pagiNavigation; - fnBiz.pagePopup(popupDiv, ARR_NAV[idx].gridInfo.curRowData); - }) + fnBiz.setDblClickEvent(idx); + + resetFlag = false; } - fnBiz.setDblClickEvent(idx); - } + + }; const initGrid = () => { ARR_GRID[0] = TuiGrid.of(gridOptions, gridDatasource, (res) => gridResponseReset(res, 0)); const options = $.extend(gridOptions, gridOptions.columns[1].renderer = null, true);