엑셀다운로드 요청 쿼리 수정

main
이범준 11 months ago
parent a1ae5fbf96
commit 07a85cc4b3

@ -981,6 +981,11 @@ $(document).ready(function(){
var headerInfo = $("#photoInspection_Table_0--${pageName} thead th").not(".dummy-th").not(":eq(0)").getHeaderInfo();
$P.photoInspectionControl.query.excelTitle = headerInfo.excelTitle;
$P.photoInspectionControl.query.excelTitleWidth = headerInfo.excelTitleWidth;
var colDefs = getColDefs($("#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.colDefs = colDefs;
$P.photoInspectionControl.download();
} else {
@ -994,11 +999,21 @@ $(document).ready(function(){
var headerInfo = $("#sameVehicleInspectionMain_Table_0--${pageName} thead th").not(".dummy-th").getHeaderInfo();
$P.sameVehicleControl.main.query.excelTitle = headerInfo.excelTitle;
$P.sameVehicleControl.main.query.excelTitleWidth = headerInfo.excelTitleWidth;
var colDefs = getColDefs($("#sameVehicleInspectionMain_Table_0--${pageName} thead th").not(".dummy-th"),
$($("#sameVehicleInspectionMainRow--${pageName}")[0].content).find("td").not(".dummy-td"));
$P.sameVehicleControl.main.query.colDefs = colDefs;
$P.sameVehicleControl.main.download();
} else {
var headerInfo = $("#sameVehicleInspectionSub_Table_0--${pageName} thead th").not(".dummy-th").not(":hidden").getHeaderInfo();
$P.sameVehicleControl.sub.query.excelTitle = headerInfo.excelTitle;
$P.sameVehicleControl.sub.query.excelTitleWidth = headerInfo.excelTitleWidth;
var colDefs = getColDefs($("#sameVehicleInspectionSub_Table_0--${pageName} thead th").not(".dummy-th").not(":hidden"),
$($("#sameVehicleInspectionSubRow--${pageName}")[0].content).find("td").not(".dummy-td").not(".privacy-mask"));
$P.sameVehicleControl.sub.query.colDefs = colDefs;
$P.sameVehicleControl.sub.download();
}

@ -310,6 +310,11 @@ $(document).ready(function(){
var headerInfo = $("#crdnTheadTr--${pageName} th").not(".dummy-th").not(":eq(0)").getHeaderInfo();
$P.crdnControl.query.excelTitle = headerInfo.excelTitle;
$P.crdnControl.query.excelTitleWidth = headerInfo.excelTitleWidth;
var colDefs = getColDefs($("#crdnTheadTr--${pageName} th").not(".dummy-th").not(":eq(0)"),
$($("#crdnRow--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)"));
$P.crdnControl.query.colDefs = colDefs;
$P.crdnControl.download();
});

@ -479,6 +479,11 @@ $(document).ready(function(){
var headerInfo = $("#crdnThead--${pageName} th").not(".dummy-th").not(":eq(0)").getHeaderInfo();
$P.crdnControl.query.excelTitle = headerInfo.excelTitle;
$P.crdnControl.query.excelTitleWidth = headerInfo.excelTitleWidth;
var colDefs = getColDefs($("#crdnThead--${pageName} th").not(".dummy-th").not(":eq(0)"),
$($("#crdnRow--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)"));
$P.crdnControl.query.colDefs = colDefs;
$P.crdnControl.download();
});

@ -448,6 +448,11 @@ $(document).ready(function(){
var headerInfo = $("#exmptnVhclTheadTr--${pageName} th").not(".dummy-th").not(":eq(0)").getHeaderInfo();
$P.exmptnVhclControl.query.excelTitle = headerInfo.excelTitle;
$P.exmptnVhclControl.query.excelTitleWidth = headerInfo.excelTitleWidth;
var colDefs = getColDefs($("#exmptnVhclTheadTr--${pageName} th").not(".dummy-th").not(":eq(0)"),
$($("#exmptnVhclRow--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)"));
$P.exmptnVhclControl.query.colDefs = colDefs;
$P.exmptnVhclControl.download();
});

@ -641,6 +641,11 @@ $(document).ready(function(){
var headerInfo = $("#crdnThead--${pageName} th").not(".dummy-th").not(":eq(0)").getHeaderInfo();
$P.crdnControl.query.excelTitle = headerInfo.excelTitle;
$P.crdnControl.query.excelTitleWidth = headerInfo.excelTitleWidth;
var colDefs = getColDefs($("#crdnThead--${pageName} th").not(".dummy-th").not(":eq(0)"),
$($("#crdnRow--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)"));
$P.crdnControl.query.colDefs = colDefs;
$P.crdnControl.download();
});

@ -671,6 +671,11 @@ $(document).ready(function(){
var headerInfo = $("#crdnThead--${pageName} th").not(".dummy-th").not(":eq(0)").not(":eq(0)").getHeaderInfo();
$P.crdnControl.query.excelTitle = headerInfo.excelTitle;
$P.crdnControl.query.excelTitleWidth = headerInfo.excelTitleWidth;
var colDefs = getColDefs($("#crdnThead--${pageName} th").not(".dummy-th").not(":eq(0)").not(":eq(0)"),
$($("#crdnRow--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)").not(":eq(0)"));
$P.crdnControl.query.colDefs = colDefs;
$P.crdnControl.download();
});
$("#btnOpenCvlcptOrgnl--${pageName}").on("click", () => $P.fnOpenCvlcptOrgnl());

@ -535,6 +535,11 @@ $(document).ready(function(){
var headerInfo = $("#crdnThead--${pageName} th").not(".dummy-th").not(":eq(0)").getHeaderInfo();
$P.crdnControl.query.excelTitle = headerInfo.excelTitle;
$P.crdnControl.query.excelTitleWidth = headerInfo.excelTitleWidth;
var colDefs = getColDefs($("#crdnThead--${pageName} th").not(".dummy-th").not(":eq(0)"),
$($("#crdnRow--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)"));
$P.crdnControl.query.colDefs = colDefs;
$P.crdnControl.download();
});
$("#btnDelete--${pageName}").on("click", () => $P.fnRemove());

@ -341,6 +341,7 @@ integrationSearch.setTotalData = (updown, list) => {
// 엑셀
integrationSearch.fnExcel = (updown) => {
var headerInfo;
var colDefs;
if(updown == "up"){
if(integrationSearchControl.updataset.empty){
@ -349,6 +350,10 @@ integrationSearch.fnExcel = (updown) => {
}
headerInfo = $("#upTheadTr--${pageName} th").not(".dummy-th").not(":eq(0)").not(":hidden").getHeaderInfo();
colDefs = getColDefs($("#upTheadTr--${pageName} th").not(".dummy-th").not(":eq(0)").not(":hidden"),
$($("#row--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)").not(".privacy-mask"));
integrationSearchControl.query.gridType = "up";
} else {
if(integrationSearchControl.downdataset.empty){
@ -357,11 +362,18 @@ integrationSearch.fnExcel = (updown) => {
}
headerInfo = $("#downTheadTr--${pageName} th").not(".dummy-th").not(":eq(0)").not(":hidden").getHeaderInfo();
colDefs = getColDefs($("#downTheadTr--${pageName} th").not(".dummy-th").not(":eq(0)").not(":hidden"),
$($("#row--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)").not(".privacy-mask"));
integrationSearchControl.query.gridType = "down";
}
integrationSearchControl.query.excelTitle = headerInfo.excelTitle;
integrationSearchControl.query.excelTitleWidth = headerInfo.excelTitleWidth;
integrationSearchControl.query.colDefs = colDefs;
integrationSearchControl.download();
}

@ -148,6 +148,11 @@ $(document).ready(function(){
var headerInfo = $("#theadTr--${pageName} th").not(".dummy-th").getHeaderInfo();
query.excelTitle = headerInfo.excelTitle;
query.excelTitleWidth = headerInfo.excelTitleWidth;
var colDefs = getColDefs($("#theadTr--${pageName} th").not(".dummy-th"),
$($("#found--${pageName}")[0].content).find("td").not(".dummy-td"));
query.colDefs = colDefs;
query.download = "xls";
query.crdnIDs = $P.crdnIds.join(",");
var queryStr = toQuery(query);

Loading…
Cancel
Save