forked from Simnation/Main
ed
This commit is contained in:
parent
48a36209b5
commit
884f3df7cf
262 changed files with 223207 additions and 2 deletions
|
@ -0,0 +1,33 @@
|
|||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue