임대차계약서 등록 수정.

main
jjh 2 months ago
parent 8c33020018
commit 2d76cdf06d

@ -122,8 +122,20 @@
</li> </li>
<li class="nav-item"> <li class="nav-item">
<button type="button" class="nav-link w-px-160 h-100" role="tab" data-bs-toggle="tab" name="tabItem2" <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> </button>
</li> </li>
</ul> </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: 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: 160px;">업무구분</th>
<th class="cmn" style="width: 100px;">대상여부</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: 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: 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> <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" 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"><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" 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-center" onclick ondblclick>{CRDN_YMD_TM}</td>
<td class="cmn text-start" onclick ondblclick>{VHRNO}</td> <td class="cmn text-start" onclick ondblclick>{VHRNO}</td>
<td class="cmn text-center" onclick ondblclick>{RTPYR_SE_NM}</td> <td class="cmn text-center" onclick ondblclick>{RTPYR_SE_NM}</td>
@ -191,7 +207,7 @@
</template> </template>
<template name="tmpltNotFound"> <template name="tmpltNotFound">
<tr class="cmn"> <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> </tr>
</template> </template>
</table> </table>
@ -389,11 +405,16 @@
$P.ctrl.query.fetchSize = DEFAULT_FETCH_SIZE; // 한번에 조회되는 자료 건수 $P.ctrl.query.fetchSize = DEFAULT_FETCH_SIZE; // 한번에 조회되는 자료 건수
$P.ctrl.query.delYn = "N"; // 삭제 여부 $P.ctrl.query.delYn = "N"; // 삭제 여부
if (tabName == "대상") { if (tabName == "계약서등록") {
$P.ctrl.query.regTrgtYn = "Y"; $P.ctrl.query.chgDmndYn = "N"; // 변경 요청 여부 N
} else if (tabName == "등록") { $P.ctrl.query.chgAprvYn = "N"; // 변경 승인 여부 N
$P.ctrl.query.regTrgtYn = "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 == "" ) { if ($P.ctrl.query.schEntNo == "" ) {
@ -440,6 +461,7 @@
$P.fnCreate = () => { $P.fnCreate = () => {
let params = { let params = {
callPurpose: "create" callPurpose: "create"
, crdnId: $P.ctrl.getValue("CRDN_ID")
, entId: $P.ctrl.getValue("ENT_ID") , entId: $P.ctrl.getValue("ENT_ID")
, schVhrno: $P.ctrl.getValue("VHRNO") , schVhrno: $P.ctrl.getValue("VHRNO")
, schCtrtYmd: $P.ctrl.getValue("CRDN_YMD") , schCtrtYmd: $P.ctrl.getValue("CRDN_YMD")

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

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

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

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

Loading…
Cancel
Save