엑셀 저장 수정

main
이범준 5 months ago
parent ed67501e37
commit 4dac63992a

@ -694,8 +694,10 @@ $(document).ready(function(){
return;
}
var cellDefs = getCellDefs($("#photoInspection_Table_0--${pageName} thead th").not(".dummy-th").not(":eq(0)"),
$($("#photoInspectionRow--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)"));
var cellDefs = getCellDefs(
$("#photoInspection_Table_0--${pageName} thead th").not(".dummy-th").not(":eq(0)"),
$($("#photoInspectionRow--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)")
);
$P.photoInspectionControl.query.cellDefs = cellDefs;
$P.photoInspectionControl.download();
@ -712,15 +714,20 @@ $(document).ready(function(){
if(excelTarget == "main"){
var cellDefs = getCellDefs($("#sameVehicleInspectionMain_Table_0--${pageName} thead th").not(".dummy-th"),
$($("#sameVehicleInspectionMainRow--${pageName}")[0].content).find("td").not(".dummy-td"));
var cellDefs = getCellDefs(
$("#sameVehicleInspectionMain_Table_0--${pageName} thead th").not(".dummy-th"),
$($("#sameVehicleInspectionMainRow--${pageName}")[0].content).find("td").not(".dummy-td")
);
$P.sameVehicleMainControl.query.cellDefs = cellDefs;
$P.sameVehicleMainControl.download();
} else if(excelTarget == "sub"){
var cellDefs = getCellDefs($("#sameVehicleInspectionSub_Table_0--${pageName} thead th").not(".dummy-th"),
$($("#sameVehicleInspectionSubRow--${pageName}")[0].content).find("td").not(".dummy-td"));
var cellDefs = getCellDefs(
$("#sameVehicleInspectionSub_Table_0--${pageName} thead th").not(".dummy-th"),
$($("#sameVehicleInspectionSubRow--${pageName}")[0].content).find("td").not(".dummy-td"),
getCellDefsForPrivacyCell
);
$P.sameVehicleSubControl.query.cellDefs = cellDefs;
$P.sameVehicleSubControl.download();

@ -253,8 +253,11 @@ $(document).ready(function() {
return;
}
cellDefs = getCellDefs($("#upTheadTr--${pageName} th").not(".dummy-th").not(":eq(0)"),
$($("#row--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)"));
cellDefs = getCellDefs(
$("#upTheadTr--${pageName} th").not(".dummy-th").not(":eq(0)"),
$($("#row--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)"),
getCellDefsForPrivacyCell
);
$P.integrationSearchControl.query.gridType = "up";
} else {
@ -263,8 +266,11 @@ $(document).ready(function() {
return;
}
cellDefs = getCellDefs($("#downTheadTr--${pageName} th").not(".dummy-th").not(":eq(0)"),
$($("#row--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)"));
cellDefs = getCellDefs(
$("#downTheadTr--${pageName} th").not(".dummy-th").not(":eq(0)"),
$($("#row--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)"),
getCellDefsForPrivacyCell
);
$P.integrationSearchControl.query.gridType = "down";
}

@ -362,4 +362,12 @@ const GRID = {
return count;
}
}
};
};
function getCellDefsForPrivacyCell($td_i){
if($td_i.hasClass("privacy-cell")){
return $td_i.find("span:eq(0)").text();
} else {
return $td_i.text();
}
}
Loading…
Cancel
Save