diff --git a/GPW.CORE.WRKLOG/Components/Compo/CalendarioAziendale.razor b/GPW.CORE.WRKLOG/Components/Compo/CalendarioAziendale.razor index 64229a6..35c721c 100644 --- a/GPW.CORE.WRKLOG/Components/Compo/CalendarioAziendale.razor +++ b/GPW.CORE.WRKLOG/Components/Compo/CalendarioAziendale.razor @@ -56,9 +56,10 @@
- - - + + + +
\ No newline at end of file diff --git a/GPW.CORE.WRKLOG/Components/Compo/CalendarioAziendale.razor.cs b/GPW.CORE.WRKLOG/Components/Compo/CalendarioAziendale.razor.cs index c93fcd8..55f7227 100644 --- a/GPW.CORE.WRKLOG/Components/Compo/CalendarioAziendale.razor.cs +++ b/GPW.CORE.WRKLOG/Components/Compo/CalendarioAziendale.razor.cs @@ -119,8 +119,13 @@ namespace GPW.CORE.WRKLOG.Components.Compo private async Task evToggled(SelectGlobalToggle newTogData) { ToggleData = newTogData; - ModoDisplay = ToggleData.isActive ? DisplayedView.Annual : DisplayedView.Monthly; + FixCalendar(); await Task.Delay(1); + } + + private void FixCalendar() + { + ModoDisplay = ToggleData.isActive ? DisplayedView.Annual : DisplayedView.Monthly; // se annuale --> riporto firstDate if (ModoDisplay == DisplayedView.Annual) { @@ -128,6 +133,22 @@ namespace GPW.CORE.WRKLOG.Components.Compo } } + protected void SetWeek(ClickTaskParameter taskVal) + { + firstDate = taskVal.Day; + ModoDisplay = DisplayedView.Weekly; + } + protected void SetWeek(ClickEmptyDayParameter taskVal) + { + firstDate = taskVal.Day; + ModoDisplay = DisplayedView.Weekly; + } + + protected void ResetCal() + { + FixCalendar(); + } + #endregion Private Methods } } \ No newline at end of file diff --git a/GPW.CORE.WRKLOG/Components/Pages/DayOff.razor.cs b/GPW.CORE.WRKLOG/Components/Pages/DayOff.razor.cs index 9d5c6a5..58065d6 100644 --- a/GPW.CORE.WRKLOG/Components/Pages/DayOff.razor.cs +++ b/GPW.CORE.WRKLOG/Components/Pages/DayOff.razor.cs @@ -198,9 +198,9 @@ namespace GPW.CORE.WRKLOG.Components.Pages { DateStart = x.DtStart, DateEnd = x.DtEnd, - Caption = x.DipNav.Abbrev, - Comment = x.CodGiust == "PERM" ? $"{x.DipNav.Abbrev} {x.DtStart:HH:mm}--> {x.DtEnd:HH:mm}" : x.DipNav.Abbrev, - Code = x.CodGiust, + Caption = x.CodGiust == "PERM" ? $"{x.CodGiust} | {x.DipNav.Abbrev} | {x.DtStart:HH:mm}--> {x.DtEnd:HH:mm}" : $"{x.CodGiust} | {x.DipNav.Abbrev} | {x.DtStart:yyyy/MM/dd} -> {x.DtEnd:yyyy/MM/dd}",//x.DipNav.Abbrev, + Comment = x.CodGiust == "PERM" ? $"{x.CodGiust} | {x.DipNav.Abbrev} | {x.DtStart:HH:mm}--> {x.DtEnd:HH:mm}" : $"{x.CodGiust} | {x.DipNav.Abbrev} | {x.DtStart:yyyy/MM/dd} -> {x.DtEnd:yyyy/MM/dd}", + Code = x.CodGiust, //$"{x.CodGiust} | {x.DipNav.Abbrev}", Color = colorByGiustStato(x.CodGiust, x.Conf), ForeColor = colorTextByGiustStato(x.CodGiust, x.Conf), NotBeDraggable = x.IdxDipendente != idxDipendente @@ -216,9 +216,10 @@ namespace GPW.CORE.WRKLOG.Components.Pages { DateStart = x.DtInizio, DateEnd = x.DtInizio.AddDays(x.NumGG - 1), - Caption = x.DipNav.Abbrev, - Comment = x.DipNav.Abbrev, + Caption = $"MAL | {x.DipNav.Abbrev} {x.DtInizio:yyyy/MM/dd} -> {x.DtInizio.AddDays(x.NumGG - 1):yyyy/MM/dd}", + Comment = $"MAL | {x.DipNav.Abbrev} {x.DtInizio:yyyy/MM/dd} -> {x.DtInizio.AddDays(x.NumGG - 1):yyyy/MM/dd}", Code = "MAL", + //Code = "MAL", Color = colorByGiustStato("MAL", x.Conf), ForeColor = colorTextByGiustStato("MAL", x.Conf), NotBeDraggable = x.IdxDipendente != idxDipendente diff --git a/GPW.CORE.WRKLOG/GPW.CORE.WRKLOG.csproj b/GPW.CORE.WRKLOG/GPW.CORE.WRKLOG.csproj index 0872253..fd1e580 100644 --- a/GPW.CORE.WRKLOG/GPW.CORE.WRKLOG.csproj +++ b/GPW.CORE.WRKLOG/GPW.CORE.WRKLOG.csproj @@ -16,7 +16,7 @@ - +