|
|
@ -3,10 +3,18 @@
|
|
|
|
<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="min-width:1400px;width:1400px;height:100px;">
|
|
|
|
<div class="card" style="min-width:1400px;width:1400px;height:80px;">
|
|
|
|
<form id="frmFirst--${pageName}" method="post" enctype="multipart/form-data">
|
|
|
|
<form id="frmFirst--${pageName}" method="post" enctype="multipart/form-data">
|
|
|
|
<div class="row g-1">
|
|
|
|
<div class="row g-1">
|
|
|
|
<div class="col-md-4">
|
|
|
|
<div class="col-md-12">
|
|
|
|
|
|
|
|
<div class="form-check form-switch">
|
|
|
|
|
|
|
|
<input class="form-check-input" type="checkbox" role="switch" id="direct--${pageName}">
|
|
|
|
|
|
|
|
<label class="form-check-label" for="direct--${pageName}">로컬파일업로드</label>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row g-1">
|
|
|
|
|
|
|
|
<div class="col-md-12 d-flex align-items-center flex-nowrap">
|
|
|
|
<label for="taskSeCd--${pageName}"
|
|
|
|
<label for="taskSeCd--${pageName}"
|
|
|
|
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="taskSeCd--${pageName}" name="taskSeCd" class="form-select" disabled>
|
|
|
|
<select id="taskSeCd--${pageName}" name="taskSeCd" class="form-select" disabled>
|
|
|
@ -16,21 +24,15 @@
|
|
|
|
>${item.value}</option>
|
|
|
|
>${item.value}</option>
|
|
|
|
</c:forEach>
|
|
|
|
</c:forEach>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<span id="uploadFilesArea" hidden>
|
|
|
|
<div class="col-md-4">
|
|
|
|
<label for="uploadFiles--${pageName}"
|
|
|
|
<span class="d-flex justify-content-end float-end ms-auto me-4">
|
|
|
|
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">파일</label>
|
|
|
|
<button type="button" id="btnSearch--${pageName}" class="btn btn-primary">조회</button>
|
|
|
|
<input type="file" id="uploadFiles--${pageName}" name="uploadFiles"
|
|
|
|
|
|
|
|
multiple="multiple" class="form-control"/>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<span class="d-flex justify-content-end float-start ms-4">
|
|
|
|
<div class="col-md-4 d-flex align-items-center flex-nowrap">
|
|
|
|
<button type="button" id="btnSearch--${pageName}" class="btn btn-primary">조회</button>
|
|
|
|
|
|
|
|
<button type="button" id="btnFileUpload--${pageName}" class="btn btn-primary" hidden>업로드</button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-12 d-flex align-items-center flex-nowrap">
|
|
|
|
|
|
|
|
<label for="uploadFiles--${pageName}"
|
|
|
|
|
|
|
|
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">파일</label>
|
|
|
|
|
|
|
|
<input type="file" id="uploadFiles--${pageName}" name="uploadFiles" multiple="multiple" class="form-control"/>
|
|
|
|
|
|
|
|
<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>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -248,13 +250,13 @@ $(document).ready(function(){
|
|
|
|
//로컬파일업로드
|
|
|
|
//로컬파일업로드
|
|
|
|
$P.uploadLocalFile = () => {
|
|
|
|
$P.uploadLocalFile = () => {
|
|
|
|
|
|
|
|
|
|
|
|
if($("#localFile--${pageName}").val() == ""){
|
|
|
|
if($("#uploadFiles--${pageName}").val() == ""){
|
|
|
|
dialog.alert("파일이 없습니다.");
|
|
|
|
dialog.alert("파일이 없습니다.");
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var formData = new FormData(document.getElementById("frmFirst--${pageName}"));
|
|
|
|
var formData = new FormData(document.getElementById("frmFirst--${pageName}"));
|
|
|
|
|
|
|
|
formData.append("taskSeCd", "${taskSeCd}");
|
|
|
|
|
|
|
|
|
|
|
|
ajax.post({
|
|
|
|
ajax.post({
|
|
|
|
url : wctx.url("/${taskSeCd}/crdn/crdn05/020/importFileFromClient.do"),
|
|
|
|
url : wctx.url("/${taskSeCd}/crdn/crdn05/020/importFileFromClient.do"),
|
|
|
@ -458,6 +460,18 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
|
|
$("#btnDelete--${pageName}").on("click", function(){ $P.deleteFile(); });
|
|
|
|
$("#btnDelete--${pageName}").on("click", function(){ $P.deleteFile(); });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#direct--${pageName}").on("click", function(){
|
|
|
|
|
|
|
|
if($(this).is(":checked")){
|
|
|
|
|
|
|
|
$("#uploadFilesArea").removeAttr("hidden");
|
|
|
|
|
|
|
|
$("#btnFileUpload--${pageName}").removeAttr("hidden");
|
|
|
|
|
|
|
|
$("#btnSearch--${pageName}").attr("hidden","hidden");
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$("#uploadFilesArea").attr("hidden","hidden");
|
|
|
|
|
|
|
|
$("#btnFileUpload--${pageName}").attr("hidden","hidden");
|
|
|
|
|
|
|
|
$("#btnSearch--${pageName}").removeAttr("hidden");
|
|
|
|
|
|
|
|
$("#uploadFiles--${pageName}").val("");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$P.parsedInfoControl.setData([]);
|
|
|
|
$P.parsedInfoControl.setData([]);
|
|
|
|
});
|
|
|
|
});
|
|
|
|