|
|
|
@ -393,16 +393,16 @@ $(document).ready(function(){
|
|
|
|
|
var $P = pageObject["${pageName}"];
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* DatasetControl
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
* DatasetControl, DatasetSupport, FormFields
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
//단속사진검사 datasetControl 인스턴스
|
|
|
|
|
$P.ctrl = newCrdn02010Control();
|
|
|
|
|
$P.ctrl.defaultFetchSize = FETCH_XS;
|
|
|
|
|
$P.ctrl.query = { pageNum : 1, fetchSize : $P.ctrl.defaultFetchSize };
|
|
|
|
|
$P.ctrl.beforeCurrent = null;
|
|
|
|
|
$P.ctrl.getNext = (key) => {
|
|
|
|
|
var ctrl = $P.ctrl = newCrdn02010Control();
|
|
|
|
|
ctrl.defaultFetchSize = FETCH_XS;
|
|
|
|
|
ctrl.query = { pageNum : 1, fetchSize : ctrl.defaultFetchSize };
|
|
|
|
|
ctrl.beforeCurrent = null;
|
|
|
|
|
ctrl.getNext = (key) => {
|
|
|
|
|
|
|
|
|
|
var ds = $P.ctrl.dataset.getDataset();
|
|
|
|
|
var ds = ctrl.dataset.getDataset();
|
|
|
|
|
|
|
|
|
|
var index = ds.findIndex(item => item.CRDN_ID == key);
|
|
|
|
|
if(ds.length > index+1){
|
|
|
|
@ -411,80 +411,77 @@ $(document).ready(function(){
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//동일차량검사 datasetControl 인스턴스
|
|
|
|
|
$P.alt = newCrdn02010Alt();
|
|
|
|
|
$P.alt.defaultFetchSize = FETCH_XS;
|
|
|
|
|
$P.alt.query = { pageNum : 1, fetchSize : $P.alt.defaultFetchSize };
|
|
|
|
|
$P.alt.beforeCurrent = null;
|
|
|
|
|
|
|
|
|
|
$P.shift = new newCrdn02010Shift();
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* Dataset.on
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
$P.ctrl.dataset.onDatasetChange = (obj, option) => {
|
|
|
|
|
ctrl.dataset.onDatasetChange = (obj, option) => {
|
|
|
|
|
|
|
|
|
|
var t = $P.getGridTemplate("photoInspection");
|
|
|
|
|
var trs = Apply.fromDataset.getTbody($P.ctrl.dataset, t.found, t.notFound, t.replacer);
|
|
|
|
|
$P.renderInspectionDataList(obj["Total"], $P.ctrl.dataset.length, trs, "photoInspection", option);
|
|
|
|
|
var trs = Apply.fromDataset.getTbody(ctrl.dataset, t.found, t.notFound, t.replacer);
|
|
|
|
|
$P.renderInspectionDataList(obj["Total"], ctrl.dataset.length, trs, "photoInspection", option);
|
|
|
|
|
|
|
|
|
|
Apply.fromDataset.paging($P.ctrl.dataset, obj,
|
|
|
|
|
Apply.fromDataset.paging(ctrl.dataset, obj,
|
|
|
|
|
$P.findn("photoInspectionPaging"), $P.findn("photoInspectionPagingInfo")
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
$P.ctrl.dataset.onCurrentChange = (dataItem) => {
|
|
|
|
|
Apply.fromDataset.currentRow($P.ctrl.dataset, dataItem, $P.findn("photoInspectionTbody"));
|
|
|
|
|
ctrl.dataset.onCurrentChange = (dataItem) => {
|
|
|
|
|
Apply.fromDataset.currentRow(ctrl.dataset, dataItem, $P.findn("photoInspectionTbody"));
|
|
|
|
|
|
|
|
|
|
var dataKey = "";
|
|
|
|
|
var curDataVhrno = "";
|
|
|
|
|
var nextDataKey = "";
|
|
|
|
|
var nextDataVhrno = "";
|
|
|
|
|
if(!$P.ctrl.dataset.empty){
|
|
|
|
|
dataKey = $P.ctrl.dataset.getKey(dataItem);
|
|
|
|
|
curDataVhrno = $P.ctrl.dataset.getData(dataKey)["VHRNO"];
|
|
|
|
|
var nextData = $P.ctrl.getNext(dataKey);
|
|
|
|
|
if(!ctrl.dataset.empty){
|
|
|
|
|
dataKey = ctrl.dataset.getKey(dataItem);
|
|
|
|
|
curDataVhrno = ctrl.dataset.getData(dataKey)["VHRNO"];
|
|
|
|
|
var nextData = ctrl.getNext(dataKey);
|
|
|
|
|
nextDataKey = nextData != null ? nextData.CRDN_ID : "";
|
|
|
|
|
nextDataVhrno = nextData != null ? nextData.VHRNO : "";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.showPhoto(dataKey,nextDataKey,curDataVhrno,nextDataVhrno);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//동일차량검사 datasetControl 인스턴스
|
|
|
|
|
var alt = $P.alt = newCrdn02010Alt();
|
|
|
|
|
alt.defaultFetchSize = FETCH_XS;
|
|
|
|
|
alt.query = { pageNum : 1, fetchSize : alt.defaultFetchSize };
|
|
|
|
|
alt.beforeCurrent = null;
|
|
|
|
|
|
|
|
|
|
$P.alt.dataset.onDatasetChange = (obj, option) => {
|
|
|
|
|
alt.dataset.onDatasetChange = (obj, option) => {
|
|
|
|
|
|
|
|
|
|
var t = $P.getGridTemplate("sameVehicleInspectionMain");
|
|
|
|
|
var trs = Apply.fromDataset.getTbody($P.alt.dataset, t.found, t.notFound, t.replacer);
|
|
|
|
|
$P.renderInspectionDataList(obj["Total"], $P.alt.dataset.length, trs, "sameVehicleInspectionMain", option);
|
|
|
|
|
var trs = Apply.fromDataset.getTbody(alt.dataset, t.found, t.notFound, t.replacer);
|
|
|
|
|
$P.renderInspectionDataList(obj["Total"], alt.dataset.length, trs, "sameVehicleInspectionMain", option);
|
|
|
|
|
|
|
|
|
|
Apply.fromDataset.paging($P.alt.dataset, obj,
|
|
|
|
|
Apply.fromDataset.paging(alt.dataset, obj,
|
|
|
|
|
$P.findn("sameVehicleInspectionMainPaging"), $P.findn("sameVehicleInspectionMainPagingInfo")
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
$P.alt.dataset.onCurrentChange = (dataItem) => {
|
|
|
|
|
Apply.fromDataset.currentRow($P.alt.dataset, dataItem, $P.findn("sameVehicleInspectionMainTbody"));
|
|
|
|
|
alt.dataset.onCurrentChange = (dataItem) => {
|
|
|
|
|
Apply.fromDataset.currentRow(alt.dataset, dataItem, $P.findn("sameVehicleInspectionMainTbody"));
|
|
|
|
|
if(dataItem){
|
|
|
|
|
$P.searchDetailInspectionDataList(dataItem.data["CRDN_ID_LIST"]);
|
|
|
|
|
} else {
|
|
|
|
|
$P.$findn("sameVehicleInspectionSubTbody").html("");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.shift.dataset.onDatasetChange = (obj, option) => {
|
|
|
|
|
|
|
|
|
|
var shift = $P.shift = new newCrdn02010Shift();
|
|
|
|
|
|
|
|
|
|
shift.dataset.onDatasetChange = (obj, option) => {
|
|
|
|
|
var t = $P.getGridTemplate("sameVehicleInspectionSub");
|
|
|
|
|
var trs = Apply.fromDataset.getTbody($P.shift.dataset, t.found, t.notFound, t.replacer);
|
|
|
|
|
$P.renderInspectionDataList(obj["Total"], $P.shift.dataset.length, trs, "sameVehicleInspectionSub", option);
|
|
|
|
|
var trs = Apply.fromDataset.getTbody(shift.dataset, t.found, t.notFound, t.replacer);
|
|
|
|
|
$P.renderInspectionDataList(obj["Total"], shift.dataset.length, trs, "sameVehicleInspectionSub", option);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
$P.shift.dataset.onCurrentChange = (dataItem) => {
|
|
|
|
|
Apply.fromDataset.currentRow($P.shift.dataset, dataItem, $P.findn("sameVehicleInspectionSubTbody"));
|
|
|
|
|
shift.dataset.onCurrentChange = (dataItem) => {
|
|
|
|
|
Apply.fromDataset.currentRow(shift.dataset, dataItem, $P.findn("sameVehicleInspectionSubTbody"));
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* pageObject.function
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
* pageObject.function
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
$P.fnReset = () => {
|
|
|
|
|
var searchForm = $P.$findn("frmSearch");
|
|
|
|
|
searchForm.find("input[type='radio']").not("[name='taskSeCd']").prop("checked", false);
|
|
|
|
@ -497,15 +494,15 @@ $(document).ready(function(){
|
|
|
|
|
$P.$findn("schRgtrNm").prop("readonly", true); // 사용자 이름
|
|
|
|
|
$P.$findn("schCrdnYmdFrom").datepicker('setDate', DateSupport.getAddDay(-7));
|
|
|
|
|
$P.$findn("schCrdnYmdTo").datepicker('setDate', TODAY());
|
|
|
|
|
$P.ctrl.dataset.setData([]);
|
|
|
|
|
$P.alt.dataset.setData([]);
|
|
|
|
|
ctrl.dataset.setData([]);
|
|
|
|
|
alt.dataset.setData([]);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
$P.fnResetAndChangeBiz = (taskSeCd) => {
|
|
|
|
|
$P.fnReset();
|
|
|
|
|
$P.ctrl.urls.load = wctx.url("/"+taskSeCd+"/crdn/crdn02/020/list.do");
|
|
|
|
|
$P.alt.urls.load = wctx.url("/"+taskSeCd+"/crdn/crdn02/020/list.do");
|
|
|
|
|
$P.shift.urls.load = wctx.url("/"+taskSeCd+"/crdn/crdn02/020/list.do");
|
|
|
|
|
ctrl.urls.load = wctx.url("/"+taskSeCd+"/crdn/crdn02/020/list.do");
|
|
|
|
|
alt.urls.load = wctx.url("/"+taskSeCd+"/crdn/crdn02/020/list.do");
|
|
|
|
|
shift.urls.load = wctx.url("/"+taskSeCd+"/crdn/crdn02/020/list.do");
|
|
|
|
|
|
|
|
|
|
var clsForTask = taskSeCd.toLowerCase();
|
|
|
|
|
//업무별 조회조건
|
|
|
|
@ -524,9 +521,9 @@ $(document).ready(function(){
|
|
|
|
|
var data = formFields.get();
|
|
|
|
|
|
|
|
|
|
if($P.currentDisplay == "photoInspection"){
|
|
|
|
|
data.fetchSize = $P.ctrl.defaultFetchSize;
|
|
|
|
|
data.fetchSize = ctrl.defaultFetchSize;
|
|
|
|
|
} else if($P.currentDisplay == "sameVehicleInspection"){
|
|
|
|
|
data.fetchSize = $P.alt.defaultFetchSize;
|
|
|
|
|
data.fetchSize = alt.defaultFetchSize;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return data;
|
|
|
|
@ -535,34 +532,34 @@ $(document).ready(function(){
|
|
|
|
|
$P.searchInspectionList = () => {
|
|
|
|
|
switch ($P.currentDisplay) {
|
|
|
|
|
case "photoInspection":
|
|
|
|
|
$P.ctrl.query = $P.getParams();
|
|
|
|
|
$P.ctrl.query.inspectionDataType = "photo";
|
|
|
|
|
$P.ctrl.load(1);
|
|
|
|
|
ctrl.query = $P.getParams();
|
|
|
|
|
ctrl.query.inspectionDataType = "photo";
|
|
|
|
|
ctrl.load(1);
|
|
|
|
|
break;
|
|
|
|
|
case "sameVehicleInspection":
|
|
|
|
|
$P.alt.query = $P.getParams();
|
|
|
|
|
$P.alt.query.inspectionDataType = "sameVehicleMain";
|
|
|
|
|
$P.alt.load(1);
|
|
|
|
|
alt.query = $P.getParams();
|
|
|
|
|
alt.query.inspectionDataType = "sameVehicleMain";
|
|
|
|
|
alt.load(1);
|
|
|
|
|
break;
|
|
|
|
|
default: break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.searchDetailInspectionDataList = (dataKey) => {
|
|
|
|
|
$P.shift.query = {};
|
|
|
|
|
$P.shift.query.inspectionDataType = "sameVehicleSub";
|
|
|
|
|
$P.shift.query.crdnIds = dataKey;
|
|
|
|
|
$P.shift.query.taskSeCd = $P.alt.query.taskSeCd;
|
|
|
|
|
$P.shift.load(0);
|
|
|
|
|
shift.query = {};
|
|
|
|
|
shift.query.inspectionDataType = "sameVehicleSub";
|
|
|
|
|
shift.query.crdnIds = dataKey;
|
|
|
|
|
shift.query.taskSeCd = alt.query.taskSeCd;
|
|
|
|
|
shift.load(0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.scrollInspectionDataList = () => {
|
|
|
|
|
switch ($P.currentDisplay) {
|
|
|
|
|
case "photoInspection":
|
|
|
|
|
$P.ctrl.load($P.ctrl.query.pageNum + 1);
|
|
|
|
|
ctrl.load(ctrl.query.pageNum + 1);
|
|
|
|
|
break;
|
|
|
|
|
case "sameVehicleInspection":
|
|
|
|
|
$P.alt.load($P.alt.query.pageNum + 1);
|
|
|
|
|
alt.load(alt.query.pageNum + 1);
|
|
|
|
|
break;
|
|
|
|
|
default: break;
|
|
|
|
|
}
|
|
|
|
@ -571,35 +568,35 @@ $(document).ready(function(){
|
|
|
|
|
$P.refreshInspectionList = () => {
|
|
|
|
|
switch ($P.currentDisplay) {
|
|
|
|
|
case "photoInspection":
|
|
|
|
|
$P.ctrl.beforeCurrent = {
|
|
|
|
|
key : $P.ctrl.dataset.getCurrent()["CRDN_ID"],
|
|
|
|
|
index : $P.ctrl.dataset.getCurrent()["ROW_NUM"] - 1
|
|
|
|
|
ctrl.beforeCurrent = {
|
|
|
|
|
key : ctrl.dataset.getCurrent()["CRDN_ID"],
|
|
|
|
|
index : ctrl.dataset.getCurrent()["ROW_NUM"] - 1
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Apply.fromDatasetControl.reload($P.ctrl).then((resp)=>{
|
|
|
|
|
Apply.toDataset.set($P.ctrl.dataset, resp);
|
|
|
|
|
$P.ctrl.dataset.onDatasetChange(resp, {reloaded : true});
|
|
|
|
|
Apply.fromDatasetControl.reload(ctrl).then((resp)=>{
|
|
|
|
|
Apply.toDataset.set(ctrl.dataset, resp);
|
|
|
|
|
ctrl.dataset.onDatasetChange(resp, {reloaded : true});
|
|
|
|
|
|
|
|
|
|
if($P.ctrl.beforeCurrent != null){
|
|
|
|
|
let beforeCurrentKey = $P.ctrl.beforeCurrent.key;
|
|
|
|
|
let beforeCurrentIndex = $P.ctrl.beforeCurrent.index;
|
|
|
|
|
$P.ctrl.beforeCurrent = null;
|
|
|
|
|
if(ctrl.beforeCurrent != null){
|
|
|
|
|
let beforeCurrentKey = ctrl.beforeCurrent.key;
|
|
|
|
|
let beforeCurrentIndex = ctrl.beforeCurrent.index;
|
|
|
|
|
ctrl.beforeCurrent = null;
|
|
|
|
|
|
|
|
|
|
if(!$P.ctrl.dataset.empty){
|
|
|
|
|
var info = $P.ctrl.dataset.getData(beforeCurrentKey);
|
|
|
|
|
if(!ctrl.dataset.empty){
|
|
|
|
|
var info = ctrl.dataset.getData(beforeCurrentKey);
|
|
|
|
|
|
|
|
|
|
if(info != null){
|
|
|
|
|
$P.ctrl.dataset.setCurrent(beforeCurrentKey, true);
|
|
|
|
|
ctrl.dataset.setCurrent(beforeCurrentKey, true);
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
if(beforeCurrentIndex > ($P.ctrl.dataset.length - 1)){
|
|
|
|
|
info = $P.ctrl.dataset.getDataset()[$P.ctrl.dataset.length - 1];
|
|
|
|
|
if(beforeCurrentIndex > (ctrl.dataset.length - 1)){
|
|
|
|
|
info = ctrl.dataset.getDataset()[ctrl.dataset.length - 1];
|
|
|
|
|
} else {
|
|
|
|
|
info = $P.ctrl.dataset.getDataset()[beforeCurrentIndex];
|
|
|
|
|
info = ctrl.dataset.getDataset()[beforeCurrentIndex];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.ctrl.dataset.setCurrent(info["CRDN_ID"], true);
|
|
|
|
|
ctrl.dataset.setCurrent(info["CRDN_ID"], true);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -607,34 +604,34 @@ $(document).ready(function(){
|
|
|
|
|
});
|
|
|
|
|
break;
|
|
|
|
|
case "sameVehicleInspection":
|
|
|
|
|
$P.alt.beforeCurrent = {
|
|
|
|
|
key : $P.alt.dataset.getCurrent()["CRDN_ID_LIST"],
|
|
|
|
|
index : $P.alt.dataset.getCurrent()["ROW_NUM"] - 1
|
|
|
|
|
alt.beforeCurrent = {
|
|
|
|
|
key : alt.dataset.getCurrent()["CRDN_ID_LIST"],
|
|
|
|
|
index : alt.dataset.getCurrent()["ROW_NUM"] - 1
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Apply.fromDatasetControl.reload($P.alt).then((resp)=>{
|
|
|
|
|
Apply.toDataset.set($P.alt.dataset, resp);
|
|
|
|
|
$P.alt.dataset.onDatasetChange(resp, {reloaded : true});
|
|
|
|
|
Apply.fromDatasetControl.reload(alt).then((resp)=>{
|
|
|
|
|
Apply.toDataset.set(alt.dataset, resp);
|
|
|
|
|
alt.dataset.onDatasetChange(resp, {reloaded : true});
|
|
|
|
|
|
|
|
|
|
if($P.alt.beforeCurrent != null){
|
|
|
|
|
var beforeCurrentKey = $P.alt.beforeCurrent.key;
|
|
|
|
|
var beforeCurrentIndex = $P.alt.beforeCurrent.index;
|
|
|
|
|
$P.alt.beforeCurrent = null;
|
|
|
|
|
if(alt.beforeCurrent != null){
|
|
|
|
|
var beforeCurrentKey = alt.beforeCurrent.key;
|
|
|
|
|
var beforeCurrentIndex = alt.beforeCurrent.index;
|
|
|
|
|
alt.beforeCurrent = null;
|
|
|
|
|
|
|
|
|
|
if(!$P.alt.dataset.empty){
|
|
|
|
|
var info = $P.alt.dataset.getData(beforeCurrentKey);
|
|
|
|
|
if(!alt.dataset.empty){
|
|
|
|
|
var info = alt.dataset.getData(beforeCurrentKey);
|
|
|
|
|
|
|
|
|
|
if(info != null){
|
|
|
|
|
$P.alt.dataset.setCurrent(beforeCurrentKey,true);
|
|
|
|
|
alt.dataset.setCurrent(beforeCurrentKey,true);
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
if(beforeCurrentIndex > ($P.alt.dataset.length - 1)){
|
|
|
|
|
info = $P.alt.dataset.getDataset()[$P.alt.dataset.length - 1];
|
|
|
|
|
if(beforeCurrentIndex > (alt.dataset.length - 1)){
|
|
|
|
|
info = alt.dataset.getDataset()[alt.dataset.length - 1];
|
|
|
|
|
} else {
|
|
|
|
|
info = $P.alt.dataset.getDataset()[beforeCurrentIndex];
|
|
|
|
|
info = alt.dataset.getDataset()[beforeCurrentIndex];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.alt.dataset.setCurrent(info["CRDN_ID_LIST"],true);
|
|
|
|
|
alt.dataset.setCurrent(info["CRDN_ID_LIST"],true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -649,7 +646,7 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
$P.fnExcelDown = async() => {
|
|
|
|
|
if($P.currentDisplay == "photoInspection"){
|
|
|
|
|
if($P.ctrl.dataset.empty){
|
|
|
|
|
if(ctrl.dataset.empty){
|
|
|
|
|
alert("조회된 자료가 없습니다.");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
@ -658,13 +655,13 @@ $(document).ready(function(){
|
|
|
|
|
$P.$findn("photoInspection_Table_0").find("thead th").not(".dummy-th").not(":eq(0)"),
|
|
|
|
|
$($P.findn("photoInspectionRow").content).find("td").not(".dummy-td").not(":eq(0)")
|
|
|
|
|
);
|
|
|
|
|
$P.ctrl.query.cellDefs = cellDefs;
|
|
|
|
|
ctrl.query.cellDefs = cellDefs;
|
|
|
|
|
|
|
|
|
|
$P.ctrl.download();
|
|
|
|
|
ctrl.download();
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
if($P.alt.dataset.empty){
|
|
|
|
|
if(alt.dataset.empty){
|
|
|
|
|
alert("조회된 자료가 없습니다.");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
@ -678,9 +675,9 @@ $(document).ready(function(){
|
|
|
|
|
$P.$findn("sameVehicleInspectionMain_Table_0").find("thead th").not(".dummy-th"),
|
|
|
|
|
$($P.findn("sameVehicleInspectionMainRow").content).find("td").not(".dummy-td")
|
|
|
|
|
);
|
|
|
|
|
$P.alt.query.cellDefs = cellDefs;
|
|
|
|
|
alt.query.cellDefs = cellDefs;
|
|
|
|
|
|
|
|
|
|
$P.alt.download();
|
|
|
|
|
alt.download();
|
|
|
|
|
} else if(excelTarget == "sub"){
|
|
|
|
|
|
|
|
|
|
var cellDefs = AppSupport.getCellDefs(
|
|
|
|
@ -688,9 +685,9 @@ $(document).ready(function(){
|
|
|
|
|
$($P.findn("sameVehicleInspectionSubRow").content).find("td").not(".dummy-td"),
|
|
|
|
|
FimsSupport.getCellDefsForPrivacyCell
|
|
|
|
|
);
|
|
|
|
|
$P.shift.query.cellDefs = cellDefs;
|
|
|
|
|
shift.query.cellDefs = cellDefs;
|
|
|
|
|
|
|
|
|
|
$P.shift.download();
|
|
|
|
|
shift.download();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -740,7 +737,7 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
switch (renderDataType) {
|
|
|
|
|
case "photoInspection":
|
|
|
|
|
var initScroll = ($P.ctrl.query.pageNum < 2);
|
|
|
|
|
var initScroll = (ctrl.query.pageNum < 2);
|
|
|
|
|
if(option != null && option.reloaded){
|
|
|
|
|
initScroll = false;
|
|
|
|
|
}
|
|
|
|
@ -749,7 +746,7 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
case "sameVehicleInspectionMain":
|
|
|
|
|
var initScroll = ($P.alt.query.pageNum < 2);
|
|
|
|
|
var initScroll = (alt.query.pageNum < 2);
|
|
|
|
|
if(option != null && option.reloaded){
|
|
|
|
|
initScroll = false;
|
|
|
|
|
}
|
|
|
|
@ -775,11 +772,11 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
if(dataKey != ""){
|
|
|
|
|
$P.$findn("photoInspectionTbody").setCurrentRow(dataKey);
|
|
|
|
|
Apply.toDataset.current($P.ctrl.dataset, dataKey);
|
|
|
|
|
Apply.toDataset.current(ctrl.dataset, dataKey);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var curDataVhrno = $P.ctrl.dataset.getData(dataKey)["VHRNO"];
|
|
|
|
|
var nextData = $P.ctrl.getNext(dataKey);
|
|
|
|
|
var curDataVhrno = ctrl.dataset.getData(dataKey)["VHRNO"];
|
|
|
|
|
var nextData = ctrl.getNext(dataKey);
|
|
|
|
|
var nextDataKey = nextData != null ? nextData.CRDN_ID : "";
|
|
|
|
|
var nextDataVhrno = nextData != null ? nextData.VHRNO : "";
|
|
|
|
|
$P.showPhoto(dataKey,nextDataKey,curDataVhrno,nextDataVhrno);
|
|
|
|
@ -790,7 +787,7 @@ $(document).ready(function(){
|
|
|
|
|
}
|
|
|
|
|
$P.$findn("sameVehicleInspectionMainTbody").setCurrentRow(dataKey);
|
|
|
|
|
|
|
|
|
|
Apply.toDataset.current($P.alt.dataset, dataKey);
|
|
|
|
|
Apply.toDataset.current(alt.dataset, dataKey);
|
|
|
|
|
|
|
|
|
|
$P.searchDetailInspectionDataList(dataKey);
|
|
|
|
|
|
|
|
|
@ -801,7 +798,7 @@ $(document).ready(function(){
|
|
|
|
|
}
|
|
|
|
|
$P.$findn("sameVehicleInspectionSubTbody").setCurrentRow(dataKey);
|
|
|
|
|
|
|
|
|
|
Apply.toDataset.current($P.shift.dataset, dataKey);
|
|
|
|
|
Apply.toDataset.current(shift.dataset, dataKey);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -885,9 +882,9 @@ $(document).ready(function(){
|
|
|
|
|
var info = "";
|
|
|
|
|
|
|
|
|
|
if ($P.currentDisplay == "photoInspection") {
|
|
|
|
|
info = $P.ctrl.dataset.getCurrent("item");
|
|
|
|
|
info = ctrl.dataset.getCurrent("item");
|
|
|
|
|
} else if ($P.currentDisplay == "sameVehicleInspection") {
|
|
|
|
|
info = $P.shift.dataset.getCurrent("item");
|
|
|
|
|
info = shift.dataset.getCurrent("item");
|
|
|
|
|
} else {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
@ -945,7 +942,7 @@ $(document).ready(function(){
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var info = $P.ctrl.dataset.getCurrent("item");
|
|
|
|
|
var info = ctrl.dataset.getCurrent("item");
|
|
|
|
|
|
|
|
|
|
if (info == undefined || info == "") {
|
|
|
|
|
return;
|
|
|
|
@ -1036,8 +1033,8 @@ $(document).ready(function(){
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* element.on
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
* element.on
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
$P.$findn("btnReset").on('click', () => $P.fnReset()); //초기화버튼
|
|
|
|
|
$P.$findn("btnPhotoInspection").on('click', () => {
|
|
|
|
|
|
|
|
|
@ -1074,8 +1071,8 @@ $(document).ready(function(){
|
|
|
|
|
Componentization.fnMakeScrollableTable($P.findn("sameVehicleInspectionMain-responsive"), $P.scrollInspectionDataList);
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* 초기화
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
* 초기화
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
AppSupport.initDatepicker($P.findn("frmSearch")); //달력 초기화
|
|
|
|
|
AppSupport.initDetailSearchButton($P.findn("frmSearch"));
|
|
|
|
|
|
|
|
|
|