|
|
@ -87,8 +87,10 @@
|
|
|
|
<thead class="sticky-thead">
|
|
|
|
<thead class="sticky-thead">
|
|
|
|
<tr id="theadTr0--${pageName}">
|
|
|
|
<tr id="theadTr0--${pageName}">
|
|
|
|
<th class="cmn align-content-center p-1" style="width: 170px;" rowspan="2">관할관청</th>
|
|
|
|
<th class="cmn align-content-center p-1" style="width: 170px;" rowspan="2">관할관청</th>
|
|
|
|
<th class="cmn fw-bold" colspan="7">마약 / 향정 구분 (폐기건수 / 폐기수량)</th>
|
|
|
|
<th class="cmn fw-bold" colspan="6">마약 / 향정 구분 (폐기건수 / 폐기수량)</th>
|
|
|
|
<th class="cmn fw-bold" colspan="4">중점 / 일반 구분 (폐기건수 / 폐기수량)</th>
|
|
|
|
<th class="cmn fw-bold" colspan="3">중점 / 일반 구분 (폐기건수 / 폐기수량)</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>
|
|
|
|
<tr id="theadTr--${pageName}"
|
|
|
|
<tr id="theadTr--${pageName}"
|
|
|
|
data-by="by--${pageName}" data-by-output="byOutput--${pageName}" data-main-option="mainOption--${pageName}" data-sub-option="subOption--${pageName}">
|
|
|
|
data-by="by--${pageName}" data-by-output="byOutput--${pageName}" data-main-option="mainOption--${pageName}" data-sub-option="subOption--${pageName}">
|
|
|
@ -98,11 +100,9 @@
|
|
|
|
<th class="cmn" style="width: 90px;">향정</th>
|
|
|
|
<th class="cmn" style="width: 90px;">향정</th>
|
|
|
|
<th class="cmn" style="width: 90px;">향정제외</th>
|
|
|
|
<th class="cmn" style="width: 90px;">향정제외</th>
|
|
|
|
<th class="cmn" style="width: 90px;">기타</th>
|
|
|
|
<th class="cmn" style="width: 90px;">기타</th>
|
|
|
|
<th class="cmn text-blue" style="width: 90px;">마약향정계</th>
|
|
|
|
|
|
|
|
<th class="cmn" style="width: 90px;">비마약류</th>
|
|
|
|
<th class="cmn" style="width: 90px;">비마약류</th>
|
|
|
|
<th class="cmn" style="width: 120px;">일반관리대상</th>
|
|
|
|
<th class="cmn" style="width: 120px;">일반관리대상</th>
|
|
|
|
<th class="cmn" style="width: 120px;">중점관리대상</th>
|
|
|
|
<th class="cmn" style="width: 120px;">중점관리대상</th>
|
|
|
|
<th class="cmn text-blue" style="width: 90px;">중점일반계</th>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
</thead>
|
|
|
|
<tbody id="tbody--${pageName}">
|
|
|
|
<tbody id="tbody--${pageName}">
|
|
|
@ -116,11 +116,11 @@
|
|
|
|
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{향정} / {향정qy}</td>
|
|
|
|
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{향정} / {향정qy}</td>
|
|
|
|
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{향정제외} / {향정제외qy}</td>
|
|
|
|
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{향정제외} / {향정제외qy}</td>
|
|
|
|
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{기타} / {기타qy}</td>
|
|
|
|
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{기타} / {기타qy}</td>
|
|
|
|
<td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}">{마약향정계} / {마약향정계qy}</td>
|
|
|
|
|
|
|
|
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{비마약류} / {비마약류qy}</td>
|
|
|
|
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{비마약류} / {비마약류qy}</td>
|
|
|
|
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{일반관리대상} / {일반관리대상qy}</td>
|
|
|
|
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{일반관리대상} / {일반관리대상qy}</td>
|
|
|
|
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{중점관리대상} / {중점관리대상qy}</td>
|
|
|
|
<td class="text-end" onclick="{onclick}" ondblclick="{ondblclick}">{중점관리대상} / {중점관리대상qy}</td>
|
|
|
|
<td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}">{중점일반계} / {중점일반계qy}</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>
|
|
|
|
</tr>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template id="${infoPrefix}NotFound--${pageName}">
|
|
|
|
<template id="${infoPrefix}NotFound--${pageName}">
|
|
|
@ -208,6 +208,40 @@
|
|
|
|
$("#tbody--${pageName}").setCurrentRow(key);
|
|
|
|
$("#tbody--${pageName}").setCurrentRow(key);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.control.getInfo = (deptCd) => {
|
|
|
|
|
|
|
|
let dialogTitle = "NIMS 폐기 보고 확인 등록";
|
|
|
|
|
|
|
|
let row = $P.control.dataset.getCurrent();
|
|
|
|
|
|
|
|
if (typeof row == "undefined" || row == null || row == "") return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let params = $P.formFields.get(); // 검색 조건
|
|
|
|
|
|
|
|
if(!$('#chkDsuseDe--${pageName}').is(":checked")){
|
|
|
|
|
|
|
|
$P.control.query.schDateFrom = '';
|
|
|
|
|
|
|
|
$P.control.query.schDateTo = '';
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
params = {
|
|
|
|
|
|
|
|
...params,
|
|
|
|
|
|
|
|
deptCd: row.dept_cd,
|
|
|
|
|
|
|
|
nrcdSeNm: row.nrcdSeNm,
|
|
|
|
|
|
|
|
prtmSeNm: row.prtm_se_nm,
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
|
|
|
|
url : wctx.url("/adds/nims/dsuseMgtMapping-info.do")
|
|
|
|
|
|
|
|
, data : params
|
|
|
|
|
|
|
|
, success : resp => {
|
|
|
|
|
|
|
|
dialog.open({
|
|
|
|
|
|
|
|
id : $P.control.prefixed("Dialog")
|
|
|
|
|
|
|
|
, title : dialogTitle
|
|
|
|
|
|
|
|
, content : resp
|
|
|
|
|
|
|
|
, size : "xxl"
|
|
|
|
|
|
|
|
, onClose : () => {
|
|
|
|
|
|
|
|
$P.control.reload({all : true});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* DataTables 이벤트
|
|
|
|
* DataTables 이벤트
|
|
|
@ -227,8 +261,8 @@
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
let replacer = (str, dataItem) => {
|
|
|
|
let replacer = (str, dataItem) => {
|
|
|
|
str = str.replace(/{onclick}/gi, "pageObject['${pageName}'].control.setCurrent('" + dataItem.getValue("dept_cd") + "');")
|
|
|
|
str = str.replace(/{ondblclick}/gi, "pageObject['${pageName}'].control.getInfo('" + dataItem.getValue("dept_cd") + ");");
|
|
|
|
if(dataItem.getValue("dept_cd") == "TOTAL"){
|
|
|
|
if(dataItem.getValue("dept_cd") === "TOTAL"){
|
|
|
|
str = str.replace(/{fw-bold-if-total}/gi, "fw-bold");
|
|
|
|
str = str.replace(/{fw-bold-if-total}/gi, "fw-bold");
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
str = str.replace(/{fw-bold-if-total}/gi, "");
|
|
|
|
str = str.replace(/{fw-bold-if-total}/gi, "");
|
|
|
@ -315,14 +349,19 @@
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 처음 1개의 th 요소 선택
|
|
|
|
|
|
|
|
let firstColNames = $(`#theadTr0--${pageName} th`).not("[colspan]").slice(0, 1);
|
|
|
|
|
|
|
|
// 중간의 th 요소 선택
|
|
|
|
|
|
|
|
let middleColNames = $(`#theadTr--${pageName} th`).not(".dummy-th").not("[colspan]");
|
|
|
|
|
|
|
|
// 끝에서 2개의 th 요소 선택
|
|
|
|
|
|
|
|
let lastColNames = $(`#theadTr0--${pageName} th`).not("[colspan]").slice(-2);
|
|
|
|
|
|
|
|
|
|
|
|
// DataTables(그리드)
|
|
|
|
// DataTables(그리드)
|
|
|
|
let cellDefs = getCellDefs(
|
|
|
|
$P.control.query.cellDefs = getCellDefs(
|
|
|
|
$("#theadTr0--${pageName} th, #theadTr--${pageName} th")
|
|
|
|
$([...firstColNames, ...middleColNames, ...lastColNames]),
|
|
|
|
.not(".dummy-th").not("[colspan]"),
|
|
|
|
|
|
|
|
$($("#${infoPrefix}Row--${pageName}")[0].content).find("td")
|
|
|
|
$($("#${infoPrefix}Row--${pageName}")[0].content).find("td")
|
|
|
|
.not(".dummy-td").not(":eq(0)").not("[colspan]"));
|
|
|
|
.not(".dummy-td").not(":eq(0)").not("[colspan]")
|
|
|
|
console.table("cellDefs", cellDefs);
|
|
|
|
);
|
|
|
|
$P.control.query.cellDefs = cellDefs;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.control.download();
|
|
|
|
$P.control.download();
|
|
|
|
}
|
|
|
|
}
|
|
|
|