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