Update pagina KIT template
This commit is contained in:
@@ -2031,26 +2031,6 @@ namespace MP.Data.Controllers
|
||||
return fatto;
|
||||
}
|
||||
|
||||
#if false
|
||||
/// <summary>
|
||||
/// Recupero odl data chiave
|
||||
/// </summary>
|
||||
/// <param name="idxOdl"></param>
|
||||
/// <returns></returns>
|
||||
/// <exception cref="NotImplementedException"></exception>
|
||||
public async Task<ODLModel> OdlGetByKey(int idxOdl)
|
||||
{
|
||||
ODLModel dbResult = new ODLModel();
|
||||
using (var dbCtx = new MoonProContext(options))
|
||||
{
|
||||
dbResult = await dbCtx
|
||||
.DbSetODL
|
||||
.FirstOrDefaultAsync(x => x.IdxOdl == idxOdl);
|
||||
}
|
||||
return dbResult;
|
||||
}
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// Recupero Odl CORRENTI
|
||||
/// </summary>
|
||||
|
||||
@@ -2134,13 +2134,11 @@ namespace MP.SPEC.Data
|
||||
public async Task<bool> TemplateKitDelete(TemplateKitModel currRecord)
|
||||
{
|
||||
using var activity = ActivitySource.StartActivity("TemplateKitDelete");
|
||||
string source = "DB+REDIS";
|
||||
string source = "DB";
|
||||
bool fatto = false;
|
||||
// salvo
|
||||
fatto = dbController.TemplateKitDelete(currRecord);
|
||||
// svuoto cache
|
||||
RedisValue pattern = $"{Utils.redisKitTempl}:*";
|
||||
await ExecFlushRedisPatternAsync(pattern);
|
||||
await FlushCacheByTagAsync(Utils.redisKitTempl);
|
||||
activity?.SetTag("data.source", source);
|
||||
activity?.Stop();
|
||||
LogTrace($"TemplateKitDelete | {source} | {activity?.Duration.TotalMilliseconds}ms");
|
||||
@@ -2174,13 +2172,11 @@ namespace MP.SPEC.Data
|
||||
public async Task<bool> TemplateKitUpsert(TemplateKitModel currRecord, string codAzienda)
|
||||
{
|
||||
using var activity = ActivitySource.StartActivity("TemplateKitUpsert");
|
||||
string source = "DB+REDIS";
|
||||
string source = "DB";
|
||||
bool fatto = false;
|
||||
// salvo
|
||||
fatto = dbController.TemplateKitUpsert(currRecord, codAzienda);
|
||||
// svuoto cache
|
||||
RedisValue pattern = $"{Utils.redisKitTempl}:*";
|
||||
await ExecFlushRedisPatternAsync(pattern);
|
||||
await FlushCacheByTagAsync(Utils.redisKitTempl);
|
||||
activity?.SetTag("data.source", source);
|
||||
activity?.Stop();
|
||||
LogTrace($"TemplateKitUpsert | {source} | {activity?.Duration.TotalMilliseconds}ms");
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<RootNamespace>MP.SPEC</RootNamespace>
|
||||
<Version>8.16.2605.2909</Version>
|
||||
<Version>8.16.2605.2911</Version>
|
||||
<UserSecretsId>1800a78a-6ff1-40f9-b490-87fb8bfc1394</UserSecretsId>
|
||||
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
</div>
|
||||
<div class="input-group" style="min-width: 20rem;">
|
||||
<span class="input-group-text"><i class="fa fa-search"></i></span>
|
||||
<input type="text" class="form-control" placeholder="@($"Child {minChar}+ | Ctrl-R")" aria-label="Ricerca" title="@($"Ricerca Child | {minChar}+ | Ctrl-T")" @bind="@SearchChild" @bind:after="ResetDataAsync" accesskey="T">
|
||||
<input type="text" class="form-control" placeholder="@($"Child {minChar}+ | Ctrl-T")" aria-label="Ricerca" title="@($"Ricerca Child | {minChar}+ | Ctrl-T")" @bind="@SearchChild" @bind:after="ResetDataAsync" accesskey="T">
|
||||
<button class="btn @sChildCss" @onclick="() => ResetChild()"><i class="fa fa-ban"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -144,12 +144,12 @@ namespace MP.SPEC.Pages
|
||||
TemplateKitModel newRec = new TemplateKitModel()
|
||||
{
|
||||
CodArtParent = selRec.CodArtParent,
|
||||
CodArtChild = "",//selRec.CodArtParent,
|
||||
CodArtChild = "",
|
||||
Qty = selRec.Qty
|
||||
};
|
||||
EditRecord = newRec;
|
||||
SearchParent = selRec.CodArtParent;
|
||||
await Task.Delay(1);
|
||||
await ReloadDataAsync();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -171,18 +171,20 @@ namespace MP.SPEC.Pages
|
||||
/// Imposta filtro CodArtChild da record
|
||||
/// </summary>
|
||||
/// <param name="selRec"></param>
|
||||
protected void DoFiltChild(TemplateKitModel selRec)
|
||||
protected async Task DoFiltChild(TemplateKitModel selRec)
|
||||
{
|
||||
SearchChild = selRec.CodArtChild;
|
||||
await ResetDataAsync();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Imposta filtro CodArtParent da record
|
||||
/// </summary>
|
||||
/// <param name="selRec"></param>
|
||||
protected void DoFiltParent(TemplateKitModel selRec)
|
||||
protected async Task DoFiltParent(TemplateKitModel selRec)
|
||||
{
|
||||
SearchParent = selRec.CodArtParent;
|
||||
await ResetDataAsync();
|
||||
}
|
||||
|
||||
protected async Task DoUpdate(TemplateKitModel selRec)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<body>
|
||||
<i>Modulo MAPOSPEC </i>
|
||||
<h4>Versione: 8.16.2605.2909</h4>
|
||||
<h4>Versione: 8.16.2605.2911</h4>
|
||||
<br /> Note di rilascio:
|
||||
<ul>
|
||||
<li>
|
||||
|
||||
@@ -1 +1 @@
|
||||
8.16.2605.2909
|
||||
8.16.2605.2911
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<item>
|
||||
<version>8.16.2605.2909</version>
|
||||
<version>8.16.2605.2911</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>
|
||||
|
||||
+5
-5
@@ -42,6 +42,7 @@ Migrare la logica di caching manuale (Redis + DB) verso l'utilizzo di `IFusionCa
|
||||
- `MacchineWithFluxAsync`
|
||||
- `MachineWithOdlAsync`
|
||||
- `MachIobConfAsync`
|
||||
- `OdlByBatchAsync` (Migrato e rinominato)
|
||||
- `OdlListGetFiltAsync`
|
||||
- `OperatoriGetFiltAsync`
|
||||
- `ParametriGetFiltAsync`
|
||||
@@ -50,9 +51,10 @@ Migrare la logica di caching manuale (Redis + DB) verso l'utilizzo di `IFusionCa
|
||||
- `POdlToKitListGetFiltAsync`
|
||||
- `StatoMacchinaAsync`
|
||||
- `TksScoreAsync`
|
||||
- `WipKitFiltAsync`
|
||||
- `Traduci` (Migrato con `GetOrSet` su dizionario lingua)
|
||||
- `MseGetAll` (Migrato con `GetOrFetchAsync`)
|
||||
- `WipKitFiltAsync`
|
||||
- `MseGetAllAsync` (Migrato e rinominato)
|
||||
- `OdlByKeyAsync` (Migrato e rinominato)
|
||||
|
||||
#### 🛠️ Metodi da Migrare (Usano ancora Redis/DB manuale)
|
||||
- [ ] Migrazione di `ActionGetReq` (linea 110: usa `redisDb.StringGetAsync`).
|
||||
@@ -63,9 +65,6 @@ Migrare la logica di caching manuale (Redis + DB) verso l'utilizzo di `IFusionCa
|
||||
- [ ] Migrazione di `DossiersDeleteRecord` (linea 554: usa `ExecFlushRedisPatternAsync`).
|
||||
- [ ] Migrazione di `DossiersTakeParamsSnapshotLast` (linea 613: usa `ExecFlushRedisPatternAsync`).
|
||||
- [ ] Migrazione di `ElencoRepartiDTO` (linea 697: usa `redisDb.StringGet` e `StringSet`).
|
||||
- [ ] Migrazione di `OdlByBatch` (linea 1512: usa `redisDb.StringGet` e `StringSet`).
|
||||
- [ ] Migrazione di `OdlByKey` (linea 1546: usa `redisDb.StringGet` e `StringSet`).
|
||||
- [ ] Migrazione di `PODL_getByKey` (linea 1779: usa `redisDb.StringGet` e `StringSet`).
|
||||
- [ ] Migrazione di `PodlIstKitDelete` (linea 1842: usa `ExecFlushRedisPattern`).
|
||||
- [ ] Migrazione di `POdlListByKitParent` (linea 1863: usa `redisDb.StringGet` e `StringSet`).
|
||||
- [ ] Migrazione di `ProcFLStats` (linea 1992: usa `redisDb.StringSet`).
|
||||
@@ -82,3 +81,4 @@ Migrare la logica di caching manuale (Redis + DB) verso l'utilizzo di `IFusionCa
|
||||
- *Mitigazione*: Utilizzare rigorosamente le costanti in `Utils.redis...` per garantire che le chiavi siano identiche o gestite dal nuovo sistema.
|
||||
- **Rischio**: Errori di serializzazione.
|
||||
- *Mitigazione*: `FusionCache` gestisce la serializzazione, ma è necessario assicurarsi che i tipi di ritorno siano compatibili con le aspettative dei chiamanti.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user