21 lines
657 B
JavaScript
21 lines
657 B
JavaScript
import * as configFunctions from "./functions.config.js";
|
|
const screenPrintConfigs = {
|
|
lotOccupancy: {
|
|
title: configFunctions.getProperty("aliases.lot") +
|
|
" " +
|
|
configFunctions.getProperty("aliases.occupancy") +
|
|
" Print",
|
|
params: ["lotOccupancyId"]
|
|
}
|
|
};
|
|
export const getScreenPrintConfig = (printName) => {
|
|
return screenPrintConfigs[printName];
|
|
};
|
|
export const getPrintConfig = (screenOrPdf_printName) => {
|
|
const printNameSplit = screenOrPdf_printName.split("/");
|
|
switch (printNameSplit[0]) {
|
|
case "screen":
|
|
return getScreenPrintConfig(printNameSplit[1]);
|
|
}
|
|
};
|