|
@@ -38,13 +38,13 @@ namespace PRS.Mobile
|
|
|
|
|
|
_setuptasks = new Task[]
|
|
_setuptasks = new Task[]
|
|
{
|
|
{
|
|
- Task.Run(() => App.Data.Activities.Refresh(false)),
|
|
|
|
- Task.Run(() => App.Data.Employees.Refresh(false)),
|
|
|
|
- Task.Run(() => App.Data.TimeSheets.Refresh(false)),
|
|
|
|
|
|
+ //Task.Run(() => App.Data.Activities.Refresh(false)),
|
|
|
|
+ //Task.Run(() => App.Data.Employees.Refresh(false)),
|
|
|
|
+ //Task.Run(() => App.Data.TimeSheets.Refresh(false)),
|
|
Task.Run(() => App.Data.GPSTrackers.Refresh(false)),
|
|
Task.Run(() => App.Data.GPSTrackers.Refresh(false)),
|
|
Task.Run(() => App.Data.BluetoothGates.Refresh(false)),
|
|
Task.Run(() => App.Data.BluetoothGates.Refresh(false)),
|
|
- Task.Run(() => App.Data.Notifications.Refresh(false)),
|
|
|
|
- Task.Run(() => App.Data.Kanbans.Refresh(false))
|
|
|
|
|
|
+ //Task.Run(() => App.Data.Notifications.Refresh(false)),
|
|
|
|
+ //Task.Run(() => App.Data.Kanbans.Refresh(false))
|
|
};
|
|
};
|
|
|
|
|
|
MobileLogging.Log("MainPage.Create");
|
|
MobileLogging.Log("MainPage.Create");
|
|
@@ -150,9 +150,10 @@ namespace PRS.Mobile
|
|
|
|
|
|
void SetupClockOnButton(bool disable)
|
|
void SetupClockOnButton(bool disable)
|
|
{
|
|
{
|
|
- ClockOnRow.Height = disable ? 0 : new GridLength(5.5, GridUnitType.Star);
|
|
|
|
- JobRow.Height = disable ? 0 : 55;
|
|
|
|
- TaskRow.Height = disable ? 0 : 55;
|
|
|
|
|
|
+ ClockOnButton.IsVisible = !disable;
|
|
|
|
+ jobBtn.IsVisible = !disable;
|
|
|
|
+ addNoteBtn.IsVisible = !disable;
|
|
|
|
+ taskBtn.IsVisible = !disable;
|
|
}
|
|
}
|
|
|
|
|
|
SetupClockOnButton(InABox.Core.Security.IsAllowed<IsJobOnlyEmployee>());
|
|
SetupClockOnButton(InABox.Core.Security.IsAllowed<IsJobOnlyEmployee>());
|
|
@@ -243,7 +244,9 @@ namespace PRS.Mobile
|
|
|
|
|
|
var location = GetAddress();
|
|
var location = GetAddress();
|
|
|
|
|
|
- Title = App.Data.Me != null ? App.Data.Me.Name : "(Not Logged In)";
|
|
|
|
|
|
+ Title = App.Data.Me != null
|
|
|
|
+ ? App.Data.Me.Name
|
|
|
|
+ : "(Not Logged In)";
|
|
|
|
|
|
ClockOnButton.IsEnabled = App.Data.IsConnected() && GateReady;
|
|
ClockOnButton.IsEnabled = App.Data.IsConnected() && GateReady;
|
|
|
|
|