임대차계약서 등록 수정.

main
jjh 2 months ago
parent 8c33020018
commit 2d76cdf06d

@ -122,8 +122,20 @@
</li>
<li class="nav-item">
<button type="button" class="nav-link w-px-160 h-100" role="tab" data-bs-toggle="tab" name="tabItem2"
onClick="pageObject['${pageName}'].fnSearchList('등록');">
등록
onClick="pageObject['${pageName}'].fnSearchList('계약서등록');">
계약서등록
</button>
</li>
<li class="nav-item">
<button type="button" class="nav-link w-px-160 h-100" role="tab" data-bs-toggle="tab" name="tabItem2"
onClick="pageObject['${pageName}'].fnSearchList('승인요청');">
승인요청
</button>
</li>
<li class="nav-item">
<button type="button" class="nav-link w-px-160 h-100" role="tab" data-bs-toggle="tab" name="tabItem2"
onClick="pageObject['${pageName}'].fnSearchList('승인완료');">
승인완료
</button>
</li>
</ul>
@ -144,6 +156,8 @@
<th class="cmn" style="width: 56px;"><input type="checkbox" class="form-check-input" name="gridAllCheckbox" onchange="pageObject['${pageName}'].dataTableCheckbox(this, this.checked);" /></th>
<th class="cmn" style="width: 160px;">업무구분</th>
<th class="cmn" style="width: 100px;">대상여부</th>
<th class="cmn" style="width: 180px;" onclick="FimsSupport.searchFromGridTitle('CHG_DMND_DT', this.innerText, 'ymd', '');">요청일시</th>
<th class="cmn" style="width: 180px;" onclick="FimsSupport.searchFromGridTitle('CHG_APRV_DT', this.innerText, 'ymd', '');">승인일시</th>
<th class="cmn" style="width: 180px;" onclick="FimsSupport.searchFromGridTitle('CRDN_YMD', this.innerText, 'ymd', '');">단속일시</th>
<th class="cmn" style="width: 160px;" onclick="FimsSupport.searchFromGridTitle('VHRNO', this.innerText, 'match', 'part');">자동차등록번호</th>
<th class="cmn" style="width: 120px;" onclick="FimsSupport.searchFromGridTitle('RTPYR_SE_CD', this.innerText, 'codeValue', 'FIM011');">납부자구분</th>
@ -168,7 +182,9 @@
<td class="cmn text-center" onclick ondblclick>{ROW_NUM}</td>
<td class="cmn text-center"><input type="checkbox" class="form-check-input" name="gridCheckbox" value="{data-index}" onchange="pageObject['${pageName}'].dataTableCheckbox(this, this.checked);" /></td>
<td class="cmn text-center" onclick ondblclick>{TASK_SE_NM}</td>
<td class="cmn text-center fw-bold text-blue" onclick ondblclick>{TRGT_YN}</td>
<td class="cmn text-center fw-bold text-blue" onclick ondblclick>{TRGT_NM}</td>
<td class="cmn text-center" onclick ondblclick>{CHG_DMND_DT}</td>
<td class="cmn text-center" onclick ondblclick>{CHG_APRV_DT}</td>
<td class="cmn text-center" onclick ondblclick>{CRDN_YMD_TM}</td>
<td class="cmn text-start" onclick ondblclick>{VHRNO}</td>
<td class="cmn text-center" onclick ondblclick>{RTPYR_SE_NM}</td>
@ -191,7 +207,7 @@
</template>
<template name="tmpltNotFound">
<tr class="cmn">
<td valign="top" colspan="17" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
<td valign="top" colspan="21" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
</tr>
</template>
</table>
@ -389,11 +405,16 @@
$P.ctrl.query.fetchSize = DEFAULT_FETCH_SIZE; // 한번에 조회되는 자료 건수
$P.ctrl.query.delYn = "N"; // 삭제 여부
if (tabName == "대상") {
$P.ctrl.query.regTrgtYn = "Y";
} else if (tabName == "등록") {
$P.ctrl.query.regTrgtYn = "N";
if (tabName == "계약서등록") {
$P.ctrl.query.chgDmndYn = "N"; // 변경 요청 여부 N
$P.ctrl.query.chgAprvYn = "N"; // 변경 승인 여부 N
} else if (tabName == "승인요청") {
$P.ctrl.query.chgDmndYn = "Y"; // 변경 요청 여부 Y
$P.ctrl.query.chgAprvYn = "N"; // 변경 승인 여부 N
} else if (tabName == "승인완료") {
$P.ctrl.query.chgAprvYn = "Y"; // 변경 승인 여부 Y
}
$P.ctrl.query.regSttsNm = tabName;
// 임대기업번호가 전체라면..
if ($P.ctrl.query.schEntNo == "" ) {
@ -440,6 +461,7 @@
$P.fnCreate = () => {
let params = {
callPurpose: "create"
, crdnId: $P.ctrl.getValue("CRDN_ID")
, entId: $P.ctrl.getValue("ENT_ID")
, schVhrno: $P.ctrl.getValue("VHRNO")
, schCtrtYmd: $P.ctrl.getValue("CRDN_YMD")

@ -27,7 +27,8 @@
<!-- 검색 조건 영역 -->
<form name="frmSearch">
<!-- hidden -->
<input type="hidden" name="entId" />
<input type="hidden" name="crdnId" data-map="CRDN_ID" />
<input type="hidden" name="entId" data-map="ENT_ID" />
<!-- 메인 조건 -->
<div class="container-search">
@ -186,7 +187,6 @@
GRID.checkbox.sync(element, bool);
let atLeastOne = GRID.checkbox.countChecked(element) > 0;
$P.$findn("btnOK").prop("disabled", !atLeastOne);
$P.$findn("btnRemove").prop("disabled", !atLeastOne);
Apply.toDataset.selection($P.ctrl.dataset, element, bool);
@ -222,7 +222,7 @@
// URL 설정
$P.setUrl = (prefixUrl) => {
$P.ctrl.urls.load = wctx.url(prefixUrl + "/030/list.do"); // 검색
$P.ctrl.urls.create = wctx.url(prefixUrl + "/030/createReg.do") // 등록
$P.ctrl.urls.create = wctx.url(prefixUrl + "/030/createCtrt.do") // 등록
$P.ctrl.urls.remove = wctx.url(prefixUrl + "/030/removeHirer.do") // 삭제
$P.ctrl.urls.getInfo = wctx.url(prefixUrl + "/040/info.do"); // 상세 정보
}
@ -250,6 +250,7 @@
AppSupport.initDatepicker($P.findn("frmSearch")); // 달력 초기화
// 기본 데이터 설정
$P.$findn("crdnId").val("${crdnId}"); // 단속 ID
$P.$findn("entId").val("${entId}"); // 기업 ID
let ctrtYmd = "${schCtrtYmd}";
@ -303,25 +304,19 @@
// 확인
$P.fnOK = () => {
let selected = $P.ctrl.getDataset("selected");
if (selected.length < 1) {
dialog.alert({
content: "선택하신 " + $P.ctrl.prefixName + " 정보가 없습니다."
, onOK: () => { }
});
return;
}
// 임차인 ID
let hirerId = $P.ctrl.getValue("HIRER_ID")
// 임차인 ID 가 없다면.. return
if (!hirerId) return;
dialog.alert({
content: "현재 임대계약 정보를 저장하시겠습니까?"
content: "현재 임대계약 정보를 저장하시겠습니까?"
, onOK: () => {
let params = {
callPurpose: "create"
, crdnId: $P.ctrl.getValue("CRDN_ID")
, levyId: $P.ctrl.getValue("LEVY_ID")
, entId: $P.ctrl.getValue("ENT_ID")
, hirerId: $P.ctrl.getValue("HIRER_ID")
, crdnId: $P.$findn("crdnId").val() // 단속 ID
, entId: $P.$findn("entId").val() // 기업 ID
, hirerId: $P.ctrl.getValue("HIRER_ID") // 임차인 ID
}
$P.ctrl.save(params);

@ -280,14 +280,6 @@
}
, success: (resp) => { }
});
/*
// 파일만 삭제 할 때 사용
ajax.post({
url: "file/remove.do"
, data: { fileIDs: fileId }
, success: (resp) => { }
});
*/
} else {
let filtered = $P.fileListArr.filter((value, index, arr) => {
return (value.name != fileName);

@ -15,7 +15,9 @@ function newRent02010Control(pageName, doctx="[data-doctx='rent02010']") {
, remove: "/remove.do"
}
, formats: {
CRDN_YMD_TM: datetimeFormat
CHG_DMND_DT: datetimeFormat
, CHG_APRV_DT: datetimeFormat
, CRDN_YMD_TM: datetimeFormat
, FFNLG_CRDN_AMT: numberFormat
, REG_DT: datetimeFormat
, MDFCN_DT: datetimeFormat

@ -77,7 +77,6 @@ function newRent02030Control(pageName, doctx="[data-doctx='rent02030']") {
// gridCheckbox
Apply.fromDataset.gridCheckbox(ctrl.dataset, ctrl.find("[name='tbodyList']"), 1, selectedArr);
// gridButton
Apply.fromDataset.gridButton(ctrl.dataset, ctrl.find("[name='btnOK']"), selectedArr); // 선택 확인 버튼
Apply.fromDataset.gridButton(ctrl.dataset, ctrl.find("[name='btnRemove']"), selectedArr); // 삭제 버튼
};
@ -111,7 +110,7 @@ function newRent02030Control(pageName, doctx="[data-doctx='rent02030']") {
// 저장 callback
ctrl.onSave = (params, resp) => {
let showMessage = resp.rtnMsg.replace(/[S]|[F]/g, ctrl.prefixName);
let showMessage = resp.rtnMsg.replace(/[S]|[F]/g, "임대차계약");
// 메시지 출력
dialog.alert({

Loading…
Cancel
Save