From ed93a04fd028687536b470eea973582ab59f8524 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Tue, 13 Sep 2022 15:01:07 +0200 Subject: [PATCH] Inizio modifica selezione articolo --- MP.SPEC/Components/ListPODL.razor.cs | 12 +-- MP.SPEC/Pages/PODL.razor | 126 ++++++++++++--------------- MP.SPEC/Pages/PODL.razor.cs | 7 +- 3 files changed, 64 insertions(+), 81 deletions(-) diff --git a/MP.SPEC/Components/ListPODL.razor.cs b/MP.SPEC/Components/ListPODL.razor.cs index fa2e9c93..57f197f2 100644 --- a/MP.SPEC/Components/ListPODL.razor.cs +++ b/MP.SPEC/Components/ListPODL.razor.cs @@ -16,18 +16,10 @@ namespace MP.SPEC.Components { get => MsgService.StateSel; set => MsgService.StateSel = value; - //get => _statoSel; - //set - //{ - // if (_statoSel != value) - // { - // _statoSel = value; - // var pUpd = Task.Run(async () => await reloadData()); - // pUpd.Wait(); - // } - //} } + + #endregion Public Properties #region Public Methods diff --git a/MP.SPEC/Pages/PODL.razor b/MP.SPEC/Pages/PODL.razor index ce4198b6..3fde5e9a 100644 --- a/MP.SPEC/Pages/PODL.razor +++ b/MP.SPEC/Pages/PODL.razor @@ -4,83 +4,27 @@
-
-
-
-

Promesse ODL

-
-
- -
-
-
-
+
+

Promesse ODL

-
+
-
-
-
-
- @**@ - - -
-
-
- + + @if (ListStati != null) + { + foreach (var item in ListStati) { - foreach (var item in ListStati) - { - - } + } - -
+ } +
- - @if (reqNew) - { -
-
-
- Azienda - - Art Search - -
-
-
-
-
-
- Articolo - -
-
-
- } - else if (currRecord != null) + @if (currRecord != null) {
@@ -149,6 +93,48 @@
} + else if (addEnabled) + { +
+
+ +
+ @if (reqNew) + { +
+
+ Azienda + +
+
+
+
+ Search + + Articolo + +
+
+ } +
+ } +
diff --git a/MP.SPEC/Pages/PODL.razor.cs b/MP.SPEC/Pages/PODL.razor.cs index 1c1e7b10..9d2f83e5 100644 --- a/MP.SPEC/Pages/PODL.razor.cs +++ b/MP.SPEC/Pages/PODL.razor.cs @@ -94,8 +94,10 @@ namespace MP.SPEC.Pages } private string currAzienda { get; set; } = "*"; + private string currArticolo { get; set; } = ""; private List? ListAziende; + private List? ListArticoli; #endregion Protected Methods @@ -127,7 +129,10 @@ namespace MP.SPEC.Pages set => MsgService.StateSel = value; } - private bool addEnabled = false; + private bool addEnabled + { + get => selStato != "*"; + } private int totalCount