|
|
|
@ -267,8 +267,10 @@ integrationSearch.renderList = (updown, tabGroup) => {
|
|
|
|
|
var empty = ds.empty;
|
|
|
|
|
if(empty){
|
|
|
|
|
trs = notFound;
|
|
|
|
|
integrationSearch.setTotalData(updown, []);
|
|
|
|
|
} else if(tabGroup == "전체"){
|
|
|
|
|
trs = ds.inStrings(found, replacer);
|
|
|
|
|
integrationSearch.setTotalData(updown, ds._items);
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
var temp = ds._items;
|
|
|
|
@ -277,6 +279,8 @@ integrationSearch.renderList = (updown, tabGroup) => {
|
|
|
|
|
|
|
|
|
|
filtered = temp.filter(item => item.data.TAB_GROUP == tabGroup);
|
|
|
|
|
|
|
|
|
|
integrationSearch.setTotalData(updown, filtered);
|
|
|
|
|
|
|
|
|
|
if(filtered.lenth < 1){
|
|
|
|
|
trs = notFound;
|
|
|
|
|
} else {
|
|
|
|
@ -295,6 +299,45 @@ integrationSearch.renderList = (updown, tabGroup) => {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//합계 표시
|
|
|
|
|
integrationSearch.setTotalData = (updown, list) => {
|
|
|
|
|
|
|
|
|
|
if(updown == "up"){
|
|
|
|
|
|
|
|
|
|
$("#minapCnt--${pageName}").set(list.length);
|
|
|
|
|
var minapAmt = list.reduce((a, b) => a + ifEmpty(b.data.SUM_AMT,0), 0);
|
|
|
|
|
$("#minapAmt--${pageName}").set(minapAmt);
|
|
|
|
|
|
|
|
|
|
var listForSgg = list.filter(item => MY_INFO.info.sggCd == item.data.SGG_CD);
|
|
|
|
|
$("#minapCntForSgg--${pageName}").set(listForSgg.length);
|
|
|
|
|
var minapAmtForSgg = listForSgg.reduce((a, b) => a + ifEmpty(b.data.SUM_AMT,0), 0);
|
|
|
|
|
$("#minapAmtForSgg--${pageName}").set(minapAmtForSgg);
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
var sunapList = list.filter(item => item.data.TAB_GROUP == '수납');
|
|
|
|
|
var sonList = list.filter(item => item.data.TAB_GROUP == '결손');
|
|
|
|
|
|
|
|
|
|
$("#sunapCnt--${pageName}").set(sunapList.length);
|
|
|
|
|
var sunapAmt = sunapList.reduce((a, b) => a + ifEmpty(b.data.RCVMT_AMT,0), 0);
|
|
|
|
|
$("#sunapAmt--${pageName}").set(sunapAmt);
|
|
|
|
|
|
|
|
|
|
var sunapListForSgg = sunapList.filter(item => MY_INFO.info.sggCd == item.data.SGG_CD);
|
|
|
|
|
$("#sunapCntForSgg--${pageName}").set(sunapListForSgg.length);
|
|
|
|
|
var sunapAmtForSgg = sunapListForSgg.reduce((a, b) => a + ifEmpty(b.data.RCVMT_AMT,0), 0);
|
|
|
|
|
$("#sunapAmtForSgg--${pageName}").set(sunapAmtForSgg);
|
|
|
|
|
|
|
|
|
|
var sonListForSgg = sonList.filter(item => MY_INFO.info.sggCd == item.data.SGG_CD);
|
|
|
|
|
$("#sonCntForSgg--${pageName}").set(sonListForSgg.length);
|
|
|
|
|
var sonAmtForSgg = sonListForSgg.reduce((a, b) => a + ifEmpty(b.data.SUM_AMT,0), 0);
|
|
|
|
|
$("#sonAmtForSgg--${pageName}").set(sonAmtForSgg);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 엑셀
|
|
|
|
|
integrationSearch.fnExcel = (updown) => {
|
|
|
|
|
var headerInfo;
|
|
|
|
|