diff --git a/GPW.CORE.Data/Controllers/GPWController.cs b/GPW.CORE.Data/Controllers/GPWController.cs index 809a506..85273b4 100644 --- a/GPW.CORE.Data/Controllers/GPWController.cs +++ b/GPW.CORE.Data/Controllers/GPWController.cs @@ -558,9 +558,11 @@ namespace GPW.CORE.Data.Controllers DtRif = thisDay, ListRA = rawRegAtt .Where(x => thisDay <= x.Inizio && x.Inizio < thisDay.AddDays(1)) + .OrderBy(x => x.Inizio) .ToList(), ListTimbr = rawTimbr .Where(x => thisDay <= x.DataOra && x.DataOra < thisDay.AddDays(1)) + .OrderBy(x => x.DataOra) .ToList(), TimbrExpl = rawTimbExp .Where(x => thisDay == x.DataLav) @@ -632,8 +634,8 @@ namespace GPW.CORE.Data.Controllers if (currItem.IdxDipendente > 0) { var currRec = localDbCtx - .DbSetDipendenti - .FirstOrDefault(x => x.IdxDipendente == currItem.IdxDipendente); + .DbSetDipendenti + .FirstOrDefault(x => x.IdxDipendente == currItem.IdxDipendente); if (currRec != null) { currRec.Cognome = currItem.Cognome; diff --git a/GPW.CORE.SMART/Components/BottoniEntrEsc.razor b/GPW.CORE.SMART/Components/BottoniEntrEsc.razor index 504cdeb..ecb5459 100644 --- a/GPW.CORE.SMART/Components/BottoniEntrEsc.razor +++ b/GPW.CORE.SMART/Components/BottoniEntrEsc.razor @@ -1,22 +1,22 @@
diff --git a/GPW.CORE.SMART/Components/BottoniEntrEsc.razor.cs b/GPW.CORE.SMART/Components/BottoniEntrEsc.razor.cs index a5b824d..cbd3f7f 100644 --- a/GPW.CORE.SMART/Components/BottoniEntrEsc.razor.cs +++ b/GPW.CORE.SMART/Components/BottoniEntrEsc.razor.cs @@ -15,9 +15,6 @@ namespace GPW.CORE.Smart.Components #region Public Properties private DateTime DataRif = DateTime.Now; - //private DateTime DataRifMancTimb { - // get => MService.targetDate; - //} [Parameter] public int IdxDipendente { get; set; } = -1; @@ -46,7 +43,7 @@ namespace GPW.CORE.Smart.Components #region Protected Methods - protected async void DoAdd(bool IsUscita) + protected async Task DoAdd(bool IsUscita) { // var accessorie / base TimbratureModel currRecord = new TimbratureModel(); @@ -108,7 +105,7 @@ namespace GPW.CORE.Smart.Components currRecord = new TimbratureModel() { Entrata = !IsUscita, - Approv = true, + Approv = false, CodTipoTimb = "Web", DataOra = DataRif, IdxDipendente = MService.IdxDipendente, @@ -189,11 +186,11 @@ namespace GPW.CORE.Smart.Components lastAction = $"Registrato evento {lastAct} alle {adesso:HH:mm}"; // inidico inizio update isRecording = true; - DoAdd(!isEntrata); + await DoAdd(!isEntrata); nextIsEntrata = !isEntrata; MService.ReportTimbratura(); // chiudo visualizzazione stato update - await Task.Delay(3000); + await Task.Delay(5000); isRecording = false; } diff --git a/GPW.CORE.WRKLOG/Components/DayHoriz.razor b/GPW.CORE.WRKLOG/Components/DayHoriz.razor index 5fc9a86..2a13cd3 100644 --- a/GPW.CORE.WRKLOG/Components/DayHoriz.razor +++ b/GPW.CORE.WRKLOG/Components/DayHoriz.razor @@ -29,7 +29,7 @@ } else { - + @**@