|
|
@ -13,11 +13,11 @@
|
|
|
|
<!-- 입력 영역 -->
|
|
|
|
<!-- 입력 영역 -->
|
|
|
|
<form id="frmEdit--${pageName}" name="frmEdit">
|
|
|
|
<form id="frmEdit--${pageName}" name="frmEdit">
|
|
|
|
<!-- hidden -->
|
|
|
|
<!-- hidden -->
|
|
|
|
<input type="hidden" name="dscdmngId" data-map="dscdmngId" />
|
|
|
|
<input type="hidden" id="usrRptIdNo--${pageName}" name="usrRptIdNo" data-map="usrRptIdNo">
|
|
|
|
|
|
|
|
|
|
|
|
<%-- <label for="bssh--${pageName}">업체 정보</label>--%>
|
|
|
|
<%-- <label for="bssh--${pageName}">업체 정보</label>--%>
|
|
|
|
<div class="row my-1 mx-4 g-1 border-card rounded-3">
|
|
|
|
<div class="row my-1 mx-4 g-1 border-card rounded-3">
|
|
|
|
<input type="hidden" id="usrRptIdNo--${pageName}" name="usrRptIdNo" data-map="usrRptIdNo">
|
|
|
|
|
|
|
|
<div class="col-md-4">
|
|
|
|
<div class="col-md-4">
|
|
|
|
<label for="dscdmngId--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">폐기관리번호</label>
|
|
|
|
<label for="dscdmngId--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">폐기관리번호</label>
|
|
|
|
<input type="text" class="form-control w-60" id="dscdmngId--${pageName}" name="dscdmngId" data-map="dscdmngId" readonly>
|
|
|
|
<input type="text" class="form-control w-60" id="dscdmngId--${pageName}" name="dscdmngId" data-map="dscdmngId" readonly>
|
|
|
@ -121,6 +121,7 @@
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script src="<c:url value="/webjars/applib/js/cmmnDateUtil.js?${ver}"/>"></script>
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* Global Variable
|
|
|
|
* Global Variable
|
|
|
@ -154,8 +155,7 @@
|
|
|
|
, appendData: true
|
|
|
|
, appendData: true
|
|
|
|
, infoSize: "xl"
|
|
|
|
, infoSize: "xl"
|
|
|
|
, formats: {
|
|
|
|
, formats: {
|
|
|
|
rptDe: dateFormat
|
|
|
|
hdrDe: dateFormat
|
|
|
|
, hdrDe: dateFormat
|
|
|
|
|
|
|
|
, dsuseDe: dateFormat
|
|
|
|
, dsuseDe: dateFormat
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -226,7 +226,6 @@
|
|
|
|
prgrsSttsCd: "06",
|
|
|
|
prgrsSttsCd: "06",
|
|
|
|
userId: "${currentUser.account}"
|
|
|
|
userId: "${currentUser.account}"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
let create = (info.dscdmngId == "");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//파일정보 변경 여부 체크
|
|
|
|
//파일정보 변경 여부 체크
|
|
|
|
let fileChangeYn = "N";
|
|
|
|
let fileChangeYn = "N";
|
|
|
@ -300,15 +299,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
//
|
|
|
|
let replacer = (str, dataItem) => str;
|
|
|
|
let replacer = (str, dataItem) => str;
|
|
|
|
// .replace(/{onclick}/gi, "pageObject['${pageName}'].control.setCurrent('" + dataItem.getValue("USR_RPT_ID_NO") + "');")
|
|
|
|
|
|
|
|
// .replace(/{ondblclick}/gi, "pageObject['${pageName}'].getTotalInfo('" + dataItem.getValue("USR_RPT_ID_NO") + "');");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let trs = empty ? [document.getElementById("${infoPrefix}NotFound--${pageName}").content.outerHTML]
|
|
|
|
let trs = empty ? [document.getElementById("${infoPrefix}NotFound--${pageName}").content.outerHTML]
|
|
|
|
: ${infoPrefix}List.inStrings(foundTr.outerHTML, replacer);
|
|
|
|
: ${infoPrefix}List.inStrings(foundTr.outerHTML, replacer);
|
|
|
|
|
|
|
|
|
|
|
|
let noMore = (totalSize == ${infoPrefix}List.length);
|
|
|
|
|
|
|
|
let initScroll = ($P.control.query.pageNum < 2) && ($P.control.untilPageNum == 0);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#table-responsive--${pageName}")[0].changeContent(trs.join(), true, true);
|
|
|
|
$("#table-responsive--${pageName}")[0].changeContent(trs.join(), true, true);
|
|
|
|
|
|
|
|
|
|
|
|
if ($P.control.untilPageNum != 0) {
|
|
|
|
if ($P.control.untilPageNum != 0) {
|
|
|
@ -453,12 +447,6 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console.log("#${usrRptIdNo}");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// input, select 초기화
|
|
|
|
// input, select 초기화
|
|
|
|
let searchForm = $("#frmSearch--${pageName}");
|
|
|
|
let searchForm = $("#frmSearch--${pageName}");
|
|
|
|
searchForm.find("input[type='checkbox']").prop("checked", false);
|
|
|
|
searchForm.find("input[type='checkbox']").prop("checked", false);
|
|
|
@ -466,10 +454,10 @@
|
|
|
|
searchForm.find("input[type='hidden']").val("");
|
|
|
|
searchForm.find("input[type='hidden']").val("");
|
|
|
|
searchForm.find("select").each(function() { $(this).find("option:eq(0)").prop("selected", true); });
|
|
|
|
searchForm.find("select").each(function() { $(this).find("option:eq(0)").prop("selected", true); });
|
|
|
|
|
|
|
|
|
|
|
|
// 기본 데이터 설정
|
|
|
|
|
|
|
|
initDatepicker("frmEdit--${pageName}"); // 달력 초기화
|
|
|
|
initDatepicker("frmEdit--${pageName}"); // 달력 초기화
|
|
|
|
$("#schDateFrom--${pageName}").datepicker("setDate", DateUtil.getDateDay(-7).date); // 부과 제외 일자 시작
|
|
|
|
$("#hdrDe--${pageName}").datepicker("setDate", DateUtil.getDateDay(-7).date); // 부과 제외 일자 시작
|
|
|
|
$("#schDateTo--${pageName}").datepicker("setDate", new Date()); // 부과 제외 일자 종료
|
|
|
|
$("#dsuseDe--${pageName}").datepicker("setDate", new Date()); // 부과 제외 일자 종료
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -489,7 +477,13 @@
|
|
|
|
if($P.fileInfos.length > 0){
|
|
|
|
if($P.fileInfos.length > 0){
|
|
|
|
|
|
|
|
|
|
|
|
let promiseArr = [];
|
|
|
|
let promiseArr = [];
|
|
|
|
$P.fileInfos.forEach(f => promiseArr.push(fnCreateFileFromFileInfo(f)));
|
|
|
|
// URL에 c: d: 제거
|
|
|
|
|
|
|
|
$P.fileInfos.forEach(f => {
|
|
|
|
|
|
|
|
// FIXME: URL에 c: d: 제거 ???
|
|
|
|
|
|
|
|
f.URL = f.URL.replace(/c:/g, "");
|
|
|
|
|
|
|
|
f.URL = f.URL.replace(/d:/g, "");
|
|
|
|
|
|
|
|
promiseArr.push(fnCreateFileFromFileInfo(f));
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
Promise.all(promiseArr).then((values) => {
|
|
|
|
Promise.all(promiseArr).then((values) => {
|
|
|
|
$P.fileArr = $P.fileArr.concat(values);
|
|
|
|
$P.fileArr = $P.fileArr.concat(values);
|
|
|
|