diff --git a/GPW.CORE.Data/DTO/ReportDataDTO.cs b/GPW.CORE.Data/DTO/ReportDataDTO.cs index bb9247e..2e130e1 100644 --- a/GPW.CORE.Data/DTO/ReportDataDTO.cs +++ b/GPW.CORE.Data/DTO/ReportDataDTO.cs @@ -36,6 +36,7 @@ namespace GPW.CORE.Data.DTO // calcolo totali x progetto... int idxProj = 0; string gruppo = ""; + string cliente = ""; string nomeProj = ""; string descProj = ""; decimal durItem = 0; @@ -43,12 +44,13 @@ namespace GPW.CORE.Data.DTO { idxProj = recRA.FasiNav.ProgettoNav.IdxProgetto; gruppo = recRA.FasiNav.ProgettoNav.Gruppo; + cliente = recRA.FasiNav.ProgettoNav.ClienteNav?.RagSociale ?? $"{recRA.FasiNav.ProgettoNav.IdxCliente}"; nomeProj = recRA.FasiNav.ProgettoNav.NomeProj; descProj = recRA.FasiNav.ProgettoNav.DescrProj; durItem = recRA.OreTot ?? 0; // cerco proj... var currProj = ProjTotal.FirstOrDefault(x => x.idxProj == idxProj); - if (currProj!=null) + if (currProj != null) { currProj.TotOre += durItem; } @@ -58,9 +60,10 @@ namespace GPW.CORE.Data.DTO { NomeProj = nomeProj, TotOre = durItem, - idxProj=idxProj, - DescProj=descProj, - Gruppo =gruppo + idxProj = idxProj, + DescProj = descProj, + Gruppo = gruppo, + Cliente = cliente }; ProjTotal.Add(newProj); } @@ -168,6 +171,7 @@ namespace GPW.CORE.Data.DTO public int idxProj { get; set; } = 0; public string Gruppo { get; set; } = ""; + public string Cliente { get; set; } = ""; public string NomeProj { get; set; } = ""; public string DescProj { get; set; } = ""; public decimal TotOre { get; set; } = 0; diff --git a/GPW.CORE.WRKLOG/Components/DettAtt.razor b/GPW.CORE.WRKLOG/Components/DettAtt.razor index e9d93ae..dca5c70 100644 --- a/GPW.CORE.WRKLOG/Components/DettAtt.razor +++ b/GPW.CORE.WRKLOG/Components/DettAtt.razor @@ -7,6 +7,10 @@