diff --git a/MP.SPEC/Components/CmpFooter.razor.cs b/MP.SPEC/Components/CmpFooter.razor.cs index 45a9cccf..1bfe95fb 100644 --- a/MP.SPEC/Components/CmpFooter.razor.cs +++ b/MP.SPEC/Components/CmpFooter.razor.cs @@ -8,9 +8,12 @@ namespace MP.SPEC.Components public void Dispose() { - aTimer.Elapsed -= ElapsedTimer; - aTimer.Stop(); - aTimer.Dispose(); + if (aTimer != null) + { + aTimer.Elapsed -= ElapsedTimer; + aTimer.Stop(); + aTimer.Dispose(); + } } public void ElapsedTimer(object? source, System.Timers.ElapsedEventArgs e) diff --git a/MP.SPEC/Components/ListPODL.razor b/MP.SPEC/Components/ListPODL.razor index 5500e381..b790af50 100644 --- a/MP.SPEC/Components/ListPODL.razor +++ b/MP.SPEC/Components/ListPODL.razor @@ -12,7 +12,7 @@ else if (totalCount == 0) else {
| Cod | Articolo | Fase | -Macchina | -Info ciclo | - @*Note | *@ -Att | -+ @if (!showRecipe) + { + | Macchina | +Info ciclo | +Att | ++ } |
|---|---|---|---|---|---|---|---|---|---|---|---|
| - - @if (record.IdxOdl == 0) + @if (!showRecipe) { - @if (canStartOdl(record.IdxMacchina)) + + @if (record.IdxOdl == 0) { - + @if (canStartOdl(record.IdxMacchina)) + { + + } + else + { + + } + @if (canStartOdl(record.IdxMacchina)) + { + + } + else + { + + } } - else + } + @if (MachineWithRecipe) + { + @if (machineHasRecipe(record.IdxMacchina).Result) { - - } - @if (canStartOdl(record.IdxMacchina)) - { - - } - else - { - | -
- @record.IdxMacchina
- @record.Nome
- |
-
- N° pezzi: @record.NumPezzi
- T. Ciclo: @record.Tcassegnato.ToString("N3")
- |
- @*@record.Note | *@ -- @if (@record.Attivabile) - { - - } - else - { - - } - | -
- @if (POdlDelEnabled(record.IdxOdl))
- {
- |
+ @if (!showRecipe)
+ {
+
+ @record.IdxMacchina
+ @record.Nome
+ |
+
+ N° pezzi: @record.NumPezzi
+ T. Ciclo: @record.Tcassegnato.ToString("N3")
+ |
+ + @if (@record.Attivabile) + { + + } + else + { + + } + | +
+ @if (POdlDelEnabled(record.IdxOdl))
+ {
+ |
+ }