Compare commits
2 Commits
10c1435dba
...
3f2b7a6bb5
| Author | SHA1 | Date | |
|---|---|---|---|
| 3f2b7a6bb5 | |||
| a34e673cd2 |
@@ -1,15 +0,0 @@
|
|||||||
namespace Template.Maui
|
|
||||||
{
|
|
||||||
public partial class App : Application
|
|
||||||
{
|
|
||||||
public App()
|
|
||||||
{
|
|
||||||
InitializeComponent();
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override Window CreateWindow(IActivationState? activationState)
|
|
||||||
{
|
|
||||||
return new Window(new MainPage());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
using CommunityToolkit.Mvvm.Messaging;
|
|
||||||
using Template.Shared.Core.Messages;
|
|
||||||
|
|
||||||
namespace Template.Maui
|
|
||||||
{
|
|
||||||
public partial class MainPage : ContentPage
|
|
||||||
{
|
|
||||||
public MainPage()
|
|
||||||
{
|
|
||||||
InitializeComponent();
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override bool OnBackButtonPressed()
|
|
||||||
{
|
|
||||||
WeakReferenceMessenger.Default.Send(new HardwareBackMessage("back"));
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
<maui:MauiWinUIApplication
|
|
||||||
x:Class="Template.Maui.WinUI.App"
|
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
||||||
xmlns:maui="using:Microsoft.Maui"
|
|
||||||
xmlns:local="using:Template.Maui.WinUI">
|
|
||||||
|
|
||||||
</maui:MauiWinUIApplication>
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
using Microsoft.UI.Xaml;
|
|
||||||
|
|
||||||
// To learn more about WinUI, the WinUI project structure,
|
|
||||||
// and more about our project templates, see: http://aka.ms/winui-project-info.
|
|
||||||
|
|
||||||
namespace Template.Maui.WinUI
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// Provides application-specific behavior to supplement the default Application class.
|
|
||||||
/// </summary>
|
|
||||||
public partial class App : MauiWinUIApplication
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// Initializes the singleton application object. This is the first line of authored code
|
|
||||||
/// executed, and as such is the logical equivalent of main() or WinMain().
|
|
||||||
/// </summary>
|
|
||||||
public App()
|
|
||||||
{
|
|
||||||
this.InitializeComponent();
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Package
|
|
||||||
xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
|
|
||||||
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
|
|
||||||
xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest"
|
|
||||||
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
|
|
||||||
IgnorableNamespaces="uap rescap">
|
|
||||||
|
|
||||||
<Identity Name="maui-package-name-placeholder" Publisher="CN=User Name" Version="0.0.0.0" />
|
|
||||||
|
|
||||||
<mp:PhoneIdentity PhoneProductId="725421B6-1171-41CC-BE20-94A305E6285E" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>
|
|
||||||
|
|
||||||
<Properties>
|
|
||||||
<DisplayName>$placeholder$</DisplayName>
|
|
||||||
<PublisherDisplayName>User Name</PublisherDisplayName>
|
|
||||||
<Logo>$placeholder$.png</Logo>
|
|
||||||
</Properties>
|
|
||||||
|
|
||||||
<Dependencies>
|
|
||||||
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.17763.0" MaxVersionTested="10.0.19041.0" />
|
|
||||||
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.17763.0" MaxVersionTested="10.0.19041.0" />
|
|
||||||
</Dependencies>
|
|
||||||
|
|
||||||
<Resources>
|
|
||||||
<Resource Language="x-generate" />
|
|
||||||
</Resources>
|
|
||||||
|
|
||||||
<Applications>
|
|
||||||
<Application Id="App" Executable="$targetnametoken$.exe" EntryPoint="$targetentrypoint$">
|
|
||||||
<uap:VisualElements
|
|
||||||
DisplayName="$placeholder$"
|
|
||||||
Description="$placeholder$"
|
|
||||||
Square150x150Logo="$placeholder$.png"
|
|
||||||
Square44x44Logo="$placeholder$.png"
|
|
||||||
BackgroundColor="transparent">
|
|
||||||
<uap:DefaultTile Square71x71Logo="$placeholder$.png" Wide310x150Logo="$placeholder$.png" Square310x310Logo="$placeholder$.png" />
|
|
||||||
<uap:SplashScreen Image="$placeholder$.png" />
|
|
||||||
</uap:VisualElements>
|
|
||||||
</Application>
|
|
||||||
</Applications>
|
|
||||||
|
|
||||||
<Capabilities>
|
|
||||||
<rescap:Capability Name="runFullTrust" />
|
|
||||||
</Capabilities>
|
|
||||||
|
|
||||||
</Package>
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
|
|
||||||
<assemblyIdentity version="1.0.0.0" name="Template.Maui.WinUI.app"/>
|
|
||||||
|
|
||||||
<application xmlns="urn:schemas-microsoft-com:asm.v3">
|
|
||||||
<windowsSettings>
|
|
||||||
<!-- The combination of below two tags have the following effect:
|
|
||||||
1) Per-Monitor for >= Windows 10 Anniversary Update
|
|
||||||
2) System < Windows 10 Anniversary Update
|
|
||||||
-->
|
|
||||||
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true/PM</dpiAware>
|
|
||||||
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2, PerMonitor</dpiAwareness>
|
|
||||||
</windowsSettings>
|
|
||||||
</application>
|
|
||||||
</assembly>
|
|
||||||
@@ -1,59 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8"/>
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"/>
|
|
||||||
<title>Template.Maui</title>
|
|
||||||
<base href="/"/>
|
|
||||||
|
|
||||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap" rel="stylesheet">
|
|
||||||
|
|
||||||
<link href="_content/Template.Shared/css/bootstrap/bootstrap.min.css" rel="stylesheet">
|
|
||||||
<link href="_content/Template.Shared/css/bootstrap/bootstrap-icons.min.css" rel="stylesheet"/>
|
|
||||||
<link href="_content/MudBlazor/MudBlazor.min.css" rel="stylesheet"/>
|
|
||||||
<link href="_content/CodeBeam.MudBlazor.Extensions/MudExtensions.min.css" rel="stylesheet"/>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="_content/Template.Shared/css/remixicon/remixicon.css"/>
|
|
||||||
<link rel="stylesheet" href="_content/Template.Shared/css/app.css"/>
|
|
||||||
<link rel="stylesheet" href="_content/Template.Shared/css/form.css"/>
|
|
||||||
<link rel="stylesheet" href="_content/Template.Shared/css/bottomSheet.css"/>
|
|
||||||
<link rel="stylesheet" href="_content/Template.Shared/css/default-theme.css"/>
|
|
||||||
<link rel="stylesheet" href="Template.Maui.styles.css"/>
|
|
||||||
<link rel="icon" type="image/png" href="favicon.png"/>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<div class="status-bar-safe-area"></div>
|
|
||||||
|
|
||||||
<div id="app">
|
|
||||||
<div class="spinner-container">
|
|
||||||
<span class="loader"></span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="blazor-error-ui">
|
|
||||||
An unhandled error has occurred.
|
|
||||||
<a href="" class="reload">Reload</a>
|
|
||||||
<a class="dismiss">🗙</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<script src="_framework/blazor.webview.js" autostart="false"></script>
|
|
||||||
<script src="_content/Template.Shared/js/bootstrap/bootstrap.bundle.min.js"></script>
|
|
||||||
<!-- Add chart.js reference if chart components are used in your application. -->
|
|
||||||
<!--<script src="_content/Template.Shared/js/bootstrap/chart.umd.js" integrity="sha512-gQhCDsnnnUfaRzD8k1L5llCCV6O9HN09zClIzzeJ8OJ9MpGmIlCxm+pdCkqTwqJ4JcjbojFr79rl2F1mzcoLMQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>-->
|
|
||||||
<!-- Add chartjs-plugin-datalabels.min.js reference if chart components with data label feature is used in your application. -->
|
|
||||||
<!--<script src="_content/Template.Shared/js/bootstrap/chartjs-plugin-datalabels.min.js" integrity="sha512-JPcRR8yFa8mmCsfrw4TNte1ZvF1e3+1SdGMslZvmrzDYxS69J7J49vkFL8u6u8PlPJK+H3voElBtUCzaXj+6ig==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>-->
|
|
||||||
<!-- Add sortable.js reference if SortableList component is used in your application. -->
|
|
||||||
<!--<script src="_content/Template.Shared/js/bootstrap/Sortable.min.js"></script>-->
|
|
||||||
<script src="_content/MudBlazor/MudBlazor.min.js"></script>
|
|
||||||
<script src="_content/CodeBeam.MudBlazor.Extensions/MudExtensions.min.js"></script>
|
|
||||||
<script src="_content/Template.Shared/js/main.js"></script>
|
|
||||||
<script src="_content/Template.Shared/js/calendar.js"></script>
|
|
||||||
<script src="_content/Template.Shared/js/alphaScroll.js"></script>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
|
|
||||||
</html>
|
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
xmlns:android="clr-namespace:Microsoft.Maui.Controls.PlatformConfiguration.AndroidSpecific;assembly=Microsoft.Maui.Controls"
|
xmlns:android="clr-namespace:Microsoft.Maui.Controls.PlatformConfiguration.AndroidSpecific;assembly=Microsoft.Maui.Controls"
|
||||||
android:Application.WindowSoftInputModeAdjust="Resize"
|
android:Application.WindowSoftInputModeAdjust="Resize"
|
||||||
x:Class="Template.Maui.App">
|
x:Class="salesbook.Maui.App">
|
||||||
<Application.Resources>
|
<Application.Resources>
|
||||||
<ResourceDictionary>
|
<ResourceDictionary>
|
||||||
|
|
||||||
20
salesbook.Maui/App.xaml.cs
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
using CommunityToolkit.Mvvm.Messaging;
|
||||||
|
|
||||||
|
namespace salesbook.Maui
|
||||||
|
{
|
||||||
|
public partial class App : Application
|
||||||
|
{
|
||||||
|
private readonly IMessenger _messenger;
|
||||||
|
|
||||||
|
public App(IMessenger messenger)
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
_messenger = messenger;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override Window CreateWindow(IActivationState? activationState)
|
||||||
|
{
|
||||||
|
return new Window(new MainPage(_messenger));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
using Template.Shared.Core.Interface;
|
using salesbook.Shared.Core.Interface;
|
||||||
|
|
||||||
namespace Template.Maui.Core.Services;
|
namespace salesbook.Maui.Core.Services;
|
||||||
|
|
||||||
public class FormFactor : IFormFactor
|
public class FormFactor : IFormFactor
|
||||||
{
|
{
|
||||||
@@ -1,7 +1,8 @@
|
|||||||
using SQLite;
|
using SQLite;
|
||||||
using System.Linq.Expressions;
|
using System.Linq.Expressions;
|
||||||
using Template.Shared.Core.Entity;
|
using salesbook.Shared.Core.Entity;
|
||||||
namespace Template.Maui.Core.Services;
|
|
||||||
|
namespace salesbook.Maui.Core.Services;
|
||||||
|
|
||||||
public class LocalDbService
|
public class LocalDbService
|
||||||
{
|
{
|
||||||
@@ -110,4 +111,7 @@ public class LocalDbService
|
|||||||
: _connection.Table<T>().Where(whereCond).ToListAsync();
|
: _connection.Table<T>().Where(whereCond).ToListAsync();
|
||||||
|
|
||||||
public List<T> Get<T>(string sql) where T : new() => _connection.QueryAsync<T>(sql).Result;
|
public List<T> Get<T>(string sql) where T : new() => _connection.QueryAsync<T>(sql).Result;
|
||||||
|
|
||||||
|
public async Task Delete<T>(T entity) =>
|
||||||
|
await _connection.DeleteAsync(entity);
|
||||||
}
|
}
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
using AutoMapper;
|
using AutoMapper;
|
||||||
using System.Linq.Expressions;
|
using System.Linq.Expressions;
|
||||||
using Template.Shared.Core.Dto;
|
using salesbook.Shared.Core.Dto;
|
||||||
using Template.Shared.Core.Entity;
|
using salesbook.Shared.Core.Entity;
|
||||||
using Template.Shared.Core.Helpers.Enum;
|
using salesbook.Shared.Core.Helpers.Enum;
|
||||||
using Template.Shared.Core.Interface;
|
using salesbook.Shared.Core.Interface;
|
||||||
|
|
||||||
namespace Template.Maui.Core.Services;
|
namespace salesbook.Maui.Core.Services;
|
||||||
|
|
||||||
public class ManageDataService(LocalDbService localDb, IMapper mapper) : IManageDataService
|
public class ManageDataService(LocalDbService localDb, IMapper mapper) : IManageDataService
|
||||||
{
|
{
|
||||||
@@ -72,6 +72,16 @@ public class ManageDataService(LocalDbService localDb, IMapper mapper) : IManage
|
|||||||
public Task InsertOrUpdate<T>(T objectToSave) =>
|
public Task InsertOrUpdate<T>(T objectToSave) =>
|
||||||
localDb.InsertOrUpdate<T>([objectToSave]);
|
localDb.InsertOrUpdate<T>([objectToSave]);
|
||||||
|
|
||||||
|
public Task Delete<T>(T objectToDelete) =>
|
||||||
|
localDb.Delete(objectToDelete);
|
||||||
|
|
||||||
|
public async Task DeleteActivity(ActivityDTO activity)
|
||||||
|
{
|
||||||
|
await localDb.Delete(
|
||||||
|
(await GetTable<StbActivity>(x => x.ActivityId.Equals(activity.ActivityId))).Last()
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
public Task ClearDb() =>
|
public Task ClearDb() =>
|
||||||
localDb.ResetDb();
|
localDb.ResetDb();
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
using Template.Shared.Core.Interface;
|
using salesbook.Shared.Core.Interface;
|
||||||
|
|
||||||
namespace Template.Maui.Core.Services;
|
namespace salesbook.Maui.Core.Services;
|
||||||
|
|
||||||
public class NetworkService : INetworkService
|
public class NetworkService : INetworkService
|
||||||
{
|
{
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
using Template.Shared.Core.Helpers;
|
using salesbook.Shared.Core.Helpers;
|
||||||
using Template.Shared.Core.Interface;
|
using salesbook.Shared.Core.Interface;
|
||||||
|
|
||||||
namespace Template.Maui.Core.Services;
|
namespace salesbook.Maui.Core.Services;
|
||||||
|
|
||||||
public class SyncDbService(IIntegryApiService integryApiService, LocalDbService localDb) : ISyncDbService
|
public class SyncDbService(IIntegryApiService integryApiService, LocalDbService localDb) : ISyncDbService
|
||||||
{
|
{
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
xmlns:local="clr-namespace:Template.Maui"
|
xmlns:local="clr-namespace:salesbook.Maui"
|
||||||
xmlns:shared="clr-namespace:Template.Shared;assembly=Template.Shared"
|
xmlns:shared="clr-namespace:salesbook.Shared;assembly=salesbook.Shared"
|
||||||
x:Class="Template.Maui.MainPage"
|
x:Class="salesbook.Maui.MainPage"
|
||||||
BackgroundColor="{DynamicResource PageBackgroundColor}">
|
BackgroundColor="{DynamicResource PageBackgroundColor}">
|
||||||
|
|
||||||
<BlazorWebView x:Name="blazorWebView" HostPage="wwwroot/index.html">
|
<BlazorWebView x:Name="blazorWebView" HostPage="wwwroot/index.html">
|
||||||
23
salesbook.Maui/MainPage.xaml.cs
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
using CommunityToolkit.Mvvm.Messaging;
|
||||||
|
using salesbook.Shared.Core.Messages.Back;
|
||||||
|
|
||||||
|
namespace salesbook.Maui
|
||||||
|
{
|
||||||
|
public partial class MainPage : ContentPage
|
||||||
|
{
|
||||||
|
private readonly IMessenger _messenger;
|
||||||
|
|
||||||
|
public MainPage(IMessenger messenger)
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
_messenger = messenger;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override bool OnBackButtonPressed()
|
||||||
|
{
|
||||||
|
_messenger.Send(new HardwareBackMessage("back"));
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,17 +1,21 @@
|
|||||||
using CommunityToolkit.Maui;
|
using CommunityToolkit.Maui;
|
||||||
|
using CommunityToolkit.Mvvm.Messaging;
|
||||||
using IntegryApiClient.MAUI;
|
using IntegryApiClient.MAUI;
|
||||||
using Microsoft.AspNetCore.Components.Authorization;
|
using Microsoft.AspNetCore.Components.Authorization;
|
||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
using MudBlazor.Services;
|
using MudBlazor.Services;
|
||||||
using MudExtensions.Services;
|
using MudExtensions.Services;
|
||||||
using Template.Maui.Core.Services;
|
using salesbook.Maui.Core.Services;
|
||||||
using Template.Shared;
|
using salesbook.Shared;
|
||||||
using Template.Shared.Core.Helpers;
|
using salesbook.Shared.Core.Helpers;
|
||||||
using Template.Shared.Core.Interface;
|
using salesbook.Shared.Core.Interface;
|
||||||
using Template.Shared.Core.Messages;
|
using salesbook.Shared.Core.Messages.Activity;
|
||||||
using Template.Shared.Core.Services;
|
using salesbook.Shared.Core.Messages.Activity.Copy;
|
||||||
|
using salesbook.Shared.Core.Messages.Activity.New;
|
||||||
|
using salesbook.Shared.Core.Messages.Back;
|
||||||
|
using salesbook.Shared.Core.Services;
|
||||||
|
|
||||||
namespace Template.Maui
|
namespace salesbook.Maui
|
||||||
{
|
{
|
||||||
public static class MauiProgram
|
public static class MauiProgram
|
||||||
{
|
{
|
||||||
@@ -25,10 +29,7 @@ namespace Template.Maui
|
|||||||
builder
|
builder
|
||||||
.UseMauiApp<App>()
|
.UseMauiApp<App>()
|
||||||
.UseMauiCommunityToolkit()
|
.UseMauiCommunityToolkit()
|
||||||
.ConfigureFonts(fonts =>
|
.ConfigureFonts(fonts => { fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular"); })
|
||||||
{
|
|
||||||
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
|
|
||||||
})
|
|
||||||
.UseLoginAzienda(AppToken);
|
.UseLoginAzienda(AppToken);
|
||||||
|
|
||||||
builder.Services.AddMauiBlazorWebView();
|
builder.Services.AddMauiBlazorWebView();
|
||||||
@@ -46,7 +47,12 @@ namespace Template.Maui
|
|||||||
builder.Services.AddScoped<IIntegryApiService, IntegryApiService>();
|
builder.Services.AddScoped<IIntegryApiService, IntegryApiService>();
|
||||||
builder.Services.AddScoped<ISyncDbService, SyncDbService>();
|
builder.Services.AddScoped<ISyncDbService, SyncDbService>();
|
||||||
builder.Services.AddScoped<IManageDataService, ManageDataService>();
|
builder.Services.AddScoped<IManageDataService, ManageDataService>();
|
||||||
|
|
||||||
|
//Message
|
||||||
|
builder.Services.AddScoped<IMessenger, WeakReferenceMessenger>();
|
||||||
|
builder.Services.AddScoped<NewActivityService>();
|
||||||
builder.Services.AddScoped<BackNavigationService>();
|
builder.Services.AddScoped<BackNavigationService>();
|
||||||
|
builder.Services.AddScoped<CopyActivityService>();
|
||||||
|
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
builder.Services.AddBlazorWebViewDeveloperTools();
|
builder.Services.AddBlazorWebViewDeveloperTools();
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
using Android.App;
|
using Android.App;
|
||||||
using Android.Content.PM;
|
using Android.Content.PM;
|
||||||
|
|
||||||
namespace Template.Maui
|
namespace salesbook.Maui
|
||||||
{
|
{
|
||||||
[Activity(Theme = "@style/Maui.SplashTheme",
|
[Activity(Theme = "@style/Maui.SplashTheme",
|
||||||
MainLauncher = true,
|
MainLauncher = true,
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
using Android.App;
|
using Android.App;
|
||||||
using Android.Runtime;
|
using Android.Runtime;
|
||||||
|
|
||||||
namespace Template.Maui
|
namespace salesbook.Maui
|
||||||
{
|
{
|
||||||
[Application]
|
[Application]
|
||||||
public class MainApplication : MauiApplication
|
public class MainApplication : MauiApplication
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
using Foundation;
|
using Foundation;
|
||||||
using Template.Maui;
|
using salesbook.Maui;
|
||||||
|
|
||||||
namespace Template.Maui
|
namespace salesbook.Maui
|
||||||
{
|
{
|
||||||
[Register("AppDelegate")]
|
[Register("AppDelegate")]
|
||||||
public class AppDelegate : MauiUIApplicationDelegate
|
public class AppDelegate : MauiUIApplicationDelegate
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
using ObjCRuntime;
|
using ObjCRuntime;
|
||||||
using UIKit;
|
using UIKit;
|
||||||
|
|
||||||
namespace Template.Maui
|
namespace salesbook.Maui
|
||||||
{
|
{
|
||||||
public class Program
|
public class Program
|
||||||
{
|
{
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
using Foundation;
|
using Foundation;
|
||||||
|
|
||||||
namespace Template.Maui
|
namespace salesbook.Maui
|
||||||
{
|
{
|
||||||
[Register("AppDelegate")]
|
[Register("AppDelegate")]
|
||||||
public class AppDelegate : MauiUIApplicationDelegate
|
public class AppDelegate : MauiUIApplicationDelegate
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
using UIKit;
|
using UIKit;
|
||||||
|
|
||||||
namespace Template.Maui
|
namespace salesbook.Maui
|
||||||
{
|
{
|
||||||
public class Program
|
public class Program
|
||||||
{
|
{
|
||||||
|
Before Width: | Height: | Size: 201 B After Width: | Height: | Size: 201 B |
@@ -1 +1 @@
|
|||||||
<svg version="1.2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 230 230" width="230" height="230"><style>.a{fill:none;stroke:#002339;stroke-linecap:round;stroke-linejoin:round;stroke-width:16}.b{fill:none;stroke:#00a0de;stroke-linecap:round;stroke-linejoin:round;stroke-width:16}</style><path fill-rule="evenodd" class="a" d="m118.3 86.2h22.9c13.5 0 24.4 11.1 24.4 24.6v18.9c0 13.5-10.9 24.5-24.4 24.5h-3.5l0.1 21.4-23.1-21.4h-48"/><path fill-rule="evenodd" class="b" d="m116.5 54.8l-51.2 31.4v68l51.2-31.5z"/></svg>
|
<svg version="1.2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 230 230" width="230" height="230"><style>.a{fill:none;stroke:#002339;stroke-linecap:round;stroke-linejoin:round;stroke-width:16}.b{fill:none;stroke:#00a0de;stroke-linecap:round;stroke-linejoin:round;stroke-width:16}</style><path fill-rule="evenodd" class="a" d="m119.9 71.4h34.4c20.3 0 36.8 16.5 36.8 36.9v28.3c0 20.4-16.5 36.9-36.8 36.9h-5.1l0.1 32.2-34.7-32.2h-72.2"/><path fill-rule="evenodd" class="b" d="m117.3 24l-77.1 47.4v102.1l77.1-47.4v-102.1z"/></svg>
|
||||||
|
Before Width: | Height: | Size: 519 B After Width: | Height: | Size: 529 B |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
@@ -23,18 +23,18 @@
|
|||||||
</style>
|
</style>
|
||||||
</defs>
|
</defs>
|
||||||
<g>
|
<g>
|
||||||
<path class="cls-3" d="M60.57,323.8c.96-.58,2.4-.86,4.32-.86s3.86.4,5.62,1.2c1.76.8,3.34,2.03,4.75,3.7l7.59-7.68c-2.05-2.69-4.63-4.69-7.73-6-3.11-1.31-6.58-1.97-10.42-1.97s-6.82.59-9.51,1.78c-2.69,1.18-4.77,2.88-6.24,5.09-1.47,2.21-2.21,4.79-2.21,7.73s.58,5.12,1.73,6.91c1.15,1.79,2.61,3.18,4.37,4.18,1.76.99,3.63,1.78,5.62,2.35,1.98.58,3.86,1.12,5.62,1.63,1.76.51,3.22,1.1,4.37,1.78,1.15.67,1.73,1.65,1.73,2.93,0,1.09-.54,1.94-1.63,2.54-1.09.61-2.66.91-4.71.91-2.5,0-4.8-.45-6.91-1.34-2.11-.9-3.94-2.27-5.47-4.13l-7.59,7.59c1.54,1.79,3.36,3.35,5.47,4.66,2.11,1.31,4.43,2.3,6.96,2.98,2.53.67,5.14,1.01,7.83,1.01,5.57,0,9.99-1.33,13.25-3.99,3.26-2.66,4.9-6.26,4.9-10.8,0-2.82-.56-5.12-1.68-6.91-1.12-1.79-2.56-3.23-4.32-4.32-1.76-1.09-3.62-1.94-5.57-2.54-1.95-.61-3.83-1.17-5.62-1.68-1.79-.51-3.23-1.07-4.32-1.68-1.09-.61-1.63-1.49-1.63-2.64,0-1.02.48-1.82,1.44-2.4Z"/>
|
<path class="cls-3" d="M71.66,322.8c.96-.58,2.4-.86,4.32-.86s3.86.4,5.62,1.2c1.76.8,3.34,2.03,4.75,3.7l7.59-7.68c-2.05-2.69-4.63-4.69-7.73-6-3.11-1.31-6.58-1.97-10.42-1.97s-6.82.59-9.51,1.78c-2.69,1.18-4.77,2.88-6.24,5.09-1.47,2.21-2.21,4.79-2.21,7.73s.58,5.12,1.73,6.91c1.15,1.79,2.61,3.18,4.37,4.18,1.76.99,3.63,1.78,5.62,2.35,1.98.58,3.86,1.12,5.62,1.63,1.76.51,3.22,1.1,4.37,1.78,1.15.67,1.73,1.65,1.73,2.93,0,1.09-.54,1.94-1.63,2.54-1.09.61-2.66.91-4.71.91-2.5,0-4.8-.45-6.91-1.34-2.11-.9-3.94-2.27-5.47-4.13l-7.59,7.59c1.54,1.79,3.36,3.35,5.47,4.66,2.11,1.31,4.43,2.3,6.96,2.98,2.53.67,5.14,1.01,7.83,1.01,5.57,0,9.99-1.33,13.25-3.99,3.26-2.66,4.9-6.26,4.9-10.8,0-2.82-.56-5.12-1.68-6.91-1.12-1.79-2.56-3.23-4.32-4.32-1.76-1.09-3.62-1.94-5.57-2.54-1.95-.61-3.83-1.17-5.62-1.68-1.79-.51-3.23-1.07-4.32-1.68-1.09-.61-1.63-1.49-1.63-2.64,0-1.02.48-1.82,1.44-2.4Z"/>
|
||||||
<path class="cls-3" d="M125.87,317.75c-1.29-1.34-2.78-2.47-4.51-3.36-2.63-1.34-5.57-2.02-8.83-2.02-4.29,0-8.11,1.06-11.48,3.17s-6,4.99-7.92,8.64c-1.92,3.65-2.88,7.78-2.88,12.39s.96,8.64,2.88,12.29c1.92,3.65,4.56,6.53,7.92,8.64,3.36,2.11,7.15,3.17,11.38,3.17,3.33,0,6.32-.67,8.98-2.02,1.73-.87,3.2-1.99,4.46-3.31v4.37h12.68v-46.38h-12.68v4.42ZM123.37,345.5c-2.18,2.37-5.03,3.55-8.55,3.55-2.24,0-4.26-.54-6.05-1.63-1.79-1.09-3.19-2.56-4.18-4.42-.99-1.86-1.49-4.03-1.49-6.53s.5-4.58,1.49-6.43c.99-1.86,2.37-3.33,4.13-4.42,1.76-1.09,3.79-1.63,6.1-1.63s4.42.53,6.15,1.58c1.73,1.06,3.1,2.54,4.13,4.46,1.02,1.92,1.54,4.1,1.54,6.53,0,3.59-1.09,6.56-3.27,8.93Z"/>
|
<path class="cls-3" d="M137.34,316.75c-1.29-1.34-2.78-2.47-4.51-3.36-2.63-1.34-5.57-2.02-8.83-2.02-4.29,0-8.11,1.06-11.48,3.17s-6,4.99-7.92,8.64c-1.92,3.65-2.88,7.78-2.88,12.39s.96,8.64,2.88,12.29c1.92,3.65,4.56,6.53,7.92,8.64,3.36,2.11,7.15,3.17,11.38,3.17,3.33,0,6.32-.67,8.98-2.02,1.73-.87,3.2-1.99,4.46-3.31v4.37h12.68v-46.38h-12.68v4.42ZM134.85,344.5c-2.18,2.37-5.03,3.55-8.55,3.55-2.24,0-4.26-.54-6.05-1.63-1.79-1.09-3.19-2.56-4.18-4.42-.99-1.86-1.49-4.03-1.49-6.53s.5-4.58,1.49-6.43c.99-1.86,2.37-3.33,4.13-4.42,1.76-1.09,3.79-1.63,6.1-1.63s4.42.53,6.15,1.58c1.73,1.06,3.1,2.54,4.13,4.46,1.02,1.92,1.54,4.1,1.54,6.53,0,3.59-1.09,6.56-3.27,8.93Z"/>
|
||||||
<rect class="cls-3" x="153.33" y="290.28" width="12.58" height="69.43"/>
|
<rect class="cls-3" x="164.81" y="289.28" width="12.58" height="69.43"/>
|
||||||
<path class="cls-3" d="M214.02,315.25c-3.46-1.98-7.36-2.98-11.71-2.98-4.61,0-8.77,1.06-12.48,3.17-3.71,2.11-6.64,4.99-8.79,8.64-2.15,3.65-3.22,7.78-3.22,12.39s1.09,8.83,3.27,12.48c2.18,3.65,5.17,6.53,8.98,8.64,3.81,2.11,8.15,3.17,13.01,3.17,3.78,0,7.26-.67,10.47-2.02,3.2-1.34,5.98-3.36,8.35-6.05l-7.49-7.49c-1.41,1.67-3.07,2.88-4.99,3.65-1.92.77-4.07,1.15-6.43,1.15-2.63,0-4.93-.54-6.91-1.63-1.99-1.09-3.5-2.67-4.56-4.75-.42-.82-.73-1.72-.98-2.65l33.87-.08c.26-1.02.42-1.97.48-2.83.06-.86.1-1.71.1-2.54,0-4.48-.96-8.48-2.88-12-1.92-3.52-4.61-6.27-8.07-8.26ZM195.68,324.47c1.86-1.09,4.03-1.63,6.53-1.63,2.37,0,4.35.48,5.95,1.44,1.6.96,2.85,2.37,3.75,4.23.43.89.76,1.89,1,2.99l-22.38.06c.23-.86.51-1.68.88-2.43.99-2.02,2.42-3.57,4.27-4.66Z"/>
|
<path class="cls-3" d="M225.49,314.25c-3.46-1.98-7.36-2.98-11.71-2.98-4.61,0-8.77,1.06-12.48,3.17-3.71,2.11-6.64,4.99-8.79,8.64-2.15,3.65-3.22,7.78-3.22,12.39s1.09,8.83,3.27,12.48c2.18,3.65,5.17,6.53,8.98,8.64,3.81,2.11,8.15,3.17,13.01,3.17,3.78,0,7.26-.67,10.47-2.02,3.2-1.34,5.98-3.36,8.35-6.05l-7.49-7.49c-1.41,1.67-3.07,2.88-4.99,3.65-1.92.77-4.07,1.15-6.43,1.15-2.63,0-4.93-.54-6.91-1.63-1.99-1.09-3.5-2.67-4.56-4.75-.42-.82-.73-1.72-.98-2.65l33.87-.08c.26-1.02.42-1.97.48-2.83.06-.86.1-1.71.1-2.54,0-4.48-.96-8.48-2.88-12-1.92-3.52-4.61-6.27-8.07-8.26ZM207.15,323.47c1.86-1.09,4.03-1.63,6.53-1.63,2.37,0,4.35.48,5.95,1.44,1.6.96,2.85,2.37,3.75,4.23.43.89.76,1.89,1,2.99l-22.38.06c.23-.86.51-1.68.88-2.43.99-2.02,2.42-3.57,4.27-4.66Z"/>
|
||||||
<path class="cls-3" d="M249.16,323.8c.96-.58,2.4-.86,4.32-.86s3.86.4,5.62,1.2c1.76.8,3.34,2.03,4.75,3.7l7.59-7.68c-2.05-2.69-4.63-4.69-7.73-6-3.11-1.31-6.58-1.97-10.42-1.97s-6.82.59-9.51,1.78c-2.69,1.18-4.77,2.88-6.24,5.09-1.47,2.21-2.21,4.79-2.21,7.73s.58,5.12,1.73,6.91c1.15,1.79,2.61,3.18,4.37,4.18,1.76.99,3.63,1.78,5.62,2.35,1.98.58,3.86,1.12,5.62,1.63,1.76.51,3.22,1.1,4.37,1.78,1.15.67,1.73,1.65,1.73,2.93,0,1.09-.54,1.94-1.63,2.54-1.09.61-2.66.91-4.71.91-2.5,0-4.8-.45-6.91-1.34-2.11-.9-3.94-2.27-5.47-4.13l-7.59,7.59c1.54,1.79,3.36,3.35,5.47,4.66,2.11,1.31,4.43,2.3,6.96,2.98,2.53.67,5.14,1.01,7.83,1.01,5.57,0,9.99-1.33,13.25-3.99,3.26-2.66,4.9-6.26,4.9-10.8,0-2.82-.56-5.12-1.68-6.91-1.12-1.79-2.56-3.23-4.32-4.32-1.76-1.09-3.62-1.94-5.57-2.54-1.95-.61-3.83-1.17-5.62-1.68-1.79-.51-3.23-1.07-4.32-1.68-1.09-.61-1.63-1.49-1.63-2.64,0-1.02.48-1.82,1.44-2.4Z"/>
|
<path class="cls-3" d="M260.64,322.8c.96-.58,2.4-.86,4.32-.86s3.86.4,5.62,1.2c1.76.8,3.34,2.03,4.75,3.7l7.59-7.68c-2.05-2.69-4.63-4.69-7.73-6-3.11-1.31-6.58-1.97-10.42-1.97s-6.82.59-9.51,1.78c-2.69,1.18-4.77,2.88-6.24,5.09-1.47,2.21-2.21,4.79-2.21,7.73s.58,5.12,1.73,6.91c1.15,1.79,2.61,3.18,4.37,4.18,1.76.99,3.63,1.78,5.62,2.35,1.98.58,3.86,1.12,5.62,1.63,1.76.51,3.22,1.1,4.37,1.78,1.15.67,1.73,1.65,1.73,2.93,0,1.09-.54,1.94-1.63,2.54-1.09.61-2.66.91-4.71.91-2.5,0-4.8-.45-6.91-1.34-2.11-.9-3.94-2.27-5.47-4.13l-7.59,7.59c1.54,1.79,3.36,3.35,5.47,4.66,2.11,1.31,4.43,2.3,6.96,2.98,2.53.67,5.14,1.01,7.83,1.01,5.57,0,9.99-1.33,13.25-3.99,3.26-2.66,4.9-6.26,4.9-10.8,0-2.82-.56-5.12-1.68-6.91-1.12-1.79-2.56-3.23-4.32-4.32-1.76-1.09-3.62-1.94-5.57-2.54-1.95-.61-3.83-1.17-5.62-1.68-1.79-.51-3.23-1.07-4.32-1.68-1.09-.61-1.63-1.49-1.63-2.64,0-1.02.48-1.82,1.44-2.4Z"/>
|
||||||
<path class="cls-3" d="M343.03,315.54c-3.43-2.11-7.28-3.17-11.57-3.17-3.26,0-6.26.69-8.98,2.06-1.58.8-2.96,1.79-4.18,2.93v-27.08h-12.58v69.43h12.48v-4.15c1.23,1.2,2.62,2.23,4.23,3.05,2.69,1.38,5.7,2.06,9.03,2.06,4.29,0,8.13-1.06,11.52-3.17,3.39-2.11,6.06-4.99,8.02-8.64,1.95-3.65,2.93-7.75,2.93-12.29s-.96-8.74-2.88-12.39c-1.92-3.65-4.59-6.53-8.02-8.64ZM339.47,343c-.99,1.86-2.35,3.33-4.08,4.42-1.73,1.09-3.74,1.63-6.05,1.63s-4.35-.54-6.15-1.63c-1.79-1.09-3.17-2.56-4.13-4.42-.96-1.86-1.44-4-1.44-6.43s.48-4.67,1.44-6.53c.96-1.86,2.32-3.33,4.08-4.42,1.76-1.09,3.79-1.63,6.1-1.63s4.34.54,6.1,1.63c1.76,1.09,3.14,2.58,4.13,4.46.99,1.89,1.49,4.02,1.49,6.39,0,2.5-.5,4.67-1.49,6.53Z"/>
|
<path class="cls-3" d="M331.93,314.54c-3.43-2.11-7.28-3.17-11.57-3.17-3.26,0-6.26.69-8.98,2.06-1.58.8-2.96,1.79-4.18,2.93v-27.08h-12.58v69.43h12.48v-4.15c1.23,1.2,2.62,2.23,4.23,3.05,2.69,1.38,5.7,2.06,9.03,2.06,4.29,0,8.13-1.06,11.52-3.17,3.39-2.11,6.06-4.99,8.02-8.64,1.95-3.65,2.93-7.75,2.93-12.29s-.96-8.74-2.88-12.39c-1.92-3.65-4.59-6.53-8.02-8.64ZM328.38,342c-.99,1.86-2.35,3.33-4.08,4.42-1.73,1.09-3.74,1.63-6.05,1.63s-4.35-.54-6.15-1.63c-1.79-1.09-3.17-2.56-4.13-4.42-.96-1.86-1.44-4-1.44-6.43s.48-4.67,1.44-6.53c.96-1.86,2.32-3.33,4.08-4.42,1.76-1.09,3.79-1.63,6.1-1.63s4.34.54,6.1,1.63c1.76,1.09,3.14,2.58,4.13,4.46.99,1.89,1.49,4.02,1.49,6.39,0,2.5-.5,4.67-1.49,6.53Z"/>
|
||||||
<path class="cls-3" d="M400.35,315.44c-3.75-2.11-7.99-3.17-12.72-3.17s-8.88,1.07-12.63,3.22c-3.75,2.15-6.71,5.03-8.88,8.64-2.18,3.62-3.27,7.7-3.27,12.24s1.09,8.75,3.27,12.44c2.18,3.68,5.14,6.59,8.88,8.74,3.74,2.15,7.95,3.22,12.63,3.22s8.99-1.07,12.77-3.22c3.78-2.14,6.75-5.07,8.93-8.79,2.18-3.71,3.26-7.84,3.26-12.39s-1.1-8.64-3.31-12.29c-2.21-3.65-5.19-6.53-8.93-8.64ZM398.14,342.9c-.99,1.86-2.4,3.33-4.23,4.42-1.82,1.09-3.92,1.63-6.29,1.63s-4.35-.54-6.15-1.63c-1.79-1.09-3.19-2.56-4.18-4.42-.99-1.86-1.49-4-1.49-6.43s.5-4.58,1.49-6.43c.99-1.86,2.38-3.31,4.18-4.37,1.79-1.06,3.84-1.58,6.15-1.58s4.43.53,6.19,1.58c1.76,1.06,3.17,2.51,4.23,4.37,1.06,1.86,1.58,4,1.58,6.43s-.5,4.58-1.49,6.43Z"/>
|
<path class="cls-3" d="M389.26,314.44c-3.75-2.11-7.99-3.17-12.72-3.17s-8.88,1.07-12.63,3.22c-3.75,2.15-6.71,5.03-8.88,8.64-2.18,3.62-3.27,7.7-3.27,12.24s1.09,8.75,3.27,12.44c2.18,3.68,5.14,6.59,8.88,8.74,3.74,2.15,7.95,3.22,12.63,3.22s8.99-1.07,12.77-3.22c3.78-2.14,6.75-5.07,8.93-8.79,2.18-3.71,3.26-7.84,3.26-12.39s-1.1-8.64-3.31-12.29c-2.21-3.65-5.19-6.53-8.93-8.64ZM387.05,341.9c-.99,1.86-2.4,3.33-4.23,4.42-1.82,1.09-3.92,1.63-6.29,1.63s-4.35-.54-6.15-1.63c-1.79-1.09-3.19-2.56-4.18-4.42-.99-1.86-1.49-4-1.49-6.43s.5-4.58,1.49-6.43c.99-1.86,2.38-3.31,4.18-4.37,1.79-1.06,3.84-1.58,6.15-1.58s4.43.53,6.19,1.58c1.76,1.06,3.17,2.51,4.23,4.37,1.06,1.86,1.58,4,1.58,6.43s-.5,4.58-1.49,6.43Z"/>
|
||||||
<path class="cls-3" d="M458.83,315.44c-3.75-2.11-7.99-3.17-12.72-3.17s-8.88,1.07-12.63,3.22c-3.75,2.15-6.71,5.03-8.88,8.64-2.18,3.62-3.27,7.7-3.27,12.24s1.09,8.75,3.27,12.44c2.18,3.68,5.14,6.59,8.88,8.74,3.74,2.15,7.95,3.22,12.63,3.22s8.99-1.07,12.77-3.22c3.78-2.14,6.75-5.07,8.93-8.79,2.18-3.71,3.26-7.84,3.26-12.39s-1.1-8.64-3.31-12.29c-2.21-3.65-5.19-6.53-8.93-8.64ZM456.62,342.9c-.99,1.86-2.4,3.33-4.23,4.42-1.82,1.09-3.92,1.63-6.29,1.63s-4.35-.54-6.15-1.63c-1.79-1.09-3.19-2.56-4.18-4.42-.99-1.86-1.49-4-1.49-6.43s.5-4.58,1.49-6.43c.99-1.86,2.38-3.31,4.18-4.37,1.79-1.06,3.84-1.58,6.15-1.58s4.43.53,6.19,1.58c1.76,1.06,3.17,2.51,4.23,4.37,1.06,1.86,1.58,4,1.58,6.43s-.5,4.58-1.49,6.43Z"/>
|
<path class="cls-3" d="M447.74,314.44c-3.75-2.11-7.99-3.17-12.72-3.17s-8.88,1.07-12.63,3.22c-3.75,2.15-6.71,5.03-8.88,8.64-2.18,3.62-3.27,7.7-3.27,12.24s1.09,8.75,3.27,12.44c2.18,3.68,5.14,6.59,8.88,8.74,3.74,2.15,7.95,3.22,12.63,3.22s8.99-1.07,12.77-3.22c3.78-2.14,6.75-5.07,8.93-8.79,2.18-3.71,3.26-7.84,3.26-12.39s-1.1-8.64-3.31-12.29c-2.21-3.65-5.19-6.53-8.93-8.64ZM445.53,341.9c-.99,1.86-2.4,3.33-4.23,4.42-1.82,1.09-3.92,1.63-6.29,1.63s-4.35-.54-6.15-1.63c-1.79-1.09-3.19-2.56-4.18-4.42-.99-1.86-1.49-4-1.49-6.43s.5-4.58,1.49-6.43c.99-1.86,2.38-3.31,4.18-4.37,1.79-1.06,3.84-1.58,6.15-1.58s4.43.53,6.19,1.58c1.76,1.06,3.17,2.51,4.23,4.37,1.06,1.86,1.58,4,1.58,6.43s-.5,4.58-1.49,6.43Z"/>
|
||||||
<polygon class="cls-3" points="527.73 359.71 508.65 335.39 526.86 313.33 512.27 313.33 495.46 334.58 495.46 290.28 482.88 290.28 482.88 359.71 495.46 359.71 495.46 337.08 512.36 359.71 527.73 359.71"/>
|
<polygon class="cls-3" points="516.64 358.71 497.56 334.39 515.77 312.33 501.18 312.33 484.37 333.58 484.37 289.28 471.79 289.28 471.79 358.71 484.37 358.71 484.37 336.08 501.27 358.71 516.64 358.71"/>
|
||||||
</g>
|
</g>
|
||||||
<g>
|
<g>
|
||||||
<path class="cls-1" d="M278.9,101.41h36.59c21.62,0,39.14,17.52,39.14,39.14v30.15c0,21.62-17.52,39.14-39.14,39.14h-5.37l.07,34.31-36.88-34.31h-77.99"/>
|
<path class="cls-1" d="M288.72,101.41h36.59c21.62,0,39.14,17.52,39.14,39.14v30.15c0,21.62-17.52,39.14-39.14,39.14h-5.37l.07,34.31-36.88-34.31h-77.99"/>
|
||||||
<polygon class="cls-2" points="276.17 51.02 194.26 101.41 194.26 209.84 276.17 159.45 276.17 51.02"/>
|
<polygon class="cls-2" points="285.99 51.02 204.08 101.41 204.08 209.84 285.99 159.45 285.99 51.02"/>
|
||||||
</g>
|
</g>
|
||||||
</svg>
|
</svg>
|
||||||
|
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 6.1 KiB |
@@ -15,7 +15,7 @@
|
|||||||
<!-- For example: <RuntimeIdentifiers>maccatalyst-x64;maccatalyst-arm64</RuntimeIdentifiers> -->
|
<!-- For example: <RuntimeIdentifiers>maccatalyst-x64;maccatalyst-arm64</RuntimeIdentifiers> -->
|
||||||
|
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<RootNamespace>Template.Maui</RootNamespace>
|
<RootNamespace>salesbook.Maui</RootNamespace>
|
||||||
<UseMaui>true</UseMaui>
|
<UseMaui>true</UseMaui>
|
||||||
<SingleProject>true</SingleProject>
|
<SingleProject>true</SingleProject>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
<ApplicationTitle>salesbook</ApplicationTitle>
|
<ApplicationTitle>salesbook</ApplicationTitle>
|
||||||
|
|
||||||
<!-- App Identifier -->
|
<!-- App Identifier -->
|
||||||
<ApplicationId>it.integry.template.maui</ApplicationId>
|
<ApplicationId>it.integry.salesbook</ApplicationId>
|
||||||
|
|
||||||
<!-- Versions -->
|
<!-- Versions -->
|
||||||
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
|
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
|
||||||
@@ -55,7 +55,8 @@
|
|||||||
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android' AND '$(Configuration)' == 'Debug'">
|
<PropertyGroup
|
||||||
|
Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android' AND '$(Configuration)' == 'Debug'">
|
||||||
|
|
||||||
<!--these help speed up android builds-->
|
<!--these help speed up android builds-->
|
||||||
<!--
|
<!--
|
||||||
@@ -65,14 +66,16 @@
|
|||||||
-->
|
-->
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios' AND '$(Configuration)' == 'Debug'">
|
<PropertyGroup
|
||||||
|
Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios' AND '$(Configuration)' == 'Debug'">
|
||||||
<!--forces the simulator to pickup entitlements-->
|
<!--forces the simulator to pickup entitlements-->
|
||||||
<EnableCodeSigning>true</EnableCodeSigning>
|
<EnableCodeSigning>true</EnableCodeSigning>
|
||||||
<CodesignRequireProvisioningProfile>true</CodesignRequireProvisioningProfile>
|
<CodesignRequireProvisioningProfile>true</CodesignRequireProvisioningProfile>
|
||||||
<DisableCodesignVerification>true</DisableCodesignVerification>
|
<DisableCodesignVerification>true</DisableCodesignVerification>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios' OR $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">
|
<PropertyGroup
|
||||||
|
Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios' OR $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">
|
||||||
<SupportedOSPlatformVersion>14.2</SupportedOSPlatformVersion>
|
<SupportedOSPlatformVersion>14.2</SupportedOSPlatformVersion>
|
||||||
<DefineConstants>$(DefineConstants);APPLE;PLATFORM</DefineConstants>
|
<DefineConstants>$(DefineConstants);APPLE;PLATFORM</DefineConstants>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
@@ -82,7 +85,8 @@
|
|||||||
<CodesignProvision>VS: WildCard Development</CodesignProvision>
|
<CodesignProvision>VS: WildCard Development</CodesignProvision>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios' OR $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">
|
<ItemGroup
|
||||||
|
Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios' OR $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">
|
||||||
<!--
|
<!--
|
||||||
<BundleResource Include="Platforms\iOS\PrivacyInfo.xcprivacy" LogicalName="PrivacyInfo.xcprivacy" />
|
<BundleResource Include="Platforms\iOS\PrivacyInfo.xcprivacy" LogicalName="PrivacyInfo.xcprivacy" />
|
||||||
|
|
||||||
@@ -92,10 +96,17 @@
|
|||||||
-->
|
-->
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">
|
||||||
<!-- App Icon -->
|
<!-- Android App Icon -->
|
||||||
<MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" />
|
<MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" ForegroundScale="0.65"/>
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">
|
||||||
|
<!-- ios App Icon -->
|
||||||
|
<MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
<!-- Splash Screen -->
|
<!-- Splash Screen -->
|
||||||
<MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#dff2ff" BaseSize="128,128" />
|
<MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#dff2ff" BaseSize="128,128" />
|
||||||
|
|
||||||
@@ -123,7 +134,7 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\Template.Shared\Template.Shared.csproj" />
|
<ProjectReference Include="..\salesbook.Shared\salesbook.Shared.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
59
salesbook.Maui/wwwroot/index.html
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8"/>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"/>
|
||||||
|
<title>salesbook.Maui</title>
|
||||||
|
<base href="/"/>
|
||||||
|
|
||||||
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap" rel="stylesheet">
|
||||||
|
|
||||||
|
<link href="_content/salesbook.Shared/css/bootstrap/bootstrap.min.css" rel="stylesheet">
|
||||||
|
<link href="_content/salesbook.Shared/css/bootstrap/bootstrap-icons.min.css" rel="stylesheet"/>
|
||||||
|
<link href="_content/MudBlazor/MudBlazor.min.css" rel="stylesheet"/>
|
||||||
|
<link href="_content/CodeBeam.MudBlazor.Extensions/MudExtensions.min.css" rel="stylesheet"/>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="_content/salesbook.Shared/css/remixicon/remixicon.css"/>
|
||||||
|
<link rel="stylesheet" href="_content/salesbook.Shared/css/app.css"/>
|
||||||
|
<link rel="stylesheet" href="_content/salesbook.Shared/css/form.css"/>
|
||||||
|
<link rel="stylesheet" href="_content/salesbook.Shared/css/bottomSheet.css"/>
|
||||||
|
<link rel="stylesheet" href="_content/salesbook.Shared/css/default-theme.css"/>
|
||||||
|
<link rel="stylesheet" href="salesbook.Maui.styles.css"/>
|
||||||
|
<link rel="icon" type="image/png" href="favicon.png"/>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<div class="status-bar-safe-area"></div>
|
||||||
|
|
||||||
|
<div id="app">
|
||||||
|
<div class="spinner-container">
|
||||||
|
<span class="loader"></span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="blazor-error-ui">
|
||||||
|
An unhandled error has occurred.
|
||||||
|
<a href="" class="reload">Reload</a>
|
||||||
|
<a class="dismiss">🗙</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script src="_framework/blazor.webview.js" autostart="false"></script>
|
||||||
|
<script src="_content/salesbook.Shared/js/bootstrap/bootstrap.bundle.min.js"></script>
|
||||||
|
<!-- Add chart.js reference if chart components are used in your application. -->
|
||||||
|
<!--<script src="_content/salesbook.Shared/js/bootstrap/chart.umd.js" integrity="sha512-gQhCDsnnnUfaRzD8k1L5llCCV6O9HN09zClIzzeJ8OJ9MpGmIlCxm+pdCkqTwqJ4JcjbojFr79rl2F1mzcoLMQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>-->
|
||||||
|
<!-- Add chartjs-plugin-datalabels.min.js reference if chart components with data label feature is used in your application. -->
|
||||||
|
<!--<script src="_content/salesbook.Shared/js/bootstrap/chartjs-plugin-datalabels.min.js" integrity="sha512-JPcRR8yFa8mmCsfrw4TNte1ZvF1e3+1SdGMslZvmrzDYxS69J7J49vkFL8u6u8PlPJK+H3voElBtUCzaXj+6ig==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>-->
|
||||||
|
<!-- Add sortable.js reference if SortableList component is used in your application. -->
|
||||||
|
<!--<script src="_content/salesbook.Shared/js/bootstrap/Sortable.min.js"></script>-->
|
||||||
|
<script src="_content/MudBlazor/MudBlazor.min.js"></script>
|
||||||
|
<script src="_content/CodeBeam.MudBlazor.Extensions/MudExtensions.min.js"></script>
|
||||||
|
<script src="_content/salesbook.Shared/js/main.js"></script>
|
||||||
|
<script src="_content/salesbook.Shared/js/calendar.js"></script>
|
||||||
|
<script src="_content/salesbook.Shared/js/alphaScroll.js"></script>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
||||||
@@ -1,7 +1,9 @@
|
|||||||
@using System.Globalization
|
@using System.Globalization
|
||||||
@using Template.Shared.Core.Messages
|
@using CommunityToolkit.Mvvm.Messaging
|
||||||
|
@using salesbook.Shared.Core.Messages.Back
|
||||||
@inherits LayoutComponentBase
|
@inherits LayoutComponentBase
|
||||||
@inject IJSRuntime JS
|
@inject IJSRuntime JS
|
||||||
|
@inject IMessenger Messenger
|
||||||
@inject BackNavigationService BackService
|
@inject BackNavigationService BackService
|
||||||
|
|
||||||
<MudThemeProvider Theme="_currentTheme" @ref="@_mudThemeProvider" @bind-IsDarkMode="@IsDarkMode" />
|
<MudThemeProvider Theme="_currentTheme" @ref="@_mudThemeProvider" @bind-IsDarkMode="@IsDarkMode" />
|
||||||
@@ -1,4 +1,11 @@
|
|||||||
|
@using CommunityToolkit.Mvvm.Messaging
|
||||||
|
@using salesbook.Shared.Core.Dto
|
||||||
|
@using salesbook.Shared.Core.Entity
|
||||||
|
@using salesbook.Shared.Core.Messages.Activity.Copy
|
||||||
|
@using salesbook.Shared.Core.Messages.Activity.New
|
||||||
@inject IDialogService Dialog
|
@inject IDialogService Dialog
|
||||||
|
@inject IMessenger Messenger
|
||||||
|
@inject CopyActivityService CopyActivityService
|
||||||
|
|
||||||
<div class="container animated-navbar @(IsVisible ? "show-nav" : "hide-nav") @(IsVisible? PlusVisible ? "with-plus" : "without-plus" : "with-plus")">
|
<div class="container animated-navbar @(IsVisible ? "show-nav" : "hide-nav") @(IsVisible? PlusVisible ? "with-plus" : "without-plus" : "with-plus")">
|
||||||
<nav class="navbar @(IsVisible? PlusVisible ? "with-plus" : "without-plus" : "with-plus")">
|
<nav class="navbar @(IsVisible? PlusVisible ? "with-plus" : "without-plus" : "with-plus")">
|
||||||
@@ -39,7 +46,7 @@
|
|||||||
</ActivatorContent>
|
</ActivatorContent>
|
||||||
<ChildContent>
|
<ChildContent>
|
||||||
<MudMenuItem Disabled="true">Nuovo contatto</MudMenuItem>
|
<MudMenuItem Disabled="true">Nuovo contatto</MudMenuItem>
|
||||||
<MudMenuItem OnClick="() => ModalHelpers.OpenActivityForm(Dialog)">Nuova attività</MudMenuItem>
|
<MudMenuItem OnClick="CreateActivity">Nuova attività</MudMenuItem>
|
||||||
</ChildContent>
|
</ChildContent>
|
||||||
</MudMenu>
|
</MudMenu>
|
||||||
}
|
}
|
||||||
@@ -53,6 +60,8 @@
|
|||||||
|
|
||||||
protected override Task OnInitializedAsync()
|
protected override Task OnInitializedAsync()
|
||||||
{
|
{
|
||||||
|
CopyActivityService.OnCopyActivity += async dto => await CreateActivity(dto);
|
||||||
|
|
||||||
NavigationManager.LocationChanged += (_, args) =>
|
NavigationManager.LocationChanged += (_, args) =>
|
||||||
{
|
{
|
||||||
var location = args.Location.Remove(0, NavigationManager.BaseUri.Length);
|
var location = args.Location.Remove(0, NavigationManager.BaseUri.Length);
|
||||||
@@ -71,5 +80,17 @@
|
|||||||
};
|
};
|
||||||
return Task.CompletedTask;
|
return Task.CompletedTask;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private Task CreateActivity() => CreateActivity(null);
|
||||||
|
|
||||||
|
private async Task CreateActivity(ActivityDTO? activity)
|
||||||
|
{
|
||||||
|
var result = await ModalHelpers.OpenActivityForm(Dialog, activity, null);
|
||||||
|
|
||||||
|
if (result is { Canceled: false, Data: not null } && result.Data.GetType() == typeof(StbActivity))
|
||||||
|
{
|
||||||
|
Messenger.Send(new NewActivityMessage(((StbActivity)result.Data).ActivityId));
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
@using Template.Shared.Components.Layout.Spinner
|
@using salesbook.Shared.Components.Layout.Spinner
|
||||||
<MudOverlay Visible="VisibleOverlay" LightBackground="true">
|
<MudOverlay Visible="VisibleOverlay" LightBackground="true">
|
||||||
@if (SuccessAnimation)
|
@if (SuccessAnimation)
|
||||||
{
|
{
|
||||||
@@ -1,12 +1,15 @@
|
|||||||
@page "/Calendar"
|
@page "/Calendar"
|
||||||
@using Template.Shared.Core.Dto
|
@using salesbook.Shared.Core.Dto
|
||||||
@using Template.Shared.Core.Interface
|
@using salesbook.Shared.Core.Interface
|
||||||
@using Template.Shared.Components.Layout
|
@using salesbook.Shared.Components.Layout
|
||||||
@using Template.Shared.Components.SingleElements
|
@using salesbook.Shared.Components.SingleElements
|
||||||
@using Template.Shared.Components.Layout.Spinner
|
@using salesbook.Shared.Components.Layout.Spinner
|
||||||
@using Template.Shared.Components.SingleElements.BottomSheet
|
@using salesbook.Shared.Components.SingleElements.BottomSheet
|
||||||
|
@using salesbook.Shared.Core.Entity
|
||||||
|
@using salesbook.Shared.Core.Messages.Activity.New
|
||||||
@inject IManageDataService ManageData
|
@inject IManageDataService ManageData
|
||||||
@inject IJSRuntime JS
|
@inject IJSRuntime JS
|
||||||
|
@inject NewActivityService NewActivity
|
||||||
|
|
||||||
<HeaderLayout Title="@_headerTitle"
|
<HeaderLayout Title="@_headerTitle"
|
||||||
ShowFilter="true"
|
ShowFilter="true"
|
||||||
@@ -14,7 +17,7 @@
|
|||||||
OnFilterToggle="ToggleFilter"
|
OnFilterToggle="ToggleFilter"
|
||||||
OnCalendarToggle="ToggleExpanded"/>
|
OnCalendarToggle="ToggleExpanded"/>
|
||||||
|
|
||||||
<div @ref="weekSliderRef" class="container week-slider @(Expanded ? "expanded" : "") @(SliderAnimation)">
|
<div @ref="_weekSliderRef" class="container week-slider @(Expanded ? "expanded" : "") @(SliderAnimation)">
|
||||||
@if (Expanded)
|
@if (Expanded)
|
||||||
{
|
{
|
||||||
<!-- Vista mensile -->
|
<!-- Vista mensile -->
|
||||||
@@ -154,12 +157,12 @@
|
|||||||
else if (FilteredActivities is { Count: > 0 })
|
else if (FilteredActivities is { Count: > 0 })
|
||||||
{
|
{
|
||||||
<Virtualize Items="FilteredActivities" Context="activity">
|
<Virtualize Items="FilteredActivities" Context="activity">
|
||||||
<ActivityCard Activity="activity" ActivityChanged="OnActivityChanged"/>
|
<ActivityCard Activity="activity" ActivityChanged="OnActivityChanged" ActivityDeleted="OnActivityDeleted" />
|
||||||
</Virtualize>
|
</Virtualize>
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
<NoDataAvailable Text="Nessuna attività trovata" ImageSource="_content/Template.Shared/images/undraw_file-search_cbur.svg"/>
|
<NoDataAvailable Text="Nessuna attività trovata" ImageSource="_content/salesbook.Shared/images/undraw_file-search_cbur.svg"/>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -173,7 +176,7 @@
|
|||||||
private record CategoryData(string CssClass, string Title);
|
private record CategoryData(string CssClass, string Title);
|
||||||
|
|
||||||
// Cache per rendering
|
// Cache per rendering
|
||||||
private DayData[] _monthDaysData = Array.Empty<DayData>();
|
private DayData[] _monthDaysData = [];
|
||||||
private readonly DayData[] _weekDaysData = new DayData[7];
|
private readonly DayData[] _weekDaysData = new DayData[7];
|
||||||
private string _headerTitle = string.Empty;
|
private string _headerTitle = string.Empty;
|
||||||
private readonly Dictionary<DateTime, List<ActivityDTO>> _eventsCache = new();
|
private readonly Dictionary<DateTime, List<ActivityDTO>> _eventsCache = new();
|
||||||
@@ -181,10 +184,10 @@
|
|||||||
private bool _isInitialized = false;
|
private bool _isInitialized = false;
|
||||||
|
|
||||||
// Stato UI
|
// Stato UI
|
||||||
private bool Expanded { get; set; } = false;
|
private bool Expanded { get; set; }
|
||||||
private string SliderAnimation { get; set; } = string.Empty;
|
private string SliderAnimation { get; set; } = string.Empty;
|
||||||
private ElementReference weekSliderRef;
|
private ElementReference _weekSliderRef;
|
||||||
private DotNetObjectReference<Calendar>? dotNetHelper;
|
private DotNetObjectReference<Calendar>? _dotNetHelper;
|
||||||
|
|
||||||
// Stato calendario
|
// Stato calendario
|
||||||
private DateTime SelectedDate { get; set; } = DateTime.Today;
|
private DateTime SelectedDate { get; set; } = DateTime.Today;
|
||||||
@@ -217,6 +220,8 @@
|
|||||||
protected override void OnInitialized()
|
protected override void OnInitialized()
|
||||||
{
|
{
|
||||||
PrepareRenderingData();
|
PrepareRenderingData();
|
||||||
|
|
||||||
|
NewActivity.OnActivityCreated += async activityId => await OnActivityCreated(activityId);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override async Task OnAfterRenderAsync(bool firstRender)
|
protected override async Task OnAfterRenderAsync(bool firstRender)
|
||||||
@@ -225,8 +230,8 @@
|
|||||||
{
|
{
|
||||||
Filter.User = new HashSet<string> { UserSession.User.Username };
|
Filter.User = new HashSet<string> { UserSession.User.Username };
|
||||||
|
|
||||||
dotNetHelper = DotNetObjectReference.Create(this);
|
_dotNetHelper = DotNetObjectReference.Create(this);
|
||||||
await JS.InvokeVoidAsync("calendarSwipe.register", weekSliderRef, dotNetHelper);
|
await JS.InvokeVoidAsync("calendarSwipe.register", _weekSliderRef, _dotNetHelper);
|
||||||
_internalMonth = new DateTime(SelectedDate.Year, SelectedDate.Month, 1);
|
_internalMonth = new DateTime(SelectedDate.Year, SelectedDate.Month, 1);
|
||||||
await LoadMonthData();
|
await LoadMonthData();
|
||||||
|
|
||||||
@@ -526,7 +531,53 @@
|
|||||||
|
|
||||||
public void Dispose()
|
public void Dispose()
|
||||||
{
|
{
|
||||||
dotNetHelper?.Dispose();
|
_dotNetHelper?.Dispose();
|
||||||
|
}
|
||||||
|
|
||||||
|
private async Task OnActivityDeleted(ActivityDTO activity)
|
||||||
|
{
|
||||||
|
IsLoading = true;
|
||||||
|
|
||||||
|
await ManageData.DeleteActivity(activity);
|
||||||
|
|
||||||
|
var indexActivity = MonthActivities?.FindIndex(x => x.ActivityId.Equals(activity.ActivityId));
|
||||||
|
|
||||||
|
if (indexActivity != null)
|
||||||
|
{
|
||||||
|
MonthActivities?.RemoveAt(indexActivity.Value);
|
||||||
|
PrepareRenderingData();
|
||||||
|
|
||||||
|
ApplyFilter();
|
||||||
|
}
|
||||||
|
|
||||||
|
IsLoading = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
private async Task OnActivityCreated(string activityId)
|
||||||
|
{
|
||||||
|
IsLoading = true;
|
||||||
|
|
||||||
|
var activity = (await ManageData.GetActivity(x => x.ActivityId.Equals(activityId))).LastOrDefault();
|
||||||
|
|
||||||
|
if (activity == null)
|
||||||
|
{
|
||||||
|
IsLoading = false;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var date = activity.EffectiveDate ?? activity.EstimatedDate;
|
||||||
|
|
||||||
|
if (CurrentMonth.Month != date!.Value.Month)
|
||||||
|
{
|
||||||
|
IsLoading = false;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
MonthActivities.Add(activity);
|
||||||
|
PrepareRenderingData();
|
||||||
|
IsLoading = false;
|
||||||
|
|
||||||
|
ApplyFilter();
|
||||||
}
|
}
|
||||||
|
|
||||||
private async Task OnActivityChanged(string activityId)
|
private async Task OnActivityChanged(string activityId)
|
||||||
@@ -538,10 +589,8 @@
|
|||||||
{
|
{
|
||||||
MonthActivities![indexActivity.Value] = newActivity[0];
|
MonthActivities![indexActivity.Value] = newActivity[0];
|
||||||
PrepareRenderingData(); // Ricalcola i dati di rendering
|
PrepareRenderingData(); // Ricalcola i dati di rendering
|
||||||
}
|
|
||||||
|
|
||||||
ApplyFilter();
|
ApplyFilter();
|
||||||
StateHasChanged();
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ToggleFilter()
|
private void ToggleFilter()
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
@page "/"
|
@page "/"
|
||||||
@using Template.Shared.Core.Interface
|
@using salesbook.Shared.Core.Interface
|
||||||
@attribute [Authorize]
|
@attribute [Authorize]
|
||||||
@inject IFormFactor FormFactor
|
@inject IFormFactor FormFactor
|
||||||
@inject INetworkService NetworkService
|
@inject INetworkService NetworkService
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
@page "/login"
|
@page "/login"
|
||||||
@using Template.Shared.Components.Layout.Spinner
|
@using salesbook.Shared.Components.Layout.Spinner
|
||||||
@using Template.Shared.Core.Services
|
@using salesbook.Shared.Core.Services
|
||||||
@inject IUserAccountService UserAccountService
|
@inject IUserAccountService UserAccountService
|
||||||
@inject AppAuthenticationStateProvider AuthenticationStateProvider
|
@inject AppAuthenticationStateProvider AuthenticationStateProvider
|
||||||
|
|
||||||
@@ -12,7 +12,7 @@ else
|
|||||||
{
|
{
|
||||||
<div class="login-page">
|
<div class="login-page">
|
||||||
<div class="container container-top-logo">
|
<div class="container container-top-logo">
|
||||||
<img src="_content/Template.Shared/images/salesbook-marchio_vers.positiva.svg" class="logo" alt="sales book">
|
<img src="_content/salesbook.Shared/images/salesbook-marchio_vers.positiva.svg" class="logo" alt="sales book">
|
||||||
</div>
|
</div>
|
||||||
<div class="container container-login">
|
<div class="container container-login">
|
||||||
<div class="login-form-container">
|
<div class="login-form-container">
|
||||||
@@ -35,7 +35,7 @@ else
|
|||||||
|
|
||||||
<div class="my-4 login-footer">
|
<div class="my-4 login-footer">
|
||||||
<span>Powered by</span>
|
<span>Powered by</span>
|
||||||
<img src="_content/Template.Shared/images/logoIntegry.svg" class="img-fluid" alt="Integry">
|
<img src="_content/salesbook.Shared/images/logoIntegry.svg" class="img-fluid" alt="Integry">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
@page "/Notifications"
|
@page "/Notifications"
|
||||||
@attribute [Authorize]
|
@attribute [Authorize]
|
||||||
@using Template.Shared.Components.Layout
|
@using salesbook.Shared.Components.Layout
|
||||||
@using Template.Shared.Components.SingleElements
|
@using salesbook.Shared.Components.SingleElements
|
||||||
|
|
||||||
<HeaderLayout Title="Notifiche" />
|
<HeaderLayout Title="Notifiche" />
|
||||||
|
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
@page "/PersonalInfo"
|
@page "/PersonalInfo"
|
||||||
@attribute [Authorize]
|
@attribute [Authorize]
|
||||||
@using Template.Shared.Components.Layout
|
@using salesbook.Shared.Components.Layout
|
||||||
@using Template.Shared.Core.Authorization.Enum
|
@using salesbook.Shared.Core.Authorization.Enum
|
||||||
@using Template.Shared.Core.Interface
|
@using salesbook.Shared.Core.Interface
|
||||||
@using Template.Shared.Core.Services
|
@using salesbook.Shared.Core.Services
|
||||||
@inject AppAuthenticationStateProvider AuthenticationStateProvider
|
@inject AppAuthenticationStateProvider AuthenticationStateProvider
|
||||||
@inject INetworkService NetworkService
|
@inject INetworkService NetworkService
|
||||||
@inject IFormFactor FormFactor
|
@inject IFormFactor FormFactor
|
||||||
@@ -81,51 +81,3 @@
|
|||||||
.status.online { color: var(--mud-palette-success); }
|
.status.online { color: var(--mud-palette-success); }
|
||||||
|
|
||||||
.status.offline { color: var(--mud-palette-error); }
|
.status.offline { color: var(--mud-palette-error); }
|
||||||
|
|
||||||
.container-button {
|
|
||||||
width: 100%;
|
|
||||||
box-shadow: var(--custom-box-shadow);
|
|
||||||
padding: .5rem 0;
|
|
||||||
border-radius: 12px;
|
|
||||||
margin-bottom: 2rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.container-button .divider {
|
|
||||||
margin: .5rem 0 .5rem 3rem;
|
|
||||||
width: unset;
|
|
||||||
}
|
|
||||||
|
|
||||||
.container-button ::deep .button-settings { border: none !important; }
|
|
||||||
|
|
||||||
.container-button ::deep .button-settings .mud-icon-root {
|
|
||||||
border-radius: 6px;
|
|
||||||
padding: 2px;
|
|
||||||
min-width: 25px;
|
|
||||||
min-height: 25px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.container-button ::deep .button-settings.green-icon .mud-icon-root {
|
|
||||||
border: 1px solid var(--mud-palette-success);
|
|
||||||
background: hsl(from var(--mud-palette-success-lighten) h s 95%);
|
|
||||||
color: var(--mud-palette-success-darken);
|
|
||||||
}
|
|
||||||
|
|
||||||
.container-button ::deep .button-settings.red-icon .mud-icon-root {
|
|
||||||
border: 1px solid var(--mud-palette-error);
|
|
||||||
background: hsl(from var(--mud-palette-error-lighten) h s 95%);
|
|
||||||
color: var(--mud-palette-error-darken);
|
|
||||||
}
|
|
||||||
|
|
||||||
.container-button ::deep .button-settings .mud-button-label {
|
|
||||||
justify-content: flex-start;
|
|
||||||
text-transform: capitalize;
|
|
||||||
font-size: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.container-button ::deep .button-settings.exit { padding: 0; }
|
|
||||||
|
|
||||||
.container-button ::deep .button-settings.exit .mud-button-label {
|
|
||||||
justify-content: center;
|
|
||||||
font-size: 1.1rem;
|
|
||||||
line-height: normal;
|
|
||||||
}
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
@page "/settings"
|
@page "/settings"
|
||||||
@page "/settings/{BackTo}"
|
@page "/settings/{BackTo}"
|
||||||
@using Template.Shared.Components.Layout
|
@using salesbook.Shared.Components.Layout
|
||||||
|
|
||||||
<HeaderLayout BackTo="@BackTo" Back="true" Title="Impostazioni"/>
|
<HeaderLayout BackTo="@BackTo" Back="true" Title="Impostazioni"/>
|
||||||
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
@page "/sync"
|
@page "/sync"
|
||||||
@page "/sync/{DateFilter}"
|
@page "/sync/{DateFilter}"
|
||||||
@using Template.Shared.Components.Layout.Spinner
|
@using salesbook.Shared.Components.Layout.Spinner
|
||||||
@using Template.Shared.Core.Interface
|
@using salesbook.Shared.Core.Interface
|
||||||
@inject ISyncDbService syncDb
|
@inject ISyncDbService syncDb
|
||||||
@inject IManageDataService manageData
|
@inject IManageDataService manageData
|
||||||
|
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
@page "/User/{CodAnag}"
|
@page "/User/{CodAnag}"
|
||||||
@attribute [Authorize]
|
@attribute [Authorize]
|
||||||
@using Template.Shared.Components.Layout
|
@using salesbook.Shared.Components.Layout
|
||||||
@using Template.Shared.Core.Entity
|
@using salesbook.Shared.Core.Entity
|
||||||
@using Template.Shared.Core.Interface
|
@using salesbook.Shared.Core.Interface
|
||||||
@using Template.Shared.Components.Layout.Spinner
|
@using salesbook.Shared.Components.Layout.Spinner
|
||||||
@inject IManageDataService ManageData
|
@inject IManageDataService ManageData
|
||||||
|
|
||||||
<HeaderLayout BackTo="Indietro" Back="true" BackOnTop="true" Title="" ShowProfile="false"/>
|
<HeaderLayout BackTo="Indietro" Back="true" BackOnTop="true" Title="" ShowProfile="false"/>
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
@page "/Users"
|
@page "/Users"
|
||||||
@attribute [Authorize]
|
@attribute [Authorize]
|
||||||
@using Template.Shared.Components.Layout
|
@using salesbook.Shared.Components.Layout
|
||||||
@using Template.Shared.Core.Entity
|
@using salesbook.Shared.Core.Entity
|
||||||
@using Template.Shared.Core.Interface
|
@using salesbook.Shared.Core.Interface
|
||||||
@inject IManageDataService ManageData
|
@inject IManageDataService ManageData
|
||||||
|
|
||||||
<HeaderLayout Title="Contatti"/>
|
<HeaderLayout Title="Contatti"/>
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
@using Template.Shared.Components.SingleElements
|
@using salesbook.Shared.Components.SingleElements
|
||||||
@inject NavigationManager NavigationManager
|
@inject NavigationManager NavigationManager
|
||||||
|
|
||||||
<ErrorBoundary @ref="ErrorBoundary">
|
<ErrorBoundary @ref="ErrorBoundary">
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
@using Template.Shared.Core.Dto
|
@using salesbook.Shared.Core.Dto
|
||||||
@using Template.Shared.Core.Entity
|
@using salesbook.Shared.Core.Entity
|
||||||
@using Template.Shared.Core.Helpers.Enum
|
@using salesbook.Shared.Core.Helpers.Enum
|
||||||
@using Template.Shared.Core.Interface
|
@using salesbook.Shared.Core.Interface
|
||||||
@inject IManageDataService manageData
|
@inject IManageDataService manageData
|
||||||
|
|
||||||
<div class="bottom-sheet-backdrop @(IsSheetVisible ? "show" : "")" @onclick="CloseBottomSheet"></div>
|
<div class="bottom-sheet-backdrop @(IsSheetVisible ? "show" : "")" @onclick="CloseBottomSheet"></div>
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
@using Template.Shared.Core.Dto
|
@using salesbook.Shared.Core.Dto
|
||||||
@using Template.Shared.Core.Entity
|
@using salesbook.Shared.Core.Entity
|
||||||
@using Template.Shared.Core.Helpers.Enum
|
@using salesbook.Shared.Core.Helpers.Enum
|
||||||
@using Template.Shared.Core.Interface
|
@using salesbook.Shared.Core.Interface
|
||||||
@inject IManageDataService manageData
|
@inject IManageDataService manageData
|
||||||
|
|
||||||
<div class="bottom-sheet-backdrop @(IsSheetVisible ? "show" : "")" @onclick="CloseBottomSheet"></div>
|
<div class="bottom-sheet-backdrop @(IsSheetVisible ? "show" : "")" @onclick="CloseBottomSheet"></div>
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
@using Template.Shared.Core.Dto
|
@using salesbook.Shared.Core.Dto
|
||||||
@using Template.Shared.Core.Entity
|
@using salesbook.Shared.Core.Entity
|
||||||
@using Template.Shared.Core.Interface
|
@using salesbook.Shared.Core.Interface
|
||||||
@inject IManageDataService ManageData
|
@inject IManageDataService ManageData
|
||||||
|
|
||||||
<div class="bottom-sheet-backdrop @(IsSheetVisible ? "show" : "")" @onclick="CloseBottomSheet"></div>
|
<div class="bottom-sheet-backdrop @(IsSheetVisible ? "show" : "")" @onclick="CloseBottomSheet"></div>
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
@using Template.Shared.Core.Dto
|
@using salesbook.Shared.Core.Dto
|
||||||
@using Template.Shared.Core.Entity
|
@using salesbook.Shared.Core.Entity
|
||||||
@using Template.Shared.Core.Helpers.Enum
|
@using salesbook.Shared.Core.Helpers.Enum
|
||||||
@inject IDialogService Dialog
|
@inject IDialogService Dialog
|
||||||
|
|
||||||
<div class="activity-card @Activity.Category.ConvertToHumanReadable()" @onclick="OpenActivity">
|
<div class="activity-card @Activity.Category.ConvertToHumanReadable()" @onclick="OpenActivity">
|
||||||
@@ -65,6 +65,7 @@
|
|||||||
@code {
|
@code {
|
||||||
[Parameter] public ActivityDTO Activity { get; set; } = new();
|
[Parameter] public ActivityDTO Activity { get; set; } = new();
|
||||||
[Parameter] public EventCallback<string> ActivityChanged { get; set; }
|
[Parameter] public EventCallback<string> ActivityChanged { get; set; }
|
||||||
|
[Parameter] public EventCallback<ActivityDTO> ActivityDeleted { get; set; }
|
||||||
|
|
||||||
private TimeSpan? Durata { get; set; }
|
private TimeSpan? Durata { get; set; }
|
||||||
|
|
||||||
@@ -80,11 +81,16 @@
|
|||||||
|
|
||||||
private async Task OpenActivity()
|
private async Task OpenActivity()
|
||||||
{
|
{
|
||||||
var result = await ModalHelpers.OpenActivityForm(Dialog, Activity.ActivityId);
|
var result = await ModalHelpers.OpenActivityForm(Dialog, null, Activity.ActivityId);
|
||||||
|
|
||||||
if (result is { Canceled: false, Data: not null } && result.Data.GetType() == typeof(StbActivity))
|
switch (result)
|
||||||
{
|
{
|
||||||
|
case { Canceled: false, Data: not null } when result.Data.GetType() == typeof(StbActivity):
|
||||||
await ActivityChanged.InvokeAsync(((StbActivity)result.Data).ActivityId);
|
await ActivityChanged.InvokeAsync(((StbActivity)result.Data).ActivityId);
|
||||||
|
break;
|
||||||
|
case { Canceled: false, Data: not null } when result.Data.GetType() == typeof(ActivityDTO):
|
||||||
|
await ActivityDeleted.InvokeAsync((ActivityDTO)result.Data);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
@using Template.Shared.Core.Entity
|
@using salesbook.Shared.Core.Entity
|
||||||
|
|
||||||
<div class="contact-card">
|
<div class="contact-card">
|
||||||
<div class="contact-left-section">
|
<div class="contact-left-section">
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
@using Template.Shared.Core.Entity
|
@using salesbook.Shared.Core.Entity
|
||||||
@using Template.Shared.Core.Interface
|
@using salesbook.Shared.Core.Interface
|
||||||
@inject IManageDataService ManageData
|
@inject IManageDataService ManageData
|
||||||
|
|
||||||
<div class="user-card-card">
|
<div class="user-card-card">
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
@using Template.Shared.Core.Services
|
@using salesbook.Shared.Core.Services
|
||||||
@inject AppAuthenticationStateProvider AuthenticationStateProvider
|
@inject AppAuthenticationStateProvider AuthenticationStateProvider
|
||||||
|
|
||||||
<div class="container container-modal">
|
<div class="container container-modal">
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
.c-modal {
|
.c-modal {
|
||||||
border-radius: 16px;
|
border-radius: 16px;
|
||||||
box-shadow: var(--custom-box-shadow);
|
box-shadow: var(--exception-box-shadow);
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1,13 +1,16 @@
|
|||||||
@using System.Globalization
|
@using System.Globalization
|
||||||
@using Template.Shared.Core.Dto
|
@using CommunityToolkit.Mvvm.Messaging
|
||||||
@using Template.Shared.Components.Layout
|
@using salesbook.Shared.Core.Dto
|
||||||
@using Template.Shared.Core.Entity
|
@using salesbook.Shared.Components.Layout
|
||||||
@using Template.Shared.Core.Interface
|
@using salesbook.Shared.Core.Entity
|
||||||
@using Template.Shared.Components.Layout.Overlay
|
@using salesbook.Shared.Core.Interface
|
||||||
@using Template.Shared.Components.SingleElements.BottomSheet
|
@using salesbook.Shared.Components.Layout.Overlay
|
||||||
|
@using salesbook.Shared.Components.SingleElements.BottomSheet
|
||||||
|
@using salesbook.Shared.Core.Messages.Activity.Copy
|
||||||
@inject IManageDataService ManageData
|
@inject IManageDataService ManageData
|
||||||
@inject INetworkService NetworkService
|
@inject INetworkService NetworkService
|
||||||
@inject IIntegryApiService IntegryApiService
|
@inject IIntegryApiService IntegryApiService
|
||||||
|
@inject IMessenger Messenger
|
||||||
|
|
||||||
<MudDialog Class="customDialog-form">
|
<MudDialog Class="customDialog-form">
|
||||||
<DialogContent>
|
<DialogContent>
|
||||||
@@ -30,12 +33,19 @@
|
|||||||
<div class="form-container">
|
<div class="form-container">
|
||||||
<span class="disable-full-width">Commessa</span>
|
<span class="disable-full-width">Commessa</span>
|
||||||
|
|
||||||
|
@if (Commesse.IsNullOrEmpty())
|
||||||
|
{
|
||||||
|
<span class="warning-text">Nessuna commessa presente</span>
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
<MudSelectExtended FullWidth="true" ReadOnly="@(IsView || Commesse.IsNullOrEmpty())" T="string?" Variant="Variant.Text" @bind-Value="ActivityModel.CodJcom" @bind-Value:after="OnCommessaChanged" Class="customIcon-select" AdornmentIcon="@Icons.Material.Filled.Code">
|
<MudSelectExtended FullWidth="true" ReadOnly="@(IsView || Commesse.IsNullOrEmpty())" T="string?" Variant="Variant.Text" @bind-Value="ActivityModel.CodJcom" @bind-Value:after="OnCommessaChanged" Class="customIcon-select" AdornmentIcon="@Icons.Material.Filled.Code">
|
||||||
@foreach (var com in Commesse)
|
@foreach (var com in Commesse)
|
||||||
{
|
{
|
||||||
<MudSelectItemExtended Class="custom-item-select" Value="@com.CodJcom">@($"{com.CodJcom} - {com.Descrizione}")</MudSelectItemExtended>
|
<MudSelectItemExtended Class="custom-item-select" Value="@com.CodJcom">@($"{com.CodJcom} - {com.Descrizione}")</MudSelectItemExtended>
|
||||||
}
|
}
|
||||||
</MudSelectExtended>
|
</MudSelectExtended>
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -105,7 +115,44 @@
|
|||||||
<div class="input-card">
|
<div class="input-card">
|
||||||
<MudTextField ReadOnly="IsView" T="string?" Placeholder="Note" Variant="Variant.Text" Lines="4" @bind-Value="ActivityModel.Note" @bind-Value:after="OnAfterChangeValue" DebounceInterval="500" OnDebounceIntervalElapsed="OnAfterChangeValue"/>
|
<MudTextField ReadOnly="IsView" T="string?" Placeholder="Note" Variant="Variant.Text" Lines="4" @bind-Value="ActivityModel.Note" @bind-Value:after="OnAfterChangeValue" DebounceInterval="500" OnDebounceIntervalElapsed="OnAfterChangeValue"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@if (!IsNew)
|
||||||
|
{
|
||||||
|
<div class="container-button">
|
||||||
|
<MudButton Class="button-settings gray-icon"
|
||||||
|
FullWidth="true"
|
||||||
|
StartIcon="@Icons.Material.Filled.ContentCopy"
|
||||||
|
Size="Size.Medium"
|
||||||
|
OnClick="Duplica"
|
||||||
|
Variant="Variant.Outlined">
|
||||||
|
Duplica
|
||||||
|
</MudButton>
|
||||||
|
|
||||||
|
<div class="divider"></div>
|
||||||
|
|
||||||
|
<MudButton Class="button-settings red-icon"
|
||||||
|
FullWidth="true"
|
||||||
|
StartIcon="@Icons.Material.Outlined.Delete"
|
||||||
|
Size="Size.Medium"
|
||||||
|
OnClick="DeleteActivity"
|
||||||
|
Variant="Variant.Outlined">
|
||||||
|
Elimina
|
||||||
|
</MudButton>
|
||||||
</div>
|
</div>
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<MudMessageBox @ref="ConfirmDelete" Class="c-messageBox" Title="Attenzione!" CancelText="Annulla">
|
||||||
|
<MessageContent>
|
||||||
|
Confermi la cancellazione dell'attività corrente?
|
||||||
|
</MessageContent>
|
||||||
|
<YesButton>
|
||||||
|
<MudButton Size="Size.Small" Variant="Variant.Filled" Color="Color.Error"
|
||||||
|
StartIcon="@Icons.Material.Filled.DeleteForever">
|
||||||
|
Cancella
|
||||||
|
</MudButton>
|
||||||
|
</YesButton>
|
||||||
|
</MudMessageBox>
|
||||||
</DialogContent>
|
</DialogContent>
|
||||||
</MudDialog>
|
</MudDialog>
|
||||||
|
|
||||||
@@ -117,6 +164,7 @@
|
|||||||
[CascadingParameter] private IMudDialogInstance MudDialog { get; set; }
|
[CascadingParameter] private IMudDialogInstance MudDialog { get; set; }
|
||||||
|
|
||||||
[Parameter] public string? Id { get; set; }
|
[Parameter] public string? Id { get; set; }
|
||||||
|
[Parameter] public ActivityDTO? ActivityCopied { get; set; }
|
||||||
|
|
||||||
private ActivityDTO OriginalModel { get; set; } = new();
|
private ActivityDTO OriginalModel { get; set; } = new();
|
||||||
private ActivityDTO ActivityModel { get; set; } = new();
|
private ActivityDTO ActivityModel { get; set; } = new();
|
||||||
@@ -139,6 +187,8 @@
|
|||||||
|
|
||||||
private bool OpenEsito { get; set; } = false;
|
private bool OpenEsito { get; set; } = false;
|
||||||
|
|
||||||
|
private MudMessageBox ConfirmDelete { get; set; }
|
||||||
|
|
||||||
protected override async Task OnInitializedAsync()
|
protected override async Task OnInitializedAsync()
|
||||||
{
|
{
|
||||||
_ = LoadData();
|
_ = LoadData();
|
||||||
@@ -148,6 +198,11 @@
|
|||||||
if (!Id.IsNullOrEmpty())
|
if (!Id.IsNullOrEmpty())
|
||||||
ActivityModel = (await ManageData.GetActivity(x => x.ActivityId.Equals(Id))).Last();
|
ActivityModel = (await ManageData.GetActivity(x => x.ActivityId.Equals(Id))).Last();
|
||||||
|
|
||||||
|
if (ActivityCopied != null)
|
||||||
|
{
|
||||||
|
ActivityModel = ActivityCopied.Clone();
|
||||||
|
}
|
||||||
|
|
||||||
if (IsNew)
|
if (IsNew)
|
||||||
{
|
{
|
||||||
ActivityModel.EstimatedTime = DateTime.Today.Add(TimeSpan.FromHours(DateTime.Now.Hour));
|
ActivityModel.EstimatedTime = DateTime.Today.Add(TimeSpan.FromHours(DateTime.Now.Hour));
|
||||||
@@ -200,12 +255,8 @@
|
|||||||
Clienti = await ManageData.GetTable<AnagClie>(x => x.FlagStato.Equals("A"));
|
Clienti = await ManageData.GetTable<AnagClie>(x => x.FlagStato.Equals("A"));
|
||||||
Pros = await ManageData.GetTable<PtbPros>();
|
Pros = await ManageData.GetTable<PtbPros>();
|
||||||
ActivityType = await ManageData.GetTable<StbActivityType>(x => x.FlagTipologia.Equals("A"));
|
ActivityType = await ManageData.GetTable<StbActivityType>(x => x.FlagTipologia.Equals("A"));
|
||||||
|
|
||||||
if (IsNew)
|
|
||||||
{
|
|
||||||
await LoadCommesse();
|
await LoadCommesse();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
private async Task LoadCommesse() =>
|
private async Task LoadCommesse() =>
|
||||||
Commesse = await ManageData.GetTable<JtbComt>(x => x.CodAnag != null && x.CodAnag.Equals(ActivityModel.CodAnag));
|
Commesse = await ManageData.GetTable<JtbComt>(x => x.CodAnag != null && x.CodAnag.Equals(ActivityModel.CodAnag));
|
||||||
@@ -218,11 +269,11 @@
|
|||||||
var listToReturn = new List<string>();
|
var listToReturn = new List<string>();
|
||||||
|
|
||||||
listToReturn.AddRange(
|
listToReturn.AddRange(
|
||||||
Clienti.Where(x => x.RagSoc.Contains(value, StringComparison.OrdinalIgnoreCase)).Select(x => x.RagSoc)
|
Clienti.Where(x => x.RagSoc.Contains(value, StringComparison.OrdinalIgnoreCase)).Select(x => $"{x.CodAnag} - {x.RagSoc}")
|
||||||
);
|
);
|
||||||
|
|
||||||
listToReturn.AddRange(
|
listToReturn.AddRange(
|
||||||
Pros.Where(x => x.RagSoc.Contains(value, StringComparison.OrdinalIgnoreCase)).Select(x => x.RagSoc)
|
Pros.Where(x => x.RagSoc.Contains(value, StringComparison.OrdinalIgnoreCase)).Select(x => $"{x.CodPpro} - {x.RagSoc}")
|
||||||
);
|
);
|
||||||
|
|
||||||
return listToReturn;
|
return listToReturn;
|
||||||
@@ -231,6 +282,7 @@
|
|||||||
private async Task OnClienteChanged()
|
private async Task OnClienteChanged()
|
||||||
{
|
{
|
||||||
string? codAnag = null;
|
string? codAnag = null;
|
||||||
|
ActivityModel.CodJcom = null;
|
||||||
|
|
||||||
var cliente = Clienti.LastOrDefault(x => ActivityModel.Cliente != null && x.RagSoc.Contains(ActivityModel.Cliente, StringComparison.OrdinalIgnoreCase));
|
var cliente = Clienti.LastOrDefault(x => ActivityModel.Cliente != null && x.RagSoc.Contains(ActivityModel.Cliente, StringComparison.OrdinalIgnoreCase));
|
||||||
if (cliente is null)
|
if (cliente is null)
|
||||||
@@ -278,4 +330,42 @@
|
|||||||
StateHasChanged();
|
StateHasChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private async Task DeleteActivity()
|
||||||
|
{
|
||||||
|
var result = await ConfirmDelete.ShowAsync();
|
||||||
|
|
||||||
|
if (result is true)
|
||||||
|
{
|
||||||
|
VisibleOverlay = true;
|
||||||
|
StateHasChanged();
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
await IntegryApiService.DeleteActivity(ActivityModel.ActivityId);
|
||||||
|
ActivityModel.Deleted = true;
|
||||||
|
|
||||||
|
SuccessAnimation = true;
|
||||||
|
StateHasChanged();
|
||||||
|
|
||||||
|
await Task.Delay(1250);
|
||||||
|
|
||||||
|
MudDialog.Close(ActivityModel);
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
VisibleOverlay = false;
|
||||||
|
StateHasChanged();
|
||||||
|
Snackbar.Add("Impossibile cancellare l'attività", Severity.Error);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Duplica()
|
||||||
|
{
|
||||||
|
var activityCopy = ActivityModel.Clone();
|
||||||
|
|
||||||
|
MudDialog.Cancel();
|
||||||
|
Messenger.Send(new CopyActivityMessage(activityCopy));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
.container-button {
|
||||||
|
background: var(--mud-palette-background-gray) !important;
|
||||||
|
box-shadow: unset;
|
||||||
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace Template.Shared.Core.Authorization.Enum;
|
namespace salesbook.Shared.Core.Authorization.Enum;
|
||||||
|
|
||||||
public enum KeyGroupEnum
|
public enum KeyGroupEnum
|
||||||
{
|
{
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
using Template.Shared.Core.Entity;
|
using salesbook.Shared.Core.Entity;
|
||||||
using Template.Shared.Core.Helpers.Enum;
|
using salesbook.Shared.Core.Helpers.Enum;
|
||||||
|
|
||||||
namespace Template.Shared.Core.Dto;
|
namespace salesbook.Shared.Core.Dto;
|
||||||
|
|
||||||
public class ActivityDTO : StbActivity
|
public class ActivityDTO : StbActivity
|
||||||
{
|
{
|
||||||
@@ -10,6 +10,8 @@ public class ActivityDTO : StbActivity
|
|||||||
public ActivityCategoryEnum Category { get; set; }
|
public ActivityCategoryEnum Category { get; set; }
|
||||||
public bool Complete { get; set; }
|
public bool Complete { get; set; }
|
||||||
|
|
||||||
|
public bool Deleted { get; set; }
|
||||||
|
|
||||||
public ActivityDTO Clone()
|
public ActivityDTO Clone()
|
||||||
{
|
{
|
||||||
return (ActivityDTO)MemberwiseClone();
|
return (ActivityDTO)MemberwiseClone();
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
using Template.Shared.Core.Helpers;
|
using salesbook.Shared.Core.Helpers;
|
||||||
using Template.Shared.Core.Helpers.Enum;
|
using salesbook.Shared.Core.Helpers.Enum;
|
||||||
|
|
||||||
namespace Template.Shared.Core.Dto;
|
namespace salesbook.Shared.Core.Dto;
|
||||||
|
|
||||||
public class FilterActivityDTO
|
public class FilterActivityDTO
|
||||||
{
|
{
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
using Template.Shared.Core.Entity;
|
using salesbook.Shared.Core.Entity;
|
||||||
|
|
||||||
namespace Template.Shared.Core.Dto;
|
namespace salesbook.Shared.Core.Dto;
|
||||||
|
|
||||||
public class SettingsResponseDTO
|
public class SettingsResponseDTO
|
||||||
{
|
{
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
using Template.Shared.Core.Entity;
|
using salesbook.Shared.Core.Entity;
|
||||||
|
|
||||||
namespace Template.Shared.Core.Dto;
|
namespace salesbook.Shared.Core.Dto;
|
||||||
|
|
||||||
public class TaskSyncResponseDTO
|
public class TaskSyncResponseDTO
|
||||||
{
|
{
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
using SQLite;
|
using SQLite;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace Template.Shared.Core.Entity;
|
namespace salesbook.Shared.Core.Entity;
|
||||||
|
|
||||||
[Table("anag_clie")]
|
[Table("anag_clie")]
|
||||||
public class AnagClie
|
public class AnagClie
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
using SQLite;
|
using SQLite;
|
||||||
|
|
||||||
namespace Template.Shared.Core.Entity;
|
namespace salesbook.Shared.Core.Entity;
|
||||||
|
|
||||||
[Table("jtb_comt")]
|
[Table("jtb_comt")]
|
||||||
public class JtbComt
|
public class JtbComt
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
using SQLite;
|
using SQLite;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace Template.Shared.Core.Entity;
|
namespace salesbook.Shared.Core.Entity;
|
||||||
|
|
||||||
[Table("ptb_pros")]
|
[Table("ptb_pros")]
|
||||||
public class PtbPros
|
public class PtbPros
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
using SQLite;
|
using SQLite;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace Template.Shared.Core.Entity;
|
namespace salesbook.Shared.Core.Entity;
|
||||||
|
|
||||||
[Table("ptb_pros_rif")]
|
[Table("ptb_pros_rif")]
|
||||||
public class PtbProsRif
|
public class PtbProsRif
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
using SQLite;
|
using SQLite;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace Template.Shared.Core.Entity;
|
namespace salesbook.Shared.Core.Entity;
|
||||||
|
|
||||||
[Table("stb_activity")]
|
[Table("stb_activity")]
|
||||||
public class StbActivity
|
public class StbActivity
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
using SQLite;
|
using SQLite;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace Template.Shared.Core.Entity;
|
namespace salesbook.Shared.Core.Entity;
|
||||||
|
|
||||||
[Table("stb_activity_result")]
|
[Table("stb_activity_result")]
|
||||||
public class StbActivityResult
|
public class StbActivityResult
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
using SQLite;
|
using SQLite;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace Template.Shared.Core.Entity;
|
namespace salesbook.Shared.Core.Entity;
|
||||||
|
|
||||||
[Table("stb_activity_type")]
|
[Table("stb_activity_type")]
|
||||||
public class StbActivityType
|
public class StbActivityType
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
using SQLite;
|
using SQLite;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace Template.Shared.Core.Entity;
|
namespace salesbook.Shared.Core.Entity;
|
||||||
|
|
||||||
[Table("stb_user")]
|
[Table("stb_user")]
|
||||||
public class StbUser
|
public class StbUser
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
using SQLite;
|
using SQLite;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace Template.Shared.Core.Entity;
|
namespace salesbook.Shared.Core.Entity;
|
||||||
|
|
||||||
[Table("vtb_clie_pers_rif")]
|
[Table("vtb_clie_pers_rif")]
|
||||||
public class VtbCliePersRif
|
public class VtbCliePersRif
|
||||||