fix : controller반환값 수정

dev
이범준 5 months ago
parent f6c9cb8b02
commit 7e48ad3ca5

@ -71,7 +71,7 @@ public class AddsNimsController extends AbstractController {
.addObject("pageName", "dsuseMgtRsltInfo") // View(jsp)에서 사용할 id 뒤에 붙일 suffix
.addObject("infoPrefix", "dsuseMgtRsltInfo") // prefix
.addObject("infoPrefixUrl", "/adds/nims") // prefixUrl
.addObject("bsshInfo", dsuseReceiptInfo) // View(jsp)에서 사용할 id 뒤에 붙일 suffix
.addObject("bsshInfo", toJson(dsuseReceiptInfo)) // View(jsp)에서 사용할 id 뒤에 붙일 suffix
.addObject("apiHost", apiHost);
}
//-------------------------------------------------------------------------------------------------

@ -13,6 +13,8 @@
<!-- 입력 영역 -->
<form id="frmEdit--${pageName}" name="frmEdit">
<!-- hidden -->
<input type="hidden" name="dscdmngId" data-map="dscdmngId" />
<label for="bssh--${pageName}">업체 정보</label>
<div class="row my-1 mx-4 g-1 border-card rounded-3">
<div class="col-md-4">
@ -21,15 +23,15 @@
</div>
<div class="col-md-4">
<label for="bsshCd--${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="bsshNm--${pageName}" name="bsshCd" data-map="bsshCd" readonly>
<input type="text" class="form-control w-60" id="bsshCd--${pageName}" name="bsshCd" data-map="bsshCd" readonly>
</div>
<div class="col-md-4">
<label for="rprsntvNm--${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="rindutyNm--${pageName}" name="rindutyNm" data-map="rindutyNm" readonly>
<label for="indutyNm--${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="indutyNm--${pageName}" name="indutyNm" data-map="indutyNm" readonly>
</div>
<div class="col-md-4">
<label for="prmisnNo--${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="dsusePrvCd--${pageName}" name="dsusePrvCd" data-map="dsusePrvCd" readonly>
<label for="dsusePrvNm--${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="dsusePrvNm--${pageName}" name="dsusePrvNm" data-map="dsusePrvNm" readonly>
</div>
<div class="col-md-4">
<label for="rndDtlRptCnt--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">보고건수</label>
@ -142,9 +144,6 @@
// FormFields
$P.formFields = new AddsFormFields("#frmEdit--${pageName}");
debugger;
console.log(${bsshInfo})
/**************************************************************************
* DatasetControl
**************************************************************************/
@ -176,17 +175,7 @@
// Dataset 변경 이벤트
$P.control.onDatasetChange = (obj) => {
$P.renderList(obj.${infoPrefix}Total);
$("#paging--${pageName}").setPaging({
list: $P.control.dataset
, prefix: "paging--${pageName}"
, start: obj.dsuseMgtStart
, totalSize: obj.dsuseMgtTotal
, fetchSize: obj.dsuseMgtFetch
, func: "pageObject['${pageName}'].control.load({index})"
});
$P.control.tableRenderComplete = true; // dataTables 에 자료 추가 완료
};
// 현재 선택 자료 변경 이벤트
@ -483,7 +472,7 @@
$P.initForm();
// 3. Dataset 설정
//$P.control.setData([${opnnDlbrMbrInfo}]);
$P.control.setData([${bsshInfo}]);
});
</script>

Loading…
Cancel
Save