jsp파일 추가(단속자료 등록)
parent
6ae9e766c7
commit
4b9bd3ba0a
@ -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>
|
Loading…
Reference in New Issue