Na most kezd valami kinézni

This commit is contained in:
2025-03-03 19:26:25 +01:00
parent 1e9fdf7ea5
commit 62dee24619
7 changed files with 99 additions and 18 deletions
@@ -4,26 +4,30 @@
x:Class="WorkFlowCheck.MAUI.Pages.BaseStock.BaseStockPage"
Title="Törzs adatok">
<VerticalStackLayout Margin="10,0,10,0">
<Button
<Frame BorderColor="Gray" Padding="5" Margin="1" HasShadow="True">
<VerticalStackLayout Margin="10,10,10,0">
<Button
x:Name="ButtonGetCheckPoints"
Margin="0,0,0,20"
Margin="0,0,0,10"
Text="Ellenőrzési pontok"
SemanticProperties.Hint="Ellenőrzési pontok"
Clicked="OnButtonGetCheckPoints"
HorizontalOptions="Fill" />
<Button
<Button
x:Name="ButtonGetEquipments"
Margin="0,0,0,20"
Margin="0,0,0,10"
Text="Berendezések"
SemanticProperties.Hint="Berendezések"
Clicked="OnButtonGetCheckPoints"
HorizontalOptions="Fill" />
<Button
<Button
x:Name="ButtonGetLocations"
Margin="0,0,0,20"
Margin="0,0,0,10"
Text="Lokációk"
SemanticProperties.Hint="Lokációk"
Clicked="OnButtonGetCheckPoints"
HorizontalOptions="Fill" />
HorizontalOptions="Fill" />
</VerticalStackLayout>
</Frame>
</VerticalStackLayout>
</ContentPage>
@@ -11,7 +11,7 @@ public partial class CheckPointsPage : ContentPage
{
private readonly IBaseStockService _baseStockService;
private readonly ISyncService _syncService;
private bool _onReceiveing = false;
public CheckPointsPage()
{
@@ -52,7 +52,7 @@ public partial class CheckPointsPage : ContentPage
private async void OnPairItem(CheckPointDTO checkPointDTO)
{
_checkPointDTO = checkPointDTO;
await BeginListening();
await BeginListening();
}
protected override bool OnBackButtonPressed()
{
@@ -93,7 +93,8 @@ public partial class CheckPointsPage : ContentPage
}
async void Current_OnMessageReceived_NFCData(ITagInfo tagInfo)
{
if (_onReceiveing) return;
_onReceiveing = true;
if (tagInfo == null)
{
return;
@@ -105,10 +106,11 @@ public partial class CheckPointsPage : ContentPage
{
_checkPointDTO.Code = serialNumber;
await _baseStockService.UpdateCheckPoint(_checkPointDTO);
//CrossNFC.Current.StopListening();
UnsubscribeEvents();
CrossNFC.Current.StopListening();
await LoadCheckPoints();
}
}
_onReceiveing = false;
}
#endregion