diff --git a/MP.Data/Controllers/MpSpecController.cs b/MP.Data/Controllers/MpSpecController.cs index e45e05e8..1b09a9c8 100644 --- a/MP.Data/Controllers/MpSpecController.cs +++ b/MP.Data/Controllers/MpSpecController.cs @@ -719,22 +719,7 @@ namespace MP.Data.Controllers g => g.IdxMacchina, m => m.IdxMacchina, (g, m) => m - - //(m, g) => new Macchine - //{ - // IdxMacchina = m.IdxMacchina, - // CodMacchina = m.CodMacchina, - // Descrizione = m.Descrizione, - // Nome = m.Nome, - // Note = m.Note, - // url = m.url, - // locazione = m.locazione, - // css = m.css, - // RowNum = m.RowNum, - // ColNum = m.ColNum - //} ) - //.Distinct() .AsNoTracking() .OrderBy(x => x.IdxMacchina) .ToList(); diff --git a/MP.SPEC/Components/ListDossiers.razor b/MP.SPEC/Components/ListDossiers.razor index 24efa151..8b233bdc 100644 --- a/MP.SPEC/Components/ListDossiers.razor +++ b/MP.SPEC/Components/ListDossiers.razor @@ -254,11 +254,14 @@ else
| # | - Lotto @if (!string.IsNullOrEmpty(BatchSel)) { } + else + { + # + } + | ++ Lotto | Prodotto | Tipo | @@ -25,13 +30,16 @@ { @foreach (var item in elencoGiacenze) { -
|---|---|---|---|---|
| @item.IdxRG |
-
+
+ @item.IdentRG
+
+
|
diff --git a/MP.SPEC/Components/ListGiacenze.razor.cs b/MP.SPEC/Components/ListGiacenze.razor.cs
index 4c3e19d4..dbe28f59 100644
--- a/MP.SPEC/Components/ListGiacenze.razor.cs
+++ b/MP.SPEC/Components/ListGiacenze.razor.cs
@@ -19,6 +19,22 @@ namespace MP.SPEC.Components
#region Protected Properties
+
+ public string checkSelect(AnagGiacenzeModel recordSel)
+ {
+ string answ = "";
+ if (BatchSel != null)
+ {
+ try
+ {
+ answ = (BatchSel == recordSel.IdentRG) ? "table-info" : "";
+ }
+ catch
+ { }
+ }
+ return answ;
+ }
+
protected List
+
@if (!isActive || hasOdl)
{
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
}
diff --git a/MP.SPEC/Data/MpDataService.cs b/MP.SPEC/Data/MpDataService.cs
index 7e766bdf..5cb0397d 100644
--- a/MP.SPEC/Data/MpDataService.cs
+++ b/MP.SPEC/Data/MpDataService.cs
@@ -177,7 +177,8 @@ namespace MP.SPEC.Data
Stopwatch stopWatch = new Stopwatch();
stopWatch.Start();
string readType = "DB";
- string currKey = $"{redisArtList}:{azienda}";
+ string sKey = string.IsNullOrEmpty(searchVal) ? "***" : searchVal;
+ string currKey = $"{redisArtList}:{azienda}:{sKey}";
// cerco in redis dato valore sel macchina...
RedisValue rawData = redisDb.StringGet(currKey);
if (rawData.HasValue)
@@ -1073,8 +1074,12 @@ namespace MP.SPEC.Data
RedisValue rawData = redisDb.StringGet(currKey);
if (rawData.HasValue)
{
- result = JsonConvert.DeserializeObject
-
-
-
-
- @if (odlExp == null)
- {
- Giacenze-
-
- ODL @(odlExp.IdxOdl.ToString(padCodXdl))
-
-
-
+@if (giacenzeConf == "false")
+{
+
- @odlExp.DataInizio
-
-
- >>
-
-
- @odlExp.DataFine
-
- NOT ALLOWED
+}
+else
+{
+
+
+}
diff --git a/MP.SPEC/Pages/Giacenze.razor.cs b/MP.SPEC/Pages/Giacenze.razor.cs
index 9469246a..8fed01fe 100644
--- a/MP.SPEC/Pages/Giacenze.razor.cs
+++ b/MP.SPEC/Pages/Giacenze.razor.cs
@@ -26,6 +26,8 @@ namespace MP.SPEC.Pages
protected override async Task OnInitializedAsync()
{
+ await MDService.ConfigResetCache();
+ giacenzeConf = await MDService.tryGetConfig("SPEC_ShowGiacenze");
await Task.Delay(1);
padCodXdl = await MDService.tryGetConfig("padCodXdl");
var uri = NavManager.ToAbsoluteUri(NavManager.Uri);
@@ -47,6 +49,7 @@ namespace MP.SPEC.Pages
private NavigationManager NavManager { get; set; } = null!;
private string padCodXdl { get; set; } = "00000";
+ private string giacenzeConf = "false";
[Inject]
private ISessionStorageService sessionStorage { get; set; } = null!;
diff --git a/MP.SPEC/Pages/PODL.razor b/MP.SPEC/Pages/PODL.razor
index 7a9d707d..77590ffc 100644
--- a/MP.SPEC/Pages/PODL.razor
+++ b/MP.SPEC/Pages/PODL.razor
@@ -68,7 +68,7 @@
+
-
+
-
+
- Giacenze
-
- }
-
- @odlExp.CodArticolo
-
-
- @odlExp.DescArticolo
-
-
-
- @if (IdxOdl == 0)
- {
-
+
-
- @*
+
-
- @if (!string.IsNullOrEmpty(BatchSel))
+ @if (odlExp == null)
{
-
-
- }
-
+
+
+ ODL @(odlExp.IdxOdl.ToString(padCodXdl))
+
+
+
+
+ @odlExp.DataInizio
+
+
+ >>
+
+
+ @odlExp.DataFine
+
+
+
}
+ @odlExp.CodArticolo
+
+
+ @odlExp.DescArticolo
+
+
+ @if (IdxOdl == 0)
+ {
+
+ @**@
-
+
+ }
+
+
+
+
+ @if (!string.IsNullOrEmpty(BatchSel))
+ {
+
+
+ }
+
- Search
+ Ricerca
Gruppo
-
+ @if (currGruppoSel != null)
+ {
+
+ @* *@
+ }
- @if (currRecord.CodArticolo != "" && currRecord.CodFase != "" && currRecord.CodGruppo != "" && currRecord.IdxMacchina != "")
+ @if (currRecord.CodArticolo != "" && currRecord.CodFase != "" && selReparto != "*" && currRecord.IdxMacchina != "")
{
}
@@ -221,47 +209,46 @@
-
+
- @**@
-
- @if (reqNew)
- {
-
-
-
- Azienda
-
-
-
-
- }
-
- Search
-
- Articolo
-
-
-
+
+ }*@
+
+ @if (reqNew)
+ {
+
+
+
+ Azienda
+
+
+
+
+ }
+
+ Search
+
+ Articolo
+
+
+
diff --git a/MP.SPEC/Pages/PODL.razor.cs b/MP.SPEC/Pages/PODL.razor.cs
index 19f3fd84..60108e89 100644
--- a/MP.SPEC/Pages/PODL.razor.cs
+++ b/MP.SPEC/Pages/PODL.razor.cs
@@ -109,7 +109,6 @@ namespace MP.SPEC.Pages
ListGruppiFase = allGruppiData.Where(x => x.SelEnabled).ToList();
}
ListStati = await MDService.AnagStatiComm();
- //ListArticoli = await MDService.ArticoliGetSearch(100, currAzienda, artSearch);
currAzienda = await MDService.tryGetConfig("AZIENDA");
padCodXdl = await MDService.tryGetConfig("padCodXdl");
}
@@ -138,16 +137,17 @@ namespace MP.SPEC.Pages
/// Versione: 6.16.2211.3015+Versione: 6.16.2212.113Note di rilascio:
|