|
|
|
@ -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);
|
|
|
|
|