1
0
Fork 0
forked from Simnation/Main
Main/resources/[jobs]/[mdt]/myEmergency/html/js/modules/EmployeeVehicles.js

33 lines
672 B
JavaScript
Raw Normal View History

2025-08-14 13:21:51 +02:00
class EmployeeVehicle{
constructor(){
this.name = "employeevehicle";
}
static GetCustomDestination(data, dest){
return "controlcentre.dataload";
}
static GetCustomDestID(data, destID){
return -1;
}
static GetColumns(){
return []
}
static TableDataCreate(row, key){
return `<td>${row[key]}</td>`;
}
static GetEdit(data={}){
return {
"emegency_vehicle_id": {
"val" : data.emegency_vehicle_id ?? "-1"
,"type" : "dropdown"
,"mandatory":true
,"isRow":true
,"options":data.extraData.vehicles
}
}
}
}