apri odl da giacenza
This commit is contained in:
@@ -2,13 +2,18 @@
|
||||
<table class="table table-striped table-sm">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>
|
||||
Lotto
|
||||
@if (!string.IsNullOrEmpty(BatchSel))
|
||||
{
|
||||
<button @onclick="() => resetSel()" title="Click per Reset" class="btn btn-info btn-sm"><i class="bi bi-arrow-counterclockwise"></i></button>
|
||||
}
|
||||
else
|
||||
{
|
||||
<span>#</span>
|
||||
}
|
||||
</th>
|
||||
<th>
|
||||
Lotto
|
||||
</th>
|
||||
<th>Prodotto</th>
|
||||
<th>Tipo</th>
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
using Microsoft.AspNetCore.Components;
|
||||
using Microsoft.AspNetCore.WebUtilities;
|
||||
using Microsoft.JSInterop;
|
||||
using MP.Data.DatabaseModels;
|
||||
using MP.SPEC.Data;
|
||||
using MP.SPEC.Pages;
|
||||
using MP.SPEC.Services;
|
||||
using NLog;
|
||||
|
||||
@@ -72,10 +74,15 @@ namespace MP.SPEC.Components
|
||||
[Inject]
|
||||
protected IOApiService MpIoApiCall { get; set; } = null!;
|
||||
|
||||
[Inject]
|
||||
protected NavigationManager NavManager { get; set; } = null!;
|
||||
|
||||
#endregion Protected Properties
|
||||
|
||||
#region Protected Methods
|
||||
|
||||
protected int odlCercato = 0;
|
||||
|
||||
/// <summary>
|
||||
/// Registra chiusura ODL alla data indicata
|
||||
/// </summary>
|
||||
@@ -138,6 +145,14 @@ namespace MP.SPEC.Components
|
||||
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
if (NavManager.Uri.Contains("ODL?"))
|
||||
{
|
||||
var uri = NavManager.ToAbsoluteUri(NavManager.Uri);
|
||||
if (QueryHelpers.ParseQuery(uri.Query).TryGetValue("IdxOdl", out var _idxOdl))
|
||||
{
|
||||
odlCercato = int.Parse(_idxOdl);
|
||||
}
|
||||
}
|
||||
ListStati = await MDService.AnagStatiComm();
|
||||
}
|
||||
|
||||
@@ -411,7 +426,14 @@ namespace MP.SPEC.Components
|
||||
isLoading = true;
|
||||
SearchRecords = await MDService.ListODLFilt(currFilter.IsActive, currFilter.SearchVal, currFilter.CodFase, currFilter.CodReparto, currFilter.IdxMacchina, currFilter.DtStart, currFilter.DtEnd);
|
||||
totalCount = SearchRecords.Count;
|
||||
ListRecords = SearchRecords.Skip(numRecord * (currPage - 1)).Take(numRecord).ToList();
|
||||
if (NavManager.Uri.Contains("ODL?"))
|
||||
{
|
||||
ListRecords = SearchRecords.Where(x => x.IdxOdl == odlCercato).Skip(numRecord * (currPage - 1)).Take(numRecord).ToList();
|
||||
}
|
||||
else
|
||||
{
|
||||
ListRecords = SearchRecords.Skip(numRecord * (currPage - 1)).Take(numRecord).ToList();
|
||||
}
|
||||
await Task.Delay(1);
|
||||
await InvokeAsync(() => StateHasChanged());
|
||||
isLoading = false;
|
||||
|
||||
@@ -1,32 +1,31 @@
|
||||
|
||||
<div class="bg-info p-2">
|
||||
<div class="selBlock p-2">
|
||||
<div class="bg-light">
|
||||
|
||||
<table class="table table-striped table-sm">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ODL</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if (elencoODL == null || elencoODL.Count == 0)
|
||||
{
|
||||
<div class="alert alert-warning" role="alert">No record</div>
|
||||
}
|
||||
else
|
||||
{
|
||||
@if (elencoODL == null || elencoODL.Count == 0)
|
||||
{
|
||||
<div class="alert alert-warning" role="alert">No record</div>
|
||||
}
|
||||
else
|
||||
{
|
||||
<table class="table table-striped table-sm">
|
||||
<thead>
|
||||
<tr class="text-center">
|
||||
<th>ODL</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var item in elencoODL)
|
||||
{
|
||||
<tr>
|
||||
<tr class="text-center">
|
||||
<td class="fw-bold">
|
||||
<a class="btn btn-sm btn-primary" target="_blank">
|
||||
<a class="btn btn-sm btn-primary" href="ODL?IdxOdl=@item" target="_blank">
|
||||
@item
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
</tbody>
|
||||
</table>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<RootNamespace>MP.SPEC</RootNamespace>
|
||||
<Version>6.16.2212.110</Version>
|
||||
<Version>6.16.2212.112</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -54,15 +54,17 @@ else
|
||||
else
|
||||
{
|
||||
<div class="row">
|
||||
<div class="@mainTabCss">
|
||||
<ListGiacenze IdxOdl="@IdxOdl" BatchSelected="saveBatch"></ListGiacenze>
|
||||
</div>
|
||||
@if (!string.IsNullOrEmpty(BatchSel))
|
||||
{
|
||||
<div class="col-2">
|
||||
<ListOdlLotto BatchSel="@BatchSel"></ListOdlLotto>
|
||||
<div class="d-flex justify-content-between">
|
||||
<div class="@mainTabCss">
|
||||
<ListGiacenze IdxOdl="@IdxOdl" BatchSelected="saveBatch"></ListGiacenze>
|
||||
</div>
|
||||
}
|
||||
@if (!string.IsNullOrEmpty(BatchSel))
|
||||
{
|
||||
<div class="col-2">
|
||||
<ListOdlLotto BatchSel="@BatchSel"></ListOdlLotto>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<body>
|
||||
<i>Modulo MAPOSPEC </i>
|
||||
<h4>Versione: 6.16.2212.110</h4>
|
||||
<h4>Versione: 6.16.2212.112</h4>
|
||||
<br /> Note di rilascio:
|
||||
<ul>
|
||||
<li>
|
||||
|
||||
@@ -1 +1 @@
|
||||
6.16.2212.110
|
||||
6.16.2212.112
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<item>
|
||||
<version>6.16.2212.110</version>
|
||||
<version>6.16.2212.112</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