의견제출 처리 결과 추가.

main
jjh 1 year ago
parent 52c5027288
commit f0446fb048

@ -73,7 +73,7 @@ public class Excl02Controller extends ApplicationController {
/** ID . /** ID .
* @param opnnId ID * @param opnnId ID
* @return fims/excl/excl02010-main jsonView * @return fims/excl/excl02020-info jsonView
* <pre>{ * <pre>{
* "opnnSbmsnInfo": * "opnnSbmsnInfo":
* }</pre> * }</pre>
@ -87,7 +87,7 @@ public class Excl02Controller extends ApplicationController {
ModelAndView mav = new ModelAndView(json ? "jsonView" : "fims/excl/excl02020-info"); ModelAndView mav = new ModelAndView(json ? "jsonView" : "fims/excl/excl02020-info");
// View(jsp)에서 사용할 공통코드를 조회 // View(jsp)에서 사용할 공통코드를 조회
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM029", "FIM030", "FIM031", "FIM032", "FIM033", "FIM054"); Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM029", "FIM030", "FIM032", "FIM033", "FIM054");
return mav return mav
.addObject("pageName", "excl02020") .addObject("pageName", "excl02020")
@ -162,4 +162,31 @@ public class Excl02Controller extends ApplicationController {
.addObject("saved", saved); .addObject("saved", saved);
} }
/** ID .
* @param opnnId ID
* @return fims/excl/excl02030-info jsonView
* <pre>{
* "opnnSbmsnSttsInfo":
* }</pre>
*/
@RequestMapping(name = "의견제출 결과 처리 조회", value = "/030/info.do")
public ModelAndView getOpnnSbmsnSttsInfo(Excl02Query req) {
DataObject opnnSbmsnInfo = excl02Service.getOpnnSbmsnInfo(req);
boolean json = jsonResponse();
ModelAndView mav = new ModelAndView(json ? "jsonView" : "fims/excl/excl02030-info");
// View(jsp)에서 사용할 공통코드를 조회
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM030", "FIM031", "FIM033", "FIM054");
return mav
.addObject("pageName", "excl02030")
.addObject("FIM030List", commonCodes.get("FIM030")) // 통보 구분 코드(NTFCTN_SE_CD)
.addObject("FIM031List", commonCodes.get("FIM031")) // 의견 제출 상태 코드(OPNN_SBMSN_STTS_CD)
.addObject("FIM033List", commonCodes.get("FIM033")) // 의견 제출 구분 코드(OPNN_SBMSN_SE_CD)
.addObject("FIM054List", commonCodes.get("FIM054")) // 업무 구분 코드(TASK_SE_CD)
.addObject("opnnSbmsnInfo", json ? opnnSbmsnInfo : toJson(opnnSbmsnInfo))
;
}
} }

@ -13,14 +13,14 @@
<div> <div>
<!-- 상단 버튼 --> <!-- 상단 버튼 -->
<div class="container-page-btn"> <div class="container-page-btn">
<button type="button" class="btn btn-outline-dark" id="btnReset--${pageName}" title="초기화" onclick="fnReset${pageName}();"> <button type="button" class="btn btn-outline-dark" id="btnReset--${pageName}" title="초기화" onclick="fnBtnReset${pageName}();">
초기화 초기화
</button> </button>
<span class="container-window-btn-right"> <span class="container-window-btn-right">
<button type="button" class="btn btn-search" id="btnSearch--${pageName}" title="검색" onclick="fnSearchList${pageName}();"> <button type="button" class="btn btn-search" id="btnSearch--${pageName}" title="검색" onclick="fnBtnSearchList${pageName}();">
검색 검색
</button> </button>
<button type="button" class="btn btn-search" id="btnExcel--${pageName}" title="엑셀" onclick="fnExcel${pageName}();"> <button type="button" class="btn btn-search" id="btnExcel--${pageName}" title="엑셀" onclick="fnBtnExcel${pageName}();">
엑셀 엑셀
</button> </button>
</span> </span>
@ -171,10 +171,10 @@
</div> </div>
<span class="container-window-btn-right"> <span class="container-window-btn-right">
<!-- 업무 버튼 --> <!-- 업무 버튼 -->
<button class="btn btn-primary" id="btnUpdate--${pageName}" title="수정" onclick="fnModify${pageName}();"> <button class="btn btn-primary" id="btnUpdate--${pageName}" title="수정" onclick="fnBtnUpdate${pageName}();">
수정 수정
</button> </button>
<button class="btn btn-primary" id="btnRemove--${pageName}" title="삭제" onclick="fnRemove${pageName}();"> <button class="btn btn-primary" id="btnRemove--${pageName}" title="삭제" onclick="fnBtnRemove${pageName}();">
삭제 삭제
</button> </button>
</span> </span>
@ -453,7 +453,7 @@
// if ((el[0].scrollHeight - el.scrollTop() + 17) == el.outerHeight()) { // if ((el[0].scrollHeight - el.scrollTop() + 17) == el.outerHeight()) {
if ((el[0].scrollHeight - el.scrollTop() + VERTICAL_SCROLL_HEIGHT) <= el.outerHeight()) { if ((el[0].scrollHeight - el.scrollTop() + VERTICAL_SCROLL_HEIGHT) <= el.outerHeight()) {
fnSearchList${pageName}(${pageName}Control.query.pageNum + 1); fnBtnSearchList${pageName}(${pageName}Control.query.pageNum + 1);
} }
}); });
} }
@ -481,7 +481,7 @@
**************************************************************************/ **************************************************************************/
// 업무구분 변경 // 업무구분 변경
function fnResetAndChangeBiz${pageName}(taskSeCd) { function fnResetAndChangeBiz${pageName}(taskSeCd) {
fnReset${pageName}(); fnBtnReset${pageName}();
} }
// 검색 조건 파라미터 가져오기 // 검색 조건 파라미터 가져오기
@ -496,12 +496,12 @@
} }
// 초기화 // 초기화
function fnReset${pageName}() { function fnBtnReset${pageName}() {
initForm${pageName}(); initForm${pageName}();
} }
// 검색 // 검색
function fnSearchList${pageName}(pageNumber) { function fnBtnSearchList${pageName}(pageNumber) {
// pageNumber 값 확인 // pageNumber 값 확인
if (!pageNumber) pageNumber = 1; if (!pageNumber) pageNumber = 1;
@ -511,12 +511,12 @@
} }
// 엑셀 // 엑셀
function fnExcel${pageName}() { function fnBtnExcel${pageName}() {
} }
// 수정 // 수정
function fnModify${pageName}() { function fnBtnUpdate${pageName}() {
let levyExclId = ${pageName}Control.dataset.getValue("LEVY_EXCL_ID"); let levyExclId = ${pageName}Control.dataset.getValue("LEVY_EXCL_ID");
// 부과제외ID 가 없다면.. return // 부과제외ID 가 없다면.. return
@ -532,7 +532,7 @@
} }
// 삭제 // 삭제
function fnRemove${pageName}() { function fnBtnRemove${pageName}() {
dialog.alert({ dialog.alert({
content : "선택한 ${prefixName} 정보를 삭제하시겠습니까?" content : "선택한 ${prefixName} 정보를 삭제하시겠습니까?"
, onOK : () => { , onOK : () => {

@ -174,7 +174,7 @@
let data = formFields.get(); let data = formFields.get();
dialog.alert({ dialog.alert({
content : "현재 부과제외 정보를 저장하시겠습니까?" content : "현재 ${prefixName} 정보를 저장하시겠습니까?"
, onOK : () => { , onOK : () => {
${pageName}Control.save(formFields.get()); ${pageName}Control.save(formFields.get());
} }

@ -13,14 +13,14 @@
<div> <div>
<!-- 상단 버튼 --> <!-- 상단 버튼 -->
<div class="container-page-btn"> <div class="container-page-btn">
<button type="button" class="btn btn-outline-dark" id="btnReset--${pageName}" title="초기화" onclick="fnReset${pageName}();"> <button type="button" class="btn btn-outline-dark" id="btnReset--${pageName}" title="초기화" onclick="fnBtnReset${pageName}();">
초기화 초기화
</button> </button>
<span class="container-window-btn-right"> <span class="container-window-btn-right">
<button type="button" class="btn btn-search" id="btnSearch--${pageName}" title="검색" onclick="fnSearchList${pageName}();"> <button type="button" class="btn btn-search" id="btnSearch--${pageName}" title="검색" onclick="fnBtnSearchList${pageName}();">
검색 검색
</button> </button>
<button type="button" class="btn btn-search" id="btnExcel--${pageName}" title="엑셀" onclick="fnExcel${pageName}();"> <button type="button" class="btn btn-search" id="btnExcel--${pageName}" title="엑셀" onclick="fnBtnExcel${pageName}();">
엑셀 엑셀
</button> </button>
</span> </span>
@ -172,15 +172,18 @@
</div> </div>
<span class="container-window-btn-right"> <span class="container-window-btn-right">
<!-- 업무 버튼 --> <!-- 업무 버튼 -->
<button class="btn btn-primary" id="btnCreate--${pageName}" title="등록" onclick="fnCreate${pageName}();"> <button class="btn btn-primary" id="btnCreate--${pageName}" title="등록" onclick="fnBtnCreate${pageName}();">
등록 등록
</button> </button>
<button class="btn btn-primary" id="btnUpdate--${pageName}" title="수정" onclick="fnModify${pageName}();"> <button class="btn btn-primary" id="btnUpdate--${pageName}" title="수정" onclick="fnBtnUpdate${pageName}();">
수정 수정
</button> </button>
<button class="btn btn-primary" id="btnRemove--${pageName}" title="삭제" onclick="fnRemove${pageName}();"> <button class="btn btn-primary" id="btnRemove--${pageName}" title="삭제" onclick="fnBtnRemove${pageName}();">
삭제 삭제
</button> </button>
<button class="btn btn-primary" id="btnUpdateStatus--${pageName}" title="심의" onclick="fnBtnUpdateStatus${pageName}();">
심의
</button>
</span> </span>
</span> </span>
</div> </div>
@ -353,6 +356,24 @@
$("#btnRemove--${pageName}").prop("disabled", keys.length < 1); $("#btnRemove--${pageName}").prop("disabled", keys.length < 1);
}; };
// 심의 dialog
${pageName}Control.getStatusInfo = (opnnId) => {
ajax.get({
url : wctx.url(prefixUrl + "/030/info.do")
, data : { opnnId : opnnId }
, success : resp => {
resp = resp.replace(/infoPrefix/g, this.prefix)
.replace(/prefixName/g, this.prefixName)
dialog.open({
id : ${pageName}Control.prefixed("dialog")
, title : "의견제출 결과 처리"
, content : resp
, size : "lg"
});
}
});
}
// 개별총정보 dialog // 개별총정보 dialog
${pageName}Control.getTotalInfo = (crdnId) => { ${pageName}Control.getTotalInfo = (crdnId) => {
if (crdnId == undefined || crdnId == "") { if (crdnId == undefined || crdnId == "") {
@ -411,7 +432,7 @@
if (el.scrollTop() == 0) return; if (el.scrollTop() == 0) return;
if ((el[0].scrollHeight - el.scrollTop() + VERTICAL_SCROLL_HEIGHT) <= el.outerHeight()) { if ((el[0].scrollHeight - el.scrollTop() + VERTICAL_SCROLL_HEIGHT) <= el.outerHeight()) {
fnSearchList${pageName}(${pageName}Control.query.pageNum + 1); fnBtnSearchList${pageName}(${pageName}Control.query.pageNum + 1);
} }
}); });
} }
@ -439,7 +460,7 @@
**************************************************************************/ **************************************************************************/
// 업무구분 변경 // 업무구분 변경
function fnResetAndChangeBiz${pageName}(taskSeCd) { function fnResetAndChangeBiz${pageName}(taskSeCd) {
fnReset${pageName}(); fnBtnReset${pageName}();
} }
// 검색 조건 파라미터 가져오기 // 검색 조건 파라미터 가져오기
@ -454,12 +475,12 @@
} }
// 초기화 // 초기화
function fnReset${pageName}() { function fnBtnReset${pageName}() {
initForm${pageName}(); initForm${pageName}();
} }
// 검색 // 검색
function fnSearchList${pageName}(pageNumber) { function fnBtnSearchList${pageName}(pageNumber) {
// pageNumber 값 확인 // pageNumber 값 확인
if (!pageNumber) pageNumber = 1; if (!pageNumber) pageNumber = 1;
@ -469,12 +490,12 @@
} }
// 엑셀 // 엑셀
function fnExcel${pageName}() { function fnBtnExcel${pageName}() {
} }
// 등록 - 테스트 // 등록 - 테스트
function fnCreate${pageName}() { function fnBtnCreate${pageName}() {
let params = { let params = {
crdnId : "00004148020220007304" crdnId : "00004148020220007304"
// crdnId : "20234148020230000071" // crdnId : "20234148020230000071"
@ -484,7 +505,7 @@
} }
// 수정 // 수정
function fnModify${pageName}() { function fnBtnUpdate${pageName}() {
let opnnId = ${pageName}Control.dataset.getValue("OPNN_ID"); let opnnId = ${pageName}Control.dataset.getValue("OPNN_ID");
// 의견제출 ID 가 없다면.. return // 의견제출 ID 가 없다면.. return
@ -500,7 +521,7 @@
} }
// 삭제 // 삭제
function fnRemove${pageName}() { function fnBtnRemove${pageName}() {
dialog.alert({ dialog.alert({
content : "선택한 ${prefixName} 정보를 삭제하시겠습니까?" content : "선택한 ${prefixName} 정보를 삭제하시겠습니까?"
, onOK : () => { , onOK : () => {
@ -509,6 +530,18 @@
}); });
} }
// 심의
function fnBtnUpdateStatus${pageName}() {
let opnnId = ${pageName}Control.dataset.getValue("OPNN_ID");
// 의견제출 ID 가 없다면.. return
if (opnnId == undefined || opnnId == "") {
return;
}
${pageName}Control.getStatusInfo(opnnId);
}
/************************************************************************** /**************************************************************************
* script 진입 * script 진입
**************************************************************************/ **************************************************************************/

@ -68,7 +68,7 @@
<div class="col-md-6"> <div class="col-md-6">
<label for="sttrNm--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end required">성명</label> <label for="sttrNm--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end required">성명</label>
<input type="text" class="form-control w-25" id="sttrNm--${pageName}" name="sttrNm" data-map="STTR_NM" required /> <input type="text" class="form-control w-25" id="sttrNm--${pageName}" name="sttrNm" data-map="STTR_NM" required />
<button type="button" class="btn btn-sm btn-outline-dark" id="btnPayer--${pageName}" title="납부자 정보 적용" onclick="fnPayer${pageName}();"> <button type="button" class="btn btn-sm btn-outline-dark" id="btnPayer--${pageName}" title="납부자 정보 적용" onclick="fnBtnPayer${pageName}();">
납부자 납부자
</button> </button>
</div> </div>
@ -198,10 +198,6 @@
dialog.alert("저장됐습니다."); dialog.alert("저장됐습니다.");
dialog.close(${pageName}Control.prefix + "dialog"); dialog.close(${pageName}Control.prefix + "dialog");
} }
// if (resp.retSaved == "true") {
// dialog.alert(resp.retMessage);
// dialog.close(${pageName}Control.prefix + "dialog");
// }
} }
// 저장 // 저장
@ -262,7 +258,7 @@
* function * function
**************************************************************************/ **************************************************************************/
// 납부자 정보 // 납부자 정보
function fnPayer${pageName}() { function fnBtnPayer${pageName}() {
// 수정이라면 동작하지 않게 한다. // 수정이라면 동작하지 않게 한다.
if (${pageName}Control.getValue("OPNN_ID") != "") { if (${pageName}Control.getValue("OPNN_ID") != "") {
return; return;

@ -0,0 +1,251 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false"%>
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>
<!-- Page Body -->
<div class="card">
<!-- 입력 영역 -->
<form id="frmEdit--${pageName}" name="frmEdit">
<!-- hidden -->
<input type="hidden" id="crdnId--${pageName}" name="crdnId" data-map="CRDN_ID" />
<input type="hidden" id="sggCd--${pageName}" name="sggCd" data-map="SGG_CD" />
<input type="hidden" id="taskSeCd--${pageName}" name="taskSeCd" data-map="TASK_SE_CD" />
<input type="hidden" id="opnnId--${pageName}" name="opnnId" data-map="OPNN_ID" />
<div class="row g-1">
<!-- 접수 번호 -->
<div class="col-md-6">
<label for="rcptNo--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">접수 번호</label>
<input type="text" class="form-control w-45" id="rcptNo--${pageName}" name="rcptNo" data-map="RCPT_NO" readonly />
</div>
<!-- 접수 일자 -->
<div class="col-md-6">
<label for="rcptYmd--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">접수 일자</label>
<input type="text" class="form-control w-30" id="rcptYmd--${pageName}" name="rcptYmd" data-map="RCPT_YMD" readonly />
</div>
<!-- 진술자 이름 -->
<div class="col-md-6">
<label for="sttrNm--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">성명</label>
<input type="text" class="form-control w-45" id="sttrNm--${pageName}" name="sttrNm" data-map="STTR_NM" readonly />
</div>
<!-- 의견 제출 구분 코드 -->
<div class="col-md-6">
<label for="opnnSbmsnSeNm--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">의견제출 구분</label>
<input type="text" class="form-control w-45" id="opnnSbmsnSeNm--${pageName}" name="opnnSbmsnSeNm" data-map="OPNN_SBMSN_SE_NM" readonly />
</div>
<!-- 의견 제출 요지 -->
<div class="col-md-12">
<label for="opnnSbmsnGist--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">의견제출 요지</label>
<input type="text" class="form-control w-80" id="opnnSbmsnGist--${pageName}" name="opnnSbmsnGist" data-map="OPNN_SBMSN_GIST" data-maxlengthb="300" readonly />
</div>
<!-- 담당자 검토 의견 -->
<div class="col-md-12">
<label for="picRvwOpnn--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">검토 의견</label>
<textarea class="form-control w-80" id="picRvwOpnn--${pageName}" name="picRvwOpnn" data-map="PIC_RVW_OPNN" rows="3" data-maxlengthb="1000">
</textarea>
</div>
<!-- 통보 구분 코드 -->
<div class="col-md-6">
<label for="ntfctnSeCd--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end required">통보 구분</label>
<select class="form-select" id="ntfctnSeCd--${pageName}" name="ntfctnSeCd" data-map="NTFCTN_SE_CD" required>
<option value="">선택하세요</option>
<c:forEach items="${FIM030List}" var="item">
<option value="${item.code}">${item.value}</option>
</c:forEach>
</select>
</div>
<!-- 의견 제출 상태 코드 -->
<div class="col-md-6">
<label for="opnnSbmsnSttsCd--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end required">처리 결과</label>
<select class="form-select" id="opnnSbmsnSttsCd--${pageName}" name="opnnSbmsnSttsCd" data-map="OPNN_SBMSN_STTS_CD" required>
<option value="">선택하세요</option>
<c:forEach items="${FIM031List}" var="item">
<option value="${item.code}">${item.value}</option>
</c:forEach>
</select>
</div>
<!-- 답변 일자 -->
<div class="col-md-6">
<label for="ansYmd--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end required">답변 일자</label>
<input type="text" class="form-control form-date" id="ansYmd--${pageName}" name="ansYmd" data-map="ANS_YMD"
data-fmt-type="day" maxlength="10" required />
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
</div>
<!-- 답변 시간 -->
<div class="col-md-6">
<label for="ansTm--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end required">답변 시간</label>
<input type="text" class="form-control form-time" id="ansTm--${pageName}" name="ansTm" data-map="ANS_TM"
data-fmt-type="time" maxlength="8" placeholder="시:분:초" required />
</div>
<!-- 답변 내용 -->
<div class="col-md-12">
<label for="ansCn--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">답변 내용</label>
<textarea class="form-control w-80" id="ansCn--${pageName}" name="ansCn" data-map="ANS_CN" rows="5" data-maxlengthb="4000">
</textarea>
</div>
</div>
</form>
<!-- /입력 영역 -->
<!-- 첨부 파일 -->
<!-- /첨부 파일 -->
</div>
<!-- <div class="card"> -->
<!-- 업무 버튼 표시 -->
<div>
<span class="container-page-btn">
<span class="container-window-btn-right">
<!-- 업무 버튼 -->
<button class="btn btn-primary" id="btnSave--${pageName}" title="저장" onclick="fnBtnSave${pageName}()">저장</button>
</span>
</span>
</div>
<!-- / 업무 버튼 표시 -->
<script>
/**************************************************************************
* Global Variable
**************************************************************************/
// URL
var prefixUrl = "/excl/excl02";
//
var ${pageName}Fields = new FormFields("#frmEdit--${pageName}");
/**************************************************************************
* DatasetControl
**************************************************************************/
var ${pageName}Control = new DatasetControl({
prefix : "opnn"
, prefixName : "의견제출"
, keymapper : info => info ? info.OPNN_ID : ""
, dataGetter : obj => obj.opnnSbmsnInfo
, urls : {
update : wctx.url(prefixUrl + "/030/update.do") // 수정
}
, formats : {
RCPT_YMD : dateFormat // 접수 일자
, ANS_YMD : dateFormat // 답변 일자
, ANS_TM : dateFormat // 답변 일자
}
});
${pageName}Control.onCurrentChange = item => {
${pageName}Fields.set(item);
}
/**************************************************************************
*
**************************************************************************/
// 저장 callback
${pageName}Control.onSave = (resp) => {
if (resp.saved) {
dialog.alert("저장됐습니다.");
dialog.close(${pageName}Control.prefix + "dialog");
}
}
// 저장
${pageName}Control.save = (info) => {
if (!info) return;
let item = ${pageName}Control.getCurrent("item");
let create = isEmpty(info.opnnId);
// 첨부파일
let formData = new FormData(document.getElementById("frmFile--${pageName}"));
for(let key in info) {
let value = info[key];
formData.append(key, value);
}
if (formData.get("uploadFileList").size == 0) {
formData.delete("uploadFileList");
}
ajax.post({
url : !create ? ${pageName}Control.urls.update : ${pageName}Control.urls.create
, data: formData, contentType : false, processData : false
, success : resp => ${pageName}Control.onSave(resp)
});
}
/**************************************************************************
* 초기 셋팅
**************************************************************************/
// 검색조건 초기값 셋팅
function initForm${pageName}() {
// 달력 초기화
initDatepicker("frmEdit--${pageName}");
$("#ansYmd--${pageName}").datepicker("setDate", new Date());
$("#ansTm--${pageName}").val(new Date().toTimeString().split(' ')[0]); // "09:51:35 GMT+0900 (한국 표준시)"의 형식에서 공백을 기준으로 잘라 시간 부분만 가져와줍니다.
}
// 이벤트 설정
function setEvent${pageName}() {
// form-date 항목에서 키보드로 입력시 날짜 포맷팅 적용
$("#frmEdit--${pageName}").find(".form-date").each(function() {
$(this).on("input",function() {
let value = this.value.replaceAll("-", "");
if (value.length > 7) {
this.value = value.substring(0, 4) + "-" + value.substring(4, 6) + "-" + value.substring(6);
} else if(value.length > 5) {
this.value = value.substring(0, 4) + "-" + value.substring(4);
}
});
});
// form-date 항목에서 키보드로 입력시 시간 포맷팅 적용
$("#frmEdit--${pageName}").find(".form-time").each(function() {
$(this).on("input",function() {
let value = this.value.replaceAll(":", "");
if (value.length > 5) {
this.value = value.substring(0, 2) + ":" + value.substring(2, 4) + ":" + value.substring(4);
} else if (value.length > 3) {
this.value = value.substring(0, 2) + ":" + value.substring(2);
}
});
});
$("#btnAddFile--${pageName}").on('click', () => { $("#uploadFileList--${pageName}").trigger("click"); });
}
/**************************************************************************
* function
**************************************************************************/
// 저장
function fnBtnSave${pageName}() {
// validate 확인
if (!customValidate($("#frmEdit--${pageName}").find("input, select, textarea"))) return;
let formFields = new FimsFormFields("#frmEdit--${pageName}");
let data = formFields.get();
dialog.alert({
content : "현재 prefixName 정보를 저장하시겠습니까?"
, onOK : () => {
${pageName}Control.save(formFields.get());
}
});
}
/**************************************************************************
* script 진입
**************************************************************************/
$(document).ready(function() {
// 이벤트 설정
setEvent${pageName}();
// 화면 초기 설정
initForm${pageName}();
// Dataset 셋팅 - 단건일 경우 setData
${pageName}Control.setData([${opnnSbmsnInfo}]);
});
// #sourceURL=excl01020-info.jsp
</script>

@ -14,14 +14,14 @@
<div> <div>
<!-- 상단 버튼 --> <!-- 상단 버튼 -->
<div class="container-page-btn"> <div class="container-page-btn">
<button type="button" class="btn btn-outline-dark" id="btnReset--${pageName}" title="초기화" onclick="fnReset${pageName}();"> <button type="button" class="btn btn-outline-dark" id="btnReset--${pageName}" title="초기화" onclick="fnBtnReset${pageName}();">
초기화 초기화
</button> </button>
<span class="container-window-btn-right"> <span class="container-window-btn-right">
<button type="button" class="btn btn-search" id="btnSearch--${pageName}" title="검색" onclick="fnSearchList${pageName}();"> <button type="button" class="btn btn-search" id="btnSearch--${pageName}" title="검색" onclick="fnBtnSearchList${pageName}();">
검색 검색
</button> </button>
<button type="button" class="btn btn-search" id="btnExcel--${pageName}" title="엑셀" onclick="fnExcel${pageName}();"> <button type="button" class="btn btn-search" id="btnExcel--${pageName}" title="엑셀" onclick="fnBtnExcel${pageName}();">
엑셀 엑셀
</button> </button>
</span> </span>
@ -140,10 +140,10 @@
</div> </div>
<span class="container-window-btn-right"> <span class="container-window-btn-right">
<!-- 업무 버튼 --> <!-- 업무 버튼 -->
<button class="btn btn-primary" id="btnCreate--${pageName}" title="등록" onclick="fnSave${pageName}();"> <button class="btn btn-primary" id="btnCreate--${pageName}" title="등록" onclick="fnBtnCreate${pageName}();">
등록 등록
</button> </button>
<button class="btn btn-primary" id="btnBfrCrdnTotalInfo--${pageName}" title="이전 단속정보 보기" onclick="fnBfrCrdnTotalInfo${pageName}();"> <button class="btn btn-primary" id="btnBfrCrdnTotalInfo--${pageName}" title="이전 단속정보 보기" onclick="fnBtnBfrCrdnTotalInfo${pageName}();">
이전 단속정보 보기 이전 단속정보 보기
</button> </button>
</span> </span>
@ -370,7 +370,7 @@
if (el.scrollTop() == 0) return; if (el.scrollTop() == 0) return;
if ((el[0].scrollHeight - el.scrollTop() + VERTICAL_SCROLL_HEIGHT) <= el.outerHeight()) { if ((el[0].scrollHeight - el.scrollTop() + VERTICAL_SCROLL_HEIGHT) <= el.outerHeight()) {
fnSearchList${pageName}(${pageName}Control.query.pageNum + 1); fnBtnSearchList${pageName}(${pageName}Control.query.pageNum + 1);
} }
}); });
} }
@ -398,7 +398,7 @@
**************************************************************************/ **************************************************************************/
// 업무구분 변경 // 업무구분 변경
function fnResetAndChangeBiz${pageName}(taskSeCd) { function fnResetAndChangeBiz${pageName}(taskSeCd) {
fnReset${pageName}(); fnBtnReset${pageName}();
} }
// 검색 조건 파라미터 가져오기 // 검색 조건 파라미터 가져오기
@ -413,12 +413,12 @@
} }
// 초기화 // 초기화
function fnReset${pageName}() { function fnBtnReset${pageName}() {
initForm${pageName}(); initForm${pageName}();
} }
// 검색 // 검색
function fnSearchList${pageName}(pageNumber) { function fnBtnSearchList${pageName}(pageNumber) {
// pageNumber 값 확인 // pageNumber 값 확인
if (!pageNumber) pageNumber = 1; if (!pageNumber) pageNumber = 1;
@ -428,12 +428,12 @@
} }
// 엑셀 // 엑셀
function fnExcel${pageName}() { function fnBtnExcel${pageName}() {
} }
// 저장 // 저장
function fnSave${pageName}() { function fnBtnCreate${pageName}() {
let crdnId = ${pageName}Control.dataset.getValue("CRDN_ID"); let crdnId = ${pageName}Control.dataset.getValue("CRDN_ID");
// 부과제외ID 가 없다면.. return // 부과제외ID 가 없다면.. return
@ -454,7 +454,7 @@
} }
// 이전 단속정보 보기 // 이전 단속정보 보기
function fnBfrCrdnTotalInfo${pageName}() { function fnBtnBfrCrdnTotalInfo${pageName}() {
let bfrCrdnId = ${pageName}Control.dataset.getValue("BFR_CRDN_ID"); let bfrCrdnId = ${pageName}Control.dataset.getValue("BFR_CRDN_ID");
// 개별총정보 dialog // 개별총정보 dialog

Loading…
Cancel
Save