diff --git a/MP.MON/Components/Compo/CmpFooter.razor b/MP.MON/Components/Compo/CmpFooter.razor deleted file mode 100644 index 0307f939..00000000 --- a/MP.MON/Components/Compo/CmpFooter.razor +++ /dev/null @@ -1,14 +0,0 @@ -
-
- Mapo MON @(DateTime.Today.Year) | v.@version -
-
- @if (Width > 0) - { - - } - @Width x @Height | - @(OperatingSystem.IsBrowser() ? "WASM" : "Server") - | Egalware -
-
\ No newline at end of file diff --git a/MP.MON/Components/Compo/CmpFooter.razor.cs b/MP.MON/Components/Compo/CmpFooter.razor.cs deleted file mode 100644 index a8acd68c..00000000 --- a/MP.MON/Components/Compo/CmpFooter.razor.cs +++ /dev/null @@ -1,113 +0,0 @@ -using Microsoft.AspNetCore.Components; -using Microsoft.JSInterop; -using System; - -namespace MP.MON.Components.Compo -{ - public partial class CmpFooter : ComponentBase //, IDisposable - { - #region Public Properties - - [Parameter] - public Version version { get; set; } = null!; - - #endregion Public Properties - - #region Public Methods - -#if false - public void Dispose() - { - aTimer.Stop(); - aTimer.Dispose(); - } - - public void ElapsedTimer(object? source, System.Timers.ElapsedEventArgs e) - { - var pUpd = Task.Run(async () => - { - await Task.Delay(1); - //Console.WriteLine($"{DateTime.Now} | Elapsed Timer Footer"); - await InvokeAsync(() => StateHasChanged()); - }); - pUpd.Wait(); - } - - public void StartTimer() - { - int tOutPeriod = 1000; - aTimer = new System.Timers.Timer(tOutPeriod); - aTimer.Elapsed += ElapsedTimer; - aTimer.Enabled = true; - aTimer.Start(); - } -#endif - - #endregion Public Methods - - #region Public Classes - - public class WindowDimension - { - #region Public Properties - - public int Height { get; set; } - public int Width { get; set; } - - #endregion Public Properties - } - - #endregion Public Classes - - #region Protected Properties - - [Inject] - protected IJSRuntime JSRuntime { get; set; } = null!; - - #endregion Protected Properties - - #region Protected Methods - - protected async Task getWDim() - { - var dimension = await JSRuntime.InvokeAsync("getWindowDimensions"); - Height = dimension.Height; - Width = dimension.Width; - } - - protected override async Task OnAfterRenderAsync(bool firstRender) - { - if (firstRender) - { - await getWDim(); - StateHasChanged(); - Console.WriteLine($"Dimensioni schermo: {Width}x{Height}"); - } - //Console.WriteLine($"OnAfterRenderAsync completato"); - } - - protected override void OnInitialized() - { -#if false - StartTimer(); -#endif - Console.WriteLine($"OnInitialized Footer completato"); - } - - #endregion Protected Methods - - #region Private Fields - - private static System.Timers.Timer aTimer = null!; - - #endregion Private Fields - - #region Private Properties - - private int Height { get; set; } = 0; - - private int Width { get; set; } = 0; - - #endregion Private Properties - } -} \ No newline at end of file diff --git a/MP.MON/Components/Compo/CmpHeader.razor b/MP.MON/Components/Compo/CmpHeader.razor deleted file mode 100644 index 28357073..00000000 --- a/MP.MON/Components/Compo/CmpHeader.razor +++ /dev/null @@ -1,20 +0,0 @@ -
- -   -
-
- - Mapo MONitor - -
-
- - @($"{DateTime.Now:yyyy.MM.dd}") - - - @($"{DateTime.Now:HH:mm:ss}") - - @* - EgalWare *@ -
- diff --git a/MP.MON/Components/Compo/CmpHeader.razor.cs b/MP.MON/Components/Compo/CmpHeader.razor.cs deleted file mode 100644 index 6574b2db..00000000 --- a/MP.MON/Components/Compo/CmpHeader.razor.cs +++ /dev/null @@ -1,53 +0,0 @@ -using Microsoft.AspNetCore.Components; - -namespace MP.MON.Components.Compo -{ - public partial class CmpHeader : ComponentBase, IDisposable - { - #region Public Methods - - public void Dispose() - { - aTimer.Stop(); - aTimer.Dispose(); - } - - public void ElapsedTimer(Object source, System.Timers.ElapsedEventArgs e) - { - var pUpd = Task.Run(async () => - { - await Task.Delay(1); - //Console.WriteLine($"{DateTime.Now} | Elapsed Timer Footer"); - await InvokeAsync(() => StateHasChanged()); - }); - pUpd.Wait(); - } - - public void StartTimer() - { - int tOutPeriod = 1000; - aTimer = new System.Timers.Timer(tOutPeriod); - aTimer.Elapsed += ElapsedTimer; - aTimer.Enabled = true; - aTimer.Start(); - } - - #endregion Public Methods - - #region Protected Methods - - protected override void OnInitialized() - { - StartTimer(); - Console.WriteLine($"OnInitialized Header completato"); - } - - #endregion Protected Methods - - #region Private Fields - - private static System.Timers.Timer aTimer = null!; - - #endregion Private Fields - } -} \ No newline at end of file diff --git a/MP.MON/Components/Compo/DetailMSE.razor b/MP.MON/Components/Compo/DetailMSE.razor deleted file mode 100644 index 2a30e66f..00000000 --- a/MP.MON/Components/Compo/DetailMSE.razor +++ /dev/null @@ -1,145 +0,0 @@ -
- @if (CurrRecord == null || !dataLoaded) - { - - } - else - { -
-
-
- @CurrRecord.Nome -
-
- @if (hasRow(1)) - { -
- @foreach (var item in rowValues(1)) - { -
@item.TagName: @currVal(item.TagLocation)
- } -
- } - else - { -
-
Art
-
- @if (showArt == "CodArticolo") - { - @CurrRecord.CodArticolo - } - else - { - if (string.IsNullOrEmpty(CurrRecord.Disegno)) - { - [@CurrRecord.CodArticolo] - } - else - { - @CurrRecord.Disegno - } - } -
-
- } - @if (hasRow(2)) - { -
- @foreach (var item in rowValues(2)) - { -
@item.TagName: @currVal(item.TagLocation)
- } -
- } - else - { -
-
PODL
-
@(CurrRecord.IdxPOdl > 0 ? $"{CurrRecord.IdxPOdl:00000000}" : "-")
-
-
-
ODL
-
@(CurrRecord.IdxOdl > 0 ? $"{CurrRecord.IdxOdl:00000000}" : "-")
-
- } - @if (hasRow(3)) - { -
- @foreach (var item in rowValues(3)) - { -
@item.TagName: @currVal(item.TagLocation)
- } -
- } - else - { -
-
@CurrRecord.DescrizioneStato
-
@getMinSec(getDecimal(@CurrRecord.Durata))
-
- } - @if (hasRow(4)) - { -
- @foreach (var item in rowValues(4)) - { -
@item.TagName: @currVal(item.TagLocation)
- } -
- } - else - { -
-
TC. Act
- @*
std @getMinSec(@CurrRecord.TCAssegnato)
*@ -
@getMinSec(@CurrRecord.TCLavRT) [@getMinSec(@CurrRecord.TCAssegnato)]
-
- } - @if (hasRow(5)) - { -
- @foreach (var item in rowValues(5)) - { -
@item.TagName: @currVal(item.TagLocation)
- } -
- } - else - { -
-
Pezzip/o
-
@CurrRecord.PezziProd / @CurrRecord.NumPezzi
-
- } - @if (hasRow(6)) - { -
- @foreach (var item in rowValues(6)) - { -
@item.TagName: @currVal(item.TagLocation)
- } -
- } -
-
-
-
- -
-
-
- } -
\ No newline at end of file diff --git a/MP.MON/Components/Compo/DetailMSE.razor.cs b/MP.MON/Components/Compo/DetailMSE.razor.cs deleted file mode 100644 index aab7900c..00000000 --- a/MP.MON/Components/Compo/DetailMSE.razor.cs +++ /dev/null @@ -1,322 +0,0 @@ -using Microsoft.AspNetCore.Components; -using MP.Core.Conf; -using MP.Core.DTO; - -namespace MP.MON.Components.Compo -{ - public partial class DetailMSE : ComponentBase - { - #region Public Properties - - [Parameter] - public string cssOverlayOff { get; set; } = ""; - - [Parameter] - public MappaStatoExplDTO? CurrRecord { get; set; } = null; - - [Parameter] - public List? currTagConf { get; set; } = null; - - [Parameter] - public Dictionary currTagVal { get; set; } = new Dictionary(); - - [Parameter] - public bool doAnimate { get; set; } = true; - - [Parameter] - public bool doBlink { get; set; } = false; - - [Parameter] - public int keepAliveMin { get; set; } = 5; - - [Parameter] - public int maxChar4Scroll { get; set; } = 20; - - [Parameter] - public string showArt { get; set; } = ""; - - #endregion Public Properties - - #region Public Methods - - public void Dispose() - { - aTimer.Elapsed -= ElapsedTimer; - aTimer.Stop(); - aTimer.Dispose(); - } - - public void ElapsedTimer(object? source, System.Timers.ElapsedEventArgs e) - { - var pUpd = Task.Run(async () => - { - await Task.Delay(1); - // verifica variazione x blink... - bool needUpdate = false; - if (CurrRecord == null) - { - needUpdate = true; - } - else - { - if (OldRecord == null) - { - needUpdate = true; - } - else - { - if (!CurrRecord.Semaforo.Equals(OldRecord.Semaforo) || CurrRecord.Semaforo != "sVe") - { - needUpdate = true; - } - } - } - if (needUpdate) - { - await InvokeAsync(() => StateHasChanged()); - } - OldRecord = CurrRecord; - }); - pUpd.Wait(); - } - - public void StartTimer() - { - int tOutPeriod = 1000; - //int.TryParse(Configuration["ReloadStatusTimer"], out tOutPeriod); - aTimer = new System.Timers.Timer(tOutPeriod); - aTimer.Elapsed += ElapsedTimer; - aTimer.Enabled = true; - aTimer.Start(); - } - - #endregion Public Methods - - #region Protected Fields - - protected string baseCss = "sem"; - - protected int kaFactor = 60 / 2; - - #endregion Protected Fields - - #region Protected Properties - - protected string codIOB - { - get - { - string answ = ""; - if (CurrRecord != null) - { - answ = CurrRecord.IdxMacchina; - } - return answ; - } - } - - protected bool dataLoaded { get; set; } = false; - - /// - /// CSS Class x overlay (effetto spento x macchina spenta/ sGr) - /// - protected string overlayCss - { - get - { - string answ = ""; - if (CurrRecord != null) - { - answ = CurrRecord.Semaforo == "sGr" ? cssOverlayOff : ""; - } - return answ; - } - } - - #endregion Protected Properties - - #region Protected Methods - - /// - /// restituisce il valore data la tagLocation - /// - /// - /// - protected string currVal(string tagLocation) - { - string answ = ""; - if (currTagVal.ContainsKey(tagLocation)) - { - answ = currTagVal[tagLocation]; - } - return answ; - } - - /// - /// Verifica se ci sia un override per la riga indicata - /// - /// - /// - protected bool hasRow(int numRow) - { - bool answ = false; - if (currTagConf != null) - { - if (currTagConf.Count > 0) - { - var currVals = rowValues(numRow); - answ = currVals.Count > 0; - } - } - return answ; - } - - protected override async Task OnInitializedAsync() - { - //StartTimer(); - Random rnd = new Random(); - await Task.Delay(rnd.Next(5)); - setupConf(); - dataLoaded = true; - } - - /// - /// Restituisce (se presenti) valori di override per la riga indicata - /// - /// - /// - protected List rowValues(int numRow) - { - List? rowVals = null; - if (currTagConf != null) - { - if (currTagConf.Count > 0) - { - //cerco solo la riga corrente... - rowVals = currTagConf.Where(x => x.RowNum == numRow).ToList(); - } - } - if (rowVals == null) - { - rowVals = new List(); - } - return rowVals; - } - - /// - /// CSS class x testo (se descr lunga scorre...) - /// - protected string textDescrCss(string currText, int maxChar) - { - string answ = "text-nowrap"; - if (currText.Length > maxChar) - { - answ = " scroll-left"; - } - return answ; - } - - #endregion Protected Methods - - #region Private Properties - - private static System.Timers.Timer aTimer { get; set; } = null!; - - /// - /// Valore precedente x calcolo variazione - /// - private MappaStatoExplDTO? OldRecord { get; set; } = null; - - #endregion Private Properties - - #region Private Methods - - private string cssComStatus(string semaforo, DateTime? lastUpdateN) - { - DateTime lastUpdate = lastUpdateN.HasValue ? (DateTime)lastUpdateN : DateTime.Now.AddHours(-1); - string answ = cssStatus(semaforo); - if (DateTime.Now.Subtract(lastUpdate).TotalSeconds > (keepAliveMin * kaFactor)) - { - answ = $"{baseCss}Ro"; - // blink se secondo pari... - DateTime adesso = DateTime.Now; - int resto = 0; - Math.DivRem(adesso.Second, 2, out resto); - if (resto == 0) - { - answ += "_b"; - } - } - return answ; - } - - private string cssStatus(string codSemaforo) - { - // se vuoto --> mostra nero! - if (string.IsNullOrEmpty(codSemaforo)) - { - codSemaforo = "sNe"; - } - string codColore = codSemaforo.Substring(1, 2); - string answ = $"{baseCss}{codColore}"; - if (doAnimate && codColore != "Ve") - { - if (doBlink) - { - answ += "_b"; - } - } - return answ; - } - - private decimal getDecimal(object? rawData) - { - decimal answ = 0; - if (rawData != null) - { - decimal.TryParse($"{rawData}", out answ); - } - return answ; - } - - private string getMinSec(decimal? currTimeMin) - { - string answ = "nd"; - TimeSpan tSpan = new TimeSpan(0); - try - { - double cTimeMin = currTimeMin != null ? (double)currTimeMin : 0; - tSpan = TimeSpan.FromMinutes(cTimeMin); - if (tSpan.TotalHours < 1) - { - answ = $"{tSpan:mm}:{tSpan:ss}"; - } - else - { - answ = $"{tSpan.TotalHours:N0}h {tSpan:mm}:{tSpan:ss}"; - } - } - catch - { } - return answ; - } - - private void setupConf() - { - //baseCss = doAnimate ? "semBlink" : "sem"; - } - - private bool showComErr(DateTime? lastUpdateN) - { - DateTime lastUpdate = lastUpdateN.HasValue ? (DateTime)lastUpdateN : DateTime.Now.AddHours(-1); - bool answ = false; - if (DateTime.Now.Subtract(lastUpdate).TotalSeconds > (keepAliveMin * kaFactor)) - { - answ = true; - } - return answ; - } - - #endregion Private Methods - } -} \ No newline at end of file diff --git a/MP.MON/Components/Compo/DetailMapSelector.razor b/MP.MON/Components/Compo/DetailMapSelector.razor deleted file mode 100644 index a6911977..00000000 --- a/MP.MON/Components/Compo/DetailMapSelector.razor +++ /dev/null @@ -1,44 +0,0 @@ -@using MP.Core.Conf -@using MP.Core.DTO; - -@if (useNewDisplay) -{ - -} -else -{ - -} - -@code { - - [Parameter] - public MappaStatoExplDTO? currRecord { get; set; } = null; - - [Parameter] - public List? currTagConf { get; set; } = null; - - [Parameter] - public Dictionary currTagVal { get; set; } = new Dictionary(); - - [Parameter] - public bool doAnimate { get; set; } = true; - - [Parameter] - public bool doBlink { get; set; } = false; - - [Parameter] - public int keepAliveMin { get; set; } = 5; - - [Parameter] - public int maxChar4Scroll { get; set; } = 20; - - [Parameter] - public string showArt { get; set; } = ""; - [Parameter] - public bool useNewDisplay { get; set; } = true; - - - [Parameter] - public string cssOverlayOff { get; set; } = ""; -} diff --git a/MP.MON/Components/Compo/DetailViewMSE.razor b/MP.MON/Components/Compo/DetailViewMSE.razor deleted file mode 100644 index 6ec1ca9c..00000000 --- a/MP.MON/Components/Compo/DetailViewMSE.razor +++ /dev/null @@ -1,154 +0,0 @@ -@if (CurrRecord == null || !dataLoaded) -{ - -} -else -{ -
-
-
-
- @CurrRecord.Nome -
-
- @if (hasRow(1)) - { -
- @foreach (var item in rowValues(1)) - { -
@item.TagName: @currVal(item.TagLocation)
- } -
- } - else - { -
-
- ART: -
-
- @if (showArt == "CodArticolo") - { - @CurrRecord.CodArticolo - } - else - { - if (string.IsNullOrEmpty(CurrRecord.Disegno)) - { - [@CurrRecord.CodArticolo] - } - else - { - @CurrRecord.Disegno - } - } -
-
- } - @if (hasRow(2)) - { -
- @foreach (var item in rowValues(2)) - { -
@item.TagName: @currVal(item.TagLocation)
- } -
- } - else - { -
-
- PODL: -
-
- @(CurrRecord.IdxPOdl > 0 ? $"{CurrRecord.IdxPOdl:000000}" : "-") -
-
-
-
- ODL: -
-
- @(CurrRecord.IdxOdl > 0 ? $"{CurrRecord.IdxOdl:000000}" : "-") -
-
- } - @if (showTC) - { - @if (hasRow(3)) - { -
- @foreach (var item in rowValues(4)) - { -
@item.TagName: @currVal(item.TagLocation)
- } -
- } - else - { -
-
TC. Act
-
@getMinSec(@CurrRecord.TCLavRT) [@getMinSec(@CurrRecord.TCAssegnato)]
-
- } - } -
-
-
- @if (hasRow(4)) - { -
- @foreach (var item in rowValues(3)) - { -
@item.TagName: @currVal(item.TagLocation)
- } -
- } - else - { -
-
- @CurrRecord.DescrizioneStato -
-
@getMinSec(getDecimal(@CurrRecord.Durata))
-
- } - @if (hasRow(5)) - { -
- @foreach (var item in rowValues(5)) - { -
@item.TagName: @currVal(item.TagLocation)
- } -
- } - else - { -
-
- @CurrRecord.PezziProd / @CurrRecord.NumPezzi -
-
- } -
-
- -
-} - diff --git a/MP.MON/Components/Compo/DetailViewMSE.razor.cs b/MP.MON/Components/Compo/DetailViewMSE.razor.cs deleted file mode 100644 index 692da79e..00000000 --- a/MP.MON/Components/Compo/DetailViewMSE.razor.cs +++ /dev/null @@ -1,303 +0,0 @@ -using Microsoft.AspNetCore.Components; -using MP.Core.DTO; -using MP.Core.Conf; - -namespace MP.MON.Components.Compo -{ - public partial class DetailViewMSE : ComponentBase - { - #region Public Properties - - [Parameter] - public MappaStatoExplDTO? CurrRecord { get; set; } = null; - - [Parameter] - public List? currTagConf { get; set; } = null; - - [Parameter] - public Dictionary currTagVal { get; set; } = new Dictionary(); - - [Parameter] - public bool doAnimate { get; set; } = true; - - [Parameter] - public bool doBlink { get; set; } = false; - - [Parameter] - public int keepAliveMin { get; set; } = 5; - - [Parameter] - public int maxChar4Scroll { get; set; } = 20; - - [Parameter] - public string showArt { get; set; } = ""; - - [Parameter] - public bool scrollText { get; set; } = false; - - [Parameter] - public string brightCss { get; set; } = ""; - - [Parameter] - public string titleMult { get; set; } = ""; - - [Parameter] - public bool showTC { get; set; } = false; - -#if false - protected override void OnParametersSet() - { - base.OnParametersSet(); - Console.WriteLine($"{DateTime.Now} | {CurrRecord.IdxMacchina} params received!"); - } -#endif - - #endregion Public Properties - - #region Protected Fields - - protected int kaFactor = 60 / 2; - - #endregion Protected Fields - - #region Protected Properties - - protected bool dataLoaded { get; set; } = true; - - #endregion Protected Properties - - #region Protected Methods - - /// - /// restituisce il valore data la tagLocation - /// - /// - /// - protected string currVal(string tagLocation) - { - string answ = ""; - if (currTagVal.ContainsKey(tagLocation)) - { - answ = currTagVal[tagLocation]; - } - return answ; - } - - /// - /// Verifica se ci sia un override per la riga indicata - /// - /// - /// - protected bool hasRow(int numRow) - { - bool answ = false; - if (currTagConf != null) - { - if (currTagConf.Count > 0) - { - var currVals = rowValues(numRow); - answ = currVals.Count > 0; - } - } - return answ; - } - - /// - /// Restituisce (se presenti) valori di override per la riga indicata - /// - /// - /// - protected List rowValues(int numRow) - { - List? rowVals = null; - if (currTagConf != null) - { - if (currTagConf.Count > 0) - { - //cerco solo la riga corrente... - rowVals = currTagConf.Where(x => x.RowNum == numRow).ToList(); - } - } - if (rowVals == null) - { - rowVals = new List(); - } - return rowVals; - } - - /// - /// CSS class x testo (se descr lunga scorre...) - /// - protected string textCss(string currText) - { - string answ = "text-truncate"; - if (currText.Length > maxChar4Scroll) - { - answ = scrollText ? "scroll-left" : "text-reduced"; - // calcolo delta... a-b-c con 5-10-oltre - int delta = currText.Length - maxChar4Scroll; - if (delta < 5) - { - answ += "-a"; - } - else if (delta < 10) - { - answ += "-b"; - } - else - { - answ += "-c"; - } - } - return answ; - } - - #endregion Protected Methods - - #region Private Methods - - private string cssComStatus(string semaforo, DateTime? lastUpdateN) - { - DateTime lastUpdate = lastUpdateN.HasValue ? (DateTime)lastUpdateN : DateTime.Now.AddHours(-1); - string answ = "bg-dark opacity-75"; cssStatus(semaforo, false); - if (DateTime.Now.Subtract(lastUpdate).TotalSeconds > (keepAliveMin * kaFactor)) - { - answ = $"bg-danger"; - // blink se secondo pari... -#if false - DateTime adesso = DateTime.Now; - int resto = 0; - Math.DivRem(adesso.Second, 2, out resto); - if (resto == 0) - { - answ += " opacity-100"; - } -#endif - } - return answ; - } - - private string cssStatus(string codSemaforo, bool animate) - { - string answ = ""; - // se vuoto --> mostra nero! - if (string.IsNullOrEmpty(codSemaforo)) - { - codSemaforo = "sNe"; - } - string codColore = codSemaforo.Substring(1, 2); - switch (codSemaforo) - { - case "sVe": - answ = "bg-success"; - animate = false; - break; - - case "sGi": - answ = "bg-warning"; - break; - - case "sGr": - answ = "bg-dark opacity-50"; - animate = false; - break; - - case "sRo": - answ = "bg-danger"; - break; - - case "sBl": - answ = "bg-primary"; - break; - - case "sNe": - answ = "bg-dark"; - break; - - default: - break; - } - if (animate) - { - if (doBlink) - { - answ += " opacity-50"; - } - else - { - //answ += " bright100"; - textBlinkBright = brightCss; - } - } - return answ; - } - - /// - /// Valore brightness solo x elementi testuali durante lampeggio - /// - protected string textBlinkBright = "bright100"; - - private decimal getDecimal(object? rawData) - { - decimal answ = 0; - if (rawData != null) - { - decimal.TryParse($"{rawData}", out answ); - } - return answ; - } - - private string getMinSec(decimal? currTimeMin) - { - string answ = "nd"; - TimeSpan tSpan = new TimeSpan(0); - try - { - double cTimeMin = currTimeMin != null ? (double)currTimeMin : 0; - tSpan = TimeSpan.FromMinutes(cTimeMin); - if (tSpan.TotalHours < 1) - { - answ = $"{tSpan:mm}:{tSpan:ss}"; - } - else - { - answ = $"{tSpan.TotalHours:00}:{tSpan:mm}:{tSpan:ss}"; - } - } - catch - { } - return answ; - } - - private bool showComErr(DateTime? lastUpdateN) - { - DateTime lastUpdate = lastUpdateN.HasValue ? (DateTime)lastUpdateN : DateTime.Now.AddHours(-1); - bool answ = false; - if (DateTime.Now.Subtract(lastUpdate).TotalSeconds > (keepAliveMin * kaFactor)) - { - answ = true; - } - return answ; - } - - private string textC101(DateTime? lastUpdateN) - { - DateTime lastUpdate = lastUpdateN.HasValue ? (DateTime)lastUpdateN : DateTime.Now.AddHours(-1); - string answ = "text-light"; - if (DateTime.Now.Subtract(lastUpdate).TotalSeconds > (keepAliveMin * kaFactor)) - { - // blink se secondo pari... - DateTime adesso = DateTime.Now; - int resto = 0; - Math.DivRem(adesso.Second, 2, out resto); - if (resto == 1) - { - answ = $"text-danger"; - } - } - return answ; - } - - #endregion Private Methods - } -} \ No newline at end of file diff --git a/MP.MON/Components/Compo/LoadingData.razor b/MP.MON/Components/Compo/LoadingData.razor deleted file mode 100644 index e0b7f563..00000000 --- a/MP.MON/Components/Compo/LoadingData.razor +++ /dev/null @@ -1,10 +0,0 @@ -
-
-

MAPO MON

- EgalWare MES suite -
-
-

loading data | @(OperatingSystem.IsBrowser() ? "WASM" : "Server") mode

- -
-
\ No newline at end of file diff --git a/MP.MON/Components/Compo/LoadingDataSmall.razor b/MP.MON/Components/Compo/LoadingDataSmall.razor deleted file mode 100644 index 196dafc7..00000000 --- a/MP.MON/Components/Compo/LoadingDataSmall.razor +++ /dev/null @@ -1,6 +0,0 @@ -
-
- loading data - -
-
\ No newline at end of file