부과제외 상세 jsp 추가

main
jjh 1 year ago
parent c5e3916881
commit edd27a6f1b

@ -1,6 +1,5 @@
package cokr.xit.fims.excl; package cokr.xit.fims.excl;
import java.lang.String;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
@ -18,722 +17,341 @@ import lombok.Setter;
@Setter @Setter
public class Excl01 extends cokr.xit.foundation.AbstractEntity { public class Excl01 extends cokr.xit.foundation.AbstractEntity {
// TB_LEVY_EXCL 부과 제외 대장 ///////////////////////////////////////////////////////////////////////
/** /**
* ID * ID
*/ */
private String levyExclId; private java.lang.String levyExclId;
/** /**
* *
*/ */
private String sggCd; private java.lang.String sggCd;
/** /**
* *
*/ */
private String taskSeCd; private java.lang.String taskSeCd;
/** /**
* ID * ID
*/ */
private String crdnId; private java.lang.String crdnId;
/** /**
* *
*/ */
private String levyExclYmd; private java.lang.String levyExclYmd;
/** /**
* *
*/ */
private String levyExclSeCd; private java.lang.String levyExclSeCd;
/**
*
*/
private String levyExclSeNm;
/** /**
* *
*/ */
private String levyExclRsnCd; private java.lang.String levyExclRsnCd;
/**
*
*/
private String levyExclRsnNm;
/** /**
* *
*/ */
private String etcCn; private java.lang.String etcCn;
/** /**
* *
*/ */
private String delYn; private java.lang.String delYn;
/** /**
* *
*/ */
private String regDt; private java.lang.String regDt;
/** /**
* *
*/ */
private String rgtr; private java.lang.String rgtr;
/** /**
* *
*/ */
private String mdfcnDt; private java.lang.String mdfcnDt;
/** /**
* *
*/ */
private String mdfr; private java.lang.String mdfr;
/** /**
* *
*/ */
private String delDt; private java.lang.String delDt;
/** /**
* *
*/ */
private String dltr; private java.lang.String dltr;
/** /**
* *
*/ */
private String delRsn; private java.lang.String delRsn;
// TB_LEVY_EXCL 부과 제외 대장 ///////////////////////////////////////////////////////////////////////
// TB_CRDN 단속 대장 ///////////////////////////////////////////////////////////////////////////////
/**
* ID
*/
// private String crdnId;
/**
*
*/
// private String sggCd;
/**
*
*/
// private String taskSeCd;
/**
*
*/
private String taskSeNm;
/**
*
*/
private String crdnRegSeCd;
/**
*
*/
private String crdnRegSeNm;
/**
*
*/
private String crdnInptSeCd;
/**
*
*/
private String crdnInptSeNm;
/**
*
*/
private String linkTblNm;
/**
* ID
*/
private String linkId;
/**
* ID
*/
private String rtpyrId;
/**
*
*/
private String crdnSeCd;
/**
*
*/
private String crdnSeNm;
/**
*
*/
private String crdnYmd;
/**
*
*/
private String crdnTm;
/**
*
*/
private String crdnYmdTm;
/**
*
*/
private String vhrno;
/**
*
*/
private String crdnStdgNm;
/**
*
*/
private String crdnRoadNm;
/**
*
*/
private String crdnPlc;
/**
*
*/
private String dtlCrdnPlc;
/**
* ID
*/
private String teamId;
/**
* ID
*/
private String vltnId;
/**
*
*/
private String crdnSpareaCd;
/**
*
*/
private String crdnSpareaNm;
/**
*
*/
private String crdnBgngTm;
/**
*
*/
private String crdnEndHr;
/**
*
*/
private String crdnSn;
/**
* GPS X
*/
private String gpsX;
/**
* GPS Y
*/
private String gpsY;
/**
* X
*/
private String moscX;
/**
* Y
*/
private String moscY;
/**
*
*/
private String towngYn;
/**
*
*/
private String atchFileCnt;
/**
*
*/
private String vin;
/**
*
*/
private String vhclNm;
/**
*
*/
private String vhclColor;
/**
*
*/
private String useFuelCd;
/**
*
*/
private String usgSeCd;
/**
*
*/
private String mxmmLoadQy;
/**
*
*/
private String tkcarPsncpaCnt;
/**
*
*/
private String carmdlAsortNm;
/**
*
*/
private String carmdlTypeNm;
/**
*
*/
private String carmdlClsfNm;
/**
*
*/
private String ersrYmd;
/**
*
*/
private String ffnlgCarmdlCd;
/**
*
*/
private String parkngPsbltyRsltCd;
/**
*
*/
private String vltnNmtm;
/**
*
*/
private String ovtimeYn;
/**
*
*/
private String rvwSeCd;
/** /**
* * ID() .
* @return ID
*/ */
private String rvwPrcsScrnNm; public java.lang.String getLevyExclId() {
return levyExclId;
/** }
*
*/
private String rvwDt;
/**
*
*/
private String rvwr;
/**
*
*/
private String ffnlgAmt;
/**
*
*/
private String ffnlgRductRt;
/**
*
*/
private String levyAmt;
/**
*
*/
private String advntceBgngYmd;
/**
*
*/
private String advntceDudtYmd;
/**
*
*/
private String advntceLevyAmt;
/**
*
*/
private String opnnSbmsnYn;
/**
* ID
*/
private String levyId;
/**
*
*/
private String crdnSttsCd;
/**
*
*/
private String crdnSttsNm;
/**
*
*/
private String crdnSttsChgDt;
/**
*
*/
private String adtnAmt;
/**
*
*/
private String minusAmt;
/**
*
*/
private String rcvmtAmt;
/**
* ID
*/
private String bfrCrdnId;
// TB_CRDN 단속 대장 ///////////////////////////////////////////////////////////////////////////////
// TB_PAYER 납부자 대장 /////////////////////////////////////////////////////////////////////////////
/**
* ID
*/
// private String rtpyrId;
/**
*
*/
private String rtpyrInptSeCd;
/**
*
*/
private String rtpyrInptSeNm;
/**
*
*/
private String rtpyrSeCd;
/**
*
*/
private String rtpyrSeNm;
/**
*
*/
private String rtpyrNo;
/**
*
*/
private String rtpyrNm;
/**
*
*/
private String rtpyrCttpcSeCd;
/**
*
*/
private String rtpyrCttpcSeNm;
/**
*
*/
private String rtpyrCttpc;
/**
*
*/
private String rtpyrEml;
/**
*
*/
private String rtpyrBrdt;
/**
* _
*/
private String rtpyrBrdtFormat;
/**
*
*/
private String rtpyrSttsCd;
/**
*
*/
private String rtpyrSttsNm;
/**
*
*/
private String addrSeCd;
/**
*
*/
private String addrSeNm;
/**
*
*/
private String zip;
/**
*
*/
private String roadNmCd;
/**
*
*/
private String udgdSeCd;
/**
*
*/
private String bmno;
/**
*
*/
private String bsno;
/**
*
*/
private String bldgMngNo;
/**
*
*/
private String stdgCd;
/**
*
*/
private String dongCd;
/** /**
* * ID() .
* @param levyExclId ID
*/ */
private String mtnSeCd; public void setLevyExclId(java.lang.String levyExclId) {
this.levyExclId = levyExclId;
}
/** /**
* * () .
* @return
*/ */
private String mno; public java.lang.String getSggCd() {
return sggCd;
}
/** /**
* * () .
* @param sggCd
*/ */
private String sno; public void setSggCd(java.lang.String sggCd) {
this.sggCd = sggCd;
}
/** /**
* * () .
* @return
*/ */
private String spclDong; public java.lang.String getTaskSeCd() {
return taskSeCd;
}
/** /**
* * () .
* @param taskSeCd
*/ */
private String spclHo; public void setTaskSeCd(java.lang.String taskSeCd) {
this.taskSeCd = taskSeCd;
}
/** /**
* * ID() .
* @return ID
*/ */
private String spclAddr; public java.lang.String getCrdnId() {
return crdnId;
}
/** /**
* * ID() .
* @param crdnId ID
*/ */
private String addr; public void setCrdnId(java.lang.String crdnId) {
this.crdnId = crdnId;
}
/** /**
* * () .
* @return
*/ */
private String dtlAddr; public java.lang.String getLevyExclSeCd() {
return levyExclSeCd;
}
/** /**
* * () .
* @param levyExclSeCd
*/ */
private String wholAddr; public void setLevyExclSeCd(java.lang.String levyExclSeCd) {
// TB_PAYER 납부자 대장 ///////////////////////////////////////////////////////////////////////////// this.levyExclSeCd = levyExclSeCd;
}
// TB_CRDN_CVLCPT 단속 민원 대장 /////////////////////////////////////////////////////////////////////
/** /**
* ID * () .
* @return
*/ */
private String cvlcptLinkId; public java.lang.String getLevyExclYmd() {
return levyExclYmd;
}
/** /**
* * () .
* @param levyExclYmd
*/ */
private String cvlcptInptSeCd; public void setLevyExclYmd(java.lang.String levyExclYmd) {
this.levyExclYmd = levyExclYmd;
}
/** /**
* * () .
* @return
*/ */
private String cvlcptRcptYmd; public java.lang.String getLevyExclRsnCd() {
return levyExclRsnCd;
}
/** /**
* * () .
* @param levyExclRsnCd
*/ */
private String cvlcptAplySeCd; public void setLevyExclRsnCd(java.lang.String levyExclRsnCd) {
this.levyExclRsnCd = levyExclRsnCd;
}
/** /**
* * () .
* @return
*/ */
private String cvlcptAplyNo; public java.lang.String getEtcCn() {
return etcCn;
}
/** /**
* * () .
* @param etcCn
*/ */
private String cvlcptRcptNo; public void setEtcCn(java.lang.String etcCn) {
this.etcCn = etcCn;
}
/** /**
* * () .
* @return
*/ */
private String cvlcptListNo; public java.lang.String getDelYn() {
return delYn;
}
/** /**
* * () .
* @param delYn
*/ */
private String cvlcptAplcntNm; public void setDelYn(java.lang.String delYn) {
this.delYn = delYn;
}
/** /**
* * () .
* @return
*/ */
private String cvlcptAplyDt; public java.lang.String getRegDt() {
return regDt;
}
/** /**
* * () .
* @param regDt
*/ */
private String cvlcptAplyTtlNm; public void setRegDt(java.lang.String regDt) {
this.regDt = regDt;
}
/** /**
* * () .
* @return
*/ */
private String cvlcptAplyCn; public java.lang.String getRgtr() {
return rgtr;
}
/** /**
* * () .
* @param rgtr
*/ */
private String cvlcptGist; public void setRgtr(java.lang.String rgtr) {
this.rgtr = rgtr;
}
/** /**
* * () .
* @return
*/ */
private String cvlcptPrcsPicNm; public java.lang.String getMdfcnDt() {
return mdfcnDt;
}
/** /**
* * () .
* @param mdfcnDt
*/ */
private String cvlcptPrcsPrnmntDt; public void setMdfcnDt(java.lang.String mdfcnDt) {
this.mdfcnDt = mdfcnDt;
}
/** /**
* * () .
* @return
*/ */
private String cvlcptPrcsCd; public java.lang.String getMdfr() {
return mdfr;
}
/** /**
* * () .
* @param mdfr
*/ */
private String cvlcptPrcsSumry; public void setMdfr(java.lang.String mdfr) {
this.mdfr = mdfr;
}
/** /**
* * () .
* @return
*/ */
private String cvlcptPrcsRsltCn; public java.lang.String getDelDt() {
return delDt;
}
/** /**
* * () .
* @param delDt
*/ */
private String cvlcptPrcsCmptnDt; public void setDelDt(java.lang.String delDt) {
this.delDt = delDt;
}
/** /**
* * () .
* @return
*/ */
private String cvlcptPrcsPic; public java.lang.String getDltr() {
return dltr;
}
/** /**
* * () .
* @param dltr
*/ */
private String cvlcptTrsmDt; public void setDltr(java.lang.String dltr) {
this.dltr = dltr;
}
/** /**
* * () .
* @return
*/ */
private String cvlcptTrsmCd; public java.lang.String getDelRsn() {
return delRsn;
}
/** /**
* * () .
* @param delRsn
*/ */
private String cvlcptTrsmMsg; public void setDelRsn(java.lang.String delRsn) {
// TB_CRDN_CVLCPT 단속 민원 대장 ///////////////////////////////////////////////////////////////////// this.delRsn = delRsn;
}
} }

@ -37,8 +37,9 @@ public class Excl01Query extends QueryRequest {
private String schLevyExclSeCd; // 부과 제외 구분 코드 private String schLevyExclSeCd; // 부과 제외 구분 코드
private String schVhrno; // 차량번호 - 단속(TB_CRDN) private String schVhrno; // 차량번호 - 단속(TB_CRDN)
private String schRtpyrNm; // 납부자 명 - 납부자(TB_PAYER) private String schRtpyrNm; // 납부자 명 - 납부자(TB_PAYER)
// //
private String levyExclId; // 부과제외 ID private String levyExclId;
public String getSggCd() { public String getSggCd() {
return ifEmpty(sggCd, () -> null); return ifEmpty(sggCd, () -> null);
@ -220,6 +221,7 @@ public class Excl01Query extends QueryRequest {
return self(); return self();
} }
public String getLevyExclId() { public String getLevyExclId() {
return ifEmpty(levyExclId, () -> null); return ifEmpty(levyExclId, () -> null);
} }

@ -39,12 +39,12 @@ public interface Excl01Mapper extends AbstractMapper {
* @param levyExclId ID * @param levyExclId ID
* @return * @return
*/ */
DataObject selectLevyExclInfo(Excl01Query req); Excl01 selectLevyExcl(Excl01Query req);
default DataObject selectLevyExclInfo(String levyExclId) { default Excl01 selectLevyExclInfo(String levyExclId) {
DataObject levyExclusion = selectLevyExclInfo(new Excl01Query().setBy("levyExclId").setTerm(levyExclId)); Excl01 levyExclInfo = selectLevyExcl(new Excl01Query().setLevyExclId(levyExclId));
return levyExclusion; return levyExclInfo;
} }
/** . /** .

@ -34,7 +34,7 @@ public interface Excl01Service {
* @param levyExclId ID * @param levyExclId ID
* @return * @return
*/ */
DataObject getLevyExclusionInfo(String levyExclId); Excl01 getLevyExclusionInfo(String levyExclId);
/** . /** .
* @param excl * @param excl

@ -49,7 +49,7 @@ public class Excl01Bean extends AbstractComponent {
* @param levyExclId ID * @param levyExclId ID
* @return * @return
*/ */
public DataObject getLevyExclusionInfo(String levyExclId) { public Excl01 getLevyExclusionInfo(String levyExclId) {
return excl01Mapper.selectLevyExclInfo(levyExclId); return excl01Mapper.selectLevyExclInfo(levyExclId);
} }

@ -40,7 +40,7 @@ public class Excl01ServiceBean extends AbstractServiceBean implements Excl01Serv
} }
@Override @Override
public DataObject getLevyExclusionInfo(String levyExclId) { public Excl01 getLevyExclusionInfo(String levyExclId) {
return excl01Bean.getLevyExclusionInfo(levyExclId); return excl01Bean.getLevyExclusionInfo(levyExclId);
} }

@ -81,15 +81,29 @@ public class Excl01Controller extends ApplicationController {
*/ */
@RequestMapping(name = "부과제외 정보 조회", value = "/020/info.do") @RequestMapping(name = "부과제외 정보 조회", value = "/020/info.do")
public ModelAndView getLevyExclusionInfo(String levyExclId) { public ModelAndView getLevyExclusionInfo(String levyExclId) {
// View(jsp)에서 사용할 공통코드를 조회
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM021", "FIM022", "FIM054");
if (!isEmpty(levyExclId)) { if (!isEmpty(levyExclId)) {
DataObject levyExclusionInfo = excl01Service.getLevyExclusionInfo(levyExclId); // DataObject levyExclusionInfo = excl01Service.getLevyExclusionInfo(levyExclId);
Excl01 levyExclusionInfo = excl01Service.getLevyExclusionInfo(levyExclId);
boolean json = jsonResponse(); boolean json = jsonResponse();
return new ModelAndView(json ? "jsonView" : "fims/excl/excl01020-info") return new ModelAndView(json ? "jsonView" : "fims/excl/excl01020-info")
.addObject("levyExclusionInfo", json ? levyExclusionInfo : toJson(levyExclusionInfo)); .addObject("pageName", "excl01020") // View(jsp)에서 사용할 id 뒤에 붙일 suffix
.addObject("FIM021List", commonCodes.get("FIM021")) // 부과 제외 구분 코드(LEVY_EXCL_SE_CD)
.addObject("FIM022List", commonCodes.get("FIM022")) // 부과 제외 사유 코드(LEVY_EXCL_RSN_CD)
.addObject("FIM054List", commonCodes.get("FIM054")) // 업무 구분 코드(TASK_SE_CD)
.addObject("levyExclInfo", json ? levyExclusionInfo : toJson(levyExclusionInfo))
;
} else { } else {
return new ModelAndView("fims/excl/excl01020-info"); return new ModelAndView("fims/excl/excl01020-info")
.addObject("pageName", "excl01020") // View(jsp)에서 사용할 id 뒤에 붙일 suffix
.addObject("FIM021List", commonCodes.get("FIM021")) // 부과 제외 구분 코드(LEVY_EXCL_SE_CD)
.addObject("FIM022List", commonCodes.get("FIM022")) // 부과 제외 사유 코드(LEVY_EXCL_RSN_CD)
.addObject("FIM054List", commonCodes.get("FIM054")) // 업무 구분 코드(TASK_SE_CD)
;
} }
} }

@ -179,7 +179,7 @@
FROM TB_LEVY_EXCL A FROM TB_LEVY_EXCL A
</sql> </sql>
<select id="selectLevyExclInfo" parameterType="map" resultMap="excl01Row">/* 부과제외 대장 객체 가져오기(excl01Mapper.selectLevyExclInfo) */ <select id="selectLevyExcl" parameterType="map" resultMap="excl01Row">/* 부과제외 대장 객체 가져오기(excl01Mapper.selectLevyExcl) */
<include refid="select" /> <include refid="select" />
WHERE A.LEVY_EXCL_ID = #{levyExclId} /* 부과 제외 ID */ WHERE A.LEVY_EXCL_ID = #{levyExclId} /* 부과 제외 ID */
<include refid="utility.orderBy" /> <include refid="utility.orderBy" />

@ -7,6 +7,7 @@
<div class="container-xxl flex-grow-1 px-0"> <div class="container-xxl flex-grow-1 px-0">
<%--h4 id="pageTitle" class="fw-bold py-3 mb-4">페이지 제목</h4--%> <%--h4 id="pageTitle" class="fw-bold py-3 mb-4">페이지 제목</h4--%>
<c:set var="prefixName" scope="request">부과제외</c:set> <c:set var="prefixName" scope="request">부과제외</c:set>
<!-- Page Body --> <!-- Page Body -->
<div class="card"> <div class="card">
<div class="wrapper-list"> <div class="wrapper-list">
@ -66,7 +67,7 @@
<label class="form-label fw-bold form-search-title">부과제외구분</label> <label class="form-label fw-bold form-search-title">부과제외구분</label>
</div> </div>
<div class="col-5"> <div class="col-5">
<select id="schLevyExclSeCd--${pageName}" name="schLevyExclSeCd" class="form-select"> <select class="form-select" id="schLevyExclSeCd--${pageName}" name="schLevyExclSeCd">
<option value="">전체</option> <option value="">전체</option>
<c:forEach items="${FIM021List}" var="item"> <c:forEach items="${FIM021List}" var="item">
<option value="${item.code}">${item.value}</option> <option value="${item.code}">${item.value}</option>
@ -156,8 +157,8 @@
</div> </div>
<span class="container-window-btn-right"> <span class="container-window-btn-right">
<!-- 업무 버튼 --> <!-- 업무 버튼 -->
<a href="#" class="btn btn-blue" id="btnNotLevyCreate--${pageName}" title="비부과 등록">비부과 등록</a> <a href="#" class="btn btn-blue" id="btnCreateNotLevy--${pageName}" title="비부과 등록">비부과 등록</a>
<a href="#" class="btn btn-blue" id="btnWarningCreate--${pageName}" title="계고 등록">계고 등록</a> <a href="#" class="btn btn-blue" id="btnCreateWarning--${pageName}" title="계고 등록">계고 등록</a>
<a href="#" class="btn btn-blue" id="btnUpdate--${pageName}" title="수정">수정</a> <a href="#" class="btn btn-blue" id="btnUpdate--${pageName}" title="수정">수정</a>
<a href="#" class="btn btn-blue" id="btnRemove--${pageName}" title="삭제">삭제</a> <a href="#" class="btn btn-blue" id="btnRemove--${pageName}" title="삭제">삭제</a>
</span> </span>
@ -221,7 +222,7 @@
</template> </template>
<template id="${infoPrefix}NotFound--${pageName}"> <template id="${infoPrefix}NotFound--${pageName}">
<tr class="odd"> <tr class="odd">
<td valign="top" colspan="14" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td> <td valign="top" colspan="17" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
</tr> </tr>
</template> </template>
</table> </table>
@ -271,14 +272,14 @@
// //
function setEvent${pageName}() { function setEvent${pageName}() {
// 버튼 이벤트 // 버튼 이벤트
$("#btnReset--${pageName}").on("click", () => searchList${pageName}()); // 초기화 $("#btnReset--${pageName}").on("click", () => fnReset${pageName}()); // 초기화
$("#btnSearch--${pageName}").on("click", () => searchList${pageName}()); // 검색 $("#btnSearch--${pageName}").on("click", () => fnSearchList${pageName}()); // 검색
$("#btnExcle--${pageName}").on("click", () => searchList${pageName}()); // 엑셀 $("#btnExcle--${pageName}").on("click", () => fnSearchList${pageName}()); // 엑셀
$("#btnNotLevyCreate--${pageName}").on("click", () => searchList${pageName}()); // 비부과 등록 $("#btnCreateNotLevy--${pageName}").on("click", () => fnCreate${pageName}("1")); // 비부과 등록
$("#btnWarningCreate--${pageName}").on("click", () => searchList${pageName}()); // 계고 등록 $("#btnCreateWarning--${pageName}").on("click", () => fnCreate${pageName}("2")); // 계고 등록
$("#btnUpdate--${pageName}").on("click", () => searchList${pageName}()); // 수정 $("#btnUpdate--${pageName}").on("click", () => fnSearchList${pageName}()); // 수정
$("#btnRemove--${pageName}").on("click", () => searchList${pageName}()); // 삭제 $("#btnRemove--${pageName}").on("click", () => fnSearchList${pageName}()); // 삭제
$("#term--${pageName}").onEnterPress(() => searchList${pageName}()); // 동적 검색 $("#term--${pageName}").onEnterPress(() => fnSearchList${pageName}()); // 동적 검색
// DataTables 스크롤 이벤트 // DataTables 스크롤 이벤트
$("#table-responsive--${pageName}").scroll(function() { $("#table-responsive--${pageName}").scroll(function() {
@ -287,7 +288,7 @@
if (el.scrollTop() == 0) return; if (el.scrollTop() == 0) return;
if ((el[0].scrollHeight - el.scrollTop() + 15) == el.outerHeight()) { if ((el[0].scrollHeight - el.scrollTop() + 15) == el.outerHeight()) {
searchList${pageName}(${pageName}Control.query.pageNum + 1); fnSearchList${pageName}(${pageName}Control.query.pageNum + 1);
} }
}); });
} }
@ -354,8 +355,13 @@
/************************************************************************** /**************************************************************************
* function * function
**************************************************************************/ **************************************************************************/
// 초기화
function fnReset${pageName}() {
}
// 검색 // 검색
function searchList${pageName}(pageNumber) { function fnSearchList${pageName}(pageNumber) {
// pageNumber 값 확인 // pageNumber 값 확인
if (!pageNumber) pageNumber = 1; if (!pageNumber) pageNumber = 1;
@ -365,6 +371,26 @@
${pageName}Control.load(pageNumber); ${pageName}Control.load(pageNumber);
} }
// 등록
function fnCreate${pageName}(levyExclSeCd) {
if (levyExclSeCd == "1") {
dialogInfo = {
id : "notLevy" + "dialog"
, title : "비부과 등록"
}
} else if (levyExclSeCd == "2") {
dialogInfo = {
id : "warning" + "dialog"
, title : "계고 등록"
}
, levyExclSeCd
} else {
return;
}
${pageName}Control.newInfo(dialogInfo);
}
// 업무구분 변경 // 업무구분 변경
function fnResetAndChangeBiz(taskSeCd) { function fnResetAndChangeBiz(taskSeCd) {
$("tbody--${pageName}").html(""); $("tbody--${pageName}").html("");

@ -0,0 +1,118 @@
<%@ 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 -->
<!-- 입력 영역 -->
<form id="frmInput--${pageName}" name="frmInput">
<!-- 메인 조건 -->
<div class="container-search">
<div class="row g-1">
<!-- 부과제외 구분 -->
<div class="col-2 text-end">
<label class="form-label fw-bold">처리 구분</label>
</div>
<div class="col-10">
<select class="form-select" id="levyExclSeCd--${pageName}" name="levyExclSeCd">
<c:forEach items="${FIM021List}" var="item">
<option value="${item.code}">${item.value}</option>
</c:forEach>
</select>
</div>
<!-- 부과제외 일자 -->
<div class="col-2 text-end">
<label class="form-label fw-bold">처리 일자</label>
</div>
<div class="col-10">
<span class="form-search-linebox">
<input type="text" class="form-control form-date" id="levyExclYmd--${pageName}" name="levyExclYmd"
data-fmt-type="day" title="날짜 선택" />
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
</span>
</div>
<!-- 부과제외 사유 -->
<div class="col-2 text-end">
<label class="form-label fw-bold">처리 사유</label>
</div>
<div class="col-10">
<select class="form-select" id="levyExclRsnCd--${pageName}" name="levyExclRsnCd">
<option value="">선택하세요</option>
<c:forEach items="${FIM022List}" var="item">
<option value="${item.code}">${item.value}</option>
</c:forEach>
</select>
</div>
<!-- 기타 내용 -->
<div class="col-2 text-end">
<label class="form-label fw-bold">기타 내용</label>
</div>
<div class="col-10">
<input type="text" class="form-control w-px-500" id="etcCn--${pageName}" name="etcCn" />
</div>
</div>
</div>
</form>
<!-- / 검색 조건 영역 -->
<!-- 업무 버튼 표시 -->
<div>
<span class="container-page-btn">
<span class="container-window-btn-right">
<!-- 업무 버튼 -->
<a href="#" class="btn btn-blue" id="btnUpdate--${pageName}" title="저장">저장</a>
</span>
</span>
</div>
<!-- / 업무 버튼 표시 -->
<script>
/**************************************************************************
* Global Variable
**************************************************************************/
// Control 생성
var ${pageName}Control = new LevyExclControl("${urlPrefix}");
var ${pageName}Fields = new FormFields("#frmInput--${pageName}");
/**************************************************************************
* 초기 셋팅
**************************************************************************/
// 검색조건 초기값 셋팅
function initSearch${pageName}() {
// 달력 초기화
initDatepicker("frmInput--${pageName}");
$("#levyExclYmd--${pageName}").datepicker("setDate", new Date());
}
//
function setEvent${pageName}() {
// 버튼 이벤트
}
/**************************************************************************
* Event
**************************************************************************/
// Dataset 변경
${pageName}Control.onDatasetChange = obj => {
console.log(obj);
}
/**************************************************************************
* function
**************************************************************************/
//
/**************************************************************************
* script 진입
**************************************************************************/
$(document).ready(function() {
// 검색조건 초기값 설정
initSearch${pageName}();
// 이벤트 설정
setEvent${pageName}();
${pageName}Control.addData(${levyExclInfo});
});
// #sourceURL=excl01020-info.jsp
</script>

@ -7,6 +7,7 @@
<div class="container-xxl flex-grow-1 px-0"> <div class="container-xxl flex-grow-1 px-0">
<%--h4 id="pageTitle" class="fw-bold py-3 mb-4">페이지 제목</h4--%> <%--h4 id="pageTitle" class="fw-bold py-3 mb-4">페이지 제목</h4--%>
<c:set var="prefixName" scope="request">의견제출</c:set> <c:set var="prefixName" scope="request">의견제출</c:set>
<!-- Page Body --> <!-- Page Body -->
<div class="card"> <div class="card">
<div class="wrapper-list"> <div class="wrapper-list">

@ -7,6 +7,7 @@
<div class="container-xxl flex-grow-1 px-0"> <div class="container-xxl flex-grow-1 px-0">
<%--h4 id="pageTitle" class="fw-bold py-3 mb-4">페이지 제목</h4--%> <%--h4 id="pageTitle" class="fw-bold py-3 mb-4">페이지 제목</h4--%>
<c:set var="prefixName" scope="request">단속재등록</c:set> <c:set var="prefixName" scope="request">단속재등록</c:set>
<!-- Page Body --> <!-- Page Body -->
<div class="card"> <div class="card">
<div class="wrapper-list"> <div class="wrapper-list">

@ -3,7 +3,7 @@ class LevyExclControl extends DatasetControl {
let conf = { let conf = {
prefix : "levyExcl" prefix : "levyExcl"
, prefixName : "부과제외" , prefixName : "부과제외"
, infoSize : "xl" , infoSize : "lg"
, keymapper : info => info ? info.LEVY_EXCL_ID : "" , keymapper : info => info ? info.LEVY_EXCL_ID : ""
, dataGetter : obj => obj.levyExclList , dataGetter : obj => obj.levyExclList
, appendData : true , appendData : true
@ -24,4 +24,31 @@ class LevyExclControl extends DatasetControl {
} }
super(conf); super(conf);
} }
getInfo(params) {
let info = this.dataset.getCurrent("item");
if (this.urls.getInfo)
ajax.get({
url : this.urls.getInfo
, data : params || {}
, success : resp => {
dialog.open({
id : info.data.id ? info.data.id : this.prefixed("dialog"),
title : info.data.title ? info.data.title : this.prefixName + " 정보",
content : resp,
size : this.infoSize,
init : () => this.setInfo(info)
});
}
});
else
this.setInfo(info);
}
newInfo(obj) {
this.dataset.append(obj || {});
this.getInfo();
}
} }

Loading…
Cancel
Save