민원내역 원본보기 팝업 추가

main
이범준 1 year ago
parent 38ab43f11a
commit f219ef8246

@ -81,6 +81,9 @@ public class Crdn01Controller extends ApplicationController {
ModelAndView mav = new ModelAndView(json ? "jsonView" : "fims/crdn/crdn01050-info");
mav.addObject("pageName", "crdn01050-info");
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM039");
mav.addObject("FIM039List", commonCodes.get("FIM039"));
DataObject info = crdn01Service.getCivilComplaintOriginalInfo(req);
mav.addObject("cvlcptInfo", json ? info : toJson(info));

@ -394,7 +394,7 @@ $(document).ready(function(){
id : "cvlcptOrgnlDialog--${pageName}"
, title : "민원내역 원본"
, content : resp
, size : "lg"
, size : "xl"
, init : () => {}
});
}

@ -1,3 +1,99 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false"%>
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>
<c:set var="prefixName" scope="request">민원 원본 보기</c:set>
<div class="d-flex flex-row justify-content-evenly">
<div class="card" title="민원원본">
<form id="frmEdit--${pageName}">
<input id="crdnId--${pageName}" name="crdnId" type="hidden" data-map="CRDN_ID" />
<div class="row g-1">
<div class="col-md-4">
<label for="cvlcptRcptNo--${pageName}" class="w-px-150 bg-lighter pe-2 col-form-label text-sm-end">
접수번호
</label>
<input type="text" id="cvlcptRcptNo--${pageName}" name="cvlcptRcptNo" data-map="CVLCPT_RCPT_NO"
class="form-control" readonly />
</div>
<div class="col-md-4">
<label for="cvlcptAplcntNm--${pageName}" class="w-px-150 bg-lighter pe-2 col-form-label text-sm-end">
신청자
</label>
<input type="text" id="cvlcptAplcntNm--${pageName}" name="cvlcptAplcntNm" data-map="CVLCPT_APLCNT_NM"
class="form-control" readonly />
</div>
<div class="col-md-4">
<label for="cvlcptRcptYmd--${pageName}" class="w-px-150 bg-lighter pe-2 col-form-label text-sm-end">
접수일자
</label>
<input type="text" id="cvlcptRcptYmd--${pageName}" name="cvlcptRcptYmd" data-map="CVLCPT_RCPT_YMD"
class="form-control" readonly />
</div>
<div class="col-md-4">
<label for="cvlcptPrcsPrnmtDt--${pageName}" class="w-px-150 bg-lighter pe-2 col-form-label text-sm-end">
처리기한
</label>
<input type="text" id="cvlcptPrcsPrnmtDt--${pageName}" name="cvlcptPrcsPrnmtDt" data-map="CVLCPT_PRCS_PRNMNT_DT"
class="form-control" readonly />
</div>
<div class="col-md-12">
<label for="cvlcptAplyCn--${pageName}" class="w-px-150 bg-lighter pe-2 col-form-label text-sm-center">
민원 내용
</label>
</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>
</div>
</div>
<div class="col-md-6">
<label for="cvlcptAplySeCd--${pageName}" class="w-px-150 bg-lighter pe-2 col-form-label text-sm-center">
접수경로
</label>
<select id="cvlcptAplySeCd--${pageName}" name="cvlcptAplySeCd" class="form-select" data-map="CVLCPT_APLY_SE_CD"
disabled="disabled">
<option value=""></option>
<c:forEach items="${FIM039List}" var="item">
<option value="${item.code}">${item.value}</option>
</c:forEach>
</select>
</div>
</div>
</form>
</div>
</div>
<script>
pageObject["${pageName}"] = {};
$(document).ready(function() {
var $P = pageObject["${pageName}"];
/**************************************************************************
* DatasetControl, Dataset, FormFields
**************************************************************************/
$P.formFields = new FimsFormFields("#frmEdit--${pageName}");
$P.cvlcptControl = new DatasetControl({
prefix:"cvlcpt", prefixName:"민원", infoSize:"xl",
urls : { load : "" },
keymapper:info => info ? info.CRDN_ID : "",
dataGetter:obj => obj.cvlcptInfo,
formats: { }
});
/**************************************************************************
* DatasetControl.on, Dataset.on
**************************************************************************/
$P.cvlcptControl.onCurrentChange = (item) => {
$P.formFields.set(item);
}
/**************************************************************************
* 초기화
**************************************************************************/
$P.cvlcptControl.setData([${cvlcptInfo}]);
});
</script>
Loading…
Cancel
Save