SPEC:
- filtraggio cod art KIT/parent - filtro parent su nuovo/clona
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<RootNamespace>MP.SPEC</RootNamespace>
|
||||
<Version>6.16.2505.714</Version>
|
||||
<Version>6.16.2505.717</Version>
|
||||
<UserSecretsId>1800a78a-6ff1-40f9-b490-87fb8bfc1394</UserSecretsId>
|
||||
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
|
||||
</PropertyGroup>
|
||||
|
||||
+10
-3
@@ -87,7 +87,14 @@
|
||||
<div class="input-group">
|
||||
<button class="btn btn-success" @onclick="() => SearchArtToggle()"><i class="fa-brands fa-searchengin fa-2x"></i></button>
|
||||
<div class="form-floating">
|
||||
<input type="text" class="form-control" placeholder="CodChild" @bind-value="@EditRecord.CodArtChild">
|
||||
@if (enabFreeCodArt)
|
||||
{
|
||||
<input type="text" class="form-control" placeholder="CodChild" @bind-value="@EditRecord.CodArtChild">
|
||||
}
|
||||
else
|
||||
{
|
||||
<input type="text" class="form-control" disabled placeholder="CodChild" @bind-value="@EditRecord.CodArtChild">
|
||||
}
|
||||
<label>Cod Art Child</label>
|
||||
</div>
|
||||
</div>
|
||||
@@ -172,10 +179,10 @@
|
||||
<button @onclick="() => DoClone(record)" class="btn btn-info btn-sm" title="Duplica Record"><i class="bi bi-clipboard-check"></i></button>
|
||||
</td>
|
||||
<td>
|
||||
<div>@record.CodArtParent</div>
|
||||
<button @onclick="() => DoFiltParent(record)" class="btn btn-sm btn-outline-primary fw-bold py-1" title="Filtra per KIT">@record.CodArtParent</button>
|
||||
</td>
|
||||
<td>
|
||||
<div>@record.CodArtChild</div>
|
||||
<button @onclick="() => DoFiltChild(record)" class="btn btn-sm btn-outline-primary fw-bold py-1" title="Filtra Per Articolo">@record.CodArtChild</button>
|
||||
</td>
|
||||
<td>
|
||||
<div>@record.Qty</div>
|
||||
|
||||
@@ -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 = "***";
|
||||
/// <summary>
|
||||
/// Imposta filtro CodArtChild da record
|
||||
/// </summary>
|
||||
/// <param name="selRec"></param>
|
||||
protected void DoFiltChild(TemplateKitModel selRec)
|
||||
{
|
||||
SearchChild = selRec.CodArtChild;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Imposta filtro CodArtParent da record
|
||||
/// </summary>
|
||||
/// <param name="selRec"></param>
|
||||
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;
|
||||
|
||||
/// <summary>
|
||||
/// Abilita inserimento libero codice articolo
|
||||
/// </summary>
|
||||
private bool enabFreeCodArt = false;
|
||||
|
||||
private bool enabKitCount = false;
|
||||
|
||||
private bool enabKitSearch = false;
|
||||
|
||||
private List<TemplateKitModel>? ListRecords;
|
||||
|
||||
private int minChar = 2;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<body>
|
||||
<i>Modulo MAPOSPEC </i>
|
||||
<h4>Versione: 6.16.2505.714</h4>
|
||||
<h4>Versione: 6.16.2505.717</h4>
|
||||
<br /> Note di rilascio:
|
||||
<ul>
|
||||
<li>
|
||||
|
||||
@@ -1 +1 @@
|
||||
6.16.2505.714
|
||||
6.16.2505.717
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<item>
|
||||
<version>6.16.2505.714</version>
|
||||
<version>6.16.2505.717</version>
|
||||
<url>https://nexus.steamware.net/repository/SWS/MP-SPEC/stable/LAST/MP.SPEC.zip</url>
|
||||
<changelog>https://nexus.steamware.net/repository/SWS/MP-SPEC/stable/LAST/ChangeLog.html</changelog>
|
||||
<mandatory>false</mandatory>
|
||||
|
||||
Reference in New Issue
Block a user