70 lines
1.7 KiB
C#
70 lines
1.7 KiB
C#
using GPW.CORE.Data.DbModels;
|
|
using GPW.CORE.Data.DTO;
|
|
using GPW.CORE.Data.Services;
|
|
using Microsoft.AspNetCore.Components;
|
|
|
|
namespace GPW.CORE.ADM.Components.Compo
|
|
{
|
|
public partial class ReportProgettiMan
|
|
{
|
|
#region Protected Properties
|
|
|
|
[Inject]
|
|
protected MessageService AppMServ { get; set; } = null!;
|
|
|
|
[Inject]
|
|
protected AppAuthService AuthServ { get; set; } = null!;
|
|
|
|
[Inject]
|
|
protected IConfiguration config { get; set; } = null!;
|
|
|
|
[Inject]
|
|
protected GpwDataService GDataServ { get; set; } = null!;
|
|
|
|
#endregion Protected Properties
|
|
|
|
#region Protected Methods
|
|
|
|
protected string fullUrl(string repUrl)
|
|
{
|
|
return $"{reportBaseUrl}{repUrl}";
|
|
}
|
|
|
|
protected override async Task OnInitializedAsync()
|
|
{
|
|
reportBaseUrl = config.GetValue<string>("ServerConf:ReportBaseUrl") ?? "http://W2019-SQL-STEAM/ReportServer?";
|
|
await ReloadData();
|
|
}
|
|
|
|
protected string Traduci(string lemma)
|
|
{
|
|
return AuthServ.Traduci(lemma, AppMServ.UserLang);
|
|
}
|
|
|
|
#endregion Protected Methods
|
|
|
|
#region Private Fields
|
|
|
|
private bool isLoading = false;
|
|
private string reportBaseUrl = "";
|
|
private int totalCount = 0;
|
|
|
|
#endregion Private Fields
|
|
|
|
#region Private Properties
|
|
|
|
private List<ElencoReportModel>? ListRecords { get; set; } = null;
|
|
|
|
#endregion Private Properties
|
|
|
|
#region Private Methods
|
|
|
|
private async Task ReloadData()
|
|
{
|
|
ListRecords = await GDataServ.ElencoReportFilt("A1");
|
|
totalCount = ListRecords.Count;
|
|
}
|
|
|
|
#endregion Private Methods
|
|
}
|
|
} |