민원접수 상세정보 화면 수정

main
이범준 1 year ago
parent ae6c54b675
commit 01abe05426

@ -233,6 +233,7 @@ $(document).ready(function(){
**************************************************************************/
$P.fnReset = () => {
$P.holdList = [];
$("#btnOpenCvlcptOrgnl--${pageName}").show();
$("#btnDelete--${pageName}").show();
$("#btnDeleteSameRcptYmd--${pageName}").show();
@ -282,9 +283,11 @@ $(document).ready(function(){
$("#crdnTbody--${pageName}").setCurrentRow(dataKey);
if($P.holdList.includes(dataKey)){
$("#btnOpenCvlcptOrgnl--${pageName}").hide();
$("#btnDelete--${pageName}").hide();
$("#btnDeleteSameRcptYmd--${pageName}").hide();
} else {
$("#btnOpenCvlcptOrgnl--${pageName}").show();
$("#btnDelete--${pageName}").show();
$("#btnDeleteSameRcptYmd--${pageName}").show();
}
@ -292,6 +295,10 @@ $(document).ready(function(){
$P.dblclickCrdnList = (dataKey) => {
if($P.holdList.includes(dataKey)){
return;
}
var dialogId = "cvlcptInitialDataEditDialog--${pageName}";
ajax.get({
@ -367,6 +374,7 @@ $(document).ready(function(){
$P.holdList.push(curKey);
$("#crdnTbody--${pageName}").find("tr[data-key='"+curKey+"']").addClass("bg-dark");
$("#btnOpenCvlcptOrgnl--${pageName}").hide();
$("#btnDelete--${pageName}").hide();
$("#btnDeleteSameRcptYmd--${pageName}").hide();
}
@ -456,7 +464,11 @@ $(document).ready(function(){
var ds = $P.crdnControl.dataset.getDataset();
var index = ds.findIndex(item => item.CRDN_ID == currentKey);
if(ds.length > index+1){
if($P.holdList.includes(ds[index+1]["CRDN_ID"])){
return $P.provide.getNextKey(ds[index+1]["CRDN_ID"]);
} else {
return ds[index+1]["CRDN_ID"];
}
} else {
return "";
}
@ -465,13 +477,20 @@ $(document).ready(function(){
var ds = $P.crdnControl.dataset.getDataset();
var index = ds.findIndex(item => item.CRDN_ID == currentKey);
if(index != 0 && ds.length > 1){
if($P.holdList.includes(ds[index-1]["CRDN_ID"])){
return $P.provide.getPrevKey(ds[index-1]["CRDN_ID"]);
} else {
return ds[index-1]["CRDN_ID"];
}
} else {
return "";
}
},
"selectRow" : function(currentKey){
$P.clickCrdnList(currentKey);
},
"holdRow" : function(currentKey){
$P.fnHold(currentKey);
}
};

@ -2,7 +2,7 @@
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>
<div class="d-flex flex-row justify-content-evenly">
<div class="card" style="max-width:1000px;" title="민원접수 초기자료 편집">
<div class="card" style="max-width:1000px;">
<form id="frmEdit--${pageName}">
<input id="crdnId--${pageName}" name="crdnId" type="hidden" data-map="CRDN_ID" />
<input id="taskSeCd--${pageName}" name="taskSeCd" type="hidden" value="${taskSeCd}" />
@ -89,13 +89,13 @@
<div class="col-md-6">
<label for="cvlcptPrcsPicNm--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">담당자</label>
<input type="text" id="cvlcptPrcsPicNm--${pageName}" name="cvlcptPrcsPicNm" data-map="CVLCPT_PRCS_PIC_NM"
class="form-control" />
class="form-control" readonly />
</div>
<div class="col-md-12">
<label for="cvlcptAplyCn--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end align-top"
>신고내용</label>
<textarea type="text" id="cvlcptAplyCn--${pageName}" name="cvlcptAplyCn" data-map="CVLCPT_APLY_CN"
class="form-control" cols="100%" rows="4"
class="form-control" cols="100%" rows="4" readonly
></textarea>
</div>
<div class="col-md-6">
@ -263,11 +263,11 @@
<div class="col-sm-12">
<button type="button" id="btnInstLevyExcl1--${pageName}" class="btn btn-primary">서손처리</button>
<button type="button" id="btnInstLevyExcl2--${pageName}" class="btn btn-primary">계도처리</button>
<button type="button" id="" class="btn btn-primary">자료복사</button>
<button type="button" id="" class="btn btn-primary">처리보류</button>
<button type="button" id="" class="btn btn-primary">원본보기</button>
<button type="button" id="" class="btn btn-primary">되돌리기</button>
<button type="button" id="btnInst--${pageName}" class="btn btn-primary">저장</button>
<button type="button" id="btnDataCopy--${pageName}" class="btn btn-primary">자료복사</button>
<button type="button" id="btnHold--${pageName}" class="btn btn-primary">처리보류</button>
<button type="button" id="btnOpenCvlcptOrgnl--${pageName}" class="btn btn-primary">원본보기</button>
<button type="button" id="btnReset--${pageName}" class="btn btn-primary">초기화</button>
<button type="button" id="btnSave--${pageName}" class="btn btn-primary">저장</button>
</div>
</div>
</div>
@ -319,10 +319,11 @@ pageObject["${pageName}"].provided = {};
pageObject.childReq = [];
pageObject.childReq.push({
getCountStatus : function(){},
getNextKey : function(){},
getPrevKey : function(){},
selectRow : function(){}
getCountStatus : function(){ return ""; },
getNextKey : function(){ return ""; },
getPrevKey : function(){ return ""; },
selectRow : function(){},
holdRow : function(){}
});
$(document).ready(function(){
@ -500,6 +501,13 @@ $(document).ready(function(){
}
};
$P.fnReset = () => {
var crdnId = $("#crdnId--${pageName}").val();
$P.fnGo(crdnId);
}
$P.fnSave = () => {
if(!customValidate($("#frmEdit--${pageName} input"))) return;
@ -646,16 +654,71 @@ $(document).ready(function(){
});
}
$P.fnCopy = () => {
var crdnId = $("#crdnId--${pageName}").val();
dialog.alert({
content : "현 자료의 복사본을 생성하겠습니까?",
onOK : () => {
}
});
}
$P.fnOpenCvlcptOrgnl = () => {
var crdnId = $("#crdnId--${pageName}").val();
var dialogId = "cvlcptOrgnlDialog--${pageName}";
ajax.get({
url : wctx.url("/${taskSeCd}/crdn/crdn01/050/info.do"),
data : { crdnId : crdnId },
success : resp => {
dialog.open({
id : dialogId,
title : "민원내역 원본",
content : resp,
size : "xl",
init : () => {
}
});
}
});
}
$P.fnHold = () => {
var crdnId = $("#crdnId--${pageName}").val();
$P.provided.holdRow(crdnId);
var nextKey = $P.provided.getNextKey(crdnId);
if(nextKey != ""){
$P.fnGo(nextKey);
return;
}
var prevKey = $P.provided.getPrevKey(crdnId);
if(prevKey != ""){
$P.fnGo(prevKey);
return;
}
dialog.close("cvlcptInitialDataEditDialog--${openerPageName}");
}
/**************************************************************************
* element.on
**************************************************************************/
$("#btnPrev--${pageName}").on("click", () => $P.fnPrev() );
$("#btnNext--${pageName}").on("click", () => $P.fnNext() );
$("#btnReset--${pageName}").on("click", () => $P.fnReset() );
$("#btnInstLevyExcl1--${pageName}").on("click", () => $P.openLevyExclPop("1"));
$("#btnInstLevyExcl2--${pageName}").on("click", () => $P.openLevyExclPop("2"));
$("#btnInst--${pageName}").on('click', () => $P.fnSave());
$("#btnDataCopy--${pageName}").on("click", () => $P.fnCopy());
$("#btnHold--${pageName}").on("click", () => $P.fnHold());
$("#btnOpenCvlcptOrgnl--${pageName}").on("click", () => $P.fnOpenCvlcptOrgnl());
$("#btnSave--${pageName}").on('click', () => $P.fnSave());
$("#btnAddFile--${pageName}").on('click', () => { $("#inputUploadSet--${pageName}").trigger("click"); });

@ -47,7 +47,8 @@
</div>
<div class="col-md-12">
<div class="px-2">
<textarea rows="25" style="width:100%" id="cvlcptAplyCn--${pageName}" name="cvlcptAplyCn" data-map="CVLCPT_APLY_CN"
<textarea id="cvlcptAplyCn--${pageName}" name="cvlcptAplyCn" data-map="CVLCPT_APLY_CN"
rows="25" style="width:100%" readonly
></textarea>
</div>
</div>
@ -63,7 +64,7 @@
</c:forEach>
</select>
</div>
<div class="col-md-6">
<div class="col-md-6" id="pageNavArea--${pageName}">
<input type="text" id="countStauts--${pageName}" class="form-control w-px-150 text-center fw-bold" readonly />
<button type="button" class="w-px-50" id="btnPrev--${pageName}">◀</button>
<button type="button" class="w-px-50" id="btnNext--${pageName}">▶</button>
@ -78,9 +79,9 @@ pageObject["${pageName}"].provided = {};
pageObject.childReq = [];
pageObject.childReq.push({
getCountStatus : function(){},
getNextKey : function(){},
getPrevKey : function(){},
getCountStatus : function(){ return ""; },
getNextKey : function(){ return ""; },
getPrevKey : function(){ return ""; },
selectRow : function(){}
});
@ -93,6 +94,7 @@ $(document).ready(function() {
$P.provided = pageObject.parentRes.pop();
} else {
$P.provided = pageObject.childReq.pop();
$("#pageNavArea--${pageName}").hide();
}
/**************************************************************************

@ -55,9 +55,9 @@ pageObject["${pageName}"].parentRes = {};
pageObject.childReq = [];
pageObject.childReq.push({
getCountStatus : function(){},
getNextKey : function(){},
getPrevKey : function(){},
getCountStatus : function(){ return ""; },
getNextKey : function(){ return ""; },
getPrevKey : function(){ return ""; },
selectRow : function(){}
});

@ -10,7 +10,7 @@
<div class="col-md-12" slot="edit">
<template class="pvs bpv">
<slot>
<label for="crdnSeCd--${pageName}" class="w-px-150 bg-lighter pe-2 col-form-label text-sm-end">단속구분</label>
<label for="crdnSeCd--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">단속구분</label>
<select id="crdnSeCd--${pageName}" name="crdnSeCd" data-map="CRDN_SE_CD" class="form-select">
<c:forEach items="${FIM002List}" var="item">
<option value="${item.code}">${item.value}</option>
@ -20,7 +20,7 @@
</template>
</div>
<div class="col-md-4">
<label for="crdnYmd--${pageName}" class="w-px-150 bg-lighter pe-2 col-form-label text-sm-end required">
<label for="crdnYmd--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end required">
위반일자
</label>
<input type="text" id="crdnYmd--${pageName}" name="crdnYmd" data-map="CRDN_YMD"
@ -28,7 +28,7 @@
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
</div>
<div class="col-md-4">
<label for="crdnTm--${pageName}" class="w-px-150 bg-lighter pe-2 col-form-label text-sm-end required">
<label for="crdnTm--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end required">
위반시간
</label>
<input type="text" id="crdnTm--${pageName}" name="crdnTm" data-map="CRDN_TM"
@ -36,14 +36,14 @@
placeholder="시:분:초" />
</div>
<div class="col-md-4">
<label for="vhrno--${pageName}" class="w-px-150 bg-lighter pe-2 col-form-label text-sm-end required">
<label for="vhrno--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end required">
차량번호
</label>
<input type="text" id="vhrno--${pageName}" name="vhrno" data-map="VHRNO" class="form-control"
data-maxlengthb="30" required />
</div>
<div class="col-md-6">
<label for="vltnCd--${pageName}" class="w-px-150 bg-lighter pe-2 col-form-label text-sm-end">
<div class="col-md-4">
<label for="vltnCd--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">
위반내용
</label>
<select id="vltnCd--${pageName}" name="vltnCd" class="form-select" data-map="VLTN_CD">
@ -52,27 +52,33 @@
</c:forEach>
</select>
</div>
<div class="col-md-6 select2-primary">
<label for="crdnStdgNm--${pageName}" class="w-px-150 bg-lighter pe-2 col-form-label text-sm-end">법정동</label>
<input type="text" id="crdnStdgNm--${pageName}" name="crdnStdgNm" data-map="CRDN_STDG_NM" class="form-control" readonly/>
<div class="col-md-4 select2-primary">
<label for="crdnStdgNm--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">법정동</label>
<input type="text" id="crdnStdgNm--${pageName}" name="crdnStdgNm" data-map="CRDN_STDG_NM"
class="form-control w-px-150" readonly/>
<button type="button" class="btn btn-sm btn-outline-dark" onclick="">검색</button>
</div>
<div class="col-md-4 select2-primary">
<label for="crdnRoadNm--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">도로명</label>
<input type="text" id="crdnRoadNm--${pageName}" name="crdnRoadNm" data-map="CRDN_ROAD_NM"
class="form-control" />
</div>
<div class="col-md-4">
<label for="crdnPlc--${pageName}" class="w-px-150 bg-lighter pe-2 col-form-label text-sm-end">위반장소</label>
<label for="crdnPlc--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">위반장소</label>
<input type="text" id="crdnPlc--${pageName}" name="crdnPlc" data-map="CRDN_PLC" class="form-control"
data-maxlengthb="200" />
</div>
<div class="col-md-8" slot="edit">
<template class="bpv">
<slot>
<label for="dtlCrdnPlc--${pageName}" class="w-px-150 bg-lighter pe-2 col-form-label text-sm-end">상세위반장소</label>
<label for="dtlCrdnPlc--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">상세위반장소</label>
<input type="text" id="dtlCrdnPlc--${pageName}" name="dtlCrdnPlc" data-map="DTL_CRDN_PLC" class="form-control"
data-maxlenghb="200" />
</slot>
</template>
<template class="pvs">
<slot>
<label for="crdnSpareaCd--${pageName}" class="w-px-150 bg-lighter pe-2 col-form-label text-sm-end">특별구역</label>
<label for="crdnSpareaCd--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">특별구역</label>
<select id="crdnSpareaCd--${pageName}" name="crdnSpareaCd" data-map="CRDN_SPAREA_CD" class="form-select">
<c:forEach items="${FIM007List}" var="item">
<option value="${item.code}">${item.value}</option>
@ -82,17 +88,17 @@
</template>
</div>
<div class="col-md-12">
<label for="etcCn--${pageName}" class="w-px-150 bg-lighter pe-2 col-form-label text-sm-end">특기사항</label>
<label for="etcCn--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">특기사항</label>
<input type="text" id="etcCn--${pageName}" name="etcCn" data-map="ETC_CN" class="form-control"
data-maxlengthb="1000" />
</div>
<div class="col-md-4">
<label for="rtpyrNm--${pageName}" class="w-px-150 bg-lighter pe-2 col-form-label text-sm-end">소유자</label>
<label for="rtpyrNm--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">소유자</label>
<input type="text" id="rtpyrNm--${pageName}" name="rtpyrNm" data-map="RTPYR_NM" class="form-control"
/>
</div>
<div class="col-md-4">
<label for="rtpyrSeCd--${pageName}" class="w-px-150 bg-lighter pe-2 col-form-label text-sm-end">주민번호구분</label>
<label for="rtpyrSeCd--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">주민번호구분</label>
<select id="rtpyrSeCd--${pageName}" name="rtpyrSeCd" data-map="RTPYR_SE_CD" class="form-select">
<c:forEach items="${FIM011List}" var="item">
<option value="${item.code}">${item.value}</option>
@ -100,22 +106,22 @@
</select>
</div>
<div class="col-md-4">
<label for="rtpyrNo--${pageName}" class="w-px-150 bg-lighter pe-2 col-form-label text-sm-end">주민번호</label>
<label for="rtpyrNo--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">주민번호</label>
<input type="text" id="rtpyrNo--${pageName}" name="rtpyrNo" data-map="RTPYR_NO" class="form-control privacy" />
<input type="text" id="mask-rtpyrNo--${pageName}" class="form-control privacy-mask" disabled value="******"/>
</div>
<div class="col-md-12">
<label for="addr--${pageName}" class="w-px-150 bg-lighter pe-2 col-form-label text-sm-end">주소</label>
<label for="addr--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">주소</label>
<input type="text" id="addr--${pageName}" name="addr" data-map="ADDR" class="form-control w-px-700"
data-maxlengthb="320" />
</div>
<div class="col-md-12">
<label for="dtlAddr--${pageName}" class="w-px-150 bg-lighter pe-2 col-form-label text-sm-end">상세주소</label>
<label for="dtlAddr--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">상세주소</label>
<input type="text" id="dtlAddr--${pageName}" name="dtlAddr" data-map="DTL_ADDR" class="form-control w-px-700"
data-maxlengthb="200" />
</div>
<div class="col-md-6">
<label for="zip--${pageName}" class="w-px-150 bg-lighter pe-2 col-form-label text-sm-end">우편번호</label>
<label for="zip--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">우편번호</label>
<input type="text" id="zip--${pageName}" name="zip" data-map="ZIP" class="form-control w-px-100"
maxlength="7" pattern="(\d{3}-\d{3}|\d{6}|\d{5})" />
<button type="button" class="btn btn-sm btn-outline-dark" onclick="">검색</button>
@ -124,24 +130,24 @@
</div>
<div class="col-md-4">
<label for="vin--${pageName}" class="w-px-150 bg-lighter pe-2 col-form-label text-sm-end">차대번호</label>
<label for="vin--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">차대번호</label>
<input type="text" id="vin--${pageName}" name="vin" data-map="VIN" class="form-control" readonly
placeholder="입력항목이 아닙니다." />
</div>
<div class="col-md-4">
<label for="vhclNm--${pageName}" class="w-px-150 bg-lighter pe-2 col-form-label text-sm-end">차량명칭</label>
<label for="vhclNm--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">차량명칭</label>
<input type="text" id="vhclNm--${pageName}" name="vhclNm" data-map="VHCL_NM" class="form-control" readonly
placeholder="입력항목이 아닙니다." />
</div>
<div class="col-md-4">
<label for="vhclColor--${pageName}" class="w-px-150 bg-lighter pe-2 col-form-label text-sm-end">차량색상</label>
<label for="vhclColor--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">차량색상</label>
<input type="text" id="vhclColor--${pageName}" name="vhclColor" data-map="VHCL_COLOR" class="form-control" readonly
placeholder="입력항목이 아닙니다." />
</div>
<div class="col-md-12" slot="edit">
<template class="pvs bpv">
<slot>
<label for="ffnlgCarmdlCd--${pageName}" class="w-px-150 bg-lighter pe-2 col-form-label text-sm-end">차종</label>
<label for="ffnlgCarmdlCd--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">차종</label>
<select id="ffnlgCarmdlCd--${pageName}" name ="ffnlgCarmdlCd" data-map="FFNLG_CARMDL_CD" class="form-select" disabled>
<option value=""></option>
<c:forEach items="${FIM009List}" var="item">
@ -154,7 +160,7 @@
<div class="col-md-12" slot="edit">
<template class="eca">
<slot>
<label for="useFuelCd--${pageName}" class="w-px-150 bg-lighter pe-2 col-form-label text-sm-end">연료구분</label>
<label for="useFuelCd--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">연료구분</label>
<select id="useFuelCd--${pageName}" name="useFuelCd" data-map="USE_FUEL_CD" class="form-select" disabled>
<option value=""></option>
<c:forEach items="${LVS005List}" var="item">
@ -167,7 +173,7 @@
<div class="col-md-4" slot="edit">
<template class="dpv eca pvs">
<slot>
<label for="towngYn--${pageName}" class="w-px-150 bg-lighter pe-2 col-form-label text-sm-end">견인지시</label>
<label for="towngYn--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">견인지시</label>
<select id="towngYn--${pageName}" name="towngYn" class="form-select" data-map="TOWNG_YN">
<c:forEach items="${FIM053List}" var="item">
<option value="${item.code}">${item.value}</option>
@ -179,7 +185,7 @@
<div class="col-md-4" slot="edit">
<template class="dpv eca pvs">
<slot>
<label for="crdnSn--${pageName}" class="w-px-150 bg-lighter pe-2 col-form-label text-sm-end">스티커번호</label>
<label for="crdnSn--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">스티커번호</label>
<input type="text" id="crdnSn--${pageName}" name="crdnSn" data-map="CRDN_SN" class="form-control"
maxlength="20" data-maxlengthb="20" />
</slot>
@ -188,7 +194,7 @@
<div class="col-md-4" slot="edit">
<template class="dpv">
<slot>
<label for="parkngPsbltyRsltCd--${pageName}" class="w-px-150 bg-lighter pe-2 col-form-label text-sm-end">장애차량확인</label>
<label for="parkngPsbltyRsltCd--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">장애차량확인</label>
<select id="parkngPsbltyRsltCd--${pageName}" name="parkngPsbltyRsltCd" data-map="PARKNG_PSBLTY_RSLT_CD" class="form-select">
<c:forEach items="${FIM034List}" var="item">
<c:if test="${item.code == '0' or item.code == '1'}">
@ -202,7 +208,7 @@
<div class="col-md-12" slot="edit">
<template class="pvs bpv">
<slot>
<label for="teamNm--${pageName}" class="w-px-150 bg-lighter pe-2 col-form-label text-sm-end">단속조</label>
<label for="teamNm--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">단속조</label>
<select id="teamNm--${pageName}" name="teamNm" data-map="TEAM_NM" class="form-select">
</select>
</slot>
@ -211,7 +217,7 @@
<div class="col-md-12" slot="edit">
<template class="pvs bpv">
<slot>
<label class="w-px-150 bg-lighter pe-2 col-form-label text-sm-end">단속원</label>
<label class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">단속원</label>
<input type="text" id="teamer1--${pageName}" name="teamer1" data-map="TEAMER_1" class="form-control" />
<input type="text" id="teamer2--${pageName}" name="teamer2" data-map="TEAMER_2" class="form-control" />
<input type="text" id="teamer3--${pageName}" name="teamer3" data-map="TEAMER_3" class="form-control" />

Loading…
Cancel
Save