forked from Simnation/Main
33 lines
No EOL
672 B
JavaScript
33 lines
No EOL
672 B
JavaScript
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
|
|
}
|
|
}
|
|
}
|
|
} |