엑셀 저장 수정

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

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

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

@ -362,4 +362,12 @@ const GRID = {
return count; 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