Added import/export functionality for upgrades, service records, and repair records.

This commit is contained in:
DESKTOP-T0O5CDB\DESK-555BD
2024-01-09 13:51:39 -07:00
parent 96914b3db4
commit c6774d4be7
9 changed files with 110 additions and 5 deletions

View File

@@ -141,6 +141,16 @@ function editVehicle(vehicleId) {
function hideEditVehicleModal() {
$('#editVehicleModal').modal('hide');
}
function exportVehicleData(mode) {
var vehicleId = GetVehicleId().vehicleId;
$.get('/Vehicle/ExportFromVehicleToCsv', { vehicleId: vehicleId, mode: mode }, function (data) {
if (!data) {
errorToast("An error occurred, please try again later");
} else {
window.location.href = data;
}
});
}
function showBulkImportModal(mode) {
$.get(`/Vehicle/GetBulkImportModalPartialView?mode=${mode}`, function (data) {
if (data) {