|
|
@ -6,7 +6,7 @@
|
|
|
|
<form id="frmEdit--${pageName}">
|
|
|
|
<form id="frmEdit--${pageName}">
|
|
|
|
<input id="crdnId--${pageName}" name="crdnId" type="hidden" data-map="CRDN_ID" />
|
|
|
|
<input id="crdnId--${pageName}" name="crdnId" type="hidden" data-map="CRDN_ID" />
|
|
|
|
<input id="taskSeCd--${pageName}" name="taskSeCd" type="hidden" data-map="TASK_SE_CD" />
|
|
|
|
<input id="taskSeCd--${pageName}" name="taskSeCd" type="hidden" data-map="TASK_SE_CD" />
|
|
|
|
|
|
|
|
|
|
|
|
<div class="row mt-4 justify-content-end mb-3">
|
|
|
|
<div class="row mt-4 justify-content-end mb-3">
|
|
|
|
<div class="col-md-4">
|
|
|
|
<div class="col-md-4">
|
|
|
|
<input type="text" id="countStauts--${pageName}" class="form-control w-px-150 text-center fw-bold" readonly />
|
|
|
|
<input type="text" id="countStauts--${pageName}" class="form-control w-px-150 text-center fw-bold" readonly />
|
|
|
@ -16,7 +16,7 @@
|
|
|
|
<div class="col-md-8">
|
|
|
|
<div class="col-md-8">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="row g-1">
|
|
|
|
<div class="row g-1">
|
|
|
|
<div class="col-md-12" slot="edit">
|
|
|
|
<div class="col-md-12" slot="edit">
|
|
|
|
<template class="pvs bpv">
|
|
|
|
<template class="pvs bpv">
|
|
|
@ -43,14 +43,14 @@
|
|
|
|
위반시간
|
|
|
|
위반시간
|
|
|
|
</label>
|
|
|
|
</label>
|
|
|
|
<input type="text" id="crdnTm--${pageName}" name="crdnTm" data-map="CRDN_TM"
|
|
|
|
<input type="text" id="crdnTm--${pageName}" name="crdnTm" data-map="CRDN_TM"
|
|
|
|
class="form-control form-time" data-fmt-type="time" maxlength="8" required
|
|
|
|
class="form-control form-time" data-fmt-type="time" maxlength="8" required
|
|
|
|
placeholder="시:분:초" />
|
|
|
|
placeholder="시:분:초" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4">
|
|
|
|
<div class="col-md-4">
|
|
|
|
<label for="vhrno--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">
|
|
|
|
<label for="vhrno--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">
|
|
|
|
차량번호
|
|
|
|
차량번호
|
|
|
|
</label>
|
|
|
|
</label>
|
|
|
|
<input type="text" id="vhrno--${pageName}" name="vhrno" data-map="VHRNO" class="form-control"
|
|
|
|
<input type="text" id="vhrno--${pageName}" name="vhrno" data-map="VHRNO" class="form-control"
|
|
|
|
data-maxlengthb="30" />
|
|
|
|
data-maxlengthb="30" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<div class="col-md-6">
|
|
|
@ -74,14 +74,14 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<div class="col-md-6">
|
|
|
|
<label for="crdnPlc--${pageName}" class="w-px-130 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"
|
|
|
|
<input type="text" id="crdnPlc--${pageName}" name="crdnPlc" data-map="CRDN_PLC"
|
|
|
|
class="form-control w-px-300" data-maxlengthb="200" />
|
|
|
|
class="form-control w-px-300" data-maxlengthb="200" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-6" slot="edit">
|
|
|
|
<div class="col-md-6" slot="edit">
|
|
|
|
<template class="bpv">
|
|
|
|
<template class="bpv">
|
|
|
|
<slot>
|
|
|
|
<slot>
|
|
|
|
<label for="dtlCrdnPlc--${pageName}" class="w-px-130 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"
|
|
|
|
<input type="text" id="dtlCrdnPlc--${pageName}" name="dtlCrdnPlc" data-map="DTL_CRDN_PLC" class="form-control"
|
|
|
|
data-maxlenghb="200" />
|
|
|
|
data-maxlenghb="200" />
|
|
|
|
</slot>
|
|
|
|
</slot>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
@ -98,40 +98,40 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<div class="col-md-6">
|
|
|
|
<label for="cvlcptAplcntNm--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">신고자</label>
|
|
|
|
<label for="cvlcptAplcntNm--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">신고자</label>
|
|
|
|
<input type="text" id="cvlcptAplcntNm--${pageName}" name="cvlcptAplcntNm" data-map="CVLCPT_APLCNT_NM"
|
|
|
|
<input type="text" id="cvlcptAplcntNm--${pageName}" name="cvlcptAplcntNm" data-map="CVLCPT_APLCNT_NM"
|
|
|
|
class="form-control" readonly />
|
|
|
|
class="form-control" readonly />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<div class="col-md-6">
|
|
|
|
<label for="cvlcptPrcsPicNm--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">담당자</label>
|
|
|
|
<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"
|
|
|
|
<input type="text" id="cvlcptPrcsPicNm--${pageName}" name="cvlcptPrcsPicNm" data-map="CVLCPT_PRCS_PIC_NM"
|
|
|
|
class="form-control" readonly />
|
|
|
|
class="form-control" readonly />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-12">
|
|
|
|
<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 for="cvlcptAplyCn--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end align-top"
|
|
|
|
>신고내용</label>
|
|
|
|
>신고내용</label>
|
|
|
|
<textarea type="text" id="cvlcptAplyCn--${pageName}" name="cvlcptAplyCn" data-map="CVLCPT_APLY_CN"
|
|
|
|
<textarea type="text" id="cvlcptAplyCn--${pageName}" name="cvlcptAplyCn" data-map="CVLCPT_APLY_CN"
|
|
|
|
class="form-control" cols="100%" rows="4" readonly
|
|
|
|
class="form-control" cols="100%" rows="4" readonly
|
|
|
|
></textarea>
|
|
|
|
></textarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<div class="col-md-6">
|
|
|
|
<label for="cvlcptRcptYmd--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">접수일</label>
|
|
|
|
<label for="cvlcptRcptYmd--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">접수일</label>
|
|
|
|
<input type="text" id="cvlcptRcptYmd--${pageName}" name="cvlcptRcptYmd" data-map="CVLCPT_RCPT_YMD"
|
|
|
|
<input type="text" id="cvlcptRcptYmd--${pageName}" name="cvlcptRcptYmd" data-map="CVLCPT_RCPT_YMD"
|
|
|
|
class="form-control form-date" data-fmt-type="day" maxlength="10" disabled />
|
|
|
|
class="form-control form-date" data-fmt-type="day" maxlength="10" disabled />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<div class="col-md-6">
|
|
|
|
<label for="cvldptPrcsPrnmntDt--${pageName}"
|
|
|
|
<label for="cvldptPrcsPrnmntDt--${pageName}"
|
|
|
|
class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">답변기한</label>
|
|
|
|
class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">답변기한</label>
|
|
|
|
<input type="text" id="cvldptPrcsPrnmntDt--${pageName}" name="cvldptPrcsPrnmntDt" data-map="CVLCPT_PRCS_PRNMNT_DT"
|
|
|
|
<input type="text" id="cvldptPrcsPrnmntDt--${pageName}" name="cvldptPrcsPrnmntDt" data-map="CVLCPT_PRCS_PRNMNT_DT"
|
|
|
|
class="form-control form-date" data-fmt-type="day" maxlength="10" disabled />
|
|
|
|
class="form-control form-date" data-fmt-type="day" maxlength="10" disabled />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-12">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<label for="etcCn--${pageName}" class="w-px-130 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"
|
|
|
|
<input type="text" id="etcCn--${pageName}" name="etcCn" data-map="ETC_CN"
|
|
|
|
class="form-control w-px-500" data-maxlengthb="1000" />
|
|
|
|
class="form-control w-px-500" data-maxlengthb="1000" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4">
|
|
|
|
<div class="col-md-4">
|
|
|
|
<label for="rtpyrNm--${pageName}" class="w-px-130 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"
|
|
|
|
<input type="text" id="rtpyrNm--${pageName}" name="rtpyrNm" data-map="RTPYR_NM" class="form-control"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4">
|
|
|
|
<div class="col-md-4">
|
|
|
@ -149,17 +149,17 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-12">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<label for="addr--${pageName}" class="w-px-130 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"
|
|
|
|
<input type="text" id="addr--${pageName}" name="addr" data-map="ADDR" class="form-control w-px-700"
|
|
|
|
data-maxlengthb="320" />
|
|
|
|
data-maxlengthb="320" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-12">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<label for="dtlAddr--${pageName}" class="w-px-130 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"
|
|
|
|
<input type="text" id="dtlAddr--${pageName}" name="dtlAddr" data-map="DTL_ADDR" class="form-control w-px-700"
|
|
|
|
data-maxlengthb="200" />
|
|
|
|
data-maxlengthb="200" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<div class="col-md-6">
|
|
|
|
<label for="zip--${pageName}" class="w-px-130 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"
|
|
|
|
<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})" />
|
|
|
|
maxlength="7" pattern="(\d{3}-\d{3}|\d{6}|\d{5})" />
|
|
|
|
<button type="button" class="btn btn-sm btn-outline-dark" onclick="">검색</button>
|
|
|
|
<button type="button" class="btn btn-sm btn-outline-dark" onclick="">검색</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -168,17 +168,17 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4">
|
|
|
|
<div class="col-md-4">
|
|
|
|
<label for="vin--${pageName}" class="w-px-130 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
|
|
|
|
<input type="text" id="vin--${pageName}" name="vin" data-map="VIN" class="form-control" readonly
|
|
|
|
placeholder="입력항목이 아닙니다." />
|
|
|
|
placeholder="입력항목이 아닙니다." />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4">
|
|
|
|
<div class="col-md-4">
|
|
|
|
<label for="vhclNm--${pageName}" class="w-px-130 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
|
|
|
|
<input type="text" id="vhclNm--${pageName}" name="vhclNm" data-map="VHCL_NM" class="form-control" readonly
|
|
|
|
placeholder="입력항목이 아닙니다." />
|
|
|
|
placeholder="입력항목이 아닙니다." />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4">
|
|
|
|
<div class="col-md-4">
|
|
|
|
<label for="vhclColor--${pageName}" class="w-px-130 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
|
|
|
|
<input type="text" id="vhclColor--${pageName}" name="vhclColor" data-map="VHCL_COLOR" class="form-control" readonly
|
|
|
|
placeholder="입력항목이 아닙니다." />
|
|
|
|
placeholder="입력항목이 아닙니다." />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-12" slot="edit">
|
|
|
|
<div class="col-md-12" slot="edit">
|
|
|
@ -223,7 +223,7 @@
|
|
|
|
<template class="dpv eca pvs">
|
|
|
|
<template class="dpv eca pvs">
|
|
|
|
<slot>
|
|
|
|
<slot>
|
|
|
|
<label for="crdnSn--${pageName}" class="w-px-130 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"
|
|
|
|
<input type="text" id="crdnSn--${pageName}" name="crdnSn" data-map="CRDN_SN" class="form-control"
|
|
|
|
maxlength="20" data-maxlengthb="20" />
|
|
|
|
maxlength="20" data-maxlengthb="20" />
|
|
|
|
</slot>
|
|
|
|
</slot>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
@ -259,7 +259,7 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</form>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="card" style="width:500px;">
|
|
|
|
<div class="card" style="width:500px;">
|
|
|
@ -267,7 +267,7 @@
|
|
|
|
<input type="file" id="newFileList--${pageName}" name="newFileList" multiple accept="image/*" hidden />
|
|
|
|
<input type="file" id="newFileList--${pageName}" name="newFileList" multiple accept="image/*" hidden />
|
|
|
|
<input type="file" id="modifyFileList--${pageName}" name="modifyFileList" multiple accept="image/*" hidden />
|
|
|
|
<input type="file" id="modifyFileList--${pageName}" name="modifyFileList" multiple accept="image/*" hidden />
|
|
|
|
</form>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="col-md-12 d-flex justify-content-between">
|
|
|
|
<div class="col-md-12 d-flex justify-content-between">
|
|
|
|
<div class="fs-4 fw-bold">등록된 사진</div>
|
|
|
|
<div class="fs-4 fw-bold">등록된 사진</div>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
@ -280,7 +280,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
<form id="frmUploadSet--${pageName}" method="post" enctype="multipart/form-data">
|
|
|
|
<form id="frmUploadSet--${pageName}" method="post" enctype="multipart/form-data">
|
|
|
|
<input type="file" id="inputUploadSet--${pageName}" name="inputUploadSet" multiple accept="image/*" hidden />
|
|
|
|
<input type="file" id="inputUploadSet--${pageName}" name="inputUploadSet" multiple accept="image/*" hidden />
|
|
|
|
</form>
|
|
|
|
</form>
|
|
|
|
<div class="col-md-12 d-flex justify-content-between">
|
|
|
|
<div class="col-md-12 d-flex justify-content-between">
|
|
|
|
<div class="fs-4 fw-bold">추가한 사진</div>
|
|
|
|
<div class="fs-4 fw-bold">추가한 사진</div>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
@ -314,19 +314,19 @@ pageObject.childReq.push({
|
|
|
|
$(document).ready(function(){
|
|
|
|
$(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
|
|
var $P = pageObject["${pageName}"];
|
|
|
|
var $P = pageObject["${pageName}"];
|
|
|
|
|
|
|
|
|
|
|
|
if(pageObject.parentRes.length > 0){
|
|
|
|
if(pageObject.parentRes.length > 0){
|
|
|
|
$P.provided = pageObject.parentRes.pop();
|
|
|
|
$P.provided = pageObject.parentRes.pop();
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$P.provided = pageObject.childReq.pop();
|
|
|
|
$P.provided = pageObject.childReq.pop();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.existFileArr = [];
|
|
|
|
$P.existFileArr = [];
|
|
|
|
|
|
|
|
|
|
|
|
$P.captureFileArr = [];
|
|
|
|
$P.captureFileArr = [];
|
|
|
|
$P.localUploadArr = [];
|
|
|
|
$P.localUploadArr = [];
|
|
|
|
$P.numberPlateArr = [];
|
|
|
|
$P.numberPlateArr = [];
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* DatasetControl, Dataset, FormFields
|
|
|
|
* DatasetControl, Dataset, FormFields
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
@ -335,9 +335,9 @@ $(document).ready(function(){
|
|
|
|
$P.uploadSet = uploadSupport("#inputUploadSet--${pageName}");
|
|
|
|
$P.uploadSet = uploadSupport("#inputUploadSet--${pageName}");
|
|
|
|
|
|
|
|
|
|
|
|
$P.crdnControl = new DatasetControl({
|
|
|
|
$P.crdnControl = new DatasetControl({
|
|
|
|
urls : {
|
|
|
|
urls : {
|
|
|
|
load : "",
|
|
|
|
load : "",
|
|
|
|
getInfo : wctx.url("/${taskSeCd}/cvlc/cvlc01/020/info.do"),
|
|
|
|
getInfo : wctx.url("/${taskSeCd}/cvlc/cvlc01/020/info.do"),
|
|
|
|
update : wctx.url("/${taskSeCd}/cvlc/cvlc01/020/update.do"),
|
|
|
|
update : wctx.url("/${taskSeCd}/cvlc/cvlc01/020/update.do"),
|
|
|
|
create : wctx.url("/${taskSeCd}/cvlc/cvlc01/020/create.do")
|
|
|
|
create : wctx.url("/${taskSeCd}/cvlc/cvlc01/020/create.do")
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -348,19 +348,19 @@ $(document).ready(function(){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.crdnControl.save = (info, accept) => {
|
|
|
|
$P.crdnControl.save = (info, accept) => {
|
|
|
|
if (!info) return;
|
|
|
|
if (!info) return;
|
|
|
|
|
|
|
|
|
|
|
|
var formData = new FormData(document.getElementById("frmFile--${pageName}"));
|
|
|
|
var formData = new FormData(document.getElementById("frmFile--${pageName}"));
|
|
|
|
for(var key in info) {
|
|
|
|
for(var key in info) {
|
|
|
|
var value = info[key];
|
|
|
|
var value = info[key];
|
|
|
|
formData.append(key,value);
|
|
|
|
formData.append(key,value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
formData.delete("newFileList");
|
|
|
|
formData.delete("newFileList");
|
|
|
|
formData.delete("modifyFileList");
|
|
|
|
formData.delete("modifyFileList");
|
|
|
|
|
|
|
|
|
|
|
|
if($P.localUploadArr.length > 0){
|
|
|
|
if($P.localUploadArr.length > 0){
|
|
|
|
$P.localUploadArr.forEach(item => formData.append("newFileList",item));
|
|
|
|
$P.localUploadArr.forEach(item => formData.append("newFileList",item));
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -370,7 +370,7 @@ $(document).ready(function(){
|
|
|
|
if($P.captureFileArr.length > 0){
|
|
|
|
if($P.captureFileArr.length > 0){
|
|
|
|
$P.captureFileArr.forEach(item => formData.append("newFileList",item));
|
|
|
|
$P.captureFileArr.forEach(item => formData.append("newFileList",item));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if($P.existFileArr.length > 0){
|
|
|
|
if($P.existFileArr.length > 0){
|
|
|
|
for(var i=0; i < $P.existFileArr.length; i++){
|
|
|
|
for(var i=0; i < $P.existFileArr.length; i++){
|
|
|
|
if($P.existFileArr[i].status == "delete"){
|
|
|
|
if($P.existFileArr[i].status == "delete"){
|
|
|
@ -381,11 +381,11 @@ $(document).ready(function(){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if(accept){
|
|
|
|
if(accept){
|
|
|
|
formData.append("acceptYn", "Y");
|
|
|
|
formData.append("acceptYn", "Y");
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
formData.append("acceptYn", "N");
|
|
|
|
formData.append("acceptYn", "N");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ajax.post({
|
|
|
|
ajax.post({
|
|
|
@ -401,12 +401,12 @@ $(document).ready(function(){
|
|
|
|
$P.crdnControl.onCurrentChange = (item) => {
|
|
|
|
$P.crdnControl.onCurrentChange = (item) => {
|
|
|
|
$P.formFields.set(item);
|
|
|
|
$P.formFields.set(item);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.uploadSet.onDatasetChange = () => {
|
|
|
|
$P.uploadSet.onDatasetChange = () => {
|
|
|
|
var files = $P.uploadSet.getDataset();
|
|
|
|
var files = $P.uploadSet.getDataset();
|
|
|
|
files.forEach(item => $P.localUploadArr.push(item));
|
|
|
|
files.forEach(item => $P.localUploadArr.push(item));
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnDisplay(false);
|
|
|
|
$P.fnDisplay(false);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
$P.uploadSet.onRemove = () => { };
|
|
|
|
$P.uploadSet.onRemove = () => { };
|
|
|
|
|
|
|
|
|
|
|
@ -414,15 +414,15 @@ $(document).ready(function(){
|
|
|
|
if (resp.saved) {
|
|
|
|
if (resp.saved) {
|
|
|
|
|
|
|
|
|
|
|
|
dialog.alert("저장됐습니다.");
|
|
|
|
dialog.alert("저장됐습니다.");
|
|
|
|
|
|
|
|
|
|
|
|
if($("#levyExcldialog--${pageName}").length > 0){
|
|
|
|
if($("#levyExcldialog--${pageName}").length > 0){
|
|
|
|
dialog.close("levyExcldialog--${pageName}");
|
|
|
|
dialog.close("levyExcldialog--${pageName}");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var crdnId = $("#crdnId--${pageName}").val();
|
|
|
|
var crdnId = $("#crdnId--${pageName}").val();
|
|
|
|
|
|
|
|
|
|
|
|
var cursorKey = "";
|
|
|
|
var cursorKey = "";
|
|
|
|
|
|
|
|
|
|
|
|
var nextKey = $P.provided.getNextKey(crdnId);
|
|
|
|
var nextKey = $P.provided.getNextKey(crdnId);
|
|
|
|
if(nextKey != ""){
|
|
|
|
if(nextKey != ""){
|
|
|
|
cursorKey = nextKey;
|
|
|
|
cursorKey = nextKey;
|
|
|
@ -432,7 +432,7 @@ $(document).ready(function(){
|
|
|
|
cursorKey = prevKey;
|
|
|
|
cursorKey = prevKey;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$("#refreshEnd--${pageName}").attr("data-cursor-key", cursorKey);
|
|
|
|
$("#refreshEnd--${pageName}").attr("data-cursor-key", cursorKey);
|
|
|
|
$P.provided.refreshList();
|
|
|
|
$P.provided.refreshList();
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -442,14 +442,14 @@ $(document).ready(function(){
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
$P.fnMakeImgForExistFile = (fileArr) => {
|
|
|
|
$P.fnMakeImgForExistFile = (fileArr) => {
|
|
|
|
var tagsText = "";
|
|
|
|
var tagsText = "";
|
|
|
|
|
|
|
|
|
|
|
|
for(var index = 0, j = 0; index < fileArr.length; index++){
|
|
|
|
for(var index = 0, j = 0; index < fileArr.length; index++){
|
|
|
|
var item = fileArr[index];
|
|
|
|
var item = fileArr[index];
|
|
|
|
|
|
|
|
|
|
|
|
if(item.status == "delete"){
|
|
|
|
if(item.status == "delete"){
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
tagsText += "<label class='mx-2'>";
|
|
|
|
tagsText += "<label class='mx-2'>";
|
|
|
|
tagsText += "<input type='radio' name='existPhoto' class='form-check-input' value='"+item.FILE_ID +"' ";
|
|
|
|
tagsText += "<input type='radio' name='existPhoto' class='form-check-input' value='"+item.FILE_ID +"' ";
|
|
|
|
if(index == 0){
|
|
|
|
if(index == 0){
|
|
|
@ -458,30 +458,30 @@ $(document).ready(function(){
|
|
|
|
tagsText += " />";
|
|
|
|
tagsText += " />";
|
|
|
|
tagsText += "<img src='"+ item.URL +"' width='200' height='200' />";
|
|
|
|
tagsText += "<img src='"+ item.URL +"' width='200' height='200' />";
|
|
|
|
tagsText += "</label>";
|
|
|
|
tagsText += "</label>";
|
|
|
|
|
|
|
|
|
|
|
|
if(j % 2 == 1){
|
|
|
|
if(j % 2 == 1){
|
|
|
|
tagsText += "<br />";
|
|
|
|
tagsText += "<br />";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
j++;
|
|
|
|
j++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return tagsText;
|
|
|
|
return tagsText;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnMakeImgForNewFile = (fileArr) => {
|
|
|
|
$P.fnMakeImgForNewFile = (fileArr) => {
|
|
|
|
var tagsText = "";
|
|
|
|
var tagsText = "";
|
|
|
|
|
|
|
|
|
|
|
|
for(var index = 0; index < fileArr.length; index++){
|
|
|
|
for(var index = 0; index < fileArr.length; index++){
|
|
|
|
var item = fileArr[index];
|
|
|
|
var item = fileArr[index];
|
|
|
|
|
|
|
|
|
|
|
|
tagsText += "<label class='mx-2'>";
|
|
|
|
tagsText += "<label class='mx-2'>";
|
|
|
|
tagsText += "<input type='checkbox' name='newPhoto' class='form-check-input' value='"+item.id +"' ";
|
|
|
|
tagsText += "<input type='checkbox' name='newPhoto' class='form-check-input' value='"+item.id +"' ";
|
|
|
|
tagsText += " />";
|
|
|
|
tagsText += " />";
|
|
|
|
tagsText += "<img src='"+ item.url +"' width='200' height='200' />";
|
|
|
|
tagsText += "<img src='"+ item.url +"' width='200' height='200' />";
|
|
|
|
tagsText += "</label>";
|
|
|
|
tagsText += "</label>";
|
|
|
|
|
|
|
|
|
|
|
|
if(index % 2 == 1){
|
|
|
|
if(index % 2 == 1){
|
|
|
|
tagsText += "<br />";
|
|
|
|
tagsText += "<br />";
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -489,12 +489,12 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
|
|
return tagsText;
|
|
|
|
return tagsText;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnDisplay = (isExist) => {
|
|
|
|
$P.fnDisplay = (isExist) => {
|
|
|
|
if(isExist){
|
|
|
|
if(isExist){
|
|
|
|
var displayArea = document.querySelector("#displayForExist--${pageName}");
|
|
|
|
var displayArea = document.querySelector("#displayForExist--${pageName}");
|
|
|
|
var tagsText = $P.fnMakeImgForExistFile($P.existFileArr);
|
|
|
|
var tagsText = $P.fnMakeImgForExistFile($P.existFileArr);
|
|
|
|
|
|
|
|
|
|
|
|
if(tagsText == ""){
|
|
|
|
if(tagsText == ""){
|
|
|
|
displayArea.innerHTML = "등록된 사진이 없습니다.";
|
|
|
|
displayArea.innerHTML = "등록된 사진이 없습니다.";
|
|
|
|
$("#btnEditPhoto--cvlc01020-info").hide();
|
|
|
|
$("#btnEditPhoto--cvlc01020-info").hide();
|
|
|
@ -503,27 +503,27 @@ $(document).ready(function(){
|
|
|
|
$("#btnEditPhoto--cvlc01020-info").show();
|
|
|
|
$("#btnEditPhoto--cvlc01020-info").show();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
var displayArea = document.querySelector("#displayForNew--${pageName}");
|
|
|
|
var displayArea = document.querySelector("#displayForNew--${pageName}");
|
|
|
|
var concatArr = $P.localUploadArr.concat($P.numberPlateArr).concat($P.captureFileArr);
|
|
|
|
var concatArr = $P.localUploadArr.concat($P.numberPlateArr).concat($P.captureFileArr);
|
|
|
|
var tagsText = $P.fnMakeImgForNewFile(concatArr);
|
|
|
|
var tagsText = $P.fnMakeImgForNewFile(concatArr);
|
|
|
|
displayArea.innerHTML = tagsText;
|
|
|
|
displayArea.innerHTML = tagsText;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnReset = () => {
|
|
|
|
$P.fnReset = () => {
|
|
|
|
var crdnId = $("#crdnId--${pageName}").val();
|
|
|
|
var crdnId = $("#crdnId--${pageName}").val();
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnGo(crdnId);
|
|
|
|
$P.fnGo(crdnId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnAccept = () => {
|
|
|
|
$P.fnAccept = () => {
|
|
|
|
|
|
|
|
|
|
|
|
if(!customValidate($("#frmEdit--${pageName} input"))) return;
|
|
|
|
if(!customValidate($("#frmEdit--${pageName} input"))) return;
|
|
|
|
|
|
|
|
|
|
|
|
var vhrno = document.getElementById("vhrno--${pageName}");
|
|
|
|
var vhrno = document.getElementById("vhrno--${pageName}");
|
|
|
|
var rtpyrNm = document.getElementById("rtpyrNm--${pageName}");
|
|
|
|
var rtpyrNm = document.getElementById("rtpyrNm--${pageName}");
|
|
|
|
|
|
|
|
|
|
|
|
if(vhrno.value == ""){
|
|
|
|
if(vhrno.value == ""){
|
|
|
|
dialog.alert({
|
|
|
|
dialog.alert({
|
|
|
|
content:"수용 처리를 하기 위해선 차량번호가 입력되어야 합니다.",
|
|
|
|
content:"수용 처리를 하기 위해선 차량번호가 입력되어야 합니다.",
|
|
|
@ -531,7 +531,7 @@ $(document).ready(function(){
|
|
|
|
});
|
|
|
|
});
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if(rtpyrNm.value == ""){
|
|
|
|
if(rtpyrNm.value == ""){
|
|
|
|
dialog.alert({
|
|
|
|
dialog.alert({
|
|
|
|
content:"수용 처리를 하기 위해선 소유주정보가 입력되어야 합니다.",
|
|
|
|
content:"수용 처리를 하기 위해선 소유주정보가 입력되어야 합니다.",
|
|
|
@ -539,7 +539,7 @@ $(document).ready(function(){
|
|
|
|
});
|
|
|
|
});
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if(confirm("현재 단속 정보를 저장하시겠습니까?")){
|
|
|
|
if(confirm("현재 단속 정보를 저장하시겠습니까?")){
|
|
|
|
$P.crdnControl.save($P.formFields.get(), true);
|
|
|
|
$P.crdnControl.save($P.formFields.get(), true);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -554,19 +554,19 @@ $(document).ready(function(){
|
|
|
|
file.id = "file-" + identify;
|
|
|
|
file.id = "file-" + identify;
|
|
|
|
file.url = (window.URL || window.webkitURL).createObjectURL(file);
|
|
|
|
file.url = (window.URL || window.webkitURL).createObjectURL(file);
|
|
|
|
$P.captureFileArr.push(file);
|
|
|
|
$P.captureFileArr.push(file);
|
|
|
|
if(index === array.length - 1){
|
|
|
|
if(index === array.length - 1){
|
|
|
|
$P.fnDisplay(false);
|
|
|
|
$P.fnDisplay(false);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.editPhotoCallback = (modifiedFile, originalFileInfo, isNumberPlate) => {
|
|
|
|
$P.editPhotoCallback = (modifiedFile, originalFileInfo, isNumberPlate) => {
|
|
|
|
|
|
|
|
|
|
|
|
modifiedFile.id = "file-" + new Date().getTime() + "-" + "0";
|
|
|
|
modifiedFile.id = "file-" + new Date().getTime() + "-" + "0";
|
|
|
|
modifiedFile.url = (window.URL || window.webkitURL).createObjectURL(modifiedFile);
|
|
|
|
modifiedFile.url = (window.URL || window.webkitURL).createObjectURL(modifiedFile);
|
|
|
|
|
|
|
|
|
|
|
|
if(isNumberPlate){
|
|
|
|
if(isNumberPlate){
|
|
|
|
$P.numberPlateArr.push(modifiedFile);
|
|
|
|
$P.numberPlateArr.push(modifiedFile);
|
|
|
|
$P.fnDisplay(false);
|
|
|
|
$P.fnDisplay(false);
|
|
|
@ -579,16 +579,16 @@ $(document).ready(function(){
|
|
|
|
$P.existFileArr.splice(index, 1, modifiedFile);
|
|
|
|
$P.existFileArr.splice(index, 1, modifiedFile);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnDisplay(true);
|
|
|
|
$P.fnDisplay(true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.openLevyExclPop = (levyExclSeCd) => {
|
|
|
|
$P.openLevyExclPop = (levyExclSeCd) => {
|
|
|
|
|
|
|
|
|
|
|
|
if(levyExclSeCd == "2"){
|
|
|
|
if(levyExclSeCd == "2"){
|
|
|
|
var rtpyrNm = document.getElementById("rtpyrNm--${pageName}");
|
|
|
|
var rtpyrNm = document.getElementById("rtpyrNm--${pageName}");
|
|
|
|
|
|
|
|
|
|
|
|
if(rtpyrNm.value == ""){
|
|
|
|
if(rtpyrNm.value == ""){
|
|
|
|
dialog.alert({
|
|
|
|
dialog.alert({
|
|
|
|
content:"계고 처리를 하기 위해선 소유주정보가 입력되어야 합니다.",
|
|
|
|
content:"계고 처리를 하기 위해선 소유주정보가 입력되어야 합니다.",
|
|
|
@ -598,20 +598,20 @@ $(document).ready(function(){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var crdnId = $("#crdnId--${pageName}").val();
|
|
|
|
var crdnId = $("#crdnId--${pageName}").val();
|
|
|
|
|
|
|
|
|
|
|
|
var params = {
|
|
|
|
var params = {
|
|
|
|
"crdnId" : crdnId,
|
|
|
|
"crdnId" : crdnId,
|
|
|
|
"levyExclSeCd" : levyExclSeCd,
|
|
|
|
"levyExclSeCd" : levyExclSeCd,
|
|
|
|
"saveCallbackFuncName" : "pageObject['cvlc01020-info']['exclSaveCallback']"
|
|
|
|
"saveCallbackFuncName" : "pageObject['cvlc01020-info']['exclSaveCallback']"
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
ajax.get({
|
|
|
|
url : wctx.url("/excl/excl01/020/info.do"),
|
|
|
|
url : wctx.url("/excl/excl01/020/info.do"),
|
|
|
|
data : params,
|
|
|
|
data : params,
|
|
|
|
success : resp => {
|
|
|
|
success : resp => {
|
|
|
|
|
|
|
|
|
|
|
|
dialog.open({
|
|
|
|
dialog.open({
|
|
|
|
id : "levyExcldialog--${pageName}",
|
|
|
|
id : "levyExcldialog--${pageName}",
|
|
|
|
title : "부과제외 정보",
|
|
|
|
title : "부과제외 정보",
|
|
|
@ -623,29 +623,29 @@ $(document).ready(function(){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.exclSaveCallback = function(exclInfo){
|
|
|
|
$P.exclSaveCallback = function(exclInfo){
|
|
|
|
|
|
|
|
|
|
|
|
var mergeInfo = {...$P.formFields.get(), ...exclInfo}
|
|
|
|
var mergeInfo = {...$P.formFields.get(), ...exclInfo}
|
|
|
|
|
|
|
|
|
|
|
|
$P.crdnControl.save(mergeInfo, false);
|
|
|
|
$P.crdnControl.save(mergeInfo, false);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnPrev = () => {
|
|
|
|
$P.fnPrev = () => {
|
|
|
|
var prevKey = $P.provided.getPrevKey($("#crdnId--${pageName}").val());
|
|
|
|
var prevKey = $P.provided.getPrevKey($("#crdnId--${pageName}").val());
|
|
|
|
if(prevKey != ""){
|
|
|
|
if(prevKey != ""){
|
|
|
|
$P.fnGo(prevKey);
|
|
|
|
$P.fnGo(prevKey);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnNext = () => {
|
|
|
|
$P.fnNext = () => {
|
|
|
|
var nextKey = $P.provided.getNextKey($("#crdnId--${pageName}").val());
|
|
|
|
var nextKey = $P.provided.getNextKey($("#crdnId--${pageName}").val());
|
|
|
|
if(nextKey != ""){
|
|
|
|
if(nextKey != ""){
|
|
|
|
$P.fnGo(nextKey);
|
|
|
|
$P.fnGo(nextKey);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnGo = (crdnId) => {
|
|
|
|
$P.fnGo = (crdnId) => {
|
|
|
|
ajax.get({
|
|
|
|
ajax.get({
|
|
|
|
url: $P.crdnControl.urls.getInfo,
|
|
|
|
url: $P.crdnControl.urls.getInfo,
|
|
|
@ -657,29 +657,29 @@ $(document).ready(function(){
|
|
|
|
var crdnInfo = resp.crdnInfo;
|
|
|
|
var crdnInfo = resp.crdnInfo;
|
|
|
|
crdnInfo.CVLCPT_APLY_CN = escapeHTMLEntity(crdnInfo.CVLCPT_APLY_CN);
|
|
|
|
crdnInfo.CVLCPT_APLY_CN = escapeHTMLEntity(crdnInfo.CVLCPT_APLY_CN);
|
|
|
|
$P.crdnControl.setData([crdnInfo]);
|
|
|
|
$P.crdnControl.setData([crdnInfo]);
|
|
|
|
|
|
|
|
|
|
|
|
//보안모드
|
|
|
|
//보안모드
|
|
|
|
fn_securityModeToggle($("#securityMode--top").is(":checked"));
|
|
|
|
fn_securityModeToggle($("#securityMode--top").is(":checked"));
|
|
|
|
|
|
|
|
|
|
|
|
var cs = $P.provided.getCountStatus($("#crdnId--${pageName}").val());
|
|
|
|
var cs = $P.provided.getCountStatus($("#crdnId--${pageName}").val());
|
|
|
|
$("#countStauts--${pageName}").val(cs);
|
|
|
|
$("#countStauts--${pageName}").val(cs);
|
|
|
|
$P.provided.selectRow(crdnId);
|
|
|
|
$P.provided.selectRow(crdnId);
|
|
|
|
|
|
|
|
|
|
|
|
if(crdnInfo.videoExist == "N"){
|
|
|
|
if(crdnInfo.videoExist == "N"){
|
|
|
|
$("#btnOpenVideoCapture--${pageName}").hide();
|
|
|
|
$("#btnOpenVideoCapture--${pageName}").hide();
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$("#btnOpenVideoCapture--${pageName}").show();
|
|
|
|
$("#btnOpenVideoCapture--${pageName}").show();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.existFileArr = [];
|
|
|
|
$P.existFileArr = [];
|
|
|
|
if(crdnInfo.fileList){
|
|
|
|
if(crdnInfo.fileList){
|
|
|
|
crdnInfo.fileList.forEach(function(item){
|
|
|
|
crdnInfo.fileList.forEach(function(item){
|
|
|
|
item.status = "";
|
|
|
|
item.status = "";
|
|
|
|
$P.existFileArr.push(item);
|
|
|
|
$P.existFileArr.push(item);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$P.fnDisplay(true);
|
|
|
|
$P.fnDisplay(true);
|
|
|
|
|
|
|
|
|
|
|
|
$P.captureFileArr = [];
|
|
|
|
$P.captureFileArr = [];
|
|
|
|
$P.localUploadArr = [];
|
|
|
|
$P.localUploadArr = [];
|
|
|
|
$P.numberPlateArr = [];
|
|
|
|
$P.numberPlateArr = [];
|
|
|
@ -688,43 +688,43 @@ $(document).ready(function(){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnCopy = () => {
|
|
|
|
$P.fnCopy = () => {
|
|
|
|
var crdnId = $("#crdnId--${pageName}").val();
|
|
|
|
var crdnId = $("#crdnId--${pageName}").val();
|
|
|
|
|
|
|
|
|
|
|
|
if(confirm("현 자료의 복사본을 생성하시겠습니까?")){
|
|
|
|
if(confirm("현 자료의 복사본을 생성하시겠습니까?")){
|
|
|
|
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
ajax.get({
|
|
|
|
url : $P.crdnControl.urls.create,
|
|
|
|
url : $P.crdnControl.urls.create,
|
|
|
|
data : { crdnId : crdnId },
|
|
|
|
data : { crdnId : crdnId },
|
|
|
|
success : resp => {
|
|
|
|
success : resp => {
|
|
|
|
if (resp.saved) {
|
|
|
|
if (resp.saved) {
|
|
|
|
dialog.alert("복사 자료가 생성되었습니다.");
|
|
|
|
dialog.alert("복사 자료가 생성되었습니다.");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnOpenCvlcptOrgnl = () => {
|
|
|
|
$P.fnOpenCvlcptOrgnl = () => {
|
|
|
|
var crdnId = $("#crdnId--${pageName}").val();
|
|
|
|
var crdnId = $("#crdnId--${pageName}").val();
|
|
|
|
|
|
|
|
|
|
|
|
var dialogId = "cvlcptOrgnlDialog--${pageName}";
|
|
|
|
var dialogId = "cvlcptOrgnlDialog--${pageName}";
|
|
|
|
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
ajax.get({
|
|
|
|
url : wctx.url("/${taskSeCd}/cvlc/cvlc01/050/info.do"),
|
|
|
|
url : wctx.url("/${taskSeCd}/cvlc/cvlc01/050/info.do"),
|
|
|
|
data : { crdnId : crdnId },
|
|
|
|
data : { crdnId : crdnId },
|
|
|
|
success : resp => {
|
|
|
|
success : resp => {
|
|
|
|
dialog.open({
|
|
|
|
dialog.open({
|
|
|
|
id : dialogId,
|
|
|
|
id : dialogId,
|
|
|
|
title : "민원내역 원본",
|
|
|
|
title : "민원내역 원본",
|
|
|
|
content : resp,
|
|
|
|
content : resp,
|
|
|
|
size : "xl",
|
|
|
|
size : "xl",
|
|
|
|
init : () => {
|
|
|
|
init : () => {
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -733,7 +733,7 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnHold = () => {
|
|
|
|
$P.fnHold = () => {
|
|
|
|
var crdnId = $("#crdnId--${pageName}").val();
|
|
|
|
var crdnId = $("#crdnId--${pageName}").val();
|
|
|
|
|
|
|
|
|
|
|
|
$P.provided.holdRow(crdnId);
|
|
|
|
$P.provided.holdRow(crdnId);
|
|
|
|
|
|
|
|
|
|
|
|
var nextKey = $P.provided.getNextKey(crdnId);
|
|
|
|
var nextKey = $P.provided.getNextKey(crdnId);
|
|
|
@ -746,37 +746,37 @@ $(document).ready(function(){
|
|
|
|
$P.fnGo(prevKey);
|
|
|
|
$P.fnGo(prevKey);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
dialog.close("cvlcptInitialDataEditDialog--${openerPageName}");
|
|
|
|
dialog.close("cvlcptInitialDataEditDialog--${openerPageName}");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* 초기화(업무별 입력항목)
|
|
|
|
* 초기화(업무별 입력항목)
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
var clsForTask = "${taskSeCd}".toLowerCase();
|
|
|
|
var clsForTask = "${taskSeCd}".toLowerCase();
|
|
|
|
|
|
|
|
|
|
|
|
//업무별 입력 항목
|
|
|
|
//업무별 입력 항목
|
|
|
|
renderForTask('frmEdit--${pageName}', clsForTask);
|
|
|
|
renderForTask('frmEdit--${pageName}', clsForTask);
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* element.on
|
|
|
|
* element.on
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
$("#btnPrev--${pageName}").on("click", () => $P.fnPrev() );
|
|
|
|
$("#btnPrev--${pageName}").on("click", () => $P.fnPrev() );
|
|
|
|
$("#btnNext--${pageName}").on("click", () => $P.fnNext() );
|
|
|
|
$("#btnNext--${pageName}").on("click", () => $P.fnNext() );
|
|
|
|
|
|
|
|
|
|
|
|
$("#btnReset--${pageName}").on("click", () => $P.fnReset() );
|
|
|
|
$("#btnReset--${pageName}").on("click", () => $P.fnReset() );
|
|
|
|
$("#btnInstLevyExcl1--${pageName}").on("click", () => $P.openLevyExclPop("1"));
|
|
|
|
$("#btnInstLevyExcl1--${pageName}").on("click", () => $P.openLevyExclPop("1"));
|
|
|
|
$("#btnInstLevyExcl2--${pageName}").on("click", () => $P.openLevyExclPop("2"));
|
|
|
|
$("#btnInstLevyExcl2--${pageName}").on("click", () => $P.openLevyExclPop("2"));
|
|
|
|
$("#btnDataCopy--${pageName}").on("click", () => $P.fnCopy());
|
|
|
|
$("#btnDataCopy--${pageName}").on("click", () => $P.fnCopy());
|
|
|
|
$("#btnHold--${pageName}").on("click", () => $P.fnHold());
|
|
|
|
$("#btnHold--${pageName}").on("click", () => $P.fnHold());
|
|
|
|
$("#btnOpenCvlcptOrgnl--${pageName}").on("click", () => $P.fnOpenCvlcptOrgnl());
|
|
|
|
$("#btnOpenCvlcptOrgnl--${pageName}").on("click", () => $P.fnOpenCvlcptOrgnl());
|
|
|
|
$("#btnAccept--${pageName}").on('click', () => $P.fnAccept());
|
|
|
|
$("#btnAccept--${pageName}").on('click', () => $P.fnAccept());
|
|
|
|
|
|
|
|
|
|
|
|
$("#btnAddFile--${pageName}").on('click', () => { $("#inputUploadSet--${pageName}").trigger("click"); });
|
|
|
|
$("#btnAddFile--${pageName}").on('click', () => { $("#inputUploadSet--${pageName}").trigger("click"); });
|
|
|
|
|
|
|
|
|
|
|
|
$("#btnOpenVideoCapture--${pageName}").on('click', () => {
|
|
|
|
$("#btnOpenVideoCapture--${pageName}").on('click', () => {
|
|
|
|
var crdnId = $("#crdnId--${pageName}").val();
|
|
|
|
var crdnId = $("#crdnId--${pageName}").val();
|
|
|
|
|
|
|
|
|
|
|
|
window.open(wctx.url("/sprt/sprt03/010/main.do?openerPageName=${pageName}&crdnId="+crdnId)
|
|
|
|
window.open(wctx.url("/sprt/sprt03/010/main.do?openerPageName=${pageName}&crdnId="+crdnId)
|
|
|
|
,"newVideoCapture"
|
|
|
|
,"newVideoCapture"
|
|
|
|
,"width=1800,height=950"
|
|
|
|
,"width=1800,height=950"
|
|
|
@ -788,9 +788,9 @@ $(document).ready(function(){
|
|
|
|
alert("선택된 사진이 없습니다.");
|
|
|
|
alert("선택된 사진이 없습니다.");
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var fileId = checked.val();
|
|
|
|
var fileId = checked.val();
|
|
|
|
|
|
|
|
|
|
|
|
window.open(wctx.url("/sprt/sprt03/020/main.do?openerPageName=${pageName}&fileId="+fileId)
|
|
|
|
window.open(wctx.url("/sprt/sprt03/020/main.do?openerPageName=${pageName}&fileId="+fileId)
|
|
|
|
,"editPhoto"
|
|
|
|
,"editPhoto"
|
|
|
|
,"width=1400,height=750"
|
|
|
|
,"width=1400,height=750"
|
|
|
@ -798,43 +798,43 @@ $(document).ready(function(){
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$("#btnDeleteExistPhoto--${pageName}").on('click', () => {
|
|
|
|
$("#btnDeleteExistPhoto--${pageName}").on('click', () => {
|
|
|
|
|
|
|
|
|
|
|
|
var checked = $("#displayForExist--${pageName}").find("[name='existPhoto']:checked");
|
|
|
|
var checked = $("#displayForExist--${pageName}").find("[name='existPhoto']:checked");
|
|
|
|
if(checked.length < 1){
|
|
|
|
if(checked.length < 1){
|
|
|
|
alert("선택된 사진이 없습니다.");
|
|
|
|
alert("선택된 사진이 없습니다.");
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var target = checked[0].value;
|
|
|
|
var target = checked[0].value;
|
|
|
|
|
|
|
|
|
|
|
|
$P.existFileArr.forEach(function(item){
|
|
|
|
$P.existFileArr.forEach(function(item){
|
|
|
|
if(item.FILE_ID == target){
|
|
|
|
if(item.FILE_ID == target){
|
|
|
|
item.status = "delete";
|
|
|
|
item.status = "delete";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnDisplay(true);
|
|
|
|
$P.fnDisplay(true);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$("#btnCancelAddFile--${pageName}").on('click', () => {
|
|
|
|
$("#btnCancelAddFile--${pageName}").on('click', () => {
|
|
|
|
var checked = $("#displayForNew--${pageName}").find("[name='newPhoto']:checked");
|
|
|
|
var checked = $("#displayForNew--${pageName}").find("[name='newPhoto']:checked");
|
|
|
|
if(checked.length < 1){
|
|
|
|
if(checked.length < 1){
|
|
|
|
alert("선택된 사진이 없습니다.");
|
|
|
|
alert("선택된 사진이 없습니다.");
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var checkedArr = [];
|
|
|
|
var checkedArr = [];
|
|
|
|
for(var i=0; i < checked.length; i++){
|
|
|
|
for(var i=0; i < checked.length; i++){
|
|
|
|
checkedArr.push(checked[i].value);
|
|
|
|
checkedArr.push(checked[i].value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.captureFileArr = $P.captureFileArr.filter(item => checkedArr.indexOf(item.id) == -1);
|
|
|
|
$P.captureFileArr = $P.captureFileArr.filter(item => checkedArr.indexOf(item.id) == -1);
|
|
|
|
$P.localUploadArr = $P.localUploadArr.filter(item => checkedArr.indexOf(item.id) == -1);
|
|
|
|
$P.localUploadArr = $P.localUploadArr.filter(item => checkedArr.indexOf(item.id) == -1);
|
|
|
|
$P.numberPlateArr = $P.numberPlateArr.filter(item => checkedArr.indexOf(item.id) == -1);
|
|
|
|
$P.numberPlateArr = $P.numberPlateArr.filter(item => checkedArr.indexOf(item.id) == -1);
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnDisplay(false);
|
|
|
|
$P.fnDisplay(false);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$("#vhrno--${pageName}").on("keyup",function(e){
|
|
|
|
$("#vhrno--${pageName}").on("keyup",function(e){
|
|
|
|
if(e.key == "Enter"){
|
|
|
|
if(e.key == "Enter"){
|
|
|
|
var crdnYmd = $("#crdnYmd--${pageName}").val().replaceAll("-", "");
|
|
|
|
var crdnYmd = $("#crdnYmd--${pageName}").val().replaceAll("-", "");
|
|
|
@ -853,7 +853,7 @@ $(document).ready(function(){
|
|
|
|
});
|
|
|
|
});
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
json.post({
|
|
|
|
json.post({
|
|
|
|
url: wctx.url("/api/lvis/basicInfo.do"),
|
|
|
|
url: wctx.url("/api/lvis/basicInfo.do"),
|
|
|
|
data: JSON.stringify({
|
|
|
|
data: JSON.stringify({
|
|
|
@ -861,13 +861,13 @@ $(document).ready(function(){
|
|
|
|
levy_stdde : crdnYmd
|
|
|
|
levy_stdde : crdnYmd
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
success:resp => {
|
|
|
|
success:resp => {
|
|
|
|
|
|
|
|
|
|
|
|
if(resp.basicInfo != null && resp.basicInfo.vhrno != null){
|
|
|
|
if(resp.basicInfo != null && resp.basicInfo.vhrno != null){
|
|
|
|
|
|
|
|
|
|
|
|
var basicInfo = resp.basicInfo;
|
|
|
|
var basicInfo = resp.basicInfo;
|
|
|
|
|
|
|
|
|
|
|
|
$("#rtpyrNm--${pageName}").val(basicInfo.mber_nm);
|
|
|
|
$("#rtpyrNm--${pageName}").val(basicInfo.mber_nm);
|
|
|
|
|
|
|
|
|
|
|
|
var pyrSeCd = "";
|
|
|
|
var pyrSeCd = "";
|
|
|
|
switch(basicInfo.mber_se_code){
|
|
|
|
switch(basicInfo.mber_se_code){
|
|
|
|
case "11" : pyrSeCd = "01"; break;
|
|
|
|
case "11" : pyrSeCd = "01"; break;
|
|
|
@ -877,14 +877,14 @@ $(document).ready(function(){
|
|
|
|
case "15" : pyrSeCd = "05"; break;
|
|
|
|
case "15" : pyrSeCd = "05"; break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$("#rtpyrSeCd--${pageName}").val(pyrSeCd);
|
|
|
|
$("#rtpyrSeCd--${pageName}").val(pyrSeCd);
|
|
|
|
|
|
|
|
|
|
|
|
$("#rtpyrNo--${pageName}").val(basicInfo.mber_se_no);
|
|
|
|
$("#rtpyrNo--${pageName}").val(basicInfo.mber_se_no);
|
|
|
|
|
|
|
|
|
|
|
|
$("#vin--${pageName}").val(basicInfo.vin);
|
|
|
|
$("#vin--${pageName}").val(basicInfo.vin);
|
|
|
|
$("#vhclNm--${pageName}").val(basicInfo.cnm);
|
|
|
|
$("#vhclNm--${pageName}").val(basicInfo.cnm);
|
|
|
|
$("#vhclColor--${pageName}").val(basicInfo.color_nm);
|
|
|
|
$("#vhclColor--${pageName}").val(basicInfo.color_nm);
|
|
|
|
$("#useFuelCd--${pageName}").val(basicInfo.use_fuel_code);
|
|
|
|
$("#useFuelCd--${pageName}").val(basicInfo.use_fuel_code);
|
|
|
|
|
|
|
|
|
|
|
|
if(basicInfo.vhcty_asort_code == "1"){ //승용
|
|
|
|
if(basicInfo.vhcty_asort_code == "1"){ //승용
|
|
|
|
$("#ffnlgCarmdlCd--${pageName}").val("11");
|
|
|
|
$("#ffnlgCarmdlCd--${pageName}").val("11");
|
|
|
|
} else if(basicInfo.vhcty_asort_code == "2"){ //승합
|
|
|
|
} else if(basicInfo.vhcty_asort_code == "2"){ //승합
|
|
|
@ -900,16 +900,16 @@ $(document).ready(function(){
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
//$("#ffnlgCarmdlCd--${pageName}").val("21"); //건설기계
|
|
|
|
//$("#ffnlgCarmdlCd--${pageName}").val("21"); //건설기계
|
|
|
|
//$("#ffnlgCarmdlCd--${pageName}").val("31"); //이륜차
|
|
|
|
//$("#ffnlgCarmdlCd--${pageName}").val("31"); //이륜차
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//$("#--${pageName}").val(basicInfo.);
|
|
|
|
//$("#--${pageName}").val(basicInfo.);
|
|
|
|
|
|
|
|
|
|
|
|
//$("#addr--${pageName}").val(basicInfo.); //주소
|
|
|
|
//$("#addr--${pageName}").val(basicInfo.); //주소
|
|
|
|
//$("#dtlAddr--${pageName}").val(basicInfo.); //상세주소
|
|
|
|
//$("#dtlAddr--${pageName}").val(basicInfo.); //상세주소
|
|
|
|
//$("#zip--${pageName}").val(basicInfo.); //우편번호
|
|
|
|
//$("#zip--${pageName}").val(basicInfo.); //우편번호
|
|
|
|
|
|
|
|
|
|
|
|
//"use_strnghld_legaldong_code" : "4136010300",
|
|
|
|
//"use_strnghld_legaldong_code" : "4136010300",
|
|
|
|
//"use_strnghld_adstrd_code" : "4136053000",
|
|
|
|
//"use_strnghld_adstrd_code" : "4136053000",
|
|
|
|
//"use_strnghld_mntn" : "",
|
|
|
|
//"use_strnghld_mntn" : "",
|
|
|
@ -922,12 +922,12 @@ $(document).ready(function(){
|
|
|
|
//"use_strnghld_buld_sub_no" : "2",
|
|
|
|
//"use_strnghld_buld_sub_no" : "2",
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
if("${taskSeCd}" == "DPV"){
|
|
|
|
if("${taskSeCd}" == "DPV"){
|
|
|
|
$("#vltnCd--${pageName}").on("change", function(){
|
|
|
|
$("#vltnCd--${pageName}").on("change", function(){
|
|
|
|
if(this.value == "01"){
|
|
|
|
if(this.value == "01"){
|
|
|
@ -938,7 +938,7 @@ $(document).ready(function(){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$("#refreshEnd--${pageName}").on("refreshEnd", function(){
|
|
|
|
$("#refreshEnd--${pageName}").on("refreshEnd", function(){
|
|
|
|
if(this.dataset.cursorKey != null && this.dataset.cursorKey != ""){
|
|
|
|
if(this.dataset.cursorKey != null && this.dataset.cursorKey != ""){
|
|
|
|
$P.fnGo(this.dataset.cursorKey);
|
|
|
|
$P.fnGo(this.dataset.cursorKey);
|
|
|
@ -946,7 +946,7 @@ $(document).ready(function(){
|
|
|
|
dialog.close("cvlcptInitialDataEditDialog--${openerPageName}");
|
|
|
|
dialog.close("cvlcptInitialDataEditDialog--${openerPageName}");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* 초기화
|
|
|
|
* 초기화
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
@ -955,57 +955,57 @@ $(document).ready(function(){
|
|
|
|
$("#frmEdit--${pageName}").find(".form-date").each(function(){
|
|
|
|
$("#frmEdit--${pageName}").find(".form-date").each(function(){
|
|
|
|
$(this).on("input",function(){
|
|
|
|
$(this).on("input",function(){
|
|
|
|
var value = this.value.replaceAll("-","");
|
|
|
|
var value = this.value.replaceAll("-","");
|
|
|
|
|
|
|
|
|
|
|
|
if(value.length > 7){
|
|
|
|
if(value.length > 7){
|
|
|
|
this.value = value.substring(0,4)+"-"+value.substring(4,6)+"-"+value.substring(6);
|
|
|
|
this.value = value.substring(0,4)+"-"+value.substring(4,6)+"-"+value.substring(6);
|
|
|
|
} else if(value.length > 5){
|
|
|
|
} else if(value.length > 5){
|
|
|
|
this.value = value.substring(0,4)+"-"+value.substring(4);
|
|
|
|
this.value = value.substring(0,4)+"-"+value.substring(4);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
$("#frmEdit--${pageName}").find(".form-time").each(function(){
|
|
|
|
$("#frmEdit--${pageName}").find(".form-time").each(function(){
|
|
|
|
$(this).on("input",function(){
|
|
|
|
$(this).on("input",function(){
|
|
|
|
var value = this.value.replaceAll(":","");
|
|
|
|
var value = this.value.replaceAll(":","");
|
|
|
|
|
|
|
|
|
|
|
|
if(value.length > 5){
|
|
|
|
if(value.length > 5){
|
|
|
|
this.value = value.substring(0,2)+":"+value.substring(2,4)+":"+value.substring(4);
|
|
|
|
this.value = value.substring(0,2)+":"+value.substring(2,4)+":"+value.substring(4);
|
|
|
|
} else if(value.length > 3){
|
|
|
|
} else if(value.length > 3){
|
|
|
|
this.value = value.substring(0,2)+":"+value.substring(2);
|
|
|
|
this.value = value.substring(0,2)+":"+value.substring(2);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
var crdnInfo = ${crdnInfo};
|
|
|
|
var crdnInfo = ${crdnInfo};
|
|
|
|
crdnInfo.CVLCPT_APLY_CN = escapeHTMLEntity(crdnInfo.CVLCPT_APLY_CN);
|
|
|
|
crdnInfo.CVLCPT_APLY_CN = escapeHTMLEntity(crdnInfo.CVLCPT_APLY_CN);
|
|
|
|
$P.crdnControl.setData([crdnInfo]);
|
|
|
|
$P.crdnControl.setData([crdnInfo]);
|
|
|
|
|
|
|
|
|
|
|
|
if($("#taskSeCd--${pageName}").val() == "DPV" && $("#vltnCd--${pageName}").val() == "01"){
|
|
|
|
if($("#taskSeCd--${pageName}").val() == "DPV" && $("#vltnCd--${pageName}").val() == "01"){
|
|
|
|
$("label[for='dstrbncYn--${pageName}']").show();
|
|
|
|
$("label[for='dstrbncYn--${pageName}']").show();
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$("label[for='dstrbncYn--${pageName}']").hide();
|
|
|
|
$("label[for='dstrbncYn--${pageName}']").hide();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//보안모드
|
|
|
|
//보안모드
|
|
|
|
fn_securityModeToggle($("#securityMode--top").is(":checked"));
|
|
|
|
fn_securityModeToggle($("#securityMode--top").is(":checked"));
|
|
|
|
|
|
|
|
|
|
|
|
var cs = $P.provided.getCountStatus($("#crdnId--${pageName}").val());
|
|
|
|
var cs = $P.provided.getCountStatus($("#crdnId--${pageName}").val());
|
|
|
|
$("#countStauts--${pageName}").val(cs);
|
|
|
|
$("#countStauts--${pageName}").val(cs);
|
|
|
|
|
|
|
|
|
|
|
|
if(crdnInfo.videoExist == "N"){
|
|
|
|
if(crdnInfo.videoExist == "N"){
|
|
|
|
$("#btnOpenVideoCapture--${pageName}").hide();
|
|
|
|
$("#btnOpenVideoCapture--${pageName}").hide();
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$("#btnOpenVideoCapture--${pageName}").show();
|
|
|
|
$("#btnOpenVideoCapture--${pageName}").show();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if(crdnInfo.fileList){
|
|
|
|
if(crdnInfo.fileList){
|
|
|
|
crdnInfo.fileList.forEach(function(item){
|
|
|
|
crdnInfo.fileList.forEach(function(item){
|
|
|
|
item.status = "";
|
|
|
|
item.status = "";
|
|
|
|
$P.existFileArr.push(item);
|
|
|
|
$P.existFileArr.push(item);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnDisplay(true);
|
|
|
|
$P.fnDisplay(true);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|