tod
This commit is contained in:
parent
a907fb675e
commit
0e4b9824f7
@ -27,9 +27,10 @@ class WorkstationModel extends BaseModel {
|
|||||||
CASE
|
CASE
|
||||||
WHEN workstation.Enable = 1 THEN 'Enabled'
|
WHEN workstation.Enable = 1 THEN 'Enabled'
|
||||||
ELSE 'Disabled'
|
ELSE 'Disabled'
|
||||||
END AS EnableText")
|
END AS EnableText, valueset.VValue as TypeName")
|
||||||
->join('workstation wst1', 'workstation.LinkTo=wst1.WorkstationID', 'left')
|
->join('workstation wst1', 'workstation.LinkTo=wst1.WorkstationID', 'left')
|
||||||
->join('department', 'department.DepartmentID=workstation.DepartmentID', 'left')
|
->join('department', 'department.DepartmentID=workstation.DepartmentID', 'left')
|
||||||
|
->join('valueset', 'valueset.VID=workstation.Type', 'left')
|
||||||
->where('workstation.WorkstationID', $WorkstationID)
|
->where('workstation.WorkstationID', $WorkstationID)
|
||||||
->findAll();
|
->findAll();
|
||||||
return $rows;
|
return $rows;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user