특기사항 일괄 등록 기능 추가
parent
1875c1048d
commit
7660a9d625
@ -0,0 +1,5 @@
|
||||
<%@ 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>
|
||||
|
@ -0,0 +1,102 @@
|
||||
<%@ 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="d-flex flex-row justify-content-evenly">
|
||||
<div class="card">
|
||||
|
||||
<div class="card-datatable text-nowrap">
|
||||
<div class="dataTables_wrapper dt-bootstrap5 no-footer">
|
||||
<div class="table-responsive"
|
||||
style="overflow-x:scroll; height:300px; overflow-y:scroll;" >
|
||||
<table class="table-layout-fixed dataTable datatables-ajax table table-bordered no-footer"
|
||||
id="table--${pageName}" aria-describedby="DataTables_Table_0_info">
|
||||
<thead class="sticky-thead" >
|
||||
<tr id="theadTr--${pageName}">
|
||||
<th>시군구명</th>
|
||||
<th style="width:180px">과태료명</th>
|
||||
<th style="width:200px">단속일시</th>
|
||||
<th>차량번호</th>
|
||||
<th>대체차량번호</th>
|
||||
<th>성명</th>
|
||||
<th>처리상태</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tbody--${pageName}">
|
||||
</tbody>
|
||||
<template id="found--${pageName}">
|
||||
<tr>
|
||||
<td>{SGG_NM}</td>
|
||||
<td>{TASK_SE_NM}</td>
|
||||
<td>{CRDN_YMD_TM}</td>
|
||||
<td>{VHRNO}</td>
|
||||
<td>{RPM_SZR_VHRNO}</td>
|
||||
<td>{RTPYR_NM}</td>
|
||||
<td>{CRDN_STTS_NM}</td>
|
||||
</tr>
|
||||
</template>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<form id="frmEdit--${pageName}">
|
||||
<input type="text" name="dialogId" hidden />
|
||||
<div class="row g-1 mt-2">
|
||||
<div class="col-md-12">
|
||||
<label class="bg-lighter px-2 col-form-label">특기사항</label>
|
||||
<input type="text" id="etcCn--${pageName}" name="etcCn" class="form-control w-px-700" required />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mt-4 justify-content-end mb-3">
|
||||
<div class="col-md-12">
|
||||
<div class="float-end pe-4">
|
||||
<button type="button" id="btnInputEtcCn--${pageName}" class="btn btn-primary">특기사항등록(일괄)</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
pageObject["${pageName}"] = {};
|
||||
|
||||
$(document).ready(function(){
|
||||
|
||||
var $P = pageObject["${pageName}"];
|
||||
|
||||
$P.crdnIds = ${crdnIds};
|
||||
|
||||
$P.fnInputEtcCn = () => {
|
||||
var etcCn = $("#etcCn--${pageName}").val();
|
||||
if(etcCn == ""){
|
||||
alert("특기사항을 입력하세요.");
|
||||
return;
|
||||
}
|
||||
|
||||
ajax.get({
|
||||
url : wctx.url("/sprt/sprt01/030/update.do"),
|
||||
data : {
|
||||
crdnIds : $P.crdnIds.join(","),
|
||||
etcCn : etcCn
|
||||
},
|
||||
success : resp => {
|
||||
if(resp.saved){
|
||||
alert("저장되었습니다.");
|
||||
var dialogId = $("#frmEdit--${pageName}").find("input[name='dialogId']").val();
|
||||
dialog.close(dialogId);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$("#btnInputEtcCn--${pageName}").on("click", () => $P.fnInputEtcCn() );
|
||||
});
|
||||
|
||||
|
||||
|
||||
</script>
|
Loading…
Reference in New Issue