diff --git a/MP.SPEC/MP.SPEC.csproj b/MP.SPEC/MP.SPEC.csproj
index 85b6abb4..5a64a5bd 100644
--- a/MP.SPEC/MP.SPEC.csproj
+++ b/MP.SPEC/MP.SPEC.csproj
@@ -5,7 +5,7 @@
enable
enable
MP.SPEC
- 6.16.2505.714
+ 6.16.2505.717
1800a78a-6ff1-40f9-b490-87fb8bfc1394
en
diff --git a/MP.SPEC/Pages/KIT.razor b/MP.SPEC/Pages/KIT.razor
index 068ddba4..2596ab1e 100644
--- a/MP.SPEC/Pages/KIT.razor
+++ b/MP.SPEC/Pages/KIT.razor
@@ -87,7 +87,14 @@
@@ -172,10 +179,10 @@
- @record.CodArtParent
+
|
- @record.CodArtChild
+
|
@record.Qty
diff --git a/MP.SPEC/Pages/KIT.razor.cs b/MP.SPEC/Pages/KIT.razor.cs
index bbd982d5..b40dece1 100644
--- a/MP.SPEC/Pages/KIT.razor.cs
+++ b/MP.SPEC/Pages/KIT.razor.cs
@@ -22,6 +22,7 @@ namespace MP.SPEC.Pages
#region Protected Fields
+ protected string CodAzienda = "***";
protected int kitCount = 0;
protected int totalCount = 0;
@@ -134,6 +135,7 @@ namespace MP.SPEC.Pages
CodArtChild = "",
Qty = 1
};
+ SearchParent = codParent;
await Task.Delay(1);
}
@@ -154,6 +156,7 @@ namespace MP.SPEC.Pages
Qty = selRec.Qty
};
EditRecord = newRec;
+ SearchParent = selRec.CodArtParent;
await Task.Delay(1);
}
@@ -174,7 +177,23 @@ namespace MP.SPEC.Pages
await Task.Delay(1);
}
- protected string CodAzienda = "***";
+ ///
+ /// Imposta filtro CodArtChild da record
+ ///
+ ///
+ protected void DoFiltChild(TemplateKitModel selRec)
+ {
+ SearchChild = selRec.CodArtChild;
+ }
+
+ ///
+ /// Imposta filtro CodArtParent da record
+ ///
+ ///
+ protected void DoFiltParent(TemplateKitModel selRec)
+ {
+ SearchParent = selRec.CodArtParent;
+ }
protected async Task DoUpdate(TemplateKitModel selRec)
{
@@ -211,6 +230,11 @@ namespace MP.SPEC.Pages
{
bool.TryParse(rawVal, out enabKitSearch);
}
+ rawVal = MDService.ConfigTryGet("SPEC_Kit_enabFreeCodArt");
+ if (!string.IsNullOrEmpty(rawVal))
+ {
+ bool.TryParse(rawVal, out enabFreeCodArt);
+ }
}
protected override void OnParametersSet()
@@ -273,10 +297,14 @@ namespace MP.SPEC.Pages
private TemplateKitModel? EditRecord = null;
+ ///
+ /// Abilita inserimento libero codice articolo
+ ///
+ private bool enabFreeCodArt = false;
+
private bool enabKitCount = false;
private bool enabKitSearch = false;
-
private List? ListRecords;
private int minChar = 2;
diff --git a/MP.SPEC/Resources/ChangeLog.html b/MP.SPEC/Resources/ChangeLog.html
index 4b65a8d0..f9322d53 100644
--- a/MP.SPEC/Resources/ChangeLog.html
+++ b/MP.SPEC/Resources/ChangeLog.html
@@ -1,6 +1,6 @@
Modulo MAPOSPEC
- Versione: 6.16.2505.714
+ Versione: 6.16.2505.717
Note di rilascio:
-
diff --git a/MP.SPEC/Resources/VersNum.txt b/MP.SPEC/Resources/VersNum.txt
index a906f32d..523e5cd7 100644
--- a/MP.SPEC/Resources/VersNum.txt
+++ b/MP.SPEC/Resources/VersNum.txt
@@ -1 +1 @@
-6.16.2505.714
+6.16.2505.717
diff --git a/MP.SPEC/Resources/manifest.xml b/MP.SPEC/Resources/manifest.xml
index ef315968..dc8dd3df 100644
--- a/MP.SPEC/Resources/manifest.xml
+++ b/MP.SPEC/Resources/manifest.xml
@@ -1,6 +1,6 @@
-
- 6.16.2505.714
+ 6.16.2505.717
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
|