|
|
@ -3,7 +3,7 @@
|
|
|
|
<c:set var="pageKorName" scope="request">단속 파일 등록</c:set>
|
|
|
|
<c:set var="pageKorName" scope="request">단속 파일 등록</c:set>
|
|
|
|
<div class="d-flex" style="flex-flow:column">
|
|
|
|
<div class="d-flex" style="flex-flow:column">
|
|
|
|
<div class="d-flex flex-row justify-content-evenly">
|
|
|
|
<div class="d-flex flex-row justify-content-evenly">
|
|
|
|
<div class="card" style="width:1400px;height:100px;">
|
|
|
|
<div class="card" style="min-width:1400px;width:1400px;height:100px;">
|
|
|
|
<form id="frmFirst--${pageName}">
|
|
|
|
<form id="frmFirst--${pageName}">
|
|
|
|
<div class="row g-1">
|
|
|
|
<div class="row g-1">
|
|
|
|
<div class="col-md-4">
|
|
|
|
<div class="col-md-4">
|
|
|
@ -22,44 +22,47 @@
|
|
|
|
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">장비업체</label>
|
|
|
|
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">장비업체</label>
|
|
|
|
<select id="entType--${pageName}" name="entType" class="form-select">
|
|
|
|
<select id="entType--${pageName}" name="entType" class="form-select">
|
|
|
|
<option value="">선택하세요</option>
|
|
|
|
<option value="">선택하세요</option>
|
|
|
|
<option value="KNL">KNL</option>
|
|
|
|
<c:if test="${taskSeCd == 'DPV' or taskSeCd == 'ECA'}">
|
|
|
|
<option value="INO">이노</option>
|
|
|
|
<option value="KNL">KNL</option>
|
|
|
|
<option value="GASAN">가산정보통신</option>
|
|
|
|
<option value="INO">이노</option>
|
|
|
|
<option value="ELISOFT">엘리소프트</option>
|
|
|
|
</c:if>
|
|
|
|
<option value="HITECOM">하이테콤</option>
|
|
|
|
<c:if test="${taskSeCd == 'PVS' or taskSeCd == 'BPV'}">
|
|
|
|
<option value="XIT">XIT권장포맷</option>
|
|
|
|
<option value="GASAN">가산정보통신</option>
|
|
|
|
<option value="MOBILE">모바일(스마트폰)</option>
|
|
|
|
<option value="ELISOFT">엘리소프트</option>
|
|
|
|
|
|
|
|
<option value="XIT">XIT권장포맷</option>
|
|
|
|
|
|
|
|
</c:if>
|
|
|
|
|
|
|
|
<c:if test="${taskSeCd == 'BPV'}">
|
|
|
|
|
|
|
|
<option value="HITECOM">하이테콤</option>
|
|
|
|
|
|
|
|
</c:if>
|
|
|
|
|
|
|
|
<c:if test="${taskSeCd == '미세먼지'}">
|
|
|
|
|
|
|
|
<option value="unknown">unknown</option>
|
|
|
|
|
|
|
|
</c:if>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<c:if test="${taskSeCd == 'PVS' or taskSeCd == 'BPV'}">
|
|
|
|
<div class="col-md-4 d-flex align-items-center flex-nowrap">
|
|
|
|
<div class="col-md-4">
|
|
|
|
<c:if test="${taskSeCd == 'PVS' or taskSeCd == 'BPV'}">
|
|
|
|
<label for="cctvType--${pageName}"
|
|
|
|
<label for="cctvType--${pageName}"
|
|
|
|
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">cctv 구분</label>
|
|
|
|
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">장비 구분</label>
|
|
|
|
<select id="cctvType--${pageName}" name="cctvType" class="form-select">
|
|
|
|
<select id="cctvType--${pageName}" name="cctvType" class="form-select">
|
|
|
|
<option value="">선택</option>
|
|
|
|
<option value="">선택</option>
|
|
|
|
<option value="고정형">고정형</option>
|
|
|
|
<option value="고정형">고정형</option>
|
|
|
|
<option value="주행형">주행형</option>
|
|
|
|
<option value="주행형">주행형</option>
|
|
|
|
<option value="버스장착형">버스장착형</option>
|
|
|
|
<option value="버스장착형">버스장착형</option>
|
|
|
|
|
|
|
|
<option value="MOBILE">모바일(스마트폰)</option>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</c:if>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="col-md-12">
|
|
|
|
|
|
|
|
<c:if test="${taskSeCd == 'PVS' or taskSeCd == 'BPV' or taskSeCd == '미세먼지'}">
|
|
|
|
|
|
|
|
<label for="localFile--${pageName}"
|
|
|
|
|
|
|
|
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">파일</label>
|
|
|
|
|
|
|
|
<input type="file" id="localFile--${pageName}" name="localFile" />
|
|
|
|
|
|
|
|
</c:if>
|
|
|
|
</c:if>
|
|
|
|
<span class="justify-content-end float-end me-4">
|
|
|
|
<span class="d-flex justify-content-end float-end ms-auto me-4">
|
|
|
|
|
|
|
|
|
|
|
|
<button type="button" id="btnSearch--${pageName}" class="btn btn-primary">조회</button>
|
|
|
|
<button type="button" id="btnSearch--${pageName}" class="btn btn-primary">조회</button>
|
|
|
|
|
|
|
|
|
|
|
|
<c:if test="${taskSeCd == 'PVS' or taskSeCd == 'BPV' or taskSeCd == '미세먼지'}">
|
|
|
|
|
|
|
|
<button type="button" id="btnFileUpload--${pageName}" class="btn btn-primary">등록</button>
|
|
|
|
|
|
|
|
</c:if>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-12 d-flex align-items-center flex-nowrap">
|
|
|
|
|
|
|
|
<label for="localFile--${pageName}"
|
|
|
|
|
|
|
|
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">파일</label>
|
|
|
|
|
|
|
|
<input type="file" id="localFile--${pageName}" name="localFile" multiple="multiple" />
|
|
|
|
|
|
|
|
<span class="d-flex justify-content-end float-end ms-auto me-4">
|
|
|
|
|
|
|
|
<button type="button" id="btnFileUpload--${pageName}" class="btn btn-primary">업로드</button>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -195,7 +198,7 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="imageArea--${pageName}" class="card my-4 px-4 justify-content-center" style="width:600px;height:600px;">
|
|
|
|
<div id="imageArea--${pageName}" class="card my-4 px-4 justify-content-center" style="min-width:600px;width:600px;height:600px;">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="card my-4 px-2" style="width:120px;height:600px;min-width:120px;">
|
|
|
|
<div class="card my-4 px-2" style="width:120px;height:600px;min-width:120px;">
|
|
|
@ -283,21 +286,28 @@ $(document).ready(function(){
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* pageObject.function
|
|
|
|
* pageObject.function
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
|
|
|
|
$P.validate = () => {
|
|
|
|
//ftp체크
|
|
|
|
|
|
|
|
$P.checkFTP() = () => {
|
|
|
|
|
|
|
|
if($("#entType--${pageName}").val() == ""){
|
|
|
|
if($("#entType--${pageName}").val() == ""){
|
|
|
|
dialog.alert("장비업체를 선택하세요.");
|
|
|
|
dialog.alert("장비업체를 선택하세요.");
|
|
|
|
return;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if($("#entType--${pageName}").val() != "KNL" && $("#entType--${pageName}").val() != "INO"){
|
|
|
|
if($("#entType--${pageName}").val() == "unkown"
|
|
|
|
dialog.alert("해당 과태료 업무와 관련된 장비업체가 아닙니다.");
|
|
|
|
|| $("#entType--${pageName}").val() == "KNL"
|
|
|
|
return;
|
|
|
|
|| $("#entType--${pageName}").val() == "GASAN"
|
|
|
|
|
|
|
|
|| $("#entType--${pageName}").val() == "ELISOFT"
|
|
|
|
|
|
|
|
|| $("#entType--${pageName}").val() == "XIT"
|
|
|
|
|
|
|
|
){
|
|
|
|
|
|
|
|
dialog.alert("해당 업체 연계는 현재 준비중입니다.");
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if($("#entType--${pageName}").val() == "KNL"){
|
|
|
|
return true;
|
|
|
|
dialog.alert("KNL 파일 등록 기능은 서비스 준비 중입니다.");
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//ftp체크
|
|
|
|
|
|
|
|
$P.checkFTP = () => {
|
|
|
|
|
|
|
|
if(!$P.validate()){
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -315,17 +325,7 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
|
|
//로컬파일업로드
|
|
|
|
//로컬파일업로드
|
|
|
|
$P.uploadLocalFile = () => {
|
|
|
|
$P.uploadLocalFile = () => {
|
|
|
|
if($("#entType--${pageName}").val() == ""){
|
|
|
|
if(!$P.validate()){
|
|
|
|
dialog.alert("장비업체를 선택하세요.");
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if($("#entType--${pageName}").val() != "GASAN"
|
|
|
|
|
|
|
|
&& $("#entType--${pageName}").val() != "ELISOFT"
|
|
|
|
|
|
|
|
&& $("#entType--${pageName}").val() != "HITECOM"
|
|
|
|
|
|
|
|
&& $("#entType--${pageName}").val() != "XIT"
|
|
|
|
|
|
|
|
){
|
|
|
|
|
|
|
|
dialog.alert("해당 과태료 업무와 관련된 장비업체가 아닙니다.");
|
|
|
|
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -334,9 +334,6 @@ $(document).ready(function(){
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
dialog.alert("주정차,전용차로,미세먼지 과태료 파일 등록 기능은 서비스 준비 중입니다.");
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ajax.post({
|
|
|
|
ajax.post({
|
|
|
|
url : wctx.url("/${taskSeCd}/crdn/crdn05/020/importFileFromClient.do"),
|
|
|
|
url : wctx.url("/${taskSeCd}/crdn/crdn05/020/importFileFromClient.do"),
|
|
|
|
data : { entType : $("#entType--${pageName}").val() },
|
|
|
|
data : { entType : $("#entType--${pageName}").val() },
|
|
|
@ -347,7 +344,6 @@ $(document).ready(function(){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//서버에 등록된 파일 조회
|
|
|
|
//서버에 등록된 파일 조회
|
|
|
|