|
|
@ -63,16 +63,18 @@ $(document).ready(function() {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// 현재 선택 자료 변경 이벤트
|
|
|
|
// 현재 선택 자료 변경 이벤트
|
|
|
|
ctrl.upDataset.onCurrentChange = (DI) => {
|
|
|
|
ctrl.upDataset.onCurrentChange = (dataItem) => {
|
|
|
|
if (!DI) return;
|
|
|
|
if (!dataItem) {
|
|
|
|
var key = DI.data.CRDN_ID;
|
|
|
|
return;
|
|
|
|
$P.$findn("upTbody").setCurrentRow(key);
|
|
|
|
}
|
|
|
|
|
|
|
|
$P.$findn("upTbody").setCurrentRow(dataItem.index);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
ctrl.downDataset.onCurrentChange = (DI) => {
|
|
|
|
ctrl.downDataset.onCurrentChange = (dataItem) => {
|
|
|
|
if (!DI) return;
|
|
|
|
if (!dataItem) {
|
|
|
|
var key = DI.data.CRDN_ID;
|
|
|
|
return;
|
|
|
|
$P.$findn("downTbody").setCurrentRow(key);
|
|
|
|
}
|
|
|
|
|
|
|
|
$P.$findn("downTbody").setCurrentRow(dataItem.index);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// 선택(체크) 변경 이벤트
|
|
|
|
// 선택(체크) 변경 이벤트
|
|
|
@ -290,11 +292,11 @@ $(document).ready(function() {
|
|
|
|
var replacer;
|
|
|
|
var replacer;
|
|
|
|
if(updown == "up"){
|
|
|
|
if(updown == "up"){
|
|
|
|
replacer = (str, dataItem) => str
|
|
|
|
replacer = (str, dataItem) => str
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].ctrl.upDataset.setCurrent('" + dataItem.getValue("CRDN_ID") + "');")
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].ctrl.upDataset.setCurrent('{DATA-INDEX}');")
|
|
|
|
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].getInfo('"+ dataItem.getValue("TASK_SE_CD") +"','" + dataItem.getValue("CRDN_ID") + "');")
|
|
|
|
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].getInfo('"+ dataItem.getValue("TASK_SE_CD") +"','" + dataItem.getValue("CRDN_ID") + "');")
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
replacer = (str, dataItem) => str
|
|
|
|
replacer = (str, dataItem) => str
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].ctrl.downDataset.setCurrent('" + dataItem.getValue("CRDN_ID") + "');")
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].ctrl.downDataset.setCurrent('{DATA-INDEX}');")
|
|
|
|
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].getInfo('"+ dataItem.getValue("TASK_SE_CD") +"','" + dataItem.getValue("CRDN_ID") + "');")
|
|
|
|
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].getInfo('"+ dataItem.getValue("TASK_SE_CD") +"','" + dataItem.getValue("CRDN_ID") + "');")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -758,17 +760,20 @@ $(document).ready(function() {
|
|
|
|
var downDataset = ctrl.downDataset;
|
|
|
|
var downDataset = ctrl.downDataset;
|
|
|
|
|
|
|
|
|
|
|
|
if(upDataset.length > 0){
|
|
|
|
if(upDataset.length > 0){
|
|
|
|
var info = upDataset.getData(crdnId);
|
|
|
|
let filtered = upDataset.getDataset("item").filter(item=>item.data.CRDN_ID == crdnId);
|
|
|
|
if(info != null){
|
|
|
|
if(filtered != null && filtered.length > 0){
|
|
|
|
|
|
|
|
let info = upDataset.getData(filtered[0].index);
|
|
|
|
return info;
|
|
|
|
return info;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if(downDataset.length > 0){
|
|
|
|
if(downDataset.length > 0){
|
|
|
|
var info = downDataset.getData(crdnId);
|
|
|
|
let filtered = downDataset.getDataset("item").filter(item=>item.data.CRDN_ID == crdnId);
|
|
|
|
if(info != null){
|
|
|
|
if(filtered != null && filtered.length > 0){
|
|
|
|
|
|
|
|
let info = downDataset.getData(filtered[0].index);
|
|
|
|
return info;
|
|
|
|
return info;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|