diff --git a/MP-TAB-SERV/MP-TAB-SERV.csproj b/MP-TAB-SERV/MP-TAB-SERV.csproj index aeee70c9..442f9ce5 100644 --- a/MP-TAB-SERV/MP-TAB-SERV.csproj +++ b/MP-TAB-SERV/MP-TAB-SERV.csproj @@ -3,7 +3,7 @@ net6.0 enable - 6.16.2310.1107 + 6.16.2310.1108 enable MP_TAB_SERV diff --git a/MP-TAB-SERV/Pages/ProdStop.razor.cs b/MP-TAB-SERV/Pages/ProdStop.razor.cs index 11dd336d..89638727 100644 --- a/MP-TAB-SERV/Pages/ProdStop.razor.cs +++ b/MP-TAB-SERV/Pages/ProdStop.razor.cs @@ -12,6 +12,7 @@ namespace MP_TAB_SERV.Pages #region Protected Fields protected int dltMinRealtime = 1; + protected bool isProcessing = false; protected int minAnticipoRicalcolo = 1; protected bool rdm_ChkOnly = false; protected int rdm_nEvCheck = 1; @@ -71,8 +72,6 @@ namespace MP_TAB_SERV.Pages #region Protected Methods - protected bool isProcessing = false; - /// /// Processo registrazione eventi /// diff --git a/MP-TAB-SERV/Pages/WorkShift.razor b/MP-TAB-SERV/Pages/WorkShift.razor index 23ce07d9..99a02e20 100644 --- a/MP-TAB-SERV/Pages/WorkShift.razor +++ b/MP-TAB-SERV/Pages/WorkShift.razor @@ -9,6 +9,51 @@ else
- +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+
+
+

Stato Turni Attivi

+
+
+ Turno 1 +
+
+ Turno 2 +
+
+ Turno 3 +
+
+
+
+ Turno Aperto +
+
+ Turno Chiuso +
+
+
+
} diff --git a/MP-TAB-SERV/Pages/WorkShift.razor.cs b/MP-TAB-SERV/Pages/WorkShift.razor.cs index b2091453..605b1ee6 100644 --- a/MP-TAB-SERV/Pages/WorkShift.razor.cs +++ b/MP-TAB-SERV/Pages/WorkShift.razor.cs @@ -36,10 +36,58 @@ namespace MP_TAB_SERV.Pages if (!string.IsNullOrEmpty(IdxMacc)) { CurrMSE = await MsgServ.GetMachineMse(IdxMacc); + // recupero turni + currTurni = await TabServ.TurnoMacchinaGet(IdxMacc); } } } + protected bool T1 + { + get => currTurni.T1; + set + { + if (currTurni.T1 != value) + { + currTurni.T1 = value; + TabServ.TurnoMacchinaToggle(IdxMacc, 1); + } + } + } + protected bool T2 + { + get => currTurni.T2; + set + { + if (currTurni.T2 != value) + { + currTurni.T2 = value; + TabServ.TurnoMacchinaToggle(IdxMacc, 2); + } + } + } + protected bool T3 + { + get => currTurni.T3; + set + { + if (currTurni.T3 != value) + { + currTurni.T3 = value; + TabServ.TurnoMacchinaToggle(IdxMacc, 3); + } + } + } + + protected string cssByState(bool isActive) + { + return isActive ? "bg-success text-warning" : "bg-secondary"; + } + + [Inject] + protected TabDataService TabServ { get; set; } = null!; + protected TurniMaccModel currTurni { get; set; } = new TurniMaccModel(); + #endregion Private Methods } } \ No newline at end of file diff --git a/MP-TAB-SERV/Resources/ChangeLog.html b/MP-TAB-SERV/Resources/ChangeLog.html index 35f33570..2a9317d6 100644 --- a/MP-TAB-SERV/Resources/ChangeLog.html +++ b/MP-TAB-SERV/Resources/ChangeLog.html @@ -1,6 +1,6 @@ Modulo MAPOSPEC -

Versione: 6.16.2310.1107

+

Versione: 6.16.2310.1108


Note di rilascio: