diff --git a/MP.SPEC/Components/Reparti/ListReparti.razor b/MP.SPEC/Components/Reparti/ListReparti.razor
index 78664c15..44978069 100644
--- a/MP.SPEC/Components/Reparti/ListReparti.razor
+++ b/MP.SPEC/Components/Reparti/ListReparti.razor
@@ -4,10 +4,44 @@
@if (ListRecords == null || isLoading)
diff --git a/MP.SPEC/Components/Reparti/ListReparti.razor.cs b/MP.SPEC/Components/Reparti/ListReparti.razor.cs
index ccec2446..446cb8d2 100644
--- a/MP.SPEC/Components/Reparti/ListReparti.razor.cs
+++ b/MP.SPEC/Components/Reparti/ListReparti.razor.cs
@@ -20,6 +20,8 @@ namespace MP.SPEC.Components.Reparti
protected override void OnInitialized()
{
+ SelRecord = null;
+ EditRec = null;
numRecord = 5;
}
@@ -48,7 +50,8 @@ namespace MP.SPEC.Components.Reparti
#region Private Fields
private int currPage = 1;
- private RepartiDTO? SelRecord = null;
+
+ private AnagGruppiModel? EditRec = null;
private bool isLoading = false;
@@ -56,10 +59,30 @@ namespace MP.SPEC.Components.Reparti
private int numRecord = 5;
+ private RepartiDTO? SelRecord = null;
+
private int totalCount = 0;
#endregion Private Fields
+ #region Private Properties
+
+ private string addNewCss
+ {
+ get => EditRec == null ? "btn-success" : "btn-secondary";
+ }
+
+ private string addNewTxt
+ {
+ get => EditRec == null ? "Add New" : "Close Add New";
+ }
+ private string addNewIcon
+ {
+ get => EditRec == null ? "fa-plus-square" : "fa-minus-square";
+ }
+
+ #endregion Private Properties
+
#region Private Methods
private string CheckSelect(RepartiDTO currRec)
@@ -76,6 +99,17 @@ namespace MP.SPEC.Components.Reparti
return answ;
}
+ private void DoUpdate(AnagGruppiModel UpdRec)
+ {
+ // salvo
+
+ EditRec = null;
+ }
+ private void DoCancel()
+ {
+ EditRec = null;
+ }
+
private void DoDelete(RepartiDTO currRec)
{
// eliminazione
@@ -91,9 +125,29 @@ namespace MP.SPEC.Components.Reparti
private async Task ResetSel()
{
SelRecord = null;
+ EditRec = null;
await EC_RecordSel.InvokeAsync("");
}
+ private void ToggleAddNew()
+ {
+ if (EditRec == null)
+ {
+ DateTime adesso = DateTime.Now;
+ EditRec = new AnagGruppiModel()
+ {
+ CodGruppo = $"NEW-GROUP-{adesso:yyyyMMdd}-{adesso:HHmmss}",
+ DescrGruppo = "Descrizione",
+ SelEnabled = false,
+ TipoGruppo = "REPARTO"
+ };
+ }
+ else
+ {
+ EditRec = null;
+ }
+ }
+
private void UpdateTable()
{
totalCount = 0;
diff --git a/MP.SPEC/MP.SPEC.csproj b/MP.SPEC/MP.SPEC.csproj
index 4a558eb5..62f63d4f 100644
--- a/MP.SPEC/MP.SPEC.csproj
+++ b/MP.SPEC/MP.SPEC.csproj
@@ -5,7 +5,7 @@
enable
enable
MP.SPEC
-
6.16.2504.1517
+
6.16.2504.1519
1800a78a-6ff1-40f9-b490-87fb8bfc1394
en
diff --git a/MP.SPEC/Pages/GroupMacOprMan.razor b/MP.SPEC/Pages/GroupMacOprMan.razor
index bca4231e..866d451c 100644
--- a/MP.SPEC/Pages/GroupMacOprMan.razor
+++ b/MP.SPEC/Pages/GroupMacOprMan.razor
@@ -33,9 +33,8 @@
-
Operatori per @CodGruppo
-
-
+
+
}
diff --git a/MP.SPEC/Pages/GroupMacOprMan.razor.cs b/MP.SPEC/Pages/GroupMacOprMan.razor.cs
index d4459b04..aab5d90d 100644
--- a/MP.SPEC/Pages/GroupMacOprMan.razor.cs
+++ b/MP.SPEC/Pages/GroupMacOprMan.razor.cs
@@ -41,7 +41,7 @@ namespace MP.SPEC.Pages
private string CssMain
{
- get => ShowDetail ? "col-3" : "col-8";
+ get => ShowDetail ? "col-3" : "col-12";
}
private bool ShowDetail
diff --git a/MP.SPEC/Resources/ChangeLog.html b/MP.SPEC/Resources/ChangeLog.html
index cc59a214..ad4a5005 100644
--- a/MP.SPEC/Resources/ChangeLog.html
+++ b/MP.SPEC/Resources/ChangeLog.html
@@ -1,6 +1,6 @@
Modulo MAPOSPEC
-
Versione: 6.16.2504.1517
+
Versione: 6.16.2504.1519
Note di rilascio:
-
diff --git a/MP.SPEC/Resources/VersNum.txt b/MP.SPEC/Resources/VersNum.txt
index 22e31d21..4e2a7971 100644
--- a/MP.SPEC/Resources/VersNum.txt
+++ b/MP.SPEC/Resources/VersNum.txt
@@ -1 +1 @@
-6.16.2504.1517
+6.16.2504.1519
diff --git a/MP.SPEC/Resources/manifest.xml b/MP.SPEC/Resources/manifest.xml
index 347f591d..1f2082b5 100644
--- a/MP.SPEC/Resources/manifest.xml
+++ b/MP.SPEC/Resources/manifest.xml
@@ -1,6 +1,6 @@
-
- 6.16.2504.1517
+ 6.16.2504.1519
https://nexus.steamware.net/repository/SWS/MP-SPEC/stable/LAST/MP.SPEC.zip
https://nexus.steamware.net/repository/SWS/MP-SPEC/stable/LAST/ChangeLog.html
false