diff --git a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtDsuseQyByBsshStatistics-main.jsp b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtDsuseQyByBsshStatistics-main.jsp
index d1494cc..ffd82aa 100644
--- a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtDsuseQyByBsshStatistics-main.jsp
+++ b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtDsuseQyByBsshStatistics-main.jsp
@@ -84,9 +84,7 @@
- No. |
관할관청 |
- 종 폐기건수 |
마약류취급의료업 |
마약류소매업 |
마약류도매업 |
@@ -94,16 +92,15 @@
마약류수출입업 |
마약류원료사용 |
마약류취급학술연구 |
- 폐기수량 |
+ 폐기건수 |
+ 폐기수량 |
- {ROW_NUM} |
{dept_nm} |
- {dsuseCnt} |
{마약류취급의료업} |
{마약류소매업} |
{마약류도매업} |
@@ -111,7 +108,8 @@
{마약류수출입업} |
{마약류원료사용} |
{마약류취급학술연구} |
- {dsuseQy} |
+ {dsuseCnt} |
+ {dsuseQy} |
diff --git a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtDsuseQyByPrdStatistics-main.jsp b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtDsuseQyByPrdStatistics-main.jsp
index 88db85f..c75daca 100644
--- a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtDsuseQyByPrdStatistics-main.jsp
+++ b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtDsuseQyByPrdStatistics-main.jsp
@@ -87,9 +87,9 @@
관할관청 |
제품명 |
제품코드 |
- 처리상태별 건수 |
- 폐기건수 |
- 폐기수량 |
+ 처리상태별 건수 |
+ 폐기건수 |
+ 폐기수량 |
@@ -111,8 +111,8 @@
{rsltCnt} |
{mappingCnt} |
{cpltCnt} |
- {dsuseCnt} |
- {dsuseQy} |
+ {dsuseCnt} |
+ {dsuseQy} |
@@ -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}"};
diff --git a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtNcrdAndPrtmStatistics-main.jsp b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtNcrdAndPrtmStatistics-main.jsp
index eeac273..c6bbf12 100644
--- a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtNcrdAndPrtmStatistics-main.jsp
+++ b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtNcrdAndPrtmStatistics-main.jsp
@@ -86,10 +86,9 @@