draft PR for sticker printing.

This commit is contained in:
DESKTOP-T0O5CDB\DESK-555BD
2025-01-11 12:04:01 -07:00
parent ad0f7de506
commit 8c557ced85
4 changed files with 24 additions and 0 deletions

View File

@@ -486,4 +486,8 @@ html[data-bs-theme="light"] .api-method:hover {
.lubelogger-report-banner {
border-top: thin solid black;
text-align: center;
}
.stickerPrintDiv {
z-index: 1030;
}

View File

@@ -117,6 +117,9 @@ function generateVehicleHistoryReport() {
$("#vehicleHistoryReport").html(data);
setTimeout(function () {
window.print();
setTimeout(function () {
$("#vehicleHistoryReport").html(""); //clear out the div.
}, 1000)
}, 500);
}
})

View File

@@ -617,6 +617,17 @@ function printTab() {
window.print();
}, 500);
}
function printTabStickers(ids, source) {
$(".stickerPrintDiv").addClass("showOnPrint");
$(".stickerPrintDiv").removeClass("hideOnPrint");
setTimeout(function () {
window.print();
setTimeout(function () {
$(".stickerPrintDiv").removeClass("showOnPrint");
$(".stickerPrintDiv").addClass("hideOnPrint");
}, 1000);
}, 500);
}
function exportVehicleData(mode) {
var vehicleId = GetVehicleId().vehicleId;
$.get('/Vehicle/ExportFromVehicleToCsv', { vehicleId: vehicleId, mode: mode }, function (data) {