Fix catena selezione materiali

This commit is contained in:
Samuele Locatelli
2024-02-17 10:58:31 +01:00
parent 529179e581
commit c67c37cd2c
7 changed files with 31 additions and 11 deletions
+15 -1
View File
@@ -24,7 +24,21 @@ namespace MagMan.UI.Components
public int KeyNum { get; set; } = 0;
[Parameter]
public MaterialModel MaterialSel { get; set; } = null!;
public MaterialModel MaterialSel
{
get => materialSel;
set
{
if (materialSel != value)
{
materialSel = value;
CurrItem = null;
RawItemId = 0;
}
}
}
private MaterialModel materialSel { get; set; } = new MaterialModel();
#endregion Public Properties
+1 -1
View File
@@ -50,7 +50,7 @@
<thead>
<tr class="">
<th>
<button class="btn btn-primary btn-sm" @onclick="() => DoEdit(null)"><i class="fa-solid fa-rotate"></i></button>
<button class="btn btn-primary btn-sm" @onclick="() => ForceReload(true)"><i class="fa-solid fa-rotate"></i></button>
</th>
<th>ID <Sorter ParamName="MatId" IsAsc="@sortAsc" CurrParam="@sortField" sortReq="SortRequested"></Sorter></th>
<th>Mat.Code <Sorter ParamName="MatCode" IsAsc="@sortAsc" CurrParam="@sortField" sortReq="SortRequested"></Sorter></th>
+11 -5
View File
@@ -97,14 +97,19 @@ namespace MagMan.UI.Components
protected void DoEdit(MaterialDTO? selItem)
{
if (selItem == null)
{
DoSelect(null);
}
else
//if (selItem == null)
//{
// DoSelect(null);
//}
//else
//{
// CurrItem = TService.MaterialFromDto(selItem);
//}
if (selItem != null)
{
CurrItem = TService.MaterialFromDto(selItem);
}
DoSelect(null);
}
protected void DoSelect(MaterialDTO? selItem)
@@ -123,6 +128,7 @@ namespace MagMan.UI.Components
protected async Task ForceReload(bool force)
{
CurrItem = null;
DoEdit(null);
await ReloadData();
}
+1 -1
View File
@@ -2,7 +2,7 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Version>1.0.2402.1618</Version>
<Version>1.0.2402.1710</Version>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
+1 -1
View File
@@ -1,6 +1,6 @@
<body>
<i>MagMan - Wood Warehouse Management System</i>
<h4>Versione: 1.0.2402.1618</h4>
<h4>Versione: 1.0.2402.1710</h4>
<br /> Note di rilascio:
<ul>
<li>
+1 -1
View File
@@ -1 +1 @@
1.0.2402.1618
1.0.2402.1710
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>1.0.2402.1618</version>
<version>1.0.2402.1710</version>
<url>http://nexus.steamware.net/repository/SWS/MagMan/stable/0/MagMan.UI.zip</url>
<changelog>http://nexus.steamware.net/repository/SWS/MagMan/stable/0/ChangeLog.html</changelog>
<mandatory>false</mandatory>