|
|
|
@ -87,9 +87,9 @@
|
|
|
|
|
<th class="cmn align-content-center p-1" style="width: 170px;" rowspan="2">관할관청</th>
|
|
|
|
|
<th class="cmn align-content-center p-1" style="width: 350px;" rowspan="2">제품명</th>
|
|
|
|
|
<th class="cmn align-content-center p-1" style="width: 146px;" rowspan="2">제품코드</th>
|
|
|
|
|
<th class="cmn" colspan="4">처리상태별 건수</th>
|
|
|
|
|
<th class="cmn align-content-center p-1" style="width: 100px;" rowspan="2">폐기건수</th>
|
|
|
|
|
<th class="cmn align-content-center p-1" style="width: 100px;" rowspan="2">폐기수량</th>
|
|
|
|
|
<th class="cmn fw-bold" colspan="4">처리상태별 건수</th>
|
|
|
|
|
<th class="cmn align-content-center p-1 text-blue" style="width: 100px;" rowspan="2">폐기건수</th>
|
|
|
|
|
<th class="cmn align-content-center p-1 text-blue" style="width: 100px;" rowspan="2">폐기수량</th>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr id="theadTr--${pageName}"
|
|
|
|
|
data-by="by--${pageName}" data-by-output="byOutput--${pageName}" data-main-option="mainOption--${pageName}" data-sub-option="subOption--${pageName}">
|
|
|
|
@ -111,8 +111,8 @@
|
|
|
|
|
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{rsltCnt}</td>
|
|
|
|
|
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{mappingCnt}</td>
|
|
|
|
|
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{cpltCnt}</td>
|
|
|
|
|
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{dsuseCnt}</td>
|
|
|
|
|
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{dsuseQy}</td>
|
|
|
|
|
<td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}">{dsuseCnt}</td>
|
|
|
|
|
<td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}">{dsuseQy}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</template>
|
|
|
|
|
<template id="${infoPrefix}NotFound--${pageName}">
|
|
|
|
@ -140,10 +140,12 @@
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
pageObject["${pageName}"] = {};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* script 진입
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
|
let totalDs = null;
|
|
|
|
|
// pageObject
|
|
|
|
|
let $P = pageObject["${pageName}"];
|
|
|
|
|
|
|
|
|
@ -160,7 +162,18 @@
|
|
|
|
|
, prefix: "dsuseMgtDsuseQyByPrdStatistics"
|
|
|
|
|
, prefixName: "제품별 폐기 현황"
|
|
|
|
|
, keymapper: info => info ? info.prduct_cd : ""
|
|
|
|
|
, dataGetter: obj => obj.${infoPrefix}List
|
|
|
|
|
, dataGetter: obj => {
|
|
|
|
|
let list = obj.${infoPrefix}List;
|
|
|
|
|
|
|
|
|
|
// TOTAL 데이터
|
|
|
|
|
totalDs = new Dataset({
|
|
|
|
|
keymapper: info => info? info.dept_cd : ''
|
|
|
|
|
, dataGetter: obj => obj
|
|
|
|
|
});
|
|
|
|
|
totalDs.setData(list.filter(d => d.dept_cd === 'TOTAL'));
|
|
|
|
|
|
|
|
|
|
return list.filter(d => d.dept_cd !== 'TOTAL');
|
|
|
|
|
}
|
|
|
|
|
, appendData: true
|
|
|
|
|
, infoSize: "xl"
|
|
|
|
|
});
|
|
|
|
@ -176,6 +189,14 @@
|
|
|
|
|
// Dataset 변경 이벤트
|
|
|
|
|
$P.control.onDatasetChange = (obj) => {
|
|
|
|
|
$P.renderList(obj.${infoPrefix}Total);
|
|
|
|
|
$("#${infoPrefix}Paging--${pageName}").setPagingInfo({
|
|
|
|
|
list: $P.control.dataset
|
|
|
|
|
, prefix: "${infoPrefix}Paging--${pageName}"
|
|
|
|
|
, start: obj.${infoPrefix}Start
|
|
|
|
|
, totalSize: $P.control.dataset.length
|
|
|
|
|
, fetchSize: obj.${infoPrefix}Fetch
|
|
|
|
|
, func: "pageObject['${pageName}'].control.load({index})"
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 현재 선택 자료 변경 이벤트
|
|
|
|
@ -208,21 +229,28 @@
|
|
|
|
|
|
|
|
|
|
let replacer = (str, dataItem) => {
|
|
|
|
|
str = str.replace(/{onclick}/gi, "pageObject['${pageName}'].control.setCurrent('" + dataItem.getValue("prduct_cd") + "');")
|
|
|
|
|
if(dataItem.getValue("dept_cd") == "TOTAL"){
|
|
|
|
|
str = str.replace(/{fw-bold-if-total}/gi, "fw-bold");
|
|
|
|
|
} else {
|
|
|
|
|
str = str.replace(/{fw-bold-if-total}/gi, "");
|
|
|
|
|
}
|
|
|
|
|
return str;
|
|
|
|
|
str = str.replace(/{fw-bold-if-total}/gi, "");
|
|
|
|
|
return str;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let trs = empty ? [document.getElementById("${infoPrefix}NotFound--${pageName}").content.outerHTML]
|
|
|
|
|
: ${infoPrefix}List.inStrings(foundTr.outerHTML, replacer);
|
|
|
|
|
|
|
|
|
|
$("#tbody--${pageName}").html(trs.join());
|
|
|
|
|
|
|
|
|
|
// TOTAL 데이터 추가
|
|
|
|
|
let replacer2 = (str, dataItem) => {
|
|
|
|
|
str = str.replace(/{onclick}/gi, "pageObject['${pageName}'].control.setCurrent('" + dataItem.getValue("prduct_cd") + "');")
|
|
|
|
|
str = str.replace(/{fw-bold-if-total}/gi, "fw-bold");
|
|
|
|
|
str = str.replace(/{ROW_NUM}/gi, "");
|
|
|
|
|
return str;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let tr = totalDs.inStrings(foundTr.outerHTML, replacer2);
|
|
|
|
|
$("#tbody--${pageName}").append(tr);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.control.getBsshInfo = (gdccId) => {
|
|
|
|
|
let dialogTitle = "마약류 취급업체 조회";
|
|
|
|
|
let params = {openPage : "frmSearch--${pageName}"};
|
|
|
|
|