|
|
|
|
@ -115,6 +115,7 @@ class _RequestDeviceTransferState extends State<RequestDeviceTransfer> {
|
|
|
|
|
context: context,
|
|
|
|
|
title: context.translation.destinationSite,
|
|
|
|
|
initialValue: _assetDestination?.site,
|
|
|
|
|
showAsBottomSheet: true,
|
|
|
|
|
onSelect: (value) {
|
|
|
|
|
_assetDestination.site = value;
|
|
|
|
|
_assetDestination.building = null;
|
|
|
|
|
@ -132,7 +133,7 @@ class _RequestDeviceTransferState extends State<RequestDeviceTransfer> {
|
|
|
|
|
title: context.translation.building,
|
|
|
|
|
initialValue: _assetDestination?.building,
|
|
|
|
|
enabled: _assetDestination?.site?.buildings?.isNotEmpty ?? false,
|
|
|
|
|
staticData: _assetDestination?.site?.buildings ?? [],
|
|
|
|
|
staticData: _assetDestination?.site?.buildings ?? [], showAsBottomSheet: true,
|
|
|
|
|
onSelect: (value) {
|
|
|
|
|
_assetDestination?.building = value;
|
|
|
|
|
_assetDestination?.floor = null;
|
|
|
|
|
@ -146,7 +147,7 @@ class _RequestDeviceTransferState extends State<RequestDeviceTransfer> {
|
|
|
|
|
title: context.translation.floor,
|
|
|
|
|
initialValue: _assetDestination?.floor,
|
|
|
|
|
enabled: _assetDestination?.building?.floors?.isNotEmpty ?? false,
|
|
|
|
|
staticData: _assetDestination?.building?.floors ?? [],
|
|
|
|
|
staticData: _assetDestination?.building?.floors ?? [], showAsBottomSheet: true,
|
|
|
|
|
onSelect: (value) {
|
|
|
|
|
_assetDestination?.floor = value;
|
|
|
|
|
_assetDestination?.department = null;
|
|
|
|
|
@ -159,7 +160,7 @@ class _RequestDeviceTransferState extends State<RequestDeviceTransfer> {
|
|
|
|
|
title: context.translation.department,
|
|
|
|
|
initialValue: _assetDestination?.department,
|
|
|
|
|
enabled: _assetDestination?.floor?.departments?.isNotEmpty ?? false,
|
|
|
|
|
staticData: _assetDestination?.floor?.departments ?? [],
|
|
|
|
|
staticData: _assetDestination?.floor?.departments ?? [], showAsBottomSheet: true,
|
|
|
|
|
onSelect: (value) {
|
|
|
|
|
_assetDestination?.department = value;
|
|
|
|
|
_assetDestination?.room = null;
|
|
|
|
|
@ -172,7 +173,7 @@ class _RequestDeviceTransferState extends State<RequestDeviceTransfer> {
|
|
|
|
|
title: context.translation.room,
|
|
|
|
|
initialValue: _assetDestination?.room,
|
|
|
|
|
enabled: _assetDestination?.department?.rooms?.isNotEmpty ?? false,
|
|
|
|
|
staticData: _assetDestination?.department?.rooms ?? [],
|
|
|
|
|
staticData: _assetDestination?.department?.rooms ?? [], showAsBottomSheet: true,
|
|
|
|
|
onSelect: (value) {
|
|
|
|
|
_assetDestination?.room = value;
|
|
|
|
|
setState(() {});
|
|
|
|
|
|