|
|
@ -132,9 +132,6 @@
|
|
|
|
<div class="card col-6">
|
|
|
|
<div class="card col-6">
|
|
|
|
<label class="form-label fw-bold form-search-title" for="Rslt--${pageName}">결과 정보</label>
|
|
|
|
<label class="form-label fw-bold form-search-title" for="Rslt--${pageName}">결과 정보</label>
|
|
|
|
<input type="hidden" id="setUsrRptIdNo--${pageName}" name="setUsrRptIdNo" />
|
|
|
|
<input type="hidden" id="setUsrRptIdNo--${pageName}" name="setUsrRptIdNo" />
|
|
|
|
<!-- <input type="hidden" id="setOrgUsrRptIdNo--${pageName}" name="setOrgUsrRptIdNo" />
|
|
|
|
|
|
|
|
<input type="hidden" id="setRptTyCd--${pageName}" name="setRptTyCd" />
|
|
|
|
|
|
|
|
<input type="hidden" id="setStatus--${pageName}" name="setStatus" /> -->
|
|
|
|
|
|
|
|
<div class="card-datatable text-nowrap">
|
|
|
|
<div class="card-datatable text-nowrap">
|
|
|
|
<div class="dataTables_wrapper dt-bootstrap5 no-footer" id="DataTables_Table_1_wrapper--${pageName}">
|
|
|
|
<div class="dataTables_wrapper dt-bootstrap5 no-footer" id="DataTables_Table_1_wrapper--${pageName}">
|
|
|
|
<div class="table-responsive ox-scroll oy-scroll h-px-250" id="table-responsive-1--${pageName}">
|
|
|
|
<div class="table-responsive ox-scroll oy-scroll h-px-250" id="table-responsive-1--${pageName}">
|
|
|
@ -398,6 +395,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
// 저장
|
|
|
|
// 저장
|
|
|
|
$P.control.save = () => {
|
|
|
|
$P.control.save = () => {
|
|
|
|
|
|
|
|
// FIXME: 확인
|
|
|
|
|
|
|
|
alert("저장 row : "+JSON.stringify($P.mappingControl.dataset.getCurrent()));
|
|
|
|
|
|
|
|
// if(!$P.mappingControl.dataset.getCurrent().usrRptIdNo){
|
|
|
|
|
|
|
|
// dialog.alert("선택된 NIMS 폐기 보고 데이타가 없습니다");
|
|
|
|
|
|
|
|
// return false;
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ajax.post({
|
|
|
|
ajax.post({
|
|
|
|
url: '<c:url value="${apiHost}/api/biz/nims/v1/modifyMappingDsuseMgt"/>'
|
|
|
|
url: '<c:url value="${apiHost}/api/biz/nims/v1/modifyMappingDsuseMgt"/>'
|
|
|
|
, data: JSON.stringify({
|
|
|
|
, data: JSON.stringify({
|
|
|
@ -408,7 +413,6 @@
|
|
|
|
rptTyCd: $P.mappingControl.dataset.getCurrent().rptTyCd,
|
|
|
|
rptTyCd: $P.mappingControl.dataset.getCurrent().rptTyCd,
|
|
|
|
stts: $P.mappingControl.dataset.getCurrent().status,
|
|
|
|
stts: $P.mappingControl.dataset.getCurrent().status,
|
|
|
|
userId: "${currentUser.account}"
|
|
|
|
userId: "${currentUser.account}"
|
|
|
|
// rgtr: "${currentUser.account}",
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
, contentType : "application/json; charset=utf-8"
|
|
|
|
, contentType : "application/json; charset=utf-8"
|
|
|
|
, success: resp => {
|
|
|
|
, success: resp => {
|
|
|
@ -472,30 +476,30 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.renderMappingDtlList = () => {
|
|
|
|
$P.renderMappingDtlList = () => {
|
|
|
|
let ${infoPrefix}MappingDtlList = $P.mappingDtlControl.dataset;
|
|
|
|
let ${infoPrefix}MappingDtlList = $P.mappingDtlControl.dataset;
|
|
|
|
let empty = ${infoPrefix}MappingDtlList.empty;
|
|
|
|
let empty = ${infoPrefix}MappingDtlList.empty;
|
|
|
|
|
|
|
|
|
|
|
|
let trs = empty ?
|
|
|
|
let trs = empty ?
|
|
|
|
[document.getElementById("${infoPrefix}NotFound--${pageName}MappingDtl").innerHTML] : <%-- from template#${infoPrefix}NotFound --%>
|
|
|
|
[document.getElementById("${infoPrefix}NotFound--${pageName}MappingDtl").innerHTML] : <%-- from template#${infoPrefix}NotFound --%>
|
|
|
|
${infoPrefix}MappingDtlList.inStrings(
|
|
|
|
${infoPrefix}MappingDtlList.inStrings(
|
|
|
|
document.getElementById("${infoPrefix}Row--${pageName}MappingDtl").innerHTML, <%-- from template#${infoPrefix}Row --%>
|
|
|
|
document.getElementById("${infoPrefix}Row--${pageName}MappingDtl").innerHTML, <%-- from template#${infoPrefix}Row --%>
|
|
|
|
(str, dataItem) => str
|
|
|
|
(str, dataItem) => str
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].mappingDtlControl.setCurrent('" + dataItem.getValue("usrRptIdNo") + "');")
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].mappingDtlControl.setCurrent('" + dataItem.getValue("usrRptIdNo") + "');")
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
$("#tbody--${pageName}MappingDtl").html(trs.join());
|
|
|
|
$("#tbody--${pageName}MappingDtl").html(trs.join());
|
|
|
|
|
|
|
|
|
|
|
|
$("#tbody--${pageName}MappingDtl").find("tr").each(function(){
|
|
|
|
$("#tbody--${pageName}MappingDtl").find("tr").each(function(){
|
|
|
|
|
|
|
|
|
|
|
|
col0 = $(this).find("td").eq(0).find("input");
|
|
|
|
col0 = $(this).find("td").eq(0).find("input");
|
|
|
|
col0val = $(this).find("td").eq(0).find("input").val();
|
|
|
|
col0val = $(this).find("td").eq(0).find("input").val();
|
|
|
|
|
|
|
|
|
|
|
|
if(col0val != "" && col0val != null){
|
|
|
|
if(col0val != "" && col0val != null){
|
|
|
|
col0.prop("checked",true);
|
|
|
|
col0.prop("checked",true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* 사용자 함수(function)
|
|
|
|
* 사용자 함수(function)
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
@ -512,8 +516,15 @@
|
|
|
|
// 저장
|
|
|
|
// 저장
|
|
|
|
$P.fnSave = () => {
|
|
|
|
$P.fnSave = () => {
|
|
|
|
let checkData = $("#setUsrRptIdNo--${pageName}").val();
|
|
|
|
let checkData = $("#setUsrRptIdNo--${pageName}").val();
|
|
|
|
$P.mappingControl.setCurrent(checkData);
|
|
|
|
// FIXME: 확인
|
|
|
|
|
|
|
|
alert('checkData : ' + checkData);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//$P.mappingControl.setCurrent(checkData);
|
|
|
|
const row = $P.mappingControl.getCurrent();
|
|
|
|
const row = $P.mappingControl.getCurrent();
|
|
|
|
|
|
|
|
// FIXME: 확인
|
|
|
|
|
|
|
|
alert('row data : ' + JSON.stringify(row));
|
|
|
|
|
|
|
|
|
|
|
|
dialog.alert({
|
|
|
|
dialog.alert({
|
|
|
|
content: "현재 선택에 체크 된 폐기 보고 확인 정보를 저장하시겠습니까?"
|
|
|
|
content: "현재 선택에 체크 된 폐기 보고 확인 정보를 저장하시겠습니까?"
|
|
|
|
, init: () => { setDialogZindex(); }
|
|
|
|
, init: () => { setDialogZindex(); }
|
|
|
@ -557,9 +568,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
// NIMS 보고 완료 확인인 경우 저장 버튼 숨김
|
|
|
|
// NIMS 보고 완료 확인인 경우 저장 버튼 숨김
|
|
|
|
if($P.control.getCurrent().prgrsSttsCd == "99"){
|
|
|
|
if($P.control.getCurrent().prgrsSttsCd == "99"){
|
|
|
|
$("#btnSave--${pageName}").hide();
|
|
|
|
$("#btnSave--${pageName}").prop("disabled", true);
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
$("#btnSave--${pageName}").show();
|
|
|
|
$("#btnSave--${pageName}").prop("disabled", false);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|