|
|
@ -138,19 +138,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
<div id="gridbuttonArea--${pageName}" class="container-page-btn">
|
|
|
|
<div id="gridbuttonArea--${pageName}" class="container-page-btn">
|
|
|
|
<div class="d-flex flex-row justify-content-between">
|
|
|
|
<div class="d-flex flex-row justify-content-between">
|
|
|
|
<label id="photoInspectionPaging--${pageName}PagingInfo"
|
|
|
|
<label id="photoInspectionPaging--${pageName}PagingInfo"
|
|
|
|
class="dataTables_info area-photoinspection" role="status" aria-live="polite"></label>
|
|
|
|
class="dataTables_info area-photoinspection" role="status" aria-live="polite"></label>
|
|
|
|
<ul id="photoInspectionPaging--${pageName}" class="pagination pagination-primary area-photoinspection">
|
|
|
|
<ul id="photoInspectionPaging--${pageName}" class="pagination pagination-primary area-photoinspection">
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="d-flex flex-row justify-content-between">
|
|
|
|
<div class="d-flex flex-row justify-content-between">
|
|
|
|
<label id="sameVehicleInspectionMainPaging--${pageName}PagingInfo"
|
|
|
|
<label id="sameVehicleInspectionMainPaging--${pageName}PagingInfo"
|
|
|
|
class="dataTables_info area-samevehicleinspection" role="status" aria-live="polite"></label>
|
|
|
|
class="dataTables_info area-samevehicleinspection" role="status" aria-live="polite"></label>
|
|
|
|
<ul id="sameVehicleInspectionMainPaging--${pageName}" class="pagination pagination-primary area-samevehicleinspection">
|
|
|
|
<ul id="sameVehicleInspectionMainPaging--${pageName}" class="pagination pagination-primary area-samevehicleinspection">
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<span class="container-window-btn-right">
|
|
|
|
<span class="container-window-btn-right">
|
|
|
|
<a href="#" id="btnInstLevyExcl--${pageName}" class="btn btn-blue" title="비부과 등록">비부과 등록</a>
|
|
|
|
<button class="btn btn-primary" id="btnInstLevyExcl--${pageName}" title="비부과 등록">비부과 등록</button>
|
|
|
|
|
|
|
|
<%-- <a href="#" id="btnInstLevyExcl--${pageName}" class="btn btn-blue" title="비부과 등록">비부과 등록</a> --%>
|
|
|
|
<span class="slot-button" data-slot-index="0">
|
|
|
|
<span class="slot-button" data-slot-index="0">
|
|
|
|
|
|
|
|
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
@ -220,14 +221,14 @@
|
|
|
|
선택자료
|
|
|
|
선택자료
|
|
|
|
<strong id="curDataVhrno--${pageName}"></strong>
|
|
|
|
<strong id="curDataVhrno--${pageName}"></strong>
|
|
|
|
<div id="curDataFiles--${pageName}" style="width: 100%;height: 180px;overflow-x: scroll;background-color:#D9DEE3;">
|
|
|
|
<div id="curDataFiles--${pageName}" style="width: 100%;height: 180px;overflow-x: scroll;background-color:#D9DEE3;">
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div style="height:200px;" class="area-photoinspection">
|
|
|
|
<div style="height:200px;" class="area-photoinspection">
|
|
|
|
비교자료(선택자료의 다음 자료가 보여집니다.)
|
|
|
|
비교자료(선택자료의 다음 자료가 보여집니다.)
|
|
|
|
<strong id="nextDataVhrno--${pageName}"></strong>
|
|
|
|
<strong id="nextDataVhrno--${pageName}"></strong>
|
|
|
|
<div id="nextDataFiles--${pageName}" style="width: 100%;height: 180px;overflow-x: scroll;background-color:#D9DEE3;">
|
|
|
|
<div id="nextDataFiles--${pageName}" style="width: 100%;height: 180px;overflow-x: scroll;background-color:#D9DEE3;">
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
@ -335,7 +336,7 @@ pageObject["${pageName}"] = {};
|
|
|
|
$(document).ready(function(){
|
|
|
|
$(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
|
|
var $P = pageObject["${pageName}"];
|
|
|
|
var $P = pageObject["${pageName}"];
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* DatasetControl
|
|
|
|
* DatasetControl
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
@ -370,9 +371,9 @@ $(document).ready(function(){
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
$P.photoInspectionControl.getNext = (key) => {
|
|
|
|
$P.photoInspectionControl.getNext = (key) => {
|
|
|
|
|
|
|
|
|
|
|
|
var ds = $P.photoInspectionControl.dataset.getDataset();
|
|
|
|
var ds = $P.photoInspectionControl.dataset.getDataset();
|
|
|
|
|
|
|
|
|
|
|
|
var index = ds.findIndex(item => item.CRDN_ID == key);
|
|
|
|
var index = ds.findIndex(item => item.CRDN_ID == key);
|
|
|
|
if(ds.length > index+1){
|
|
|
|
if(ds.length > index+1){
|
|
|
|
return ds[index+1];
|
|
|
|
return ds[index+1];
|
|
|
@ -385,7 +386,7 @@ $(document).ready(function(){
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
$P.photoInspectionControl.onDatasetChange = (obj) => {
|
|
|
|
$P.photoInspectionControl.onDatasetChange = (obj) => {
|
|
|
|
var prefix = obj.infoPrefix;
|
|
|
|
var prefix = obj.infoPrefix;
|
|
|
|
|
|
|
|
|
|
|
|
$P.renderInspectionDataList(obj[prefix+"Total"], "photoInspection");
|
|
|
|
$P.renderInspectionDataList(obj[prefix+"Total"], "photoInspection");
|
|
|
|
|
|
|
|
|
|
|
|
var prefix = obj.infoPrefix;
|
|
|
|
var prefix = obj.infoPrefix;
|
|
|
@ -400,7 +401,7 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
|
|
$P.sameVehicleControl.main.onDatasetChange = (obj) => {
|
|
|
|
$P.sameVehicleControl.main.onDatasetChange = (obj) => {
|
|
|
|
var prefix = obj.infoPrefix;
|
|
|
|
var prefix = obj.infoPrefix;
|
|
|
|
|
|
|
|
|
|
|
|
$P.renderInspectionDataList(obj[prefix+"Total"], "sameVehicleInspectionMain");
|
|
|
|
$P.renderInspectionDataList(obj[prefix+"Total"], "sameVehicleInspectionMain");
|
|
|
|
|
|
|
|
|
|
|
|
$("#sameVehicleInspectionMainPaging--${pageName}").setPagingInfo({
|
|
|
|
$("#sameVehicleInspectionMainPaging--${pageName}").setPagingInfo({
|
|
|
@ -415,9 +416,9 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
|
|
$P.sameVehicleControl.sub.onDatasetChange = (obj) => {
|
|
|
|
$P.sameVehicleControl.sub.onDatasetChange = (obj) => {
|
|
|
|
var prefix = obj.infoPrefix;
|
|
|
|
var prefix = obj.infoPrefix;
|
|
|
|
|
|
|
|
|
|
|
|
$P.renderInspectionDataList(obj[prefix+"Total"], "sameVehicleInspectionSub");
|
|
|
|
$P.renderInspectionDataList(obj[prefix+"Total"], "sameVehicleInspectionSub");
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
@ -454,7 +455,7 @@ $(document).ready(function(){
|
|
|
|
this.innerHTML = "";
|
|
|
|
this.innerHTML = "";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//업무별 버튼
|
|
|
|
//업무별 버튼
|
|
|
|
var buttonContent = document.getElementById("taskButton--${pageName}").content
|
|
|
|
var buttonContent = document.getElementById("taskButton--${pageName}").content
|
|
|
|
var buttons = $(buttonContent).find("."+clsForTask);
|
|
|
|
var buttons = $(buttonContent).find("."+clsForTask);
|
|
|
@ -493,9 +494,9 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
|
|
$P.scrollEnd = (obj) => {
|
|
|
|
$P.scrollEnd = (obj) => {
|
|
|
|
if(obj.dataset.scrollStatus){
|
|
|
|
if(obj.dataset.scrollStatus){
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var el = $(obj);
|
|
|
|
var el = $(obj);
|
|
|
|
if(el.scrollTop() == 0){
|
|
|
|
if(el.scrollTop() == 0){
|
|
|
|
return;
|
|
|
|
return;
|
|
|
@ -523,16 +524,16 @@ $(document).ready(function(){
|
|
|
|
case "photoInspection":
|
|
|
|
case "photoInspection":
|
|
|
|
$P.photoInspectionControl.setCurrent(dataKey);
|
|
|
|
$P.photoInspectionControl.setCurrent(dataKey);
|
|
|
|
$("#photoInspectionTbody--${pageName}").setCurrentRow(dataKey);
|
|
|
|
$("#photoInspectionTbody--${pageName}").setCurrentRow(dataKey);
|
|
|
|
|
|
|
|
|
|
|
|
var curDataVhrno = $P.photoInspectionControl.getCurrent(dataKey)["VHRNO"];
|
|
|
|
var curDataVhrno = $P.photoInspectionControl.getCurrent(dataKey)["VHRNO"];
|
|
|
|
|
|
|
|
|
|
|
|
var nextData = $P.photoInspectionControl.getNext(dataKey);
|
|
|
|
var nextData = $P.photoInspectionControl.getNext(dataKey);
|
|
|
|
var nextDataKey = nextData != null ? nextData.CRDN_ID : "";
|
|
|
|
var nextDataKey = nextData != null ? nextData.CRDN_ID : "";
|
|
|
|
var nextDataVhrno = nextData != null ? nextData.VHRNO : "";
|
|
|
|
var nextDataVhrno = nextData != null ? nextData.VHRNO : "";
|
|
|
|
|
|
|
|
|
|
|
|
$("#curDataVhrno--${pageName}").html(curDataVhrno);
|
|
|
|
$("#curDataVhrno--${pageName}").html(curDataVhrno);
|
|
|
|
$("#nextDataVhrno--${pageName}").html(nextDataVhrno);
|
|
|
|
$("#nextDataVhrno--${pageName}").html(nextDataVhrno);
|
|
|
|
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
ajax.get({
|
|
|
|
url:"file/list.do",
|
|
|
|
url:"file/list.do",
|
|
|
|
data: {
|
|
|
|
data: {
|
|
|
@ -541,17 +542,17 @@ $(document).ready(function(){
|
|
|
|
fetchSize : 0
|
|
|
|
fetchSize : 0
|
|
|
|
},
|
|
|
|
},
|
|
|
|
success : resp => {
|
|
|
|
success : resp => {
|
|
|
|
|
|
|
|
|
|
|
|
var fileList = resp.fileList;
|
|
|
|
var fileList = resp.fileList;
|
|
|
|
|
|
|
|
|
|
|
|
var currentDataFileList = fileList.filter(x => x.INF_KEY == dataKey);
|
|
|
|
var currentDataFileList = fileList.filter(x => x.INF_KEY == dataKey);
|
|
|
|
var nextDataFileList = fileList.filter(x => x.INF_KEY == nextDataKey);
|
|
|
|
var nextDataFileList = fileList.filter(x => x.INF_KEY == nextDataKey);
|
|
|
|
|
|
|
|
|
|
|
|
$("#curDataFiles--${pageName}").html("");
|
|
|
|
$("#curDataFiles--${pageName}").html("");
|
|
|
|
$("#nextDataFiles--${pageName}").html("");
|
|
|
|
$("#nextDataFiles--${pageName}").html("");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
currentDataFileList.forEach(function(item, index, array){
|
|
|
|
currentDataFileList.forEach(function(item, index, array){
|
|
|
|
var output = fnMakeImgTag(item.URL, item.FILE_NM);
|
|
|
|
var output = fnMakeImgTag(item.URL, item.FILE_NM);
|
|
|
|
$("#curDataFiles--${pageName}").append(output);
|
|
|
|
$("#curDataFiles--${pageName}").append(output);
|
|
|
@ -560,8 +561,8 @@ $(document).ready(function(){
|
|
|
|
var output = fnMakeImgTag(item.URL, item.FILE_NM);
|
|
|
|
var output = fnMakeImgTag(item.URL, item.FILE_NM);
|
|
|
|
$("#nextDataFiles--${pageName}").append(output);
|
|
|
|
$("#nextDataFiles--${pageName}").append(output);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
break;
|
|
|
|
break;
|
|
|
@ -587,12 +588,39 @@ $(document).ready(function(){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.openLevyExclPop = () => {
|
|
|
|
$P.openLevyExclPop = (levyExclSeCd) => {
|
|
|
|
|
|
|
|
let info = $P.photoInspectionControl.dataset.getCurrent("item");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// info 가 없다면.. return
|
|
|
|
|
|
|
|
if (info == undefined || info == "") {
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let params = {
|
|
|
|
|
|
|
|
crdnId : info.data.CRDN_ID
|
|
|
|
|
|
|
|
, levyExclSeCd : levyExclSeCd
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
|
|
|
|
url : wctx.url("/excl/excl01/020/info.do")
|
|
|
|
|
|
|
|
, data : params || {}
|
|
|
|
|
|
|
|
, success : resp => {
|
|
|
|
|
|
|
|
resp = resp.replace(/infoPrefix/g, this.prefix)
|
|
|
|
|
|
|
|
.replace(/prefixName/g, this.prefixName)
|
|
|
|
|
|
|
|
dialog.open({
|
|
|
|
|
|
|
|
id : "levyExcldialog"
|
|
|
|
|
|
|
|
, title : "부과제외 정보"
|
|
|
|
|
|
|
|
, content : resp
|
|
|
|
|
|
|
|
, size : "lg"
|
|
|
|
|
|
|
|
, init : () => $P.photoInspectionControl.setInfo(info)
|
|
|
|
|
|
|
|
, onClose : () => { $P.photoInspectionControl.load(1); } // callback
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
$P.renderInspectionDataList = (total, renderDataType) => {
|
|
|
|
$P.renderInspectionDataList = (total, renderDataType) => {
|
|
|
|
|
|
|
|
|
|
|
|
switch (renderDataType) {
|
|
|
|
switch (renderDataType) {
|
|
|
|
case "photoInspection":
|
|
|
|
case "photoInspection":
|
|
|
|
var dataList = $P.photoInspectionControl.dataset;
|
|
|
|
var dataList = $P.photoInspectionControl.dataset;
|
|
|
@ -604,7 +632,7 @@ $(document).ready(function(){
|
|
|
|
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickInspectionDataList('" + dataItem.getValue("CRDN_ID") + "','photoInspection');");
|
|
|
|
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickInspectionDataList('" + dataItem.getValue("CRDN_ID") + "','photoInspection');");
|
|
|
|
var trs = empty ? notFound : dataList.inStrings(found, replacer);
|
|
|
|
var trs = empty ? notFound : dataList.inStrings(found, replacer);
|
|
|
|
$("#photoInspectionTbody--${pageName}").html(trs.join());
|
|
|
|
$("#photoInspectionTbody--${pageName}").html(trs.join());
|
|
|
|
|
|
|
|
|
|
|
|
if(total == dataList.length){
|
|
|
|
if(total == dataList.length){
|
|
|
|
$("#photoInspection-responsive--${pageName}").attr("data-scroll-status", "complete");
|
|
|
|
$("#photoInspection-responsive--${pageName}").attr("data-scroll-status", "complete");
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
@ -620,7 +648,7 @@ $(document).ready(function(){
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickInspectionDataList('" + dataItem.getValue("CRDN_ID_LIST") + "','sameVehicleInspectionMain');");
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickInspectionDataList('" + dataItem.getValue("CRDN_ID_LIST") + "','sameVehicleInspectionMain');");
|
|
|
|
var trs = empty ? notFound : dataList.inStrings(found, replacer);
|
|
|
|
var trs = empty ? notFound : dataList.inStrings(found, replacer);
|
|
|
|
$("#sameVehicleInspectionMainTbody--${pageName}").html(trs.join());
|
|
|
|
$("#sameVehicleInspectionMainTbody--${pageName}").html(trs.join());
|
|
|
|
|
|
|
|
|
|
|
|
if(total == dataList.length){
|
|
|
|
if(total == dataList.length){
|
|
|
|
$("#sameVehicleInspectionMain-responsive--${pageName}").attr("data-scroll-status", "complete");
|
|
|
|
$("#sameVehicleInspectionMain-responsive--${pageName}").attr("data-scroll-status", "complete");
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
@ -677,12 +705,12 @@ $(document).ready(function(){
|
|
|
|
});
|
|
|
|
});
|
|
|
|
$('#btnSearch--${pageName}').on('click', () => $P.searchInspectionList()); //검색버튼
|
|
|
|
$('#btnSearch--${pageName}').on('click', () => $P.searchInspectionList()); //검색버튼
|
|
|
|
|
|
|
|
|
|
|
|
$("#btnInstLevyExcl--${pageName}").on("click", () => $P.openLevyExclPop());
|
|
|
|
$("#btnInstLevyExcl--${pageName}").on("click", () => $P.openLevyExclPop("1"));
|
|
|
|
|
|
|
|
|
|
|
|
//스크롤 이벤트 추가(동일차량검사)
|
|
|
|
//스크롤 이벤트 추가(동일차량검사)
|
|
|
|
$("#photoInspection-responsive--${pageName}").scroll(function(){ $P.scrollEnd(this); });
|
|
|
|
$("#photoInspection-responsive--${pageName}").scroll(function(){ $P.scrollEnd(this); });
|
|
|
|
$("#sameVehicleInspectionMain-responsive--${pageName}").scroll(function(){ $P.scrollEnd(this); });
|
|
|
|
$("#sameVehicleInspectionMain-responsive--${pageName}").scroll(function(){ $P.scrollEnd(this); });
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* 초기화
|
|
|
|
* 초기화
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|