This commit is contained in:
2025-10-03 16:32:16 +02:00
parent 5016b3ed8d
commit 9f95bb23e6
8 changed files with 64 additions and 31 deletions

View File

@@ -41,7 +41,7 @@
@if (ActivityModel.CodJcom != null && SelectedComessa == null)
{
<MudSkeleton />
<MudSkeleton/>
}
else
{
@@ -100,7 +100,7 @@
@if (ActivityModel.UserName != null && SelectedUser == null)
{
<MudSkeleton />
<MudSkeleton/>
}
else
{
@@ -128,7 +128,7 @@
@if (ActivityType.IsNullOrEmpty())
{
<MudSkeleton />
<MudSkeleton/>
}
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<StbActivityResult>();
Clienti = await ManageData.GetClienti(new WhereCondContact { FlagStato = "A" });