cost makeup report

This commit is contained in:
DESKTOP-GENO133\IvanPlex
2024-01-03 20:51:14 -07:00
parent 21fc8f2c95
commit 97c613b52a
6 changed files with 81 additions and 33 deletions

View File

@@ -31,6 +31,9 @@ $(document).ready(function () {
case "tax-tab":
getVehicleTaxRecords(vehicleId);
break;
case "report-tab":
getVehicleReport();
break;
}
switch (e.relatedTarget.id) { //clear out previous tabs with grids in them to help with performance
case "servicerecord-tab":
@@ -85,6 +88,13 @@ function getVehicleTaxRecords(vehicleId) {
}
});
}
function getVehicleReport() {
$.get(`/Vehicle/GetReportPartialView`, function (data) {
if (data) {
$("#report-tab-pane").html(data);
}
})
}
function editVehicle(vehicleId) {
$.get(`/Vehicle/GetEditVehiclePartialViewById?vehicleId=${vehicleId}`, function (data) {
if (data) {
@@ -145,12 +155,4 @@ function uploadVehicleFilesAsync(event) {
}
}
});
}
function getVehicleReport() {
$.get(`/Vehicle/GetReportPartialView`, function (data) {
if (data) {
$("#bulkImportModalContent").html(data);
$("#bulkImportModal").modal('show');
}
})
}