|
- ToggleUid(item)">
+ ToggleUid(item)">
+ @* *@
+ @if (ListSelected.Contains(item.MatReqID))
+ {
+
+
+
+ }
+ else
+ {
+
+ }
+
|
- @item.CodGroup |
+ @* @item.CodGroup | *@
@item.ItemCode
diff --git a/Lux.UI/Components/Compo/Warehouse/MatReqList.razor b/Lux.UI/Components/Compo/Warehouse/MatReqList.razor
index e066ef78..9f5ef4ab 100644
--- a/Lux.UI/Components/Compo/Warehouse/MatReqList.razor
+++ b/Lux.UI/Components/Compo/Warehouse/MatReqList.razor
@@ -5,7 +5,15 @@
Fabbisogni Attivi
diff --git a/Lux.UI/Components/Compo/Warehouse/MatReqList.razor.cs b/Lux.UI/Components/Compo/Warehouse/MatReqList.razor.cs
index 8f7aa226..f888fda8 100644
--- a/Lux.UI/Components/Compo/Warehouse/MatReqList.razor.cs
+++ b/Lux.UI/Components/Compo/Warehouse/MatReqList.razor.cs
@@ -32,6 +32,25 @@ namespace Lux.UI.Components.Compo.Warehouse
#endregion Private Fields
+ private string searchVal { get; set; } = string.Empty;
+
+ private string SearchVal
+ {
+ get => searchVal;
+ set
+ {
+ if (searchVal != value)
+ {
+ searchVal = value;
+ UpdateDetail();
+ }
+ }
+ }
+ private string btnResetCss
+ {
+ get => string.IsNullOrEmpty(searchVal) ? "btn-outline-secondary" : "btn-primary";
+ }
+
#region Private Methods
private Task ReportUpdate(GrpSelect currData)
@@ -39,7 +58,14 @@ namespace Lux.UI.Components.Compo.Warehouse
// sistemo il dizionario selezioni
if (SelectDict.ContainsKey(currData.GroupName))
{
- SelectDict[currData.GroupName] = currData.ListItemIds;
+ if(currData.ListItemIds.Count > 0)
+ {
+ SelectDict[currData.GroupName] = currData.ListItemIds;
+ }
+ else
+ {
+ SelectDict.Remove(currData.GroupName);
+ }
}
else
{
@@ -50,10 +76,33 @@ namespace Lux.UI.Components.Compo.Warehouse
private void UpdateDetail()
{
- // calcolo dati derivati
- GroupDict = AllRecords
- .GroupBy(x => x.CodGroup)
- .ToDictionary(g => g.Key, g => g.ToList());
+ if (string.IsNullOrEmpty(SearchVal))
+ {
+ // calcolo dati derivati
+ GroupDict = AllRecords
+ .GroupBy(x => x.CodGroup)
+ .ToDictionary(g => g.Key, g => g.ToList());
+ }
+ else if(SearchVal.StartsWith("POR"))
+ {
+ // calcolo dati derivati
+ GroupDict = AllRecords
+ .Where(x => x.OrderRowNav!.OrderRowCode.Equals(SearchVal, StringComparison.InvariantCultureIgnoreCase))
+ .GroupBy(x => x.CodGroup)
+ .ToDictionary(g => g.Key, g => g.ToList());
+ }
+ else if (SearchVal.StartsWith("PO"))
+ {
+ // calcolo dati derivati
+ GroupDict = AllRecords
+ .Where(x => x.OrderNav!.OrderCode.Equals(SearchVal, StringComparison.InvariantCultureIgnoreCase))
+ .GroupBy(x => x.CodGroup)
+ .ToDictionary(g => g.Key, g => g.ToList());
+ }
+ }
+ private void ResetSearch()
+ {
+ SearchVal = "";
}
#endregion Private Methods
diff --git a/Lux.UI/Components/Pages/BuyOrder.razor b/Lux.UI/Components/Pages/BuyOrder.razor
index 50e2c391..87a4e516 100644
--- a/Lux.UI/Components/Pages/BuyOrder.razor
+++ b/Lux.UI/Components/Pages/BuyOrder.razor
@@ -16,7 +16,7 @@
-
+
@if (isProcessing)
{
@@ -26,24 +26,17 @@
}
-
- @if (CurrSelDict.Count > 0)
- {
- foreach (var item in CurrSelDict)
- {
- if (item.Value.Any())
- {
-
- }
- }
- }
+ @if (CurrSelDict.Count > 0)
+ {
+
+ }
+
@if (isProcessing)
{
}
else
{
-
}
diff --git a/Lux.UI/Components/Pages/BuyOrder.razor.cs b/Lux.UI/Components/Pages/BuyOrder.razor.cs
index 307444be..c777e465 100644
--- a/Lux.UI/Components/Pages/BuyOrder.razor.cs
+++ b/Lux.UI/Components/Pages/BuyOrder.razor.cs
@@ -74,6 +74,11 @@ namespace Lux.UI.Components.Pages
isProcessing = false;
}
+ private string DimensionColCss()
+ {
+ return CurrSelDict.Count > 0 ? "col-5" : "col-6";
+ }
+
#endregion Private Methods
}
}
\ No newline at end of file
diff --git a/Lux.UI/Components/Pages/Offers.razor b/Lux.UI/Components/Pages/Offers.razor
index 47369fe2..aaa3fb91 100644
--- a/Lux.UI/Components/Pages/Offers.razor
+++ b/Lux.UI/Components/Pages/Offers.razor
@@ -106,28 +106,29 @@ else
Offerte
@if (isLoading)
{
diff --git a/Lux.UI/Lux.UI.csproj b/Lux.UI/Lux.UI.csproj
index 3fb92ed7..d4e71e43 100644
--- a/Lux.UI/Lux.UI.csproj
+++ b/Lux.UI/Lux.UI.csproj
@@ -5,7 +5,7 @@
enable
enable
aspnet-Lux.UI-a758c101-a2f4-4e38-977d-1c4887dbbd50
- 1.1.2604.2210
+ 1.1.2604.2310
diff --git a/Resources/ChangeLog.html b/Resources/ChangeLog.html
index 84255234..21945449 100644
--- a/Resources/ChangeLog.html
+++ b/Resources/ChangeLog.html
@@ -1,6 +1,6 @@
LUX - Web Windows MES
- Versione: 1.1.2604.2214
+ Versione: 1.1.2604.2310
Note di rilascio:
-
diff --git a/Resources/VersNum.txt b/Resources/VersNum.txt
index 4218622b..d0f208bd 100644
--- a/Resources/VersNum.txt
+++ b/Resources/VersNum.txt
@@ -1 +1 @@
-1.1.2604.2214
+1.1.2604.2310
diff --git a/Resources/manifest.xml b/Resources/manifest.xml
index f50b6fb3..a15f0302 100644
--- a/Resources/manifest.xml
+++ b/Resources/manifest.xml
@@ -1,6 +1,6 @@
-
- 1.1.2604.2214
+ 1.1.2604.2310
http://nexus.steamware.net/repository/SWS/GPW/stable/GPW.UI.zip
http://nexus.steamware.net/repository/SWS/GPW/stable/ChangeLog.html
false
|