fix : 민원테이블 수정
parent
e06398412e
commit
936eadace7
@ -1,449 +0,0 @@
|
||||
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||
<%@ include file="/WEB-INF/jsp/include/taglib.jsp" %>
|
||||
<%@ include file="/WEB-INF/jsp/include/fims/taglib.jsp" %>
|
||||
|
||||
<c:set var="bizName" value="주민 신고"/>
|
||||
|
||||
<div class="popup" style="min-width: 100px;">
|
||||
<div class="container-window2" style="max-width: 900px;">
|
||||
<p class="container-window-header2">
|
||||
<c:out value="${bizName}"/>(<c:out value="${reqDTO.interfaceSeqN}"/>) 상세
|
||||
</p>
|
||||
<div class="container-window-btn3">
|
||||
<button type="button" id="prev" name="prev" class="btn btn-sm btn-pagination">prev</button>
|
||||
<div>
|
||||
<span>
|
||||
<div id="totCnt" style="padding: 0 10px;"><span></span></div>
|
||||
</span>
|
||||
</div>
|
||||
<button type="button" id="next" name="next" class="btn btn-sm btn-pagination">next</button>
|
||||
</div>
|
||||
<form name="frmStmt">
|
||||
<table class="table-03">
|
||||
<caption><c:out value="${bizName}"/> 상세</caption>
|
||||
<colgroup>
|
||||
<col style="width: 13%;"/>
|
||||
<col style="width: 20%;"/>
|
||||
<col style="width: 13%;"/>
|
||||
<col style="width: 20%;"/>
|
||||
<col style="width: 13%;"/>
|
||||
<col style="width: 20%;"/>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>기관코드</th>
|
||||
<td>
|
||||
<input type="text" name="sggCd" value='<c:out value="${ctznDTO.sggCd}"/>' readonly>
|
||||
</td>
|
||||
<th>시스템코드</th>
|
||||
<td>
|
||||
<input type="text" name="sysSeCd" value='<c:out value="${ctznDTO.sysSeCd}"/>' readonly>
|
||||
</td>
|
||||
<th>민원구분</th>
|
||||
<td>
|
||||
<input type="text" name="cvlcptAplySeCd" value='<c:out value="${ctznDTO.cvlcptAplySeCd}"/>' readonly>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>민원신청번호</th>
|
||||
<td>
|
||||
<input type="text" name="petiAncCodeV" value='<c:out value="${ctznDTO.cvlcptAplyNo}"/>' readonly>
|
||||
</td>
|
||||
<th>민원접수번호</th>
|
||||
<td>
|
||||
<input type="text" name="petiNoC" value='<c:out value="${ctznDTO.cvlcptRcptNo}"/>' readonly>
|
||||
</td>
|
||||
<th>민원신청인명</th>
|
||||
<td>
|
||||
<input type="text" name="civilNoC" value='<c:out value="${ctznDTO.cvlcptAplcntNm}"/>' readonly>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>신청인이메일</th>
|
||||
<td>
|
||||
<input type="text" name="peterNameV" value='<c:out value="${ctznDTO.cvlcptAplcntEmailAdres}"/>' readonly>
|
||||
</td>
|
||||
<th>신청인우편번호</th>
|
||||
<td>
|
||||
<input type="text" name="zipCodeC" value='<c:out value="${ctznDTO.cvlcptAplcntZip}"/>' readonly>
|
||||
</td>
|
||||
<th>신청인주소</th>
|
||||
<td>
|
||||
<input type="text" name="addressV" value='<c:out value="${ctznDTO.cvlcptAplcntAdres}"/>' readonly>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>신청인핸드폰</th>
|
||||
<td>
|
||||
<input type="text" name="celNoV" value='<c:out value="${ctznDTO.cvlcptAplcntMoblphonNo}"/>' readonly>
|
||||
</td>
|
||||
<th>신청인전화</th>
|
||||
<td>
|
||||
<input type="text" name="telNoV" value='<c:out value="${ctznDTO.cvlcptAplcntTlphonNo}"/>' readonly>
|
||||
</td>
|
||||
<th>처리상태</th>
|
||||
<td>
|
||||
<input type="text" name="telNoV" value='<c:out value="${ctznDTO.ctznSttemntProcessSttus}"/>' readonly>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>민원신청제목</th>
|
||||
<td colspan="5">
|
||||
<input type="text" name="petiTitleV" value='<c:out value="${ctznDTO.cvlcptAplyTtlNm}"/>' readonly>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>민원신청내용</th>
|
||||
<td colspan="5">
|
||||
<textarea name="petiReasonL" rows="10" readonly><c:out value="${ctznDTO.cvlcptAplyCn}" /></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>민원접수일자</th>
|
||||
<td>
|
||||
<fmt:parseDate value="${ctznDTO.cvlcptRcptYmd}" var="cvlcptRcptYmd" pattern="yyyyMMdd"/>
|
||||
<input type="text" name="cvlcptRcptYmd" value='<fmt:formatDate value="${cvlcptRcptYmd}" pattern="yyyy-MM-dd"/>' readonly>
|
||||
</td>
|
||||
<th>민원처리기간</th>
|
||||
<td>
|
||||
<fmt:parseDate value="${ctznDTO.cvlcptPrcsPrnmntDt}" var="cvlcptPrcsPrnmntDt" pattern="yyyyMMddHHmmss"/>
|
||||
<input type="text" name="cvlcptPrcsPrnmntDt" value='<fmt:formatDate value="${cvlcptPrcsPrnmntDt}" pattern="yyyy-MM-dd HH:mm:ss"/>' readonly>
|
||||
</td>
|
||||
<th>민원등록일시</th>
|
||||
<td>
|
||||
<fmt:parseDate value="${ctznDTO.cvlcptRegistDt}" var="cvlcptRegistDt" pattern="yyyyMMddHHmmss"/>
|
||||
<input type="text" name="cvlcptRegistDt" value='<fmt:formatDate value="${cvlcptRegistDt}" pattern="yyyy-MM-dd HH:mm:ss"/>' readonly>
|
||||
</td>
|
||||
</tr>
|
||||
<%-- <tr>--%>
|
||||
<%-- <th>등록일시</th>--%>
|
||||
<%-- <td>--%>
|
||||
<%-- <fmt:parseDate value="${ctznDTO.regDt}" var="regDt" pattern="yyyyMMddHHmmss"/>--%>
|
||||
<%-- <input type="text" name="regDt" value="<fmt:formatDate value="${regDt}" pattern="yyyy-MM-dd HH:mm:ss"/>' readonly>--%>
|
||||
<%-- </td>--%>
|
||||
<%-- <th>등록인</th>--%>
|
||||
<%-- <td>--%>
|
||||
<%-- <input type="text" name="sendYnC" value='<c:out value="${ctznDTO.rgtr}"/>' readonly>--%>
|
||||
<%-- </td>--%>
|
||||
<%-- </tr>--%>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<c:forEach var="dtlDTO" items="${ctznDtlDTOs}" varStatus="status">
|
||||
|
||||
<form name="frmStmtDtl${dtlDTO.ctznSttemntDetailSn}">
|
||||
<div class="container-window-btn1">
|
||||
<span id="${dtlDTO.ctznSttemntDetailSn}" >
|
||||
<c:out value="${bizName}"/>(<c:out value="${reqDTO.interfaceSeqN}"/> - ${dtlDTO.ctznSttemntDetailSn}) 상세
|
||||
</span>
|
||||
<c:set var="isProcess" value="${empty dtlDTO.crdnId}"/>
|
||||
<span id="${dtlDTO.ctznSttemntDetailSn}" >
|
||||
<c:if test="${isProcess}">
|
||||
<a href="#" class="btn btn-blue" onclick="fnBiz.save('${dtlDTO.ctznSttemntDetailSn}')">저장</a>
|
||||
<a href="#" class="btn btn-red" onclick="fnBiz.remove('${dtlDTO.ctznSttemntDetailSn}')">삭제</a>
|
||||
<c:if test="${!empty dtlDTO.vhrno}">
|
||||
<a href="#" class="btn btn-darkgray" onclick="fnBiz.reglt('${dtlDTO.ctznSttemntDetailSn}')">단속처리</a>
|
||||
<a href="#" class="btn btn-darkgray" onclick="fnBiz.erpp('${dtlDTO.ctznSttemntDetailSn}')">서손처리</a>
|
||||
</c:if>
|
||||
</c:if>
|
||||
</span>
|
||||
</div>
|
||||
<table class="table-03">
|
||||
<caption><c:out value="${bizName}"/> 상세</caption>
|
||||
<colgroup>
|
||||
<col style="width: 13%;"/>
|
||||
<col style="width: 20%;"/>
|
||||
<col style="width: 13%;"/>
|
||||
<col style="width: 20%;"/>
|
||||
<col style="width: 13%;"/>
|
||||
<col style="width: 20%;"/>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<th>순번</th>
|
||||
<td>
|
||||
<input type="text" name="ctznSttemntDetailSn" value='<c:out value="${dtlDTO.ctznSttemntDetailSn}"/>' readonly>
|
||||
</td>
|
||||
<th>차량번호</th>
|
||||
<td>
|
||||
<input type="text" name="vhrno" value='<c:out value="${dtlDTO.vhrno}"/>' <c:if test="${!isProcess}">readonly</c:if>>
|
||||
</td>
|
||||
<th>단속ID</th>
|
||||
<td>
|
||||
<input type="text" name="crdnId" value='<c:out value="${dtlDTO.crdnId}"/>' readonly>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>단속일시</th>
|
||||
<td>
|
||||
<fmt:parseDate value="${dtlDTO.crdnYmdTime}" var="crdnYmdTime" pattern="yyyyMMddHHmmss"/>
|
||||
<input type="text" name="crdnYmdTime" value='<fmt:formatDate value="${crdnYmdTime}" pattern="yyyy-MM-dd HH:mm:ss"/>' readonly>
|
||||
</td>
|
||||
<th>단속장소</th>
|
||||
<td>
|
||||
<input type="text" name="crdnPlc" value='<c:out value="${dtlDTO.crdnPlc}"/>' readonly>
|
||||
</td>
|
||||
<th>위반내역</th>
|
||||
<td>
|
||||
<input type="text" name="vltnCn" value='<c:out value="${dtlDTO.vltnCn}"/>' readonly>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>GPS위도</th>
|
||||
<td>
|
||||
<input type="text" name="gpsX" value='<c:out value="${dtlDTO.gpsX}"/>' readonly>
|
||||
</td>
|
||||
<th>GPS경도</th>
|
||||
<td>
|
||||
<input type="text" name="gpsY" value='<c:out value="${dtlDTO.gpsY}"/>' readonly>
|
||||
</td>
|
||||
<th>기관코드</th>
|
||||
<td>
|
||||
<code:select id="sggCd" name="sggCd" grpId="XIT025" defaultSelect="${dtlDTO.sggCd}" title="기관코드" cls="form-select" alt="기관코드" disabled="true"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>과태료코드</th>
|
||||
<td>
|
||||
<code:select id="sysSeCd" name="sysSeCd" grpId="FIM001" defaultSelect="${dtlDTO.sysSeCd}" title="과태료코드" cls="form-select" alt="과태료코드" disabled="true"/>
|
||||
</td>
|
||||
<th>처리상태</th>
|
||||
<td>
|
||||
<code:select id="ctznSttemntDetailProcessSttus" grpId="FIM010" defaultSelect="${dtlDTO.ctznSttemntDetailProcessSttus}" title="처리상태" cls="form-select" alt="처리상태" disabled="true"/>
|
||||
</td>
|
||||
<th>등록일시</th>
|
||||
<td>
|
||||
<fmt:parseDate value="${dtlDTO.regDt}" var="regDt" pattern="yyyyMMddHHmmss"/>
|
||||
<input type="text" name="regDt" value='<fmt:formatDate value="${regDt}" pattern="yyyy-MM-dd HH:mm:ss"/>' readonly>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
</c:forEach>
|
||||
|
||||
</form>
|
||||
|
||||
<div class="container-window-btn2">
|
||||
<span>
|
||||
<a href="#" class="btn btn-blue" onclick="fnBiz.savePhoto()">save</a>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div id="imgList"></div>
|
||||
|
||||
<div>
|
||||
<img id="uploadImage"/>
|
||||
</div>
|
||||
|
||||
<div class="container-window-btn2">
|
||||
<span>
|
||||
<a href="#" id="btnClose" class="btn btn-lightgray">닫기</a>
|
||||
</span>
|
||||
</div>
|
||||
<!-- //등록버튼 -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- //popup -->
|
||||
|
||||
<script type="text/javascript" src="${pageContext.request.contextPath}/resources/js/fims/framework/cmm/cmmDownloadImg.js" defer></script>
|
||||
<script type="text/javascript">
|
||||
/**************************************************************************
|
||||
* Global Variable
|
||||
**************************************************************************/
|
||||
let orgDtlDatas = [];
|
||||
let downloadImgParam;
|
||||
var imageEditorPopup = (flag, params) => fnBiz.pagePopup(flag, params);
|
||||
var callbackReloadImage = () => fnBiz.downloadImg();
|
||||
|
||||
let $$Control = new FimsDatasetControl({
|
||||
prefix:"aaa",
|
||||
prefixName:"ㅁㅁㅁ",
|
||||
infoSize:"xl",
|
||||
urls : {
|
||||
imageEditor : frwkApiUrl.POPUP_PAINTWEB_IMG_EDITOR,
|
||||
imageView : frwkApiUrl.POPUP_IMG_VIEW
|
||||
},
|
||||
keymapper:info => info ? info.SOME_KEY : "",
|
||||
dataGetter:obj => obj.data.contents
|
||||
});
|
||||
|
||||
/* *******************************
|
||||
* Biz function
|
||||
******************************* */
|
||||
const fnBiz = {
|
||||
search: (params) => {
|
||||
cmmAjax({
|
||||
showSuccessMsg: false
|
||||
,url: fimsApiUrl.FIND_EC_CTZN_STMT_DTL_AND_ATTCH_FILES
|
||||
,data: params
|
||||
,success: (res) => {
|
||||
cmmImgDownload('#imgList', res.attchFiles, fnBiz.pagePopup, true);
|
||||
window.opener.pageNav.reloadNav($('#prev'), $('#next'), $('#totCnt span'));
|
||||
|
||||
let formFields = new FimsFormFields("form[name='frmStmt']");
|
||||
formFields.set(res.ctznDTO);
|
||||
|
||||
for(let idx; idx<res.ctznDtlDTOs.length; idx++){
|
||||
let formFields = new FimsFormFields("form[name='frmStmtDtl"+idx+"']");
|
||||
formFields.set(res.ctznDtlDTOs[idx]);
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
,downloadImg: () => {
|
||||
|
||||
cmmAjax({
|
||||
showSuccessMsg: false
|
||||
<%--,url: '<c:url value="/fims/biz/ec/findNatlNewspaperAttchFiles.do"/>' --%>
|
||||
,url: fimsApiUrl.FIND_EC_NATL_NEWS_PAPER_ATTCH_FILES
|
||||
//,data: {interfaceSeqN: '${reqDTO.interfaceSeqN}'}
|
||||
,data: downloadImgParam
|
||||
,success: (res) => {
|
||||
cmmImgDownload('#imgList', res.data?.contents, fnBiz.pagePopup, true);
|
||||
}
|
||||
})
|
||||
}
|
||||
,pagePopup: function(flag, params) {
|
||||
let popTitle;
|
||||
let popOption;
|
||||
switch (flag) {
|
||||
//FIXME: 이미지에디터 팝업 width, height는 952, 800으로 fix
|
||||
// paintweb config의 imageWidth, imageHeight, viewportWidth, viewPortHeight 와 같이 연관
|
||||
case "imageEditor":
|
||||
popOption = {width: 952, height: 800, resizable:false,scrollbars:'no'};
|
||||
popTitle = "이미지 에디터";
|
||||
break;
|
||||
case "imageView":
|
||||
popOption = {width: 950, height: 750, resizable:false,scrollbars:'no'};
|
||||
popTitle = "이미지 보기";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
window.opener.popup = CmmPopup.open($$Control.urls[flag], params, popOption, popTitle);
|
||||
//var w = window.open("/imageEditor.do", "", "width=800,height=650,top=0px,left=200px,status=,resizable=false,scrollbars=no");
|
||||
}
|
||||
,save: (ctznSttemntDetailSn) => {
|
||||
let idx = Number(ctznSttemntDetailSn);
|
||||
if(orgDtlDatas[idx-1] == $('form[name=frmStmtDtl'+ctznSttemntDetailSn+']').serialize()){
|
||||
alert('변경된 내용이 없습니다.');
|
||||
return false;
|
||||
}
|
||||
const frm = $('form[name=frmStmtDtl'+ctznSttemntDetailSn+']');
|
||||
const data = {
|
||||
interfaceSeqN: '${reqDTO.interfaceSeqN}'
|
||||
,ctznSttemntDetailSn
|
||||
,vhrno: frm.find('input[name=vhrno]').val().trim()
|
||||
}
|
||||
cmmBizAjax('modify', {
|
||||
<%--url: '<c:url value="/fims/biz/ec/modifyCtznStmtDtl.do"/>'--%>
|
||||
url: fimsApiUrl.MODIFY_EC_CTZN_STMT_DTL
|
||||
,data: $.param(data)
|
||||
})
|
||||
}
|
||||
,remove: (ctznSttemntDetailSn) => {
|
||||
const data = {
|
||||
interfaceSeqN: '${reqDTO.interfaceSeqN}'
|
||||
,ctznSttemntDetailSn: ctznSttemntDetailSn
|
||||
}
|
||||
if(confirm('첨부파일도 함께 삭제 하시겠습까?')) data.removeImageData = true;
|
||||
|
||||
cmmBizAjax('remove', {
|
||||
<%--url: '<c:url value="/fims/biz/ec/removeCtznStmtDtl.do"/>'--%>
|
||||
url: fimsApiUrl.REMOVE_EC_CTZN_STMT_DTL
|
||||
,data: $.param(data)
|
||||
})
|
||||
}
|
||||
,reglt: (ctznSttemntDetailSn) => {
|
||||
// //FIXME:화면필드값 말고, 서버데이타 기준으로 변경해야 함 - 서버에 저장한 차량번호 기준
|
||||
// const frm = $('form[name=frmStmtDtl'+ctznSttemntDetailSn+']');
|
||||
// const vhrno = frm.find('input[name=vhrno]').val().trim();
|
||||
// if(!vhrno){
|
||||
// alert('차량번호는 필수 입니다.\n확인 처리후 진행해주세요.');
|
||||
// return false;
|
||||
// }
|
||||
|
||||
const data = {
|
||||
interfaceSeqN: '${reqDTO.interfaceSeqN}'
|
||||
,ctznSttemntDetailSn
|
||||
}
|
||||
|
||||
if(!confirm('단속자료를 생성 하시겠습니까?')) return false;
|
||||
cmmAjax({
|
||||
<%--url: '<c:url value="/fims/biz/ec/saveRtReglt.do"/>' --%>
|
||||
url: fimsApiUrl.SAVE_EC_CTZN_STMT_RT_REGLT
|
||||
,data: $.param(data)
|
||||
})
|
||||
}
|
||||
,erpp: (ctznSttemntDetailSn) => {
|
||||
const data = {
|
||||
interfaceSeqN: '${reqDTO.interfaceSeqN}'
|
||||
,ctznSttemntDetailSn
|
||||
}
|
||||
if(!confirm('서손 처리 하시겠습니까?')) return false;
|
||||
cmmAjax({
|
||||
<%--url: '<c:url value="/fims/biz/ec/saveRtErpp.do"/>'--%>
|
||||
url: fimsApiUrl.SAVE_EC_CTZN_STMT_RT_ERPP
|
||||
,data: $.param(data)
|
||||
})
|
||||
}
|
||||
,savePhoto: () => {
|
||||
dragableSave();
|
||||
}
|
||||
};
|
||||
|
||||
/**************************************************************************
|
||||
* event
|
||||
**************************************************************************/
|
||||
$(() => {
|
||||
$('img').on('click', () => {
|
||||
fnBiz.viewImg()
|
||||
});
|
||||
|
||||
$(window).on("unload", function (e) {
|
||||
window.opener?.unblockUI();
|
||||
window.opener?.callbackSearch();
|
||||
return null;
|
||||
});
|
||||
|
||||
$("#btnClose").on('click', () => {
|
||||
window.close()
|
||||
});
|
||||
|
||||
$('#prev').on('click', () => {
|
||||
window.opener.pageNav.onClickNavBtn('prev', (gridInfo) => {
|
||||
fnBiz.search(gridInfo.curRowData)
|
||||
});
|
||||
})
|
||||
|
||||
|
||||
$('#next').on('click', () => {
|
||||
window.opener.pageNav.onClickNavBtn('next', (gridInfo) => {
|
||||
fnBiz.search(gridInfo.curRowData);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
/**************************************************************************
|
||||
* initialize
|
||||
**************************************************************************/
|
||||
$(document).ready(function () {
|
||||
<c:forEach var="dtlDTO" items="${ctznDtlDTOs}" varStatus="status">
|
||||
orgDtlDatas.push($('form[name=frmStmtDtl${dtlDTO.ctznSttemntDetailSn}]').serialize())
|
||||
</c:forEach>
|
||||
|
||||
downloadImgParam = {interfaceSeqN: '${reqDTO.interfaceSeqN}'};
|
||||
fnBiz.downloadImg();
|
||||
|
||||
window.opener.pageNav.reloadNav($('#prev'), $('#next'), $('#totCnt span'))
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
|
Loading…
Reference in New Issue