|
|
|
@ -153,15 +153,15 @@
|
|
|
|
|
<span slot="button">
|
|
|
|
|
<template class="pvs">
|
|
|
|
|
<slot>
|
|
|
|
|
<button id="btnOpenOverTime--${pageName}"
|
|
|
|
|
class="btn btn-primary area-photoinspection"
|
|
|
|
|
<button id="btnOpenOverTime--${pageName}"
|
|
|
|
|
class="btn btn-primary area-photoinspection"
|
|
|
|
|
title="2시간 초과 처리">2시간 초과 처리</button>
|
|
|
|
|
</slot>
|
|
|
|
|
</template>
|
|
|
|
|
</span>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="card-datatable text-nowrap area-photoinspection">
|
|
|
|
|
<div id="photoInspection_Table_0_wrapper--${pageName}" class="dataTables_wrapper dt-bootstrap5 no-footer">
|
|
|
|
|
<div id="photoInspection-responsive--${pageName}" class="table-responsive"
|
|
|
|
@ -379,8 +379,8 @@ $(document).ready(function(){
|
|
|
|
|
$P.photoInspectionControl.untilPageNum = 0;
|
|
|
|
|
$P.photoInspectionControl.beforeCurrent = null;
|
|
|
|
|
$P.photoInspectionControl.tableRenderComplete = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//동일차량검사 datasetControl 인스턴스
|
|
|
|
|
$P.sameVehicleControl = new InspectionControl({
|
|
|
|
|
urls : { load : "", getInfo : "" },
|
|
|
|
@ -404,7 +404,7 @@ $(document).ready(function(){
|
|
|
|
|
$P.sameVehicleControl.main.beforeCurrent = null;
|
|
|
|
|
$P.sameVehicleControl.main.tableRenderComplete = false;
|
|
|
|
|
$P.sameVehicleControl.sub.tableRenderComplete = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.photoInspectionControl.getNext = (key) => {
|
|
|
|
|
|
|
|
|
|
var ds = $P.photoInspectionControl.dataset.getDataset();
|
|
|
|
@ -429,12 +429,12 @@ $(document).ready(function(){
|
|
|
|
|
start: obj["Start"], totalSize: obj["Total"], fetchSize: obj["Fetch"],
|
|
|
|
|
func: "pageObject['${pageName}'].photoInspectionControl.load({index})"
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.photoInspectionControl.tableRenderComplete = true;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
$P.photoInspectionControl.onCurrentChange = (item) => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(!$P.photoInspectionControl.tableRenderComplete){
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
@ -443,26 +443,26 @@ $(document).ready(function(){
|
|
|
|
|
var beforeCurrentKey = $P.photoInspectionControl.beforeCurrent.key;
|
|
|
|
|
var beforeCurrentIndex = $P.photoInspectionControl.beforeCurrent.index;
|
|
|
|
|
$P.photoInspectionControl.beforeCurrent = null;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(!$P.photoInspectionControl.dataset.empty){
|
|
|
|
|
var info = $P.photoInspectionControl.dataset.getData(beforeCurrentKey);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(info != null){
|
|
|
|
|
$P.photoInspectionControl.dataset.setCurrent(beforeCurrentKey, true);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(beforeCurrentIndex > ($P.photoInspectionControl.dataset.length - 1)){
|
|
|
|
|
info = $P.photoInspectionControl.dataset.getDataset()[$P.photoInspectionControl.dataset.length - 1];
|
|
|
|
|
} else {
|
|
|
|
|
info = $P.photoInspectionControl.dataset.getDataset()[beforeCurrentIndex];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.photoInspectionControl.dataset.setCurrent(info["CRDN_ID"], true);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.photoInspectionControl.tableRenderComplete = false;
|
|
|
|
|
if(!item){
|
|
|
|
|
$P.clickInspectionDataList("","photoInspection", true);
|
|
|
|
@ -470,7 +470,7 @@ $(document).ready(function(){
|
|
|
|
|
$P.clickInspectionDataList($P.photoInspectionControl.getCurrent()["CRDN_ID"],"photoInspection", true);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.sameVehicleControl.main.onDatasetChange = (obj) => {
|
|
|
|
|
|
|
|
|
|
$P.renderInspectionDataList(obj["Total"], "sameVehicleInspectionMain");
|
|
|
|
@ -481,8 +481,8 @@ $(document).ready(function(){
|
|
|
|
|
start: obj["Start"], totalSize: obj["Total"], fetchSize: obj["Fetch"],
|
|
|
|
|
func: "pageObject['${pageName}'].sameVehicleControl.main.load({index})"
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.sameVehicleControl.main.tableRenderComplete = true;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
@ -490,31 +490,31 @@ $(document).ready(function(){
|
|
|
|
|
if(!$P.sameVehicleControl.main.tableRenderComplete){
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if($P.sameVehicleControl.main.beforeCurrent != null){
|
|
|
|
|
var beforeCurrentKey = $P.sameVehicleControl.main.beforeCurrent.key;
|
|
|
|
|
var beforeCurrentIndex = $P.sameVehicleControl.main.beforeCurrent.index;
|
|
|
|
|
$P.sameVehicleControl.main.beforeCurrent = null;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(!$P.sameVehicleControl.main.dataset.empty){
|
|
|
|
|
var info = $P.sameVehicleControl.main.dataset.getData(beforeCurrentKey);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(info != null){
|
|
|
|
|
$P.sameVehicleControl.main.dataset.setCurrent(beforeCurrentKey,true);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(beforeCurrentIndex > ($P.sameVehicleControl.main.dataset.length - 1)){
|
|
|
|
|
info = $P.sameVehicleControl.main.dataset.getDataset()[$P.sameVehicleControl.main.dataset.length - 1];
|
|
|
|
|
} else {
|
|
|
|
|
info = $P.sameVehicleControl.main.dataset.getDataset()[beforeCurrentIndex];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.sameVehicleControl.main.dataset.setCurrent(info["CRDN_ID_LIST"],true);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.sameVehicleControl.main.tableRenderComplete = false;
|
|
|
|
|
if(!item){
|
|
|
|
|
$P.clickInspectionDataList("","sameVehicleInspectionMain", true);
|
|
|
|
@ -522,17 +522,17 @@ $(document).ready(function(){
|
|
|
|
|
$P.clickInspectionDataList($P.sameVehicleControl.main.getCurrent()["CRDN_ID_LIST"],"sameVehicleInspectionMain", true);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.sameVehicleControl.sub.onDatasetChange = (obj) => {
|
|
|
|
|
$P.renderInspectionDataList(obj["Total"], "sameVehicleInspectionSub");
|
|
|
|
|
$P.sameVehicleControl.sub.tableRenderComplete = true;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.sameVehicleControl.sub.onCurrentChange = (item) => {
|
|
|
|
|
if(!$P.sameVehicleControl.sub.tableRenderComplete){
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.sameVehicleControl.sub.tableRenderComplete = false;
|
|
|
|
|
if(!item){
|
|
|
|
|
$P.clickInspectionDataList("","sameVehicleInspectionSub", true);
|
|
|
|
@ -540,7 +540,7 @@ $(document).ready(function(){
|
|
|
|
|
$P.clickInspectionDataList($P.sameVehicleControl.sub.getCurrent()["CRDN_ID"],"sameVehicleInspectionSub", true);
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* pageObject.function
|
|
|
|
|
**************************************************************************/
|
|
|
|
@ -551,7 +551,7 @@ $(document).ready(function(){
|
|
|
|
|
searchForm.find("input[type='text']").val("");
|
|
|
|
|
searchForm.find("input[type='hidden']").val("");
|
|
|
|
|
searchForm.find("select").each(function(){ $(this).find("option:eq(0)").prop("selected", true); });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#byOutput--${pageName}").val("동적 검색");
|
|
|
|
|
$('#schCrdnYmdFrom--${pageName}').datepicker('setDate', DateUtil.getDateDay(-7).date);
|
|
|
|
|
$('#schCrdnYmdTo--${pageName}').datepicker('setDate', new Date());
|
|
|
|
@ -573,14 +573,14 @@ $(document).ready(function(){
|
|
|
|
|
renderForTask("frmSearch--${pageName}", clsForTask);
|
|
|
|
|
//업무별 버튼
|
|
|
|
|
renderForTask("gridbuttonArea--${pageName}", clsForTask);
|
|
|
|
|
//버튼 이벤트 재매핑
|
|
|
|
|
//버튼 이벤트 재매핑
|
|
|
|
|
$("#btnOpenOverTime--${pageName}").off("click");
|
|
|
|
|
$("#btnOpenOverTime--${pageName}").on("click", () => $P.openOverTimePop());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$('#btnPhotoInspection--${pageName}').trigger("click");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.refreshInspectionList = () => {
|
|
|
|
|
switch ($P.currentDisplay) {
|
|
|
|
|
case "photoInspection":
|
|
|
|
@ -604,7 +604,7 @@ $(document).ready(function(){
|
|
|
|
|
default: break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.searchInspectionList = () => {
|
|
|
|
|
switch ($P.currentDisplay) {
|
|
|
|
|
case "photoInspection":
|
|
|
|
@ -654,7 +654,7 @@ $(document).ready(function(){
|
|
|
|
|
$P.clickInspectionDataList = (dataKey, gridType, auto) => {
|
|
|
|
|
switch (gridType) {
|
|
|
|
|
case "photoInspection":
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(dataKey == ""){
|
|
|
|
|
$("#curDataVhrno--${pageName}").html("");
|
|
|
|
|
$("#nextDataVhrno--${pageName}").html("");
|
|
|
|
@ -662,7 +662,7 @@ $(document).ready(function(){
|
|
|
|
|
$("#nextDataFiles--${pageName}").html("");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#photoInspectionTbody--${pageName}").setCurrentRow(dataKey);
|
|
|
|
|
|
|
|
|
|
var curDataVhrno = $P.photoInspectionControl.dataset.getData(dataKey)["VHRNO"];
|
|
|
|
@ -701,16 +701,16 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(!auto){
|
|
|
|
|
$P.photoInspectionControl.setCurrent(dataKey);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
case "sameVehicleInspectionMain":
|
|
|
|
|
if(dataKey == ""){
|
|
|
|
|
$P.sameVehicleControl.sub.setData([]);
|
|
|
|
|
return;
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
$("#sameVehicleInspectionMainTbody--${pageName}").setCurrentRow(dataKey);
|
|
|
|
|
$P.searchDetailInspectionDataList(dataKey);
|
|
|
|
@ -730,22 +730,27 @@ $(document).ready(function(){
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
$P.dblclickInspectionDataList = (dataKey, gridType) => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var taskSeCd = $("#frmSearch--${pageName} input[name='taskSeCd']:checked").val();
|
|
|
|
|
|
|
|
|
|
var dialogUrl = wctx.url("/"+taskSeCd+"/sprt/sprt02/010/main.do");
|
|
|
|
|
|
|
|
|
|
let params = {
|
|
|
|
|
callControlName : "pageObject['${pageName}'].photoInspectionControl"
|
|
|
|
|
, crdnId : dataKey
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
|
url : dialogUrl,
|
|
|
|
|
data : { "crdnId" : dataKey },
|
|
|
|
|
data : params,
|
|
|
|
|
success : resp => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dialog.open({
|
|
|
|
|
id : "totalDialog--${pageName}",
|
|
|
|
|
title : "개별총정보", size : "xxl", content : resp,
|
|
|
|
|
init : () => {}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
@ -776,12 +781,12 @@ $(document).ready(function(){
|
|
|
|
|
url : wctx.url("/excl/excl01/020/info.do"),
|
|
|
|
|
data : params,
|
|
|
|
|
success : resp => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if((typeof resp) != "string"){
|
|
|
|
|
dialog.alert(resp.message);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dialog.open({
|
|
|
|
|
id : "levyExcldialog",
|
|
|
|
|
title : "부과제외 정보",
|
|
|
|
@ -790,7 +795,7 @@ $(document).ready(function(){
|
|
|
|
|
init : () => {},
|
|
|
|
|
onClose : () => {}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
@ -802,27 +807,27 @@ $(document).ready(function(){
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var info = $P.photoInspectionControl.dataset.getCurrent("item");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (info == undefined || info == "") {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var params = {
|
|
|
|
|
|
|
|
|
|
var params = {
|
|
|
|
|
"crdnId" : info.data.CRDN_ID,
|
|
|
|
|
"openerPageName" : "${pageName}",
|
|
|
|
|
"savedCallbackFuncName" : "pageObject['${pageName}']['popupSavedCallback']"
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
|
url : wctx.url("/PVS/crdn/crdn02/050/info.do"),
|
|
|
|
|
data : params,
|
|
|
|
|
success : resp => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if((typeof resp) != "string"){
|
|
|
|
|
dialog.alert(resp.message);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dialog.open({
|
|
|
|
|
id : "overTimeProcessDialog--${pageName}",
|
|
|
|
|
title : "2시간 초과 처리",
|
|
|
|
@ -834,13 +839,13 @@ $(document).ready(function(){
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.popupSavedCallback = (saved) => {
|
|
|
|
|
if(saved){
|
|
|
|
|
$P.refreshInspectionList();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.renderInspectionDataList = (total, renderDataType) => {
|
|
|
|
|
|
|
|
|
|
switch (renderDataType) {
|
|
|
|
@ -860,7 +865,7 @@ $(document).ready(function(){
|
|
|
|
|
} else {
|
|
|
|
|
$("#photoInspection-responsive--${pageName}").removeAttr("data-scroll-status");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if($P.photoInspectionControl.untilPageNum != 0){
|
|
|
|
|
$P.photoInspectionControl.query.fetchSize = $P.photoInspectionControl.defaultFetchSize;
|
|
|
|
|
$P.photoInspectionControl.query.pageNum = $P.photoInspectionControl.untilPageNum;
|
|
|
|
@ -882,7 +887,7 @@ $(document).ready(function(){
|
|
|
|
|
} else {
|
|
|
|
|
$("#sameVehicleInspectionMain-responsive--${pageName}").removeAttr("data-scroll-status");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if($P.sameVehicleControl.untilPageNum != 0){
|
|
|
|
|
$P.sameVehicleControl.main.query.fetchSize = $P.sameVehicleControl.defaultFetchSize;
|
|
|
|
|
$P.sameVehicleControl.main.query.pageNum = $P.sameVehicleControl.untilPageNum;
|
|
|
|
@ -910,7 +915,7 @@ $(document).ready(function(){
|
|
|
|
|
$P.getParams = () => {
|
|
|
|
|
var formFields = new FimsFormFields("#frmSearch--${pageName}");
|
|
|
|
|
var data = formFields.get();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if($P.currentDisplay == "photoInspection"){
|
|
|
|
|
data.fetchSize = $P.photoInspectionControl.defaultFetchSize;
|
|
|
|
|
} else if($P.currentDisplay == "sameVehicleInspection"){
|
|
|
|
@ -945,7 +950,7 @@ $(document).ready(function(){
|
|
|
|
|
$('#btnSearch--${pageName}').on('click', () => $P.searchInspectionList()); //검색버튼
|
|
|
|
|
|
|
|
|
|
$("#btnInstLevyExcl--${pageName}").on("click", () => $P.openLevyExclPop("1"));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//스크롤 이벤트 추가(동일차량검사)
|
|
|
|
|
$("#photoInspection-responsive--${pageName}").scroll(function(){ $P.scrollEnd(this); });
|
|
|
|
|
$("#sameVehicleInspectionMain-responsive--${pageName}").scroll(function(){ $P.scrollEnd(this); });
|
|
|
|
@ -955,7 +960,7 @@ $(document).ready(function(){
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
initDatepicker("frmSearch--${pageName}"); //달력 초기화
|
|
|
|
|
initDetailSearchButton("frmSearch--${pageName}");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val();
|
|
|
|
|
$("#frmSearch--${pageName} input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
|
|
|
|
|
$P.fnResetAndChangeBiz(defaultBizValue);
|
|
|
|
|