Fix vari
This commit is contained in:
@@ -75,6 +75,16 @@ else
|
||||
</span>
|
||||
</div>
|
||||
}
|
||||
|
||||
@if (Agente != null)
|
||||
{
|
||||
<div>
|
||||
<span class="info-title">Agente</span>
|
||||
<span class="info-text">
|
||||
@Agente.FullName
|
||||
</span>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -131,6 +141,7 @@ else
|
||||
private ContactDTO Anag { get; set; } = new();
|
||||
private List<PersRifDTO>? PersRif { get; set; }
|
||||
private List<JtbComt> Commesse { get; set; }
|
||||
private StbUser? Agente { get; set; }
|
||||
|
||||
private bool IsLoading { get; set; } = true;
|
||||
|
||||
@@ -160,6 +171,11 @@ else
|
||||
|
||||
Commesse = await ManageData.GetTable<JtbComt>(x => x.CodAnag != null && x.CodAnag.Equals(CodContact));
|
||||
|
||||
if (Anag.CodVage != null)
|
||||
{
|
||||
Agente = (await ManageData.GetTable<StbUser>(x => x.UserCode != null && x.UserCode.Equals(Anag.CodVage))).LastOrDefault();
|
||||
}
|
||||
|
||||
IsLoading = false;
|
||||
StateHasChanged();
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
<NoDataAvailable Text="Nessun idirizzo trovato" />
|
||||
<NoDataAvailable Text="Nessun indirizzo trovato" />
|
||||
}
|
||||
}
|
||||
</div>
|
||||
|
||||
@@ -128,6 +128,16 @@
|
||||
</MudChip>
|
||||
}
|
||||
}
|
||||
|
||||
@if (ActivityFileList != null)
|
||||
{
|
||||
foreach (var file in ActivityFileList)
|
||||
{
|
||||
<MudChip T="string" Color="Color.Default">
|
||||
@file.FileName
|
||||
</MudChip>
|
||||
}
|
||||
}
|
||||
</div>
|
||||
|
||||
<div class="container-button">
|
||||
@@ -214,6 +224,7 @@
|
||||
private List<JtbComt> Commesse { get; set; } = [];
|
||||
private List<AnagClie> Clienti { get; set; } = [];
|
||||
private List<PtbPros> Pros { get; set; } = [];
|
||||
private List<ActivityFileDto>? ActivityFileList { get; set; }
|
||||
|
||||
private bool IsNew => Id.IsNullOrEmpty();
|
||||
private bool IsView => !NetworkService.IsNetworkAvailable();
|
||||
@@ -336,6 +347,11 @@
|
||||
|
||||
private async Task LoadData()
|
||||
{
|
||||
if (!IsNew && Id != null)
|
||||
{
|
||||
ActivityFileList = await IntegryApiService.GetActivityFile(Id);
|
||||
}
|
||||
|
||||
Users = await ManageData.GetTable<StbUser>();
|
||||
ActivityResult = await ManageData.GetTable<StbActivityResult>();
|
||||
Clienti = await ManageData.GetTable<AnagClie>(x => x.FlagStato.Equals("A"));
|
||||
@@ -404,10 +420,10 @@
|
||||
{
|
||||
OnAfterChangeValue();
|
||||
|
||||
var result = await ConfirmMemo.ShowAsync();
|
||||
// var result = await ConfirmMemo.ShowAsync();
|
||||
|
||||
if (result is true)
|
||||
OpenAddMemo = !OpenAddMemo;
|
||||
// if (result is true)
|
||||
// OpenAddMemo = !OpenAddMemo;
|
||||
}
|
||||
|
||||
private void OpenSelectEsito()
|
||||
@@ -455,6 +471,7 @@
|
||||
private void Duplica()
|
||||
{
|
||||
var activityCopy = ActivityModel.Clone();
|
||||
activityCopy.ActivityId = null;
|
||||
|
||||
MudDialog.Cancel();
|
||||
Messenger.Send(new CopyActivityMessage(activityCopy));
|
||||
@@ -468,6 +485,8 @@
|
||||
{
|
||||
AttachedList ??= [];
|
||||
AttachedList.Add((AttachedDTO)result.Data);
|
||||
|
||||
LabelSave = "Aggiorna";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -380,9 +380,11 @@
|
||||
return;
|
||||
case {AnagClie: null, PtbPros: not null}:
|
||||
await ManageData.InsertOrUpdate(response.PtbPros);
|
||||
await ManageData.InsertOrUpdate(response.PtbProsRif);
|
||||
break;
|
||||
case { AnagClie: not null, PtbPros: null }:
|
||||
await ManageData.InsertOrUpdate(response.AnagClie);
|
||||
await ManageData.InsertOrUpdate(response.VtbCliePersRif);
|
||||
break;
|
||||
default:
|
||||
VisibleOverlay = false;
|
||||
|
||||
Reference in New Issue
Block a user