Ez most félig kész ...
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -8,6 +8,7 @@
|
||||
xmlns:nfc="clr-namespace:WorkFlowCheck.MAUI.Pages.NFC"
|
||||
xmlns:system="clr-namespace:WorkFlowCheck.MAUI.Pages.System"
|
||||
xmlns:base="clr-namespace:WorkFlowCheck.MAUI.Pages.BaseStock"
|
||||
xmlns:checklist="clr-namespace:WorkFlowCheck.MAUI.Pages.CheckList"
|
||||
Shell.FlyoutBehavior="Disabled"
|
||||
Title="WorkFlowCheck.MAUI">
|
||||
|
||||
@@ -21,5 +22,7 @@
|
||||
<ShellContent Title="Equipments" ContentTemplate="{DataTemplate base:EquipmentsPage}" Route="EquipmentsPage" />
|
||||
<ShellContent Title="Locations" ContentTemplate="{DataTemplate base:LocationsPage}" Route="LocationsPage" />
|
||||
|
||||
<ShellContent Title="CheckList" ContentTemplate="{DataTemplate checklist:CheckListPage}" Route="CheckListPage" />
|
||||
|
||||
|
||||
</Shell>
|
||||
|
||||
@@ -4,64 +4,63 @@
|
||||
x:Class="WorkFlowCheck.MAUI.MainPage"
|
||||
Title="Főmenü">
|
||||
|
||||
<ScrollView>
|
||||
<VerticalStackLayout
|
||||
Padding="30,0"
|
||||
Spacing="25">
|
||||
<!--<Image
|
||||
Source="dotnet_bot.png"
|
||||
HeightRequest="185"
|
||||
Aspect="AspectFit"
|
||||
SemanticProperties.Description="dot net bot in a race car number eight" />-->
|
||||
<Grid RowDefinitions="Auto, * , Auto" Padding="30,0">
|
||||
|
||||
<!--<Label
|
||||
Text="Hello, World!"
|
||||
x:Name="WelcomeLabel"
|
||||
Style="{StaticResource Headline}"
|
||||
SemanticProperties.HeadingLevel="Level1" />-->
|
||||
<ScrollView Grid.Row="1">
|
||||
<VerticalStackLayout Spacing="25">
|
||||
<Frame BorderColor="Gray" Padding="5" Margin="1" HasShadow="True">
|
||||
<VerticalStackLayout>
|
||||
<Label Text="Alapműveletek" FontAttributes="Bold" FontSize="Medium" HorizontalOptions="Center" />
|
||||
<Button
|
||||
x:Name="ButtonSync" Margin="5"
|
||||
Text="Adatok szinkronizálása"
|
||||
SemanticProperties.Hint="Adatok szinkronizálása"
|
||||
Clicked="OnButtonSync"
|
||||
HorizontalOptions="Fill" />
|
||||
<Button
|
||||
x:Name="ButtonBase" Margin="5"
|
||||
Text="Törzsadatok"
|
||||
SemanticProperties.Hint="Törzsadatok"
|
||||
Clicked="OnButtonBaseStock"
|
||||
HorizontalOptions="Fill" />
|
||||
<Button
|
||||
x:Name="NFCTestBtn" Margin="5"
|
||||
Text="NFC olvasó teszt"
|
||||
SemanticProperties.Hint="NFC olvasó teszt"
|
||||
Clicked="OnButtonNFCTest"
|
||||
HorizontalOptions="Fill" />
|
||||
</VerticalStackLayout>
|
||||
</Frame>
|
||||
<Frame BorderColor="Gray" Padding="5" Margin="1" HasShadow="True">
|
||||
<VerticalStackLayout>
|
||||
<Label Text="Ellenőrzés" FontAttributes="Bold" FontSize="Medium" HorizontalOptions="Center" />
|
||||
<Button
|
||||
x:Name="ButtonCheckList" Margin="5"
|
||||
Text="Ellenőrzési feladatok"
|
||||
SemanticProperties.Hint="Ellenőrzési feadatok"
|
||||
Clicked="OnButtonCheckList"
|
||||
HorizontalOptions="Fill" />
|
||||
</VerticalStackLayout>
|
||||
</Frame>
|
||||
|
||||
<!--<Label
|
||||
Text="Welcome to .NET Multi-platform App UI"
|
||||
Style="{StaticResource SubHeadline}"
|
||||
SemanticProperties.HeadingLevel="Level2"
|
||||
SemanticProperties.Description="Welcome to dot net Multi platform App U I" />-->
|
||||
<!--<Button
|
||||
x:Name="CounterBtn"
|
||||
Text="Hahó II."
|
||||
SemanticProperties.Hint="Counts the number of times you click"
|
||||
Clicked="OnCounterClicked"
|
||||
HorizontalOptions="Fill" />-->
|
||||
<Frame BorderColor="Gray" Padding="5" Margin="1" HasShadow="True">
|
||||
<VerticalStackLayout>
|
||||
<Button
|
||||
x:Name="ButtonSync" Margin="5"
|
||||
Text="Adatok szinkronizálása"
|
||||
SemanticProperties.Hint="Adatok szinkronizálása"
|
||||
Clicked="OnButtonSync"
|
||||
HorizontalOptions="Fill" />
|
||||
<Button
|
||||
x:Name="ButtonBase" Margin="5"
|
||||
Text="Törzsadatok"
|
||||
SemanticProperties.Hint="Törzsadatok"
|
||||
Clicked="OnButtonBaseStock"
|
||||
HorizontalOptions="Fill" />
|
||||
<Button
|
||||
x:Name="NFCTestBtn" Margin="5"
|
||||
Text="NFC olvasó teszt"
|
||||
SemanticProperties.Hint="NFC olvasó teszt"
|
||||
Clicked="OnButtonNFCTest"
|
||||
HorizontalOptions="Fill" />
|
||||
</VerticalStackLayout>
|
||||
</Frame>
|
||||
<Frame BorderColor="Gray" Padding="5" Margin="1" HasShadow="True">
|
||||
<Button
|
||||
x:Name="LogoutBtn" Margin="5"
|
||||
Text="Kijelentkezés"
|
||||
SemanticProperties.Hint="Kijelentkezés"
|
||||
Clicked="OnButtonLogout"
|
||||
HorizontalOptions="Fill" />
|
||||
</Frame>
|
||||
</VerticalStackLayout>
|
||||
</ScrollView>
|
||||
</VerticalStackLayout>
|
||||
</ScrollView>
|
||||
|
||||
<Frame Grid.Row="2" BorderColor="Gray" Padding="5" Margin="1" HasShadow="True">
|
||||
<Button
|
||||
x:Name="LogoutBtn" Margin="5"
|
||||
BackgroundColor="DarkRed"
|
||||
Text="Kijelentkezés"
|
||||
SemanticProperties.Hint="Kijelentkezés"
|
||||
Clicked="OnButtonLogout"
|
||||
HorizontalOptions="Fill"
|
||||
VerticalOptions="Center">
|
||||
<Button.ImageSource>
|
||||
<FontImageSource FontFamily="FontAwesome" Glyph="" Size="20" />
|
||||
</Button.ImageSource>
|
||||
</Button>
|
||||
</Frame>
|
||||
|
||||
</Grid>
|
||||
|
||||
</ContentPage>
|
||||
|
||||
@@ -63,7 +63,10 @@ namespace WorkFlowCheck.MAUI
|
||||
{
|
||||
Shell.Current.GoToAsync("//SyncPage");
|
||||
}
|
||||
|
||||
private async void OnButtonCheckList(object sender, EventArgs e)
|
||||
{
|
||||
await Shell.Current.GoToAsync("//CheckListPage");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -57,6 +57,7 @@ namespace WorkFlowCheck.MAUI
|
||||
{
|
||||
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
|
||||
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
|
||||
fonts.AddFont("FontAwesome.ttf", "FontAwesome");
|
||||
})
|
||||
.UseMauiCommunityToolkitCore()
|
||||
.UseMauiCommunityToolkit();
|
||||
|
||||
@@ -2,11 +2,33 @@
|
||||
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
x:Class="WorkFlowCheck.MAUI.Pages.CheckList.CheckListPage"
|
||||
Title="CheckListPage">
|
||||
<VerticalStackLayout>
|
||||
<Label
|
||||
Text="Welcome to .NET MAUI!"
|
||||
VerticalOptions="Center"
|
||||
HorizontalOptions="Center" />
|
||||
</VerticalStackLayout>
|
||||
Title="Ellenőrzések">
|
||||
<Grid RowDefinitions="Auto, * , Auto" Padding="30,0">
|
||||
|
||||
<ScrollView Grid.Row="1">
|
||||
<Frame BorderColor="Gray" Padding="5" Margin="1" HasShadow="True">
|
||||
<VerticalStackLayout>
|
||||
<Label Text="Megkezdett ellenőrzések" FontAttributes="Bold" FontSize="Medium" HorizontalOptions="Center" />
|
||||
|
||||
</VerticalStackLayout>
|
||||
</Frame>
|
||||
|
||||
</ScrollView>
|
||||
<ScrollView Grid.Row="2">
|
||||
<Frame BorderColor="Gray" Padding="5" Margin="1" HasShadow="True">
|
||||
<VerticalStackLayout>
|
||||
<Label Text="Új ellenőrzés" FontAttributes="Bold" FontSize="Medium" HorizontalOptions="Center" />
|
||||
<Button
|
||||
x:Name="ButtonNewCheck" Margin="5"
|
||||
BackgroundColor="Green"
|
||||
Text="Új indítása"
|
||||
SemanticProperties.Hint="Új indítása"
|
||||
Clicked="OnButtonNewCheck"
|
||||
HorizontalOptions="Fill" />
|
||||
</VerticalStackLayout>
|
||||
</Frame>
|
||||
|
||||
</ScrollView>
|
||||
|
||||
</Grid>
|
||||
</ContentPage>
|
||||
@@ -6,4 +6,14 @@ public partial class CheckListPage : ContentPage
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
protected override bool OnBackButtonPressed()
|
||||
{
|
||||
Shell.Current.GoToAsync("//MainPage");
|
||||
return true;
|
||||
}
|
||||
public async void OnButtonNewCheck(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Binary file not shown.
@@ -6,6 +6,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using WorkFlowCheck.MAUI.DataLayer;
|
||||
using WorkFlowCheck.MAUI.Services.Interfaces;
|
||||
|
||||
namespace WorkFlowCheck.MAUI.Services
|
||||
{
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
using AutoMapper;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using WorkFlowCheck.Common.DTO;
|
||||
using WorkFlowCheck.MAUI.DataLayer;
|
||||
using WorkFlowCheck.MAUI.Services.Interfaces;
|
||||
|
||||
namespace WorkFlowCheck.MAUI.Services
|
||||
{
|
||||
public class CheckListService : BaseService, ICheckListService
|
||||
{
|
||||
private readonly IUserService _userService;
|
||||
public CheckListService(HttpClient httpClient, IConfiguration configuration, AppDbContext dbContext, IMapper mapper, IUserService userService ) : base(httpClient, configuration, dbContext, mapper)
|
||||
{
|
||||
_userService = userService;
|
||||
}
|
||||
|
||||
public async Task StartNew(UserDTO userDTO)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using WorkFlowCheck.Common.DTO;
|
||||
|
||||
namespace WorkFlowCheck.MAUI.Services.Interfaces
|
||||
{
|
||||
public interface ICheckListService
|
||||
{
|
||||
Task<CheckListHeaderDTO> StartNew();
|
||||
}
|
||||
}
|
||||
@@ -110,8 +110,6 @@ namespace WorkFlowCheck.MAUI.Services
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public async Task SyncCheckListTemplates()
|
||||
{
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user