jsp파일 추가(단속자료 등록)

main
이범준 1 year ago
parent 6ae9e766c7
commit 4b9bd3ba0a

@ -1,19 +1,23 @@
package cokr.xit.fims.crdn.web;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import cokr.xit.base.code.CommonCode;
import cokr.xit.base.web.ApplicationController;
import cokr.xit.fims.crdn.service.Crdn05Service;
@RequestMapping(name="단속 자료 등록", value="/crdn/crdn05")
public class Crdn05Controller extends ApplicationController {
@Resource(name="crdn05Service")
private Crdn05Service crdn05Service;
/** .
* @return fims/crdn/crdn05010-main
*/
@ -22,7 +26,34 @@ public class Crdn05Controller extends ApplicationController {
ModelAndView mav = new ModelAndView();
mav.setViewName("fims/crdn/crdn05010-main");
mav.addObject("pageName", "crdn05010-main");
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM054");
mav.addObject("FIM054List", commonCodes.get("FIM054"));
return mav;
}
/** .
* @param
* @return fims/crdn/crdn05020-info
*/
public ModelAndView getFileRegistrationScreen() {
return new ModelAndView("fims/crdn/crdn05020-info");
}
/** .
* @param
* @return fims/crdn/crdn05030-info
*/
public ModelAndView getManualRegistrationScreen() {
ModelAndView mav = new ModelAndView("fims/crdn/crdn05030-info");
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM011","FIM034","FIM053","LVS005");
mav.addObject("FIM011List", commonCodes.get("FIM011"));
mav.addObject("FIM034List", commonCodes.get("FIM034"));
mav.addObject("FIM053List", commonCodes.get("FIM053"));
mav.addObject("LVS005List", commonCodes.get("LVS005"));
return mav;
}
}

@ -1,6 +1,13 @@
package cokr.xit.fims.crdn.web;
import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import cokr.xit.base.code.CommonCode;
/** .<br />
* { }/crdn/crdn05 .
@ -9,4 +16,38 @@ import org.springframework.stereotype.Controller;
@Controller
public class TaskCrdn05Controller extends Crdn05Controller {
@RequestMapping(name="주정차과태료업무 단속자료 파일 등록 화면", value="/020/PVS/info.do")
public ModelAndView getPvsFileRegistrationScreen() {
return getFileRegistrationScreen();
}
@RequestMapping(name="전용차로과태료업무 단속자료 파일 등록 화면", value="/020/BPV/info.do")
public ModelAndView getBpvFileRegistrationScreen() {
return getFileRegistrationScreen();
}
@RequestMapping(name="장애인과태료업무 단속자료 파일 등록 화면", value="/020/DPV/info.do")
public ModelAndView getDpvFileRegistrationScreen() {
return getFileRegistrationScreen();
}
@RequestMapping(name="전기차과태료업무 단속자료 파일 등록 화면", value="/020/ECA/info.do")
public ModelAndView getEcaFileRegistrationScreen() {
return getFileRegistrationScreen();
}
@RequestMapping(name="주정차과태료업무 단속자료 수기 등록 화면", value="/030/PVS/info.do")
public ModelAndView getPvsManualRegistrationScreen() {
return getManualRegistrationScreen();
}
@RequestMapping(name="전용차로과태료업무 단속자료 수기 등록 화면", value="/030/BPV/info.do")
public ModelAndView getBpvManualRegistrationScreen() {
return getManualRegistrationScreen();
}
@RequestMapping(name="장애인과태료업무 단속자료 수기 등록 화면", value="/030/DPV/info.do")
public ModelAndView getDpvManualRegistrationScreen() {
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM006");
return getManualRegistrationScreen().addObject("FIM006List", commonCodes.get("FIM006"));
}
@RequestMapping(name="전기차과태료업무 단속자료 수기 등록 화면", value="/030/ECA/info.do")
public ModelAndView getEcaManualRegistrationScreen() {
return getManualRegistrationScreen();
}
}

@ -1,3 +1,134 @@
<%@ 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="content-wrapper">
<div class="container-xxl flex-grow-1 px-0">
<c:set var="prefixName" scope="request">단속 자료 등록</c:set>
<div class="card">
<div class="wrapper-list">
<div>
<div class="container-page-btn">
<button type="button" class="btn btn-outline-dark" id="btnReset--${pageName}" title="초기화">초기화</button>
<span class="container-window-btn-right">
</span>
</div>
<form id="frmSearch--${pageName}" name="frmSearch">
<div class="container-search">
<div class="row g-1">
<div class="col-12">
<label class="form-label fw-bold form-search-title">시스템구분</label>
<span class="form-search-linebox">
<c:forEach items="${FIM054List}" var="item">
<label>
<input name="taskSeCd" type="radio" value="${item.code}"
class="form-check-input" alt="업무구분"
onchange="pageObject['${pageName}'].fnResetAndChangeBiz(this.value);">
${item.value}
</label>
</c:forEach>
</span>
</div>
</div>
</div>
</form>
<div>
<span class="container-page-btn">
<div class="d-flex flex-row justify-content-between">
</div>
<span class="container-window-btn-right">
<a href="#" class="btn btn-blue" id="btnInsertByFile--${pageName}" title="단속 파일 등록">단속 파일 등록</a>
<a href="#" class="btn btn-blue" id="btnInsertByHand--${pageName}" title="단속 수기 등록">단속 수기 등록</a>
</span>
</span>
</div>
</div>
</div>
</div>
</div>
<jsp:include page="/WEB-INF/jsp/include/bottom.jsp" />
<div class="content-backdrop fade"></div>
</div>
<script>
pageObject["${pageName}"] = {};
$(document).ready(function(){
var $P = pageObject["${pageName}"];
$P.crdnControl = new DatasetControl({
prefix:"crdn", prefixName:"단속", infoSize:"xl",
urls : { load : "" },
keymapper:info => info ? info.CRDN_ID : "",
dataGetter:obj => obj.crdnList,
appendData:true,
formats: {
}
});
$P.crdnControl.urls.newInfoByFile = "";
$P.crdnControl.urls.newInfoByHand = "";
$P.crdnControl.onDatasetChange = obj => {
};
$P.crdnControl.onCurrentChange = item => {
}
$P.crdnControl.newInfo = (type) => {
var url = "";
if(type == "file") url = $P.crdnControl.urls.newInfoByFile;
if(type == "hand") url = $P.crdnControl.urls.newInfoByHand;
var dialogId = "";
if(type == "file") dialogId = "filedialog";
if(type == "hand") dialogId = "manualdialog";
var title = "";
if(type == "file") title = "단속파일 등록";
if(type == "hand") title = "단속자료 수기 등록";
ajax.get({
url : url,
data: {},
success:resp => {
dialog.open({
id: dialogId,
title: title,
content:resp,
size: "xl",
init:() => {}
});
}
});
};
$P.fnReset = () => {
}
$P.fnResetAndChangeBiz = taskSeCd => {
$P.fnReset();
$P.crdnControl.urls.newInfoByFile = wctx.url("/crdn/crdn05/020/"+ taskSeCd +"/info.do");
$P.crdnControl.urls.newInfoByHand = wctx.url("/crdn/crdn05/030/"+ taskSeCd +"/info.do");
}
var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val();
$("#frmSearch--${pageName} input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
$P.fnResetAndChangeBiz(defaultBizValue);
$('#btnReset--${pageName}').on('click', () => $P.fnReset());
$("#btnInsertByFile--${pageName}").on('click', () => { $P.crdnControl.newInfo("file"); });
$("#btnInsertByHand--${pageName}").on('click', () => { $P.crdnControl.newInfo("hand"); });
//보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked"));
});
</script>

@ -0,0 +1,3 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false"%>
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>
파일등록팝업화면

@ -0,0 +1,157 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false"%>
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>
<form id="infoPrefix-form1" class="dpv eca">
<input name="id" type="hidden" data-map="CRDN_ID" />
<div class="row g-1">
<div class="col-md-6">
<label class="w-px-150 col-form-label text-sm-end required" for="crdnYmd">
위반일자
</label>
<input type="text" name="crdnYmd" data-map="CRDN_YMD" class="form-control form-date" required />
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
</div>
<div class="col-md-6">
<label class="w-px-150 col-form-label text-sm-end required" for="crdnHm">
(숫자4자리)위반시간
</label>
<input type="text" name="crdnHm" data-map="CRDN_TM" class="form-control form-date" data-fmt-type="time" required />
</div>
<div class="col-md-6">
<label class="w-px-150 col-form-label text-sm-end required" for="vhrno">
차량번호
</label>
<input type="text" name="vhrno" data-map="VHRNO" class="form-control" required />
</div>
<div class="col-md-6">
<label class="w-px-150 col-form-label text-sm-end" for="">
영상매체
</label>
<select name="" class="form-select">
</select>
</div>
<div class="col-md-12">
<label class="w-px-150 col-form-label text-sm-end" for="vltnId">
위반내용
</label>
<select name="vltnId" class="form-select" data-map="VLTN_ID">
<c:forEach items="${FIM006List}" var="item">
<option value="${item.code}">${item.value}</option>
</c:forEach>
</select>
</div>
<div class="col-md-12">
<label class="w-px-150 col-form-label text-sm-end" for="">
단속자
</label>
<input type="text" name="" data-map="" class="form-control" />
</div>
<div class="col-md-6">
<label class="w-px-150 col-form-label text-sm-end" for="">시군구</label>
<select name="" class="form-select">
</select>
</div>
<div class="col-md-6 select2-primary">
<label class="w-px-150 col-form-label text-sm-end" for="">법정동</label>
<select name="" class="form-select">
</select>
</div>
<div class="col-md-12">
<label class="w-px-150 col-form-label text-sm-end" for="">담당자</label>
<input type="text" name="" data-map="" class="form-control" />
</div>
<div class="col-md-12">
<label class="w-px-150 col-form-label text-sm-end" for="crdnPlc">위반장소</label>
<input type="text" name="crdnPlc" data-map="CRDN_PLC" class="form-control" />
</div>
<div class="col-md-12">
<label class="w-px-150 col-form-label text-sm-end" for="crdnSn">발행번호</label>
<input type="text" name="crdnSn" data-map="CRDN_SN" class="form-control" />
</div>
<div class="col-md-12">
<label class="w-px-150 col-form-label text-sm-end" for="">견인지시</label>
<select name="" class="form-select">
<c:forEach items="${FIM053List}" var="item">
<option value="${item.code}">${item.value}</option>
</c:forEach>
</select>
</div>
<div class="col-md-12">
<label class="w-px-150 col-form-label text-sm-end" for="">장애차량확인</label>
<select name="" class="form-select">
<c:forEach items="${FIM034List}" var="item">
<option value="${item.code}">${item.value}</option>
</c:forEach>
</select>
</div>
<div class="col-md-12">
<label class="w-px-150 col-form-label text-sm-end" for="etcCn">특기사항</label>
<input type="text" name="etcCn" data-map="ETC_CN" class="form-control" />
</div>
<div class="col-md-12">
<label class="w-px-150 col-form-label text-sm-end" for="rtpyrNm">소유자</label>
<input type="text" name="rtpyrNm" data-map="RTPYR_NM" class="form-control" />
</div>
<div class="col-md-4">
<label class="w-px-150 col-form-label text-sm-end" for="rtpyrSeCd">주민번호구분</label>
<select name="rtpyrSeCd" data-map="RTPYR_SE_CD" class="form-select">
<c:forEach items="${FIM011List}" var="item">
<option value="${item.code}">${item.value}</option>
</c:forEach>
</select>
</div>
<div class="col-md-4">
<label class="w-px-150 col-form-label text-sm-end" for="rtpyrNo">주민번호</label>
<input type="text" name="rtpyrNo" data-map="RTPYR_NO" class="form-control" />
</div>
<div class="col-md-4">
<label class="w-px-150 col-form-label text-sm-end" for="vin">차대번호</label>
<input type="text" name="vin" data-map="VIN" class="form-control" />
</div>
<div class="col-md-12">
<label class="w-px-150 col-form-label text-sm-end" for="addr">주소</label>
<input type="text" name="addr" data-map="ADDR" class="form-control w-px-700" />
</div>
<div class="col-md-12">
<label class="w-px-150 col-form-label text-sm-end" for="dtlAddr">상세주소</label>
<input type="text" name="dtlAddr" data-map="DTL_ADDR" class="form-control w-px-700" />
</div>
<div class="col-md-6">
<label class="w-px-150 col-form-label text-sm-end" for="zip">우편번호</label>
<input type="text" name="zip" data-map="ZIP" class="form-control w-px-100" />
</div>
<div class="col-md-6">
차량명칭/차량색상은 입력항목이 아닙니다.
</div>
<div class="col-md-6">
<label class="w-px-150 col-form-label text-sm-end" for="vhclNm">차량명칭</label>
<input type="text" name="vhclNm" data-map="VHCL_NM" class="form-control" readonly />
</div>
<div class="col-md-6">
<label class="w-px-150 col-form-label text-sm-end" for="vhclColor">차량색상</label>
<input type="text" name="vhclColor" data-map="VHCL_COLOR" class="form-control" readonly />
</div>
<div class="col-md-6">
<label class="w-px-150 col-form-label text-sm-end" for="useFuelCd">연료구분</label>
<select name="useFuelCd" data-map="USE_FUEL_CD" class="form-select" disabled>
<c:forEach items="${LVS005List}" var="item">
<option value=""></option>
<option value="${item.code}">${item.value}</option>
</c:forEach>
</select>
</div>
</div>
<div class="row mt-4 justify-content-end">
<div class="col-md-6">
<div class="row justify-content-end">
<div class="col-sm-3">
체크 계도처리
<button onclick="saveinfoPrefix();" type="button" class="btn btn-primary">저장</button>
</div>
</div>
</div>
</div>
</form>

@ -111,7 +111,7 @@
<input type="radio" name="temp1" value="Y" />예
<input type="radio" name="temp1" value="N" />아니오
</div>
<div class="col-6">
<div class="bpv col-6">
<label class="form-label fw-bold form-search-title">전용차로구분</label>
<select name="temp2" class="form-select">
<option value="">전체</option>

Loading…
Cancel
Save