|
|
@ -216,43 +216,19 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div style="height:200px" class="area-photoinspection">
|
|
|
|
<div style="height:200px;" class="area-photoinspection">
|
|
|
|
선택자료
|
|
|
|
선택자료
|
|
|
|
<table style="width: 100%;height: 150px;">
|
|
|
|
<strong id="curDataVhrno--${pageName}"></strong>
|
|
|
|
<colgroup>
|
|
|
|
<div id="curDataFiles--${pageName}" style="width: 100%;height: 180px;overflow-x: scroll;">
|
|
|
|
<col width="25%" />
|
|
|
|
|
|
|
|
<col width="25%" />
|
|
|
|
|
|
|
|
<col width="25%" />
|
|
|
|
|
|
|
|
<col width="25%" />
|
|
|
|
|
|
|
|
</colgroup>
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td style="background-color: red"></td>
|
|
|
|
|
|
|
|
<td style="background-color: orange"></td>
|
|
|
|
|
|
|
|
<td style="background-color: green"></td>
|
|
|
|
|
|
|
|
<td style="background-color: blue"></td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
</tbody>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div style="height:200px" class="area-photoinspection">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div style="height:200px;" class="area-photoinspection">
|
|
|
|
비교자료(선택자료의 다음 자료가 보여집니다.)
|
|
|
|
비교자료(선택자료의 다음 자료가 보여집니다.)
|
|
|
|
<table style="width: 100%;height: 150px;">
|
|
|
|
<strong id="nextDataVhrno--${pageName}"></strong>
|
|
|
|
<colgroup>
|
|
|
|
<div id="nextDataFiles--${pageName}" style="width: 100%;height: 180px;overflow-x: scroll;">
|
|
|
|
<col width="25%" />
|
|
|
|
|
|
|
|
<col width="25%" />
|
|
|
|
</div>
|
|
|
|
<col width="25%" />
|
|
|
|
|
|
|
|
<col width="25%" />
|
|
|
|
|
|
|
|
</colgroup>
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td style="background-color: red"></td>
|
|
|
|
|
|
|
|
<td style="background-color: orange"></td>
|
|
|
|
|
|
|
|
<td style="background-color: green"></td>
|
|
|
|
|
|
|
|
<td style="background-color: blue"></td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
</tbody>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="area-samevehicleinspection">
|
|
|
|
<div class="area-samevehicleinspection">
|
|
|
@ -346,7 +322,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
<script type="module" src="<c:url value='/resources/js/fims/crdn/inspection.js?${ver}'/>"></script>
|
|
|
|
<script type="module" src="<c:url value='/resources/js/fims/crdn/inspection.js?${ver}'/>"></script>
|
|
|
|
<script ${module}>
|
|
|
|
<script ${module}>
|
|
|
|
import InspectionControl from "<c:url value='/resources/js/fims/crdn/inspection.js?${ver}'/>";
|
|
|
|
import {InspectionControl, fnMakeImgTag} from "<c:url value='/resources/js/fims/crdn/inspection.js?${ver}'/>";
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* Global Variable
|
|
|
|
* Global Variable
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
@ -393,6 +369,17 @@ $(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];
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* DatasetControl.on
|
|
|
|
* DatasetControl.on
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
@ -506,6 +493,47 @@ $(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 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: {
|
|
|
|
|
|
|
|
infoType : "100",
|
|
|
|
|
|
|
|
infoKeys : [dataKey, nextDataKey],
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
nextDataFileList.forEach(function(item, index, array){
|
|
|
|
|
|
|
|
var output = fnMakeImgTag(item.URL, item.FILE_NM);
|
|
|
|
|
|
|
|
$("#nextDataFiles--${pageName}").append(output);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case "sameVehicleInspectionMain":
|
|
|
|
case "sameVehicleInspectionMain":
|
|
|
|
$P.sameVehicleControl.main.setCurrent(dataKey);
|
|
|
|
$P.sameVehicleControl.main.setCurrent(dataKey);
|
|
|
|