Login, NFCWaiter
This commit is contained in:
@@ -3,26 +3,34 @@
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
x:Class="WorkFlowCheck.MAUI.Pages.BaseStock.CheckPointsPage"
|
||||
Title="Ellenőrzési pontok">
|
||||
<RefreshView x:Name="refreshView" Command="{Binding RefreshCommand}" IsRefreshing="{Binding IsRefreshing}">
|
||||
<CollectionView x:Name="CheckPointsList">
|
||||
<CollectionView.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Frame BorderColor="Gray" Padding="10" Margin="5" HasShadow="True" BackgroundColor="WhiteSmoke">
|
||||
<StackLayout>
|
||||
<Label Text="{Binding ShortName}" FontSize="16" FontAttributes="Bold" />
|
||||
<Label Text="{Binding Code}" FontSize="14" />
|
||||
<HorizontalStackLayout HorizontalOptions="End">
|
||||
<Button Text="Edit" Margin="5,0,0,0"
|
||||
<StackLayout>
|
||||
<Button
|
||||
x:Name="ButtonSync" Margin="5"
|
||||
Text="Adatok szinkronizálása"
|
||||
SemanticProperties.Hint="Adatok szinkronizálása"
|
||||
Clicked="OnButtonSync"
|
||||
HorizontalOptions="Fill" />
|
||||
<RefreshView x:Name="refreshView" Command="{Binding RefreshCommand}" IsRefreshing="{Binding IsRefreshing}">
|
||||
<CollectionView x:Name="CheckPointsList">
|
||||
<CollectionView.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Frame BorderColor="Gray" Padding="10" Margin="5" HasShadow="True" BackgroundColor="WhiteSmoke">
|
||||
<StackLayout>
|
||||
<Label Text="{Binding ShortName}" FontSize="16" FontAttributes="Bold" />
|
||||
<Label Text="{Binding Code}" FontSize="14" />
|
||||
<HorizontalStackLayout HorizontalOptions="End">
|
||||
<Button Text="Edit" Margin="5,0,0,0"
|
||||
Command="{Binding BindingContext.EditCommand, Source={x:Reference CheckPointsList}}"
|
||||
CommandParameter="{Binding .}" />
|
||||
<Button Text="Pair" Margin="5,0,0,0"
|
||||
<Button Text="Pair" Margin="5,0,0,0"
|
||||
Command="{Binding BindingContext.PairCommand, Source={x:Reference CheckPointsList}}"
|
||||
CommandParameter="{Binding .}" />
|
||||
</HorizontalStackLayout>
|
||||
</StackLayout>
|
||||
</Frame>
|
||||
</DataTemplate>
|
||||
</CollectionView.ItemTemplate>
|
||||
</CollectionView>
|
||||
</RefreshView>
|
||||
CommandParameter="{Binding .}" />
|
||||
</HorizontalStackLayout>
|
||||
</StackLayout>
|
||||
</Frame>
|
||||
</DataTemplate>
|
||||
</CollectionView.ItemTemplate>
|
||||
</CollectionView>
|
||||
</RefreshView>
|
||||
</StackLayout>
|
||||
</ContentPage>
|
||||
@@ -59,7 +59,10 @@ public partial class CheckPointsPage : ContentPage
|
||||
Shell.Current.GoToAsync("//BaseStockPage");
|
||||
return true;
|
||||
}
|
||||
|
||||
private void OnButtonSync(object sender, EventArgs e)
|
||||
{
|
||||
_syncService.SyncCheckPointsUp();
|
||||
}
|
||||
#region NFC
|
||||
bool _eventsAlreadySubscribed = false;
|
||||
CheckPointDTO _checkPointDTO = null;
|
||||
@@ -75,7 +78,7 @@ public partial class CheckPointsPage : ContentPage
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
async Task EndListening()
|
||||
|
||||
Reference in New Issue
Block a user