|
|
|
@ -42,7 +42,11 @@
|
|
|
|
|
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-12">
|
|
|
|
|
<div class="col-6">
|
|
|
|
|
<button type="button" onclick="$('#cvlcptPrcsPicNm--${pageName}').val('${currentUserName}');">담당자명 지정</button>
|
|
|
|
|
<input type="text" id="cvlcptPrcsPicNm--${pageName}" name="cvlcptPrcsPicNm" class="form-control"/>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-6">
|
|
|
|
|
<input type="hidden" id="by--${pageName}" name="by" />
|
|
|
|
|
<input type="text" id="byOutput--${pageName}" class="form-control" readonly value="동적 검색" />
|
|
|
|
|
<input type="text" id="term--${pageName}" name="term" class="form-control" />
|
|
|
|
@ -59,8 +63,9 @@
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<span class="container-window-btn-right">
|
|
|
|
|
|
|
|
|
|
<a href="#" id="" class="btn btn-blue" title="민원원본보기">민원원본보기</a>
|
|
|
|
|
<a href="#" id="" class="btn btn-blue" title="처리 잠시 보류">처리 잠시 보류</a>
|
|
|
|
|
<a href="#" id="btnHold--${pageName}" class="btn btn-blue" title="처리 잠시 보류">처리 잠시 보류</a>
|
|
|
|
|
</span>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
@ -68,7 +73,7 @@
|
|
|
|
|
<div class="card-datatable text-nowrap">
|
|
|
|
|
<div id="DataTables_Table_0_wrapper--${pageName}" class="dataTables_wrapper dt-bootstrap5 no-footer">
|
|
|
|
|
<div id="table-responsive--${pageName}" class="table-responsive"
|
|
|
|
|
style="overflow-x: scroll;height:400px;overflow-y: scroll;">
|
|
|
|
|
style="overflow-x: scroll;height:550px;overflow-y: scroll;">
|
|
|
|
|
<table id="DataTables_Table_0--${pageName}"
|
|
|
|
|
class="datatables-ajax table table-bordered dataTable no-footer">
|
|
|
|
|
<thead id="crdnThead--${pageName}">
|
|
|
|
@ -113,10 +118,20 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
위반장소 <input id="bottomCrdnPlc--${pageName}" type="text" size="100" />
|
|
|
|
|
<a href="#" id="btnDelete--${pageName}" class="btn btn-blue" title="선택자료 삭제">선택자료 삭제</a>
|
|
|
|
|
<a href="#" id="btnDeleteSameRcptYmd--${pageName}" class="btn btn-blue" title="접수일 전체 삭제">접수일 전체 삭제</a>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="toast-container position-fixed bottom-0 end-0 p-3">
|
|
|
|
|
<div id="divToast--${pageName}" class="toast" role="alert" aria-live="assertive" aria-atomic="true">
|
|
|
|
|
<div class="toast-body bg-black text-white">
|
|
|
|
|
삭제 되었습니다.
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<jsp:include page="/WEB-INF/jsp/include/bottom.jsp" />
|
|
|
|
@ -138,12 +153,19 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
var $P = pageObject["${pageName}"];
|
|
|
|
|
$P.scrollable = true;
|
|
|
|
|
$P.holdList = [];
|
|
|
|
|
|
|
|
|
|
$P.toast = new bootstrap.Toast(document.getElementById('divToast--${pageName}'), {
|
|
|
|
|
animation: true,
|
|
|
|
|
autohide: true,
|
|
|
|
|
delay: 2000,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* DatasetControl
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
$P.crdnControl = new DatasetControl({
|
|
|
|
|
prefix:"crdn", prefixName:"종합", infoSize:"xl", urls : { load : "", getInfo : "" },
|
|
|
|
|
prefix:"crdn", prefixName:"종합", infoSize:"xl", urls : { load : "", getInfo : "", remove : "" },
|
|
|
|
|
keymapper:info => info ? info.CRDN_ID : "", dataGetter:obj => obj.crdnList, appendData:true,
|
|
|
|
|
formats : {
|
|
|
|
|
CRDN_REG_SE_CD : FIM026,
|
|
|
|
@ -173,28 +195,54 @@ $(document).ready(function(){
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
$P.crdnControl.onCurrentChange = item => {
|
|
|
|
|
if (!item) return;
|
|
|
|
|
if (!item) {
|
|
|
|
|
$("#bottomCrdnPlc--${pageName}").val("");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var key = item.data.CRDN_ID;
|
|
|
|
|
$("#crdnTbody--${pageName}").setCurrentRow(key);
|
|
|
|
|
|
|
|
|
|
var cur = $P.crdnControl.getCurrent();
|
|
|
|
|
$("#bottomCrdnPlc--${pageName}").val(cur["CRDN_PLC"]);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.crdnControl.onRemove = (selected, resp) => {
|
|
|
|
|
if (resp.saved){
|
|
|
|
|
var removed = $P.crdnControl.dataset.getKeys("selected");
|
|
|
|
|
$P.crdnControl.dataset.remove(removed);
|
|
|
|
|
removed.forEach(function(item){
|
|
|
|
|
$("#crdnTbody--${pageName}").find("tr[data-key='"+item+"']").remove();
|
|
|
|
|
});
|
|
|
|
|
$P.toast.show();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* pageObject.function
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
$P.fnReset = () => {
|
|
|
|
|
$P.holdList = [];
|
|
|
|
|
$("#btnDelete--${pageName}").show();
|
|
|
|
|
$("#btnDeleteSameRcptYmd--${pageName}").show();
|
|
|
|
|
|
|
|
|
|
$('#schCvlcptRcptYmdFrom--${pageName}').datepicker('setDate', DateUtil.getDateDay(-5475).date);
|
|
|
|
|
$('#schCvlcptRcptYmdTo--${pageName}').datepicker('setDate', new Date());
|
|
|
|
|
$P.crdnControl.setData([]);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.fnResetAndChangeBiz = taskSeCd => {
|
|
|
|
|
$P.fnResetAndChangeBiz = (taskSeCd) => {
|
|
|
|
|
$P.fnReset();
|
|
|
|
|
$P.crdnControl.urls.load = wctx.url("/"+taskSeCd+"/crdn/crdn01/010/list.do");
|
|
|
|
|
$P.crdnControl.urls.getInfo = wctx.url("/"+taskSeCd+"/crdn/crdn01/020/info.do");
|
|
|
|
|
$P.crdnControl.urls.remove = wctx.url("/"+taskSeCd+"/crdn/crdn01/010/remove.do");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.searchCrdnList = () => {
|
|
|
|
|
$P.holdList = [];
|
|
|
|
|
$("#btnDelete--${pageName}").show();
|
|
|
|
|
$("#btnDeleteSameRcptYmd--${pageName}").show();
|
|
|
|
|
|
|
|
|
|
$P.crdnControl.query = $P.getParams();
|
|
|
|
|
$P.crdnControl.load(1);
|
|
|
|
|
}
|
|
|
|
@ -222,6 +270,14 @@ $(document).ready(function(){
|
|
|
|
|
$P.clickCrdnList = (dataKey) => {
|
|
|
|
|
$P.crdnControl.setCurrent(dataKey);
|
|
|
|
|
$("#crdnTbody--${pageName}").setCurrentRow(dataKey);
|
|
|
|
|
|
|
|
|
|
if($P.holdList.includes(dataKey)){
|
|
|
|
|
$("#btnDelete--${pageName}").hide();
|
|
|
|
|
$("#btnDeleteSameRcptYmd--${pageName}").hide();
|
|
|
|
|
} else {
|
|
|
|
|
$("#btnDelete--${pageName}").show();
|
|
|
|
|
$("#btnDeleteSameRcptYmd--${pageName}").show();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.dblclickCrdnList = (dataKey) => {
|
|
|
|
@ -244,6 +300,10 @@ $(document).ready(function(){
|
|
|
|
|
fn_securityModeToggle($("#securityMode--top").is(":checked"));
|
|
|
|
|
|
|
|
|
|
$P.scrollable = true;
|
|
|
|
|
|
|
|
|
|
$P.holdList.forEach(function(item){
|
|
|
|
|
$("#crdnTbody--${pageName}").find("tr[data-key='"+item+"']").addClass("bg-dark");
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.getParams = () => {
|
|
|
|
@ -253,14 +313,66 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.fnHold = () => {
|
|
|
|
|
var curKey = $P.crdnControl.getCurrent()["CRDN_ID"];
|
|
|
|
|
if($P.holdList.includes(curKey)){
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
$P.holdList.push(curKey);
|
|
|
|
|
$("#crdnTbody--${pageName}").find("tr[data-key='"+curKey+"']").addClass("bg-dark");
|
|
|
|
|
|
|
|
|
|
$("#btnDelete--${pageName}").hide();
|
|
|
|
|
$("#btnDeleteSameRcptYmd--${pageName}").hide();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.fnRemove = (rcptYmd) => {
|
|
|
|
|
if(rcptYmd != null){
|
|
|
|
|
var ds = $P.crdnControl.dataset.getDataset();
|
|
|
|
|
|
|
|
|
|
var crdnIds = ds.map(function(item){
|
|
|
|
|
if(item['CVLCPT_RCPT_YMD'] == rcptYmd && !$P.holdList.includes(item['CRDN_ID'])){
|
|
|
|
|
return item["CRDN_ID"];
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$P.crdnControl.select(crdnIds,true);
|
|
|
|
|
} else {
|
|
|
|
|
var cur = $P.crdnControl.getCurrent();
|
|
|
|
|
if(cur == null){
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var curKey = cur["CRDN_ID"];
|
|
|
|
|
$P.crdnControl.select(curKey,true);
|
|
|
|
|
}
|
|
|
|
|
$P.crdnControl.remove();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.fnRemoveSameRcptYmd = () => {
|
|
|
|
|
var cur = $P.crdnControl.getCurrent();
|
|
|
|
|
if(cur == null){
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var curRcptYmd = cur["CVLCPT_RCPT_YMD"];
|
|
|
|
|
dialog.alert({
|
|
|
|
|
content : "접수일 : "+dateFormat.format(curRcptYmd)+"<br/>모든 자료를 제거하시겠습니까?"
|
|
|
|
|
, onOK : () => {
|
|
|
|
|
$P.fnRemove(curRcptYmd);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* element.on
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
$('#btnReset--${pageName}').on('click', () => $P.fnReset());
|
|
|
|
|
$('#btnSearch--${pageName}').on('click', () => $P.searchCrdnList());
|
|
|
|
|
$("#table-responsive--${pageName}").scroll(function(){ $P.scrollEnd(this); });
|
|
|
|
|
|
|
|
|
|
$("#btnHold--${pageName}").on("click", () => $P.fnHold());
|
|
|
|
|
$("#btnDelete--${pageName}").on("click", () => $P.fnRemove());
|
|
|
|
|
$("#btnDeleteSameRcptYmd--${pageName}").on("click", () => $P.fnRemoveSameRcptYmd());
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* 초기화
|
|
|
|
|
**************************************************************************/
|
|
|
|
|