From 9f95bb23e699b9a4fd89017f69df8d0b980eac90 Mon Sep 17 00:00:00 2001 From: MarcoE Date: Fri, 3 Oct 2025 16:32:16 +0200 Subject: [PATCH 1/5] Fix vari --- .../Core/Services/ManageDataService.cs | 27 ++++++++++----- salesbook.Shared/Components/Pages/User.razor | 2 +- .../SingleElements/Modal/ActivityForm.razor | 24 ++++++++++++-- .../SingleElements/Modal/AddAttached.razor | 33 ++++++++++--------- salesbook.Shared/Core/Entity/PtbProsRif.cs | 2 +- salesbook.Shared/Core/Entity/StbActivity.cs | 3 ++ .../IntegryApi/IIntegryApiService.cs | 2 +- .../Core/Services/IntegryApiService.cs | 2 +- 8 files changed, 64 insertions(+), 31 deletions(-) diff --git a/salesbook.Maui/Core/Services/ManageDataService.cs b/salesbook.Maui/Core/Services/ManageDataService.cs index 75e325d..e8ac95d 100644 --- a/salesbook.Maui/Core/Services/ManageDataService.cs +++ b/salesbook.Maui/Core/Services/ManageDataService.cs @@ -309,19 +309,28 @@ public class ManageDataService( { return Task.Run(async () => { - if (response.AnagClie != null) + try { - await localDb.InsertOrUpdate(response.AnagClie); + if (response.AnagClie != null) + { + await localDb.InsertOrUpdate(response.AnagClie); - if (response.VtbDest != null) await localDb.InsertOrUpdate(response.VtbDest); - if (response.VtbCliePersRif != null) await localDb.InsertOrUpdate(response.VtbCliePersRif); + if (response.VtbDest != null) await localDb.InsertOrUpdate(response.VtbDest); + if (response.VtbCliePersRif != null) await localDb.InsertOrUpdate(response.VtbCliePersRif); + } + + if (response.PtbPros != null) + { + await localDb.InsertOrUpdate(response.PtbPros); + + if (response.PtbProsRif != null) await localDb.InsertOrUpdate(response.PtbProsRif); + } } - - if (response.PtbPros != null) + catch (Exception e) { - await localDb.InsertOrUpdate(response.PtbPros); - - if (response.PtbProsRif != null) await localDb.InsertOrUpdate(response.PtbProsRif); + Console.WriteLine(e.Message); + SentrySdk.CaptureException(e); + throw; } }); } diff --git a/salesbook.Shared/Components/Pages/User.razor b/salesbook.Shared/Components/Pages/User.razor index a312a2e..e42f70b 100644 --- a/salesbook.Shared/Components/Pages/User.razor +++ b/salesbook.Shared/Components/Pages/User.razor @@ -425,7 +425,7 @@ else set { _filteredActivity = value; - StateHasChanged(); + InvokeAsync(StateHasChanged); } } diff --git a/salesbook.Shared/Components/SingleElements/Modal/ActivityForm.razor b/salesbook.Shared/Components/SingleElements/Modal/ActivityForm.razor index 91e5bee..1b33a17 100644 --- a/salesbook.Shared/Components/SingleElements/Modal/ActivityForm.razor +++ b/salesbook.Shared/Components/SingleElements/Modal/ActivityForm.razor @@ -41,7 +41,7 @@ @if (ActivityModel.CodJcom != null && SelectedComessa == null) { - + } else { @@ -100,7 +100,7 @@ @if (ActivityModel.UserName != null && SelectedUser == null) { - + } else { @@ -128,7 +128,7 @@ @if (ActivityType.IsNullOrEmpty()) { - + } else { @@ -400,7 +400,25 @@ SelectedUser = Users.FindLast(x => x.UserName.Equals(ActivityModel.UserName)); if (!IsNew && Id != null) + { ActivityFileList = await IntegryApiService.GetActivityFile(Id); + if (ActivityModel.IdPosizione != null) + { + ActivityModel.Position = await IntegryApiService.RetrievePosition(ActivityModel.IdPosizione.Value); + CanAddPosition = false; + + AttachedList ??= []; + AttachedList.Add( + new AttachedDTO + { + Name = ActivityModel.Position.Description!, + Lat = ActivityModel.Position.Lat, + Lng = ActivityModel.Position.Lng, + Type = AttachedDTO.TypeAttached.Position + } + ); + } + } ActivityResult = await ManageData.GetTable(); Clienti = await ManageData.GetClienti(new WhereCondContact { FlagStato = "A" }); diff --git a/salesbook.Shared/Components/SingleElements/Modal/AddAttached.razor b/salesbook.Shared/Components/SingleElements/Modal/AddAttached.razor index ca68c9a..f67722d 100644 --- a/salesbook.Shared/Components/SingleElements/Modal/AddAttached.razor +++ b/salesbook.Shared/Components/SingleElements/Modal/AddAttached.razor @@ -151,28 +151,31 @@ private void OnNewName() { - switch (Attached.Type) + if (Attached != null) { - case AttachedDTO.TypeAttached.Position: + switch (Attached.Type) { - CanAddPosition = false; + case AttachedDTO.TypeAttached.Position: + { + CanAddPosition = false; - Attached.Description = NewName!; + Attached.Description = NewName!; Attached.Name = NewName!; - break; - } - case AttachedDTO.TypeAttached.Image: - { - var extension = Path.GetExtension(Attached.Name); - Attached.Name = NewName! + extension; + break; + } + case AttachedDTO.TypeAttached.Image: + { + var extension = Path.GetExtension(Attached.Name); + Attached.Name = NewName! + extension; - break; + break; + } + case AttachedDTO.TypeAttached.Document: + break; + default: + throw new ArgumentOutOfRangeException(); } - case AttachedDTO.TypeAttached.Document: - break; - default: - throw new ArgumentOutOfRangeException(); } MudDialog.Close(Attached); diff --git a/salesbook.Shared/Core/Entity/PtbProsRif.cs b/salesbook.Shared/Core/Entity/PtbProsRif.cs index 0da81aa..4108bb9 100644 --- a/salesbook.Shared/Core/Entity/PtbProsRif.cs +++ b/salesbook.Shared/Core/Entity/PtbProsRif.cs @@ -7,7 +7,7 @@ namespace salesbook.Shared.Core.Entity; public class PtbProsRif { [PrimaryKey, Column("composite_key")] - public string CompositeKey { get; set; } + public string CompositeKey { get; set; } = null!; private string? _codPpro; diff --git a/salesbook.Shared/Core/Entity/StbActivity.cs b/salesbook.Shared/Core/Entity/StbActivity.cs index a92c247..0cec552 100644 --- a/salesbook.Shared/Core/Entity/StbActivity.cs +++ b/salesbook.Shared/Core/Entity/StbActivity.cs @@ -173,4 +173,7 @@ public class StbActivity [Column("plan_id"), JsonPropertyName("planId")] public long? PlanId { get; set; } + + [Column("id_posizione"), JsonPropertyName("idPosizione")] + public long? IdPosizione { get; set; } } \ No newline at end of file diff --git a/salesbook.Shared/Core/Interface/IntegryApi/IIntegryApiService.cs b/salesbook.Shared/Core/Interface/IntegryApi/IIntegryApiService.cs index 1cd51af..4ab03a5 100644 --- a/salesbook.Shared/Core/Interface/IntegryApi/IIntegryApiService.cs +++ b/salesbook.Shared/Core/Interface/IntegryApi/IIntegryApiService.cs @@ -33,7 +33,7 @@ public interface IIntegryApiService //Position Task SavePosition(PositionDTO position); - Task RetrievePosition(string id); + Task RetrievePosition(long id); //Google Task?> Geocode(string address); diff --git a/salesbook.Shared/Core/Services/IntegryApiService.cs b/salesbook.Shared/Core/Services/IntegryApiService.cs index 8c603d0..8519862 100644 --- a/salesbook.Shared/Core/Services/IntegryApiService.cs +++ b/salesbook.Shared/Core/Services/IntegryApiService.cs @@ -164,7 +164,7 @@ public class IntegryApiService(IIntegryApiRestClient integryApiRestClient, IUser public Task SavePosition(PositionDTO position) => integryApiRestClient.Post("savePosition", position)!; - public Task RetrievePosition(string id) + public Task RetrievePosition(long id) { var queryParams = new Dictionary { { "id", id } }; From effdc317c2e57b6ff58b60dace582b7f7764c666 Mon Sep 17 00:00:00 2001 From: MarcoE Date: Mon, 13 Oct 2025 15:14:02 +0200 Subject: [PATCH 2/5] Fix date --- salesbook.Maui/Core/Services/ManageDataService.cs | 12 ++++++------ salesbook.Shared/Components/Pages/Calendar.razor | 6 +++--- salesbook.Shared/Core/Dto/Activity/ActivityDTO.cs | 6 +----- salesbook.Shared/Core/Entity/StbActivity.cs | 12 ------------ 4 files changed, 10 insertions(+), 26 deletions(-) diff --git a/salesbook.Maui/Core/Services/ManageDataService.cs b/salesbook.Maui/Core/Services/ManageDataService.cs index e8ac95d..103bbb2 100644 --- a/salesbook.Maui/Core/Services/ManageDataService.cs +++ b/salesbook.Maui/Core/Services/ManageDataService.cs @@ -179,9 +179,9 @@ public class ManageDataService( activities = await localDb.Get(x => (whereCond.ActivityId != null && x.ActivityId != null && whereCond.ActivityId.Equals(x.ActivityId)) || - (whereCond.Start != null && whereCond.End != null && x.EffectiveDate == null && - x.EstimatedDate >= whereCond.Start && x.EstimatedDate <= whereCond.End) || - (x.EffectiveDate >= whereCond.Start && x.EffectiveDate <= whereCond.End) || + (whereCond.Start != null && whereCond.End != null && x.EffectiveTime == null && + x.EstimatedTime >= whereCond.Start && x.EstimatedTime <= whereCond.End) || + (x.EffectiveTime >= whereCond.Start && x.EffectiveTime <= whereCond.End) || (whereCond.ActivityId == null && (whereCond.Start == null || whereCond.End == null)) ); @@ -223,9 +223,9 @@ public class ManageDataService( { activities = await localDb.Get(x => (whereCond.ActivityId != null && x.ActivityId != null && whereCond.ActivityId.Equals(x.ActivityId)) || - (whereCond.Start != null && whereCond.End != null && x.EffectiveDate == null && - x.EstimatedDate >= whereCond.Start && x.EstimatedDate <= whereCond.End) || - (x.EffectiveDate >= whereCond.Start && x.EffectiveDate <= whereCond.End) || + (whereCond.Start != null && whereCond.End != null && x.EffectiveTime == null && + x.EstimatedTime >= whereCond.Start && x.EstimatedTime <= whereCond.End) || + (x.EffectiveTime >= whereCond.Start && x.EffectiveTime <= whereCond.End) || (whereCond.ActivityId == null && (whereCond.Start == null || whereCond.End == null)) ); } diff --git a/salesbook.Shared/Components/Pages/Calendar.razor b/salesbook.Shared/Components/Pages/Calendar.razor index d988e69..87bcfea 100644 --- a/salesbook.Shared/Components/Pages/Calendar.razor +++ b/salesbook.Shared/Components/Pages/Calendar.razor @@ -278,7 +278,7 @@ // Raggruppa le attività per data var activitiesByDate = MonthActivities - .GroupBy(x => (x.EffectiveDate ?? x.EstimatedDate!).Value.Date) + .GroupBy(x => (x.EffectiveTime ?? x.EstimatedTime!).Value.Date) .ToDictionary(g => g.Key, g => g.ToList()); foreach (var (date, activities) in activitiesByDate) @@ -482,7 +482,7 @@ var start = CurrentMonth; var end = start.AddDays(DaysInMonth - 1); var activities = await ManageData.GetActivity(new WhereCondActivity{Start = start, End = end}); - MonthActivities = activities.OrderBy(x => x.EffectiveDate ?? x.EstimatedDate).ToList(); + MonthActivities = activities.OrderBy(x => x.EffectiveTime ?? x.EstimatedTime).ToList(); PrepareRenderingData(); IsLoading = false; @@ -574,7 +574,7 @@ return; } - var date = activity.EffectiveDate ?? activity.EstimatedDate; + var date = activity.EffectiveTime ?? activity.EstimatedTime; if (CurrentMonth.Month != date!.Value.Month) { diff --git a/salesbook.Shared/Core/Dto/Activity/ActivityDTO.cs b/salesbook.Shared/Core/Dto/Activity/ActivityDTO.cs index 2e70722..7f91dcd 100644 --- a/salesbook.Shared/Core/Dto/Activity/ActivityDTO.cs +++ b/salesbook.Shared/Core/Dto/Activity/ActivityDTO.cs @@ -34,7 +34,7 @@ public class ActivityDTO : StbActivity MinuteBefore == other.MinuteBefore && NotificationDate == other.NotificationDate && Category == other.Category && - Complete == other.Complete && ActivityId == other.ActivityId && ActivityResultId == other.ActivityResultId && ActivityTypeId == other.ActivityTypeId && DataInsAct.Equals(other.DataInsAct) && ActivityDescription == other.ActivityDescription && ParentActivityId == other.ParentActivityId && TipoAnag == other.TipoAnag && CodAnag == other.CodAnag && CodJcom == other.CodJcom && CodJfas == other.CodJfas && Nullable.Equals(EstimatedDate, other.EstimatedDate) && Nullable.Equals(EstimatedTime, other.EstimatedTime) && Nullable.Equals(AlarmDate, other.AlarmDate) && Nullable.Equals(AlarmTime, other.AlarmTime) && Nullable.Equals(EffectiveDate, other.EffectiveDate) && Nullable.Equals(EffectiveTime, other.EffectiveTime) && ResultDescription == other.ResultDescription && Nullable.Equals(EstimatedEnddate, other.EstimatedEnddate) && Nullable.Equals(EstimatedEndtime, other.EstimatedEndtime) && Nullable.Equals(EffectiveEnddate, other.EffectiveEnddate) && Nullable.Equals(EffectiveEndtime, other.EffectiveEndtime) && UserCreator == other.UserCreator && UserName == other.UserName && Nullable.Equals(PercComp, other.PercComp) && Nullable.Equals(EstimatedHours, other.EstimatedHours) && CodMart == other.CodMart && PartitaMag == other.PartitaMag && Matricola == other.Matricola && Priorita == other.Priorita && Nullable.Equals(ActivityPlayCounter, other.ActivityPlayCounter) && ActivityEvent == other.ActivityEvent && Guarantee == other.Guarantee && Note == other.Note && Rfid == other.Rfid && IdLotto == other.IdLotto && PersonaRif == other.PersonaRif && HrNum == other.HrNum && Gestione == other.Gestione && Nullable.Equals(DataOrd, other.DataOrd) && NumOrd == other.NumOrd && IdStep == other.IdStep && IdRiga == other.IdRiga && Nullable.Equals(OraInsAct, other.OraInsAct) && IndiceGradimento == other.IndiceGradimento && NoteGradimento == other.NoteGradimento && FlagRisolto == other.FlagRisolto && FlagTipologia == other.FlagTipologia && OreRapportino == other.OreRapportino && UserModifier == other.UserModifier && Nullable.Equals(OraModAct, other.OraModAct) && Nullable.Equals(OraViewAct, other.OraViewAct) && CodVdes == other.CodVdes && CodCmac == other.CodCmac && WrikeId == other.WrikeId && CodMgrp == other.CodMgrp && PlanId == other.PlanId; + Complete == other.Complete && ActivityId == other.ActivityId && ActivityResultId == other.ActivityResultId && ActivityTypeId == other.ActivityTypeId && DataInsAct.Equals(other.DataInsAct) && ActivityDescription == other.ActivityDescription && ParentActivityId == other.ParentActivityId && TipoAnag == other.TipoAnag && CodAnag == other.CodAnag && CodJcom == other.CodJcom && CodJfas == other.CodJfas && Nullable.Equals(EstimatedTime, other.EstimatedTime) && Nullable.Equals(AlarmDate, other.AlarmDate) && Nullable.Equals(AlarmTime, other.AlarmTime) && Nullable.Equals(EffectiveTime, other.EffectiveTime) && ResultDescription == other.ResultDescription && Nullable.Equals(EstimatedEndtime, other.EstimatedEndtime) && Nullable.Equals(EffectiveEndtime, other.EffectiveEndtime) && UserCreator == other.UserCreator && UserName == other.UserName && Nullable.Equals(PercComp, other.PercComp) && Nullable.Equals(EstimatedHours, other.EstimatedHours) && CodMart == other.CodMart && PartitaMag == other.PartitaMag && Matricola == other.Matricola && Priorita == other.Priorita && Nullable.Equals(ActivityPlayCounter, other.ActivityPlayCounter) && ActivityEvent == other.ActivityEvent && Guarantee == other.Guarantee && Note == other.Note && Rfid == other.Rfid && IdLotto == other.IdLotto && PersonaRif == other.PersonaRif && HrNum == other.HrNum && Gestione == other.Gestione && Nullable.Equals(DataOrd, other.DataOrd) && NumOrd == other.NumOrd && IdStep == other.IdStep && IdRiga == other.IdRiga && Nullable.Equals(OraInsAct, other.OraInsAct) && IndiceGradimento == other.IndiceGradimento && NoteGradimento == other.NoteGradimento && FlagRisolto == other.FlagRisolto && FlagTipologia == other.FlagTipologia && OreRapportino == other.OreRapportino && UserModifier == other.UserModifier && Nullable.Equals(OraModAct, other.OraModAct) && Nullable.Equals(OraViewAct, other.OraViewAct) && CodVdes == other.CodVdes && CodCmac == other.CodCmac && WrikeId == other.WrikeId && CodMgrp == other.CodMgrp && PlanId == other.PlanId; } public override bool Equals(object? obj) @@ -57,16 +57,12 @@ public class ActivityDTO : StbActivity hashCode.Add(CodAnag); hashCode.Add(CodJcom); hashCode.Add(CodJfas); - hashCode.Add(EstimatedDate); hashCode.Add(EstimatedTime); hashCode.Add(AlarmDate); hashCode.Add(AlarmTime); - hashCode.Add(EffectiveDate); hashCode.Add(EffectiveTime); hashCode.Add(ResultDescription); - hashCode.Add(EstimatedEnddate); hashCode.Add(EstimatedEndtime); - hashCode.Add(EffectiveEnddate); hashCode.Add(EffectiveEndtime); hashCode.Add(UserCreator); hashCode.Add(UserName); diff --git a/salesbook.Shared/Core/Entity/StbActivity.cs b/salesbook.Shared/Core/Entity/StbActivity.cs index 0cec552..e70e5e8 100644 --- a/salesbook.Shared/Core/Entity/StbActivity.cs +++ b/salesbook.Shared/Core/Entity/StbActivity.cs @@ -36,9 +36,6 @@ public class StbActivity [Column("cod_jfas"), JsonPropertyName("codJfas")] public string? CodJfas { get; set; } - [Column("estimated_date"), JsonPropertyName("estimatedDate")] - public DateTime? EstimatedDate { get; set; } - [Column("estimated_time"), JsonPropertyName("estimatedTime")] public DateTime? EstimatedTime { get; set; } @@ -48,24 +45,15 @@ public class StbActivity [Column("alarm_time"), JsonPropertyName("alarmTime")] public DateTime? AlarmTime { get; set; } - [Column("effective_date"), JsonPropertyName("effectiveDate")] - public DateTime? EffectiveDate { get; set; } - [Column("effective_time"), JsonPropertyName("effectiveTime")] public DateTime? EffectiveTime { get; set; } [Column("result_description"), JsonPropertyName("resultDescription")] public string? ResultDescription { get; set; } - [Column("estimated_enddate"), JsonPropertyName("estimatedEnddate")] - public DateTime? EstimatedEnddate { get; set; } - [Column("estimated_endtime"), JsonPropertyName("estimatedEndtime")] public DateTime? EstimatedEndtime { get; set; } - [Column("effective_enddate"), JsonPropertyName("effectiveEnddate")] - public DateTime? EffectiveEnddate { get; set; } - [Column("effective_endtime"), JsonPropertyName("effectiveEndtime")] public DateTime? EffectiveEndtime { get; set; } From c3e646403bf59f4555d42fbaac1f5fd9eb75f5ca Mon Sep 17 00:00:00 2001 From: MarcoE Date: Wed, 15 Oct 2025 09:57:01 +0200 Subject: [PATCH 3/5] =?UTF-8?q?Aggiunta=20possibilit=C3=A0=20di=20rimozion?= =?UTF-8?q?e=20allegati?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SingleElements/Modal/ActivityForm.razor | 29 ++++++++++++++++++- .../IntegryApi/IIntegryApiService.cs | 1 + .../Core/Services/IntegryApiService.cs | 13 ++++++++- 3 files changed, 41 insertions(+), 2 deletions(-) diff --git a/salesbook.Shared/Components/SingleElements/Modal/ActivityForm.razor b/salesbook.Shared/Components/SingleElements/Modal/ActivityForm.razor index 1b33a17..364ef47 100644 --- a/salesbook.Shared/Components/SingleElements/Modal/ActivityForm.razor +++ b/salesbook.Shared/Components/SingleElements/Modal/ActivityForm.razor @@ -183,7 +183,7 @@ { foreach (var file in ActivityFileList) { - + @file.FileName } @@ -700,6 +700,33 @@ } } + private async Task DeleteAttach(ActivityFileDto file) + { + Snackbar.Clear(); + + if (ActivityFileList == null) return; + + try + { + ActivityFileList.Remove(file); + StateHasChanged(); + + await IntegryApiService.DeleteFile(ActivityModel.ActivityId!, file.FileName); + } + catch (Exception ex) + { + ActivityFileList.Add(file); + StateHasChanged(); + + Snackbar.Add("Impossibile eliminare il file", Severity.Error); + Console.WriteLine($"Impossibile eliminare il file: {ex.Message}"); + } + finally + { + Snackbar.Add($"{file.FileName} eliminato con successo", Severity.Info); + } + } + private async Task OpenAttached(AttachedDTO attached) { if (attached is { FileContent: not null, MimeType: not null }) diff --git a/salesbook.Shared/Core/Interface/IntegryApi/IIntegryApiService.cs b/salesbook.Shared/Core/Interface/IntegryApi/IIntegryApiService.cs index 4ab03a5..ea44154 100644 --- a/salesbook.Shared/Core/Interface/IntegryApi/IIntegryApiService.cs +++ b/salesbook.Shared/Core/Interface/IntegryApi/IIntegryApiService.cs @@ -25,6 +25,7 @@ public interface IIntegryApiService Task TransferProspect(CRMTransferProspectRequestDTO request); Task UploadFile(string id, byte[] file, string fileName); + Task DeleteFile(string activityId, string fileName); Task> GetActivityFile(string activityId); Task DownloadFile(string activityId, string fileName); Task DownloadFileFromRefUuid(string refUuid, string fileName); diff --git a/salesbook.Shared/Core/Services/IntegryApiService.cs b/salesbook.Shared/Core/Services/IntegryApiService.cs index 8519862..fe92db0 100644 --- a/salesbook.Shared/Core/Services/IntegryApiService.cs +++ b/salesbook.Shared/Core/Services/IntegryApiService.cs @@ -134,7 +134,18 @@ public class IntegryApiService(IIntegryApiRestClient integryApiRestClient, IUser fileContent.Headers.ContentType = MediaTypeHeaderValue.Parse("multipart/form-data"); content.Add(fileContent, "files", fileName); - return integryApiRestClient.Post($"uploadStbActivityFileAttachment", content, queryParams); + return integryApiRestClient.Post("uploadStbActivityFileAttachment", content, queryParams); + } + + public Task DeleteFile(string activityId, string fileName) + { + var queryParams = new Dictionary + { + { "activityId", activityId }, + { "fileName", fileName } + }; + + return integryApiRestClient.Get("activity/removeAttachment", queryParams); } public Task> GetActivityFile(string activityId) From 934258d422c82f9148ce6dae23b4fb4550e3232a Mon Sep 17 00:00:00 2001 From: MarcoE Date: Wed, 15 Oct 2025 10:32:24 +0200 Subject: [PATCH 4/5] Fix sync --- salesbook.Shared/Components/Pages/Calendar.razor | 2 +- salesbook.Shared/Components/Pages/PersonalInfo.razor | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/salesbook.Shared/Components/Pages/Calendar.razor b/salesbook.Shared/Components/Pages/Calendar.razor index 87bcfea..a924445 100644 --- a/salesbook.Shared/Components/Pages/Calendar.razor +++ b/salesbook.Shared/Components/Pages/Calendar.razor @@ -181,7 +181,7 @@ private string _headerTitle = string.Empty; private readonly Dictionary> _eventsCache = new(); private readonly Dictionary _categoriesCache = new(); - private bool _isInitialized = false; + private bool _isInitialized; // Stato UI private bool Expanded { get; set; } diff --git a/salesbook.Shared/Components/Pages/PersonalInfo.razor b/salesbook.Shared/Components/Pages/PersonalInfo.razor index 77d21e0..719bf67 100644 --- a/salesbook.Shared/Components/Pages/PersonalInfo.razor +++ b/salesbook.Shared/Components/Pages/PersonalInfo.razor @@ -85,21 +85,21 @@ FullWidth="true" StartIcon="@Icons.Material.Outlined.Sync" Size="Size.Medium" - OnClick="() => UpdateDb(true)" + OnClick="() => UpdateDb()" Variant="Variant.Outlined"> Sincronizza -
+ @*
*@ - Ripristina dati - + *@
From 27588097a3c9fb4b3a1946868e7061c00b6bf589 Mon Sep 17 00:00:00 2001 From: MarcoE Date: Wed, 15 Oct 2025 10:33:04 +0200 Subject: [PATCH 5/5] -> v2.0.3 (10) --- salesbook.Maui/salesbook.Maui.csproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/salesbook.Maui/salesbook.Maui.csproj b/salesbook.Maui/salesbook.Maui.csproj index 40a8691..4b8df4f 100644 --- a/salesbook.Maui/salesbook.Maui.csproj +++ b/salesbook.Maui/salesbook.Maui.csproj @@ -29,8 +29,8 @@ it.integry.salesbook - 2.0.2 - 9 + 2.0.3 + 10 14.2