|
|
|
@ -90,13 +90,13 @@
|
|
|
|
|
<th class="cmn" style="width: 170.141px;">관할관청</th>
|
|
|
|
|
<th class="cmn" style="width: 120.141px;">폐기관리번호</th>
|
|
|
|
|
<th class="cmn" style="width: 110.469px;">폐기일자</th>
|
|
|
|
|
<th class="cmn" style="width: 150px;">폐기구분</th>
|
|
|
|
|
<th class="cmn" style="width: 150px;">폐기방법</th>
|
|
|
|
|
<th class="cmn" style="width: 300.469px;">업체명</th>
|
|
|
|
|
<th class="cmn" style="width: 90px;">보고건수</th>
|
|
|
|
|
<th class="cmn" style="width: 270.469px;">NIMS보고ID</th>
|
|
|
|
|
<th class="cmn" style="width: 160.469px;">처리상태</th>
|
|
|
|
|
<th class="cmn" style="width: 180.469px;">폐기사유</th>
|
|
|
|
|
<th class="cmn" style="width: 150px;">폐기구분</th>
|
|
|
|
|
<th class="cmn" style="width: 200.469px;">폐기장소</th>
|
|
|
|
|
<th class="cmn" style="width: 110.141px;">취급일자</th>
|
|
|
|
|
</tr>
|
|
|
|
@ -109,7 +109,6 @@
|
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{DEPT_NM}</td>
|
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{DSCDMNG_ID}</td>
|
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{DSUSE_DE}</td>
|
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{DSUSE_SE_NM}</td>
|
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{DSUSE_MTH_NM}</td>
|
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{BSSH_NM}</td>
|
|
|
|
|
<td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{RND_DTL_RPT_CNT}</td>
|
|
|
|
@ -118,6 +117,7 @@
|
|
|
|
|
</td>
|
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{PRGRS_STTS_NM}</td>
|
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{DSUSE_PRV_NM}</td>
|
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{DSUSE_SE_NM}</td>
|
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{DSUSE_LOC}</td>
|
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{HDR_DE}</td>
|
|
|
|
|
</tr>
|
|
|
|
@ -223,7 +223,7 @@
|
|
|
|
|
$P.control.defaultFetchSize = FETCH_XXS; // 1 페이지당 조회되는 자료 건수 index.jsp에서 확인 FETCH_XS = 30
|
|
|
|
|
$P.control.query = { pageNum : 1, fetchSize : $P.control.defaultFetchSize };
|
|
|
|
|
$P.control.beforeCurrent = null;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.detailControl = new DatasetControl({
|
|
|
|
|
urls : {
|
|
|
|
@ -236,8 +236,8 @@
|
|
|
|
|
, formats : {
|
|
|
|
|
PRD_VALID_DE: dateFormat
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* DatasetControl 이벤트
|
|
|
|
|
**************************************************************************/
|
|
|
|
@ -254,9 +254,9 @@
|
|
|
|
|
, func: "pageObject['${pageName}'].control.load({index})"
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.detailControl.onDatasetChange = (obj) => {
|
|
|
|
|
$P.renderDetailList(obj.${infoPrefix}Total);
|
|
|
|
|
};
|
|
|
|
@ -291,7 +291,7 @@
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 현재 선택 자료 변경 이벤트
|
|
|
|
|
$P.detailControl.onCurrentChange = (item) => {
|
|
|
|
|
if (!item) return;
|
|
|
|
@ -348,7 +348,7 @@
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
|
url : wctx.url("/adds/nims/dsuseMgtMapping-info.do")
|
|
|
|
|
url : wctx.url("/adds/nims/dsuseMgtMapping-info.do")
|
|
|
|
|
, data : params
|
|
|
|
|
, success : resp => {
|
|
|
|
|
dialog.open({
|
|
|
|
@ -356,7 +356,7 @@
|
|
|
|
|
, title : dialogTitle
|
|
|
|
|
, content : resp
|
|
|
|
|
, size : "xxl"
|
|
|
|
|
, onClose : () => {
|
|
|
|
|
, onClose : () => {
|
|
|
|
|
$P.control.reload({all : true});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
@ -366,11 +366,11 @@
|
|
|
|
|
|
|
|
|
|
$P.control.onSave = (resp) => {
|
|
|
|
|
// let dialogTitle = $("#" + $P.control.prefix + "Dialog").find("h5.modal-title").html();
|
|
|
|
|
let showMessage = "저장에 실패 하였습니다.";
|
|
|
|
|
let showMessage = "저장에 실패 하였습니다.";
|
|
|
|
|
if (resp.saved) {
|
|
|
|
|
showMessage = "저장에 성공 하였습니다.";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dialog.alert({
|
|
|
|
|
content : showMessage,
|
|
|
|
|
init : function(){
|
|
|
|
@ -391,7 +391,7 @@
|
|
|
|
|
userId: "${currentUser.account}",
|
|
|
|
|
prgrsSttsCd: "99"
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
|
url : wctx.url("/adds/nims/updatePrgsSttusOfDsuseMgt.do")
|
|
|
|
|
, data: params
|
|
|
|
@ -430,12 +430,12 @@
|
|
|
|
|
if(option != null && option.reloaded){
|
|
|
|
|
initScroll = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#table-responsive--${pageName}")[0].changeContent(trs.join(), initScroll, noMore);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.renderDetailList = () => {
|
|
|
|
|
let ${infoPrefix}List = $P.detailControl.dataset;
|
|
|
|
|
let empty = ${infoPrefix}List.empty;
|
|
|
|
@ -454,11 +454,11 @@
|
|
|
|
|
|
|
|
|
|
// DataTables에 스크롤이 맨 밑으로 이동했을 때 이벤트
|
|
|
|
|
$P.scrollDataList = () => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.control.load($P.control.query.pageNum + 1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.control.getBsshInfo = (gdccId) => {
|
|
|
|
|
let dialogTitle = "마약류 취급업체 조회";
|
|
|
|
|
let params = {openPage : "frmSearch--${pageName}"};
|
|
|
|
@ -476,8 +476,8 @@
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* 사용자 함수(function)
|
|
|
|
@ -494,7 +494,7 @@
|
|
|
|
|
$P.fnCreateDsuseMgtMapping = (title) => {
|
|
|
|
|
$P.control.getInfo();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 처리상태 완료로 변경
|
|
|
|
|
$P.fnPrgsStts = () => {
|
|
|
|
|
dialog.alert({
|
|
|
|
@ -505,9 +505,9 @@
|
|
|
|
|
onOK : () => {
|
|
|
|
|
$P.control.prgsSttus();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 전자우편 안내문 등록 버튼 이벤트
|
|
|
|
|
$P.fnSearchBssh = (title) => {
|
|
|
|
|
$P.control.getBsshInfo();
|
|
|
|
@ -595,7 +595,7 @@
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 안내문 등록 버튼 이벤트
|
|
|
|
|
$("#btnBsshSearch--${pageName}").on("click", function() {
|
|
|
|
|
$P.fnSearchBssh($(this).attr("title"));
|
|
|
|
@ -606,7 +606,7 @@
|
|
|
|
|
|
|
|
|
|
// DataTables 스크롤 이벤트 생성
|
|
|
|
|
Componentization.fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollDataList);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 하단 테이블 행 번호 표시
|
|
|
|
|
Componentization.fnMakeRowNumberingTable(document.getElementById('tbody--${pageName}Detail')
|
|
|
|
|
, (tr)=>{ return $(tr).find("td.row-num")[0]; }
|
|
|
|
|