|
|
|
@ -7,8 +7,6 @@
|
|
|
|
|
<div class="content-pop" data-doctx="${pageName}">
|
|
|
|
|
<!-- Content -->
|
|
|
|
|
<div class="container-xxl flex-grow-1 px-0">
|
|
|
|
|
|
|
|
|
|
<!-- Page Body -->
|
|
|
|
|
<div class="card">
|
|
|
|
|
<!-- 입력 영역 -->
|
|
|
|
|
<form name="frmEdit">
|
|
|
|
@ -18,135 +16,87 @@
|
|
|
|
|
<input type="hidden" name="crdnId" data-map="CRDN_ID" />
|
|
|
|
|
|
|
|
|
|
<div class="row g-1">
|
|
|
|
|
<!-- 단속 처리 상태 코드 -->
|
|
|
|
|
<div class="col-md-12">
|
|
|
|
|
<label is="name-label" for="crdnSttsCd" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end required">처리상태</label>
|
|
|
|
|
<select is="id-select" name="crdnSttsCd" class="form-select" data-map="CRDN_STTS_CD" required>
|
|
|
|
|
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end required" for="crdnSttsCd" >처리상태</label>
|
|
|
|
|
<select is="id-select" class="form-select" name="crdnSttsCd" data-map="CRDN_STTS_CD" required>
|
|
|
|
|
<option value="">선택하세요</option>
|
|
|
|
|
<c:forEach items="${FIM010List}" var="item">
|
|
|
|
|
<option value="${item.code}">${item.value}</option>
|
|
|
|
|
</c:forEach>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 기타 내용 --> <!-- DB에 등록할 때 문구가 추가로 붙기 때문에 data-maxlengthb="940" 으로 지정 -->
|
|
|
|
|
<!-- DB에 등록할 때 문구가 추가로 붙기 때문에 data-maxlengthb="940" 으로 지정 -->
|
|
|
|
|
<div class="col-md-12">
|
|
|
|
|
<label is="name-label" for="etcCn" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">기타내용</label>
|
|
|
|
|
<input type="text" is="id-input" name="etcCn" class="form-control w-85" data-maxlengthb="940" />
|
|
|
|
|
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="etcCn">기타내용</label>
|
|
|
|
|
<input is="id-input" type="text" class="form-control w-85" name="etcCn" data-maxlengthb="940" />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
<!-- 입력 영역 -->
|
|
|
|
|
</div> <!-- <div class="card"> -->
|
|
|
|
|
|
|
|
|
|
<!-- 업무 버튼 및 건수 표시 -->
|
|
|
|
|
<div>
|
|
|
|
|
<span class="container-page-btn">
|
|
|
|
|
<!-- 업무 버튼 -->
|
|
|
|
|
<span class="container-window-btn-right">
|
|
|
|
|
<button type="button" name="btnSave" class="btn btn-primary w-px-80" title="저장">
|
|
|
|
|
<button type="button" class="btn btn-primary w-px-120" name="btnSave" title="저장">
|
|
|
|
|
저장
|
|
|
|
|
</button>
|
|
|
|
|
</span>
|
|
|
|
|
</span>
|
|
|
|
|
</div> <!-- 업무 버튼 및 건수 표시 -->
|
|
|
|
|
</div> <!-- <div class="card"> -->
|
|
|
|
|
<!-- Page Body -->
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 업무 버튼 및 건수 표시 -->
|
|
|
|
|
</div> <!-- <div class="container flex-grow-1 px-0"> -->
|
|
|
|
|
<!-- Content -->
|
|
|
|
|
</div>
|
|
|
|
|
<!-- / inner page html <div class="content-pop"> -->
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
LoadScript("crdn06030Script",wctx.url("/webjars/js/fims/crdn/crdn06030.js?ver=${ver}"));
|
|
|
|
|
LoadScript("crdn06030Script",wctx.url("/webjars/js/fims/crdn/crdn06030.js?ver=${ver}"));
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* Global Variable
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
pageObject["${pageName}"] = newDoctxFinder("${pageName}");
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* Global Variable
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
pageObject["${pageName}"] = newDoctxFinder("${pageName}");
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* script 진입
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* script 진입
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
|
// pageObject
|
|
|
|
|
var $P = pageObject["${pageName}"];
|
|
|
|
|
let $P = pageObject["${pageName}"];
|
|
|
|
|
|
|
|
|
|
// URL
|
|
|
|
|
$P.prefixUrl = "${prefixUrl}"
|
|
|
|
|
// infoDialog 호출 용도(view 조회(편집불가), create 등록, update 수정)
|
|
|
|
|
$P.callPurpose = "${callPurpose}";
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* DatasetControl, DatasetSupport, FormFields
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
// FormFields
|
|
|
|
|
$P.formFields = new FimsFormFields($P.selectorn("frmEdit"));
|
|
|
|
|
|
|
|
|
|
var ctrl = newCrdn06030Control($P, { infoPrefix : "${infoPrefix}" });
|
|
|
|
|
|
|
|
|
|
// 저장
|
|
|
|
|
ctrl.save = (info) => {
|
|
|
|
|
if (!info) return;
|
|
|
|
|
|
|
|
|
|
ajax.post({
|
|
|
|
|
url: ctrl.urls.update
|
|
|
|
|
, data: info || {}
|
|
|
|
|
, success: resp => ctrl.onSave(resp)
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 현재 선택 자료 변경 이벤트
|
|
|
|
|
ctrl.onCurrentChange = (item) => {
|
|
|
|
|
if (!item) return;
|
|
|
|
|
|
|
|
|
|
// Dataset 셋팅
|
|
|
|
|
$P.formFields.set(ctrl, item);
|
|
|
|
|
|
|
|
|
|
// 업무구분에 따른 URL 변경
|
|
|
|
|
$P.fnSetURL(item.data.TASK_SE_CD);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 저장 callback
|
|
|
|
|
ctrl.onSave = (resp) => {
|
|
|
|
|
let dialogTitle = $("#" + $P.selfDlgId()).find("h5.modal-title").html();
|
|
|
|
|
let showMessage = resp.rtnMsg.replace(/[S]|[F]/g, dialogTitle);
|
|
|
|
|
|
|
|
|
|
dialog.alert({
|
|
|
|
|
content: showMessage
|
|
|
|
|
, init: function() {
|
|
|
|
|
AppSupport.setDialogZindex();
|
|
|
|
|
AppSupport.focusClose();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
if (resp.saved) {
|
|
|
|
|
dialog.close($P.selfDlgId());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// datasetControl
|
|
|
|
|
$P.ctrl = newCrdn06030Control("${pageName}", "[data-doctx=${pageName}]");
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* 사용자 함수(function)
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
// 업무구분에 따른 URL 설정
|
|
|
|
|
$P.fnSetURL = (taskSeCd) => {
|
|
|
|
|
ctrl.urls.update = wctx.url("/" + taskSeCd + "${infoPrefixUrl}" + "/030/update.do"); // 수정
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* 버튼 clickEvent
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
// 저장 버튼 클릭 이벤트
|
|
|
|
|
$P.fnSave = (title) => {
|
|
|
|
|
$P.fnSave = () => {
|
|
|
|
|
// validate 확인
|
|
|
|
|
if (!AppSupport.customValidate($P.$findn("frmEdit").find("input, select, textarea"))) return;
|
|
|
|
|
|
|
|
|
|
// formFields
|
|
|
|
|
let params = new FimsFormFields($P.selectorn("frmEdit")).get();
|
|
|
|
|
|
|
|
|
|
dialog.alert({
|
|
|
|
|
content: "현재 " + ctrl.prefixName + " 정보를 저장하시겠습니까?"
|
|
|
|
|
, init: function() {
|
|
|
|
|
content: "현재 " + $P.ctrl.prefixName + " 정보를 저장하시겠습니까?"
|
|
|
|
|
, init: () => {
|
|
|
|
|
AppSupport.setDialogZindex();
|
|
|
|
|
AppSupport.focusOK();
|
|
|
|
|
}
|
|
|
|
|
, onOK: () => {
|
|
|
|
|
ctrl.save($P.formFields.get()); // formFields
|
|
|
|
|
}
|
|
|
|
|
, onOK: () => { $P.ctrl.save(params); } // formFields
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -160,8 +110,9 @@ $(document).ready(function() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 초기 화면 설정
|
|
|
|
|
$P.initForm = () => {
|
|
|
|
|
//
|
|
|
|
|
$P.fnReset = () => {
|
|
|
|
|
// 초기화
|
|
|
|
|
$P.findn("frmEdit").reset(); // 화면 초기화
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
@ -171,10 +122,10 @@ $(document).ready(function() {
|
|
|
|
|
$P.setEvent();
|
|
|
|
|
|
|
|
|
|
// 2. 초기 화면 설정
|
|
|
|
|
$P.initForm();
|
|
|
|
|
$P.fnReset();
|
|
|
|
|
|
|
|
|
|
// 3. Dataset 설정
|
|
|
|
|
ctrl.setData([${crdnSttsCdInfo}]);
|
|
|
|
|
});
|
|
|
|
|
$P.ctrl.setData([${info}]);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|