- fix reset scarti confermati alla gestione ODL (chiudi/nuovo)
This commit is contained in:
Samuele Locatelli
2024-11-14 16:07:44 +01:00
parent a9f2af1025
commit 9eb3ef6645
9 changed files with 27 additions and 8 deletions
+1 -1
View File
@@ -200,7 +200,7 @@ else
{
<div class="text-end text-danger d-flex justify-content-between">
<div class="px-0">
Scarto
Scarto Conf
</div>
<div class="px-0">
@($"- {datiProdAct.PzConfScarto}")
+2 -2
View File
@@ -199,7 +199,7 @@ namespace MP_TAB3.Components
}
/// <summary>
/// Dati produzioen rilevati
/// Dati produzione rilevati
/// </summary>
protected StatoProdModel? datiProdAct { get; set; } = null;
@@ -258,7 +258,7 @@ namespace MP_TAB3.Components
// controllo SE ho variazioni così rileggo
if (RecMSE != null)
{
if (SDService.MachNumPzGet(RecMSE.IdxMacchina) != RecMSE.PezziProd)
if (SDService.MachNumPzGet(RecMSE.IdxMacchina) != RecMSE.PezziProd || SDService.MachProdStGet(RecMSE.IdxMacchina).IdxOdl != RecMSE.IdxOdl)
{
datiProdAct = await TabDServ.StatoProdMacchina(RecMSE.IdxMacchina, adesso);
SDService.MachProdStSet(RecMSE.IdxMacchina, datiProdAct);
+14
View File
@@ -429,6 +429,10 @@ namespace MP_TAB3.Components
if (!await JSRuntime.InvokeAsync<bool>("confirm", $"PODL: {currPodl.IdxPromessa}{Environment.NewLine}Art: [{currPodl.CodArticolo}] {currPodl.DescArticolo}{Environment.NewLine}Pezzi: {currPodl.NumPezzi} * TCiclo: {tcRichAttr:N3}min{Environment.NewLine}Tempo stimato: {stima}{Environment.NewLine}{Environment.NewLine}Confermi la chiusura della fase di attrezzaggio?"))
return;
// prima di tutto svuoto dati prod
SDService.MachProdStRem(IdxMaccSel);
// preparo gestione progress display
MaxVal = 8;
int currStep = 0;
@@ -547,6 +551,9 @@ namespace MP_TAB3.Components
// preparo gestione progress display
MaxVal = 11;
int currStep = 0;
// elimino dati status...
SDService.MachProdStRem(IdxMaccSel);
SDService.MachProdStRem(IdxMaccParent);
if (isMulti)
{
@@ -811,6 +818,7 @@ namespace MP_TAB3.Components
await advStep(currStep);
// leggo idxOdl da ultimo odl attivo x macchina
var currOdl = await TabDServ.OdlCurrByMacc(IdxMaccSel, false);
SDService.MachProdStRem(IdxMaccSel);
int idxODLCurr = currOdl.IdxOdl;
int idxEvento = 7;
// !!!HARD CODED confermo prod vecchio ODL
@@ -980,6 +988,9 @@ namespace MP_TAB3.Components
if (!await JSRuntime.InvokeAsync<bool>("confirm", $"Confermi invio FIX chiusura attrezzaggio ad impianto?"))
return;
// prima di tutto svuoto dati prod
SDService.MachProdStRem(IdxMaccSel);
string ts = string.Format("{0:yyMMdd}T{0:HHmmss.fff}Z", DateTime.Now);
string outData = $"TS:{ts}|MATR:{MatrOpr}|ODL:{IdxOdl}";
TabDServ.addTask4Machine(IdxMaccSel, taskType.fixStopSetup, outData);
@@ -1062,6 +1073,9 @@ namespace MP_TAB3.Components
if (!await JSRuntime.InvokeAsync<bool>("confirm", $"Confermi richiesta riattrezzaggio ODL, con conseguente chiusura ODL corrente + split nuovo ODL con TC {tcRichAttr:N3}?"))
return;
// prima di tutto svuoto dati prod
SDService.MachProdStRem(IdxMaccSel);
// preparo gestione progress display
MaxVal = 9;
int currStep = 0;
+5
View File
@@ -52,6 +52,9 @@ namespace MP_TAB3.Components
}
}
[Inject]
protected StatusData SDService { get; set; } = null!;
[Inject]
protected SharedMemService SMServ { get; set; } = null!;
@@ -105,6 +108,8 @@ namespace MP_TAB3.Components
{
// reset
DoReset();
// prima di tutto svuoto dati prod
SDService.MachProdStRem(IdxMaccSel);
errMsg = "";
await E_Updated.InvokeAsync(true);
await ReloadData();
+1 -1
View File
@@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<Version>6.16.2411.706</Version>
<Version>6.16.2411.1415</Version>
<ImplicitUsings>enable</ImplicitUsings>
<RootNamespace>MP_TAB3</RootNamespace>
</PropertyGroup>
+1 -1
View File
@@ -1,6 +1,6 @@
<body>
<i>Modulo MAPOSPEC </i>
<h4>Versione: 6.16.2411.706</h4>
<h4>Versione: 6.16.2411.1415</h4>
<br /> Note di rilascio:
<ul>
<li>
+1 -1
View File
@@ -1 +1 @@
6.16.2411.706
6.16.2411.1415
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>6.16.2411.706</version>
<version>6.16.2411.1415</version>
<url>https://nexus.steamware.net/repository/SWS/MP-TAB3/stable/LAST/MP-TAB3.zip</url>
<changelog>https://nexus.steamware.net/repository/SWS/MP-TAB3/stable/LAST/ChangeLog.html</changelog>
<mandatory>false</mandatory>
+1 -1
View File
@@ -213,7 +213,7 @@ namespace MP.Data.Services
}
/// <summary>
/// Restituisce numPezzi (ultimo) x macchina
/// Restituisce stato prod x NumPezzi (ultimo) x macchina
/// </summary>
/// <param name="idxMacchina"></param>
/// <returns></returns>