From 3c5a27512e8da2f215c3dabb698d5f9350e910e1 Mon Sep 17 00:00:00 2001 From: Marc Wieland Date: Wed, 18 Mar 2026 22:57:46 +0100 Subject: [PATCH] =?UTF-8?q?DragnDrop=20+=20L=C3=B6schfunktion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- OnProfNext.Client/Pages/Home.razor | 142 +++++++++++++++++++---------- 1 file changed, 95 insertions(+), 47 deletions(-) diff --git a/OnProfNext.Client/Pages/Home.razor b/OnProfNext.Client/Pages/Home.razor index b9a21a6..5c50732 100644 --- a/OnProfNext.Client/Pages/Home.razor +++ b/OnProfNext.Client/Pages/Home.razor @@ -63,7 +63,9 @@ - +
@@ -71,37 +73,49 @@ KW 12 - -
- - Projekt-Stapel: - - -
-
- @foreach (var day in _weekDays) - { -
- - @day.Name - @day.Date.ToShortDateString() - - - - - -
- Summe: @(_items.Where(i => i.Status == day.Name).Sum(i => i.Hours))h -
+ + +
+ @foreach (var day in _weekDays) + { +
+ + @day.Name + @day.Date.ToShortDateString() + + + + + +
+ Summe: @(_items.Where(i => i.Status == day.Name).Sum(i => i.Hours))h +
+
+ }
- } -
+ + + + + Projekt-Stapel + + + +
+ +
+
+
+ - +
@context.Project @@ -124,26 +138,53 @@ - - - Verlauf - - - - - - - - - - - - - - - - + + + + Buchungsverlauf + + + + + + +
+ + @context.Item.Date.ToString("dd.MM.yyyy") +
+
+
+ + + @context.Item.Project + + + + + +
+ @context.Item.Hours h +
+
+
+ + + + + + + + + + +
+ + + +
+
@@ -155,6 +196,7 @@ @code { private MudDropContainer _dropContainer; private string _searchString = ""; + private string _backlogSearchString = ""; private List _weekDays = new(); private List _items = new(); @@ -196,6 +238,12 @@ } + private void OnBacklogSearchChanged(string newValue) + { + _backlogSearchString = newValue; + _dropContainer.Refresh(); + } + private void ItemUpdated(MudItemDropInfo dropInfo) { if (dropInfo.DropzoneIdentifier != "Backlog" && dropInfo.Item.Status == "Backlog")