|
|
|
@ -138,19 +138,20 @@
|
|
|
|
|
|
|
|
|
|
<div id="gridbuttonArea--${pageName}" class="container-page-btn">
|
|
|
|
|
<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>
|
|
|
|
|
<ul id="photoInspectionPaging--${pageName}" class="pagination pagination-primary area-photoinspection">
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<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>
|
|
|
|
|
<ul id="sameVehicleInspectionMainPaging--${pageName}" class="pagination pagination-primary area-samevehicleinspection">
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<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>
|
|
|
|
@ -220,14 +221,14 @@
|
|
|
|
|
선택자료
|
|
|
|
|
<strong id="curDataVhrno--${pageName}"></strong>
|
|
|
|
|
<div id="curDataFiles--${pageName}" style="width: 100%;height: 180px;overflow-x: scroll;background-color:#D9DEE3;">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="height:200px;" class="area-photoinspection">
|
|
|
|
|
비교자료(선택자료의 다음 자료가 보여집니다.)
|
|
|
|
|
<strong id="nextDataVhrno--${pageName}"></strong>
|
|
|
|
|
<div id="nextDataFiles--${pageName}" style="width: 100%;height: 180px;overflow-x: scroll;background-color:#D9DEE3;">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
@ -335,7 +336,7 @@ pageObject["${pageName}"] = {};
|
|
|
|
|
$(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
var $P = pageObject["${pageName}"];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* DatasetControl
|
|
|
|
|
**************************************************************************/
|
|
|
|
@ -370,9 +371,9 @@ $(document).ready(function(){
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
$P.photoInspectionControl.getNext = (key) => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var ds = $P.photoInspectionControl.dataset.getDataset();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var index = ds.findIndex(item => item.CRDN_ID == key);
|
|
|
|
|
if(ds.length > index+1){
|
|
|
|
|
return ds[index+1];
|
|
|
|
@ -385,7 +386,7 @@ $(document).ready(function(){
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
$P.photoInspectionControl.onDatasetChange = (obj) => {
|
|
|
|
|
var prefix = obj.infoPrefix;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.renderInspectionDataList(obj[prefix+"Total"], "photoInspection");
|
|
|
|
|
|
|
|
|
|
var prefix = obj.infoPrefix;
|
|
|
|
@ -400,7 +401,7 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
$P.sameVehicleControl.main.onDatasetChange = (obj) => {
|
|
|
|
|
var prefix = obj.infoPrefix;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.renderInspectionDataList(obj[prefix+"Total"], "sameVehicleInspectionMain");
|
|
|
|
|
|
|
|
|
|
$("#sameVehicleInspectionMainPaging--${pageName}").setPagingInfo({
|
|
|
|
@ -415,9 +416,9 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
$P.sameVehicleControl.sub.onDatasetChange = (obj) => {
|
|
|
|
|
var prefix = obj.infoPrefix;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.renderInspectionDataList(obj[prefix+"Total"], "sameVehicleInspectionSub");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
@ -454,7 +455,7 @@ $(document).ready(function(){
|
|
|
|
|
this.innerHTML = "";
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//업무별 버튼
|
|
|
|
|
var buttonContent = document.getElementById("taskButton--${pageName}").content
|
|
|
|
|
var buttons = $(buttonContent).find("."+clsForTask);
|
|
|
|
@ -493,9 +494,9 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
$P.scrollEnd = (obj) => {
|
|
|
|
|
if(obj.dataset.scrollStatus){
|
|
|
|
|
return;
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var el = $(obj);
|
|
|
|
|
if(el.scrollTop() == 0){
|
|
|
|
|
return;
|
|
|
|
@ -523,16 +524,16 @@ $(document).ready(function(){
|
|
|
|
|
case "photoInspection":
|
|
|
|
|
$P.photoInspectionControl.setCurrent(dataKey);
|
|
|
|
|
$("#photoInspectionTbody--${pageName}").setCurrentRow(dataKey);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var curDataVhrno = $P.photoInspectionControl.getCurrent(dataKey)["VHRNO"];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var nextData = $P.photoInspectionControl.getNext(dataKey);
|
|
|
|
|
var nextDataKey = nextData != null ? nextData.CRDN_ID : "";
|
|
|
|
|
var nextDataVhrno = nextData != null ? nextData.VHRNO : "";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#curDataVhrno--${pageName}").html(curDataVhrno);
|
|
|
|
|
$("#nextDataVhrno--${pageName}").html(nextDataVhrno);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
|
url:"file/list.do",
|
|
|
|
|
data: {
|
|
|
|
@ -541,17 +542,17 @@ $(document).ready(function(){
|
|
|
|
|
fetchSize : 0
|
|
|
|
|
},
|
|
|
|
|
success : resp => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var fileList = resp.fileList;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var currentDataFileList = fileList.filter(x => x.INF_KEY == dataKey);
|
|
|
|
|
var nextDataFileList = fileList.filter(x => x.INF_KEY == nextDataKey);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#curDataFiles--${pageName}").html("");
|
|
|
|
|
$("#nextDataFiles--${pageName}").html("");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
currentDataFileList.forEach(function(item, index, array){
|
|
|
|
|
var output = fnMakeImgTag(item.URL, item.FILE_NM);
|
|
|
|
|
$("#curDataFiles--${pageName}").append(output);
|
|
|
|
@ -560,8 +561,8 @@ $(document).ready(function(){
|
|
|
|
|
var output = fnMakeImgTag(item.URL, item.FILE_NM);
|
|
|
|
|
$("#nextDataFiles--${pageName}").append(output);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
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) => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
switch (renderDataType) {
|
|
|
|
|
case "photoInspection":
|
|
|
|
|
var dataList = $P.photoInspectionControl.dataset;
|
|
|
|
@ -604,7 +632,7 @@ $(document).ready(function(){
|
|
|
|
|
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickInspectionDataList('" + dataItem.getValue("CRDN_ID") + "','photoInspection');");
|
|
|
|
|
var trs = empty ? notFound : dataList.inStrings(found, replacer);
|
|
|
|
|
$("#photoInspectionTbody--${pageName}").html(trs.join());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(total == dataList.length){
|
|
|
|
|
$("#photoInspection-responsive--${pageName}").attr("data-scroll-status", "complete");
|
|
|
|
|
} else {
|
|
|
|
@ -620,7 +648,7 @@ $(document).ready(function(){
|
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickInspectionDataList('" + dataItem.getValue("CRDN_ID_LIST") + "','sameVehicleInspectionMain');");
|
|
|
|
|
var trs = empty ? notFound : dataList.inStrings(found, replacer);
|
|
|
|
|
$("#sameVehicleInspectionMainTbody--${pageName}").html(trs.join());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(total == dataList.length){
|
|
|
|
|
$("#sameVehicleInspectionMain-responsive--${pageName}").attr("data-scroll-status", "complete");
|
|
|
|
|
} else {
|
|
|
|
@ -677,12 +705,12 @@ $(document).ready(function(){
|
|
|
|
|
});
|
|
|
|
|
$('#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); });
|
|
|
|
|
$("#sameVehicleInspectionMain-responsive--${pageName}").scroll(function(){ $P.scrollEnd(this); });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* 초기화
|
|
|
|
|
**************************************************************************/
|
|
|
|
|