From 90fb5c317d61cbff8f90ce17ef8282c73843bf14 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Tue, 3 Oct 2023 09:35:20 +0200 Subject: [PATCH] Altre pagine e componenti aggiunti come segnaposto --- MP-TAB-SERV/Components/DeclarMan.razor | 5 ++ MP-TAB-SERV/Components/MachSel.razor | 5 ++ MP-TAB-SERV/Components/NotesMan.razor | 5 ++ MP-TAB-SERV/Components/OdlProdFix.razor | 5 ++ MP-TAB-SERV/Components/OdlSetup.razor | 5 ++ MP-TAB-SERV/Components/ParamsMan.razor | 5 ++ MP-TAB-SERV/Components/ProdStopMan.razor | 5 ++ MP-TAB-SERV/Components/ScrapMan.razor | 5 ++ MP-TAB-SERV/Pages/Declarations.razor | 13 +++++ MP-TAB-SERV/Pages/Declarations.razor.cs | 45 +++++++++++++++++ MP-TAB-SERV/Pages/Notes.razor | 14 ++++++ MP-TAB-SERV/Pages/Notes.razor.cs | 45 +++++++++++++++++ MP-TAB-SERV/Pages/ODL.razor | 16 ++++-- MP-TAB-SERV/Pages/ODL.razor.cs | 45 +++++++++++++++++ MP-TAB-SERV/Pages/Parameters.razor | 14 ++++++ MP-TAB-SERV/Pages/Parameters.razor.cs | 63 ++++++++++++++++++++++++ MP-TAB-SERV/Pages/ProdStop.razor | 13 +++++ MP-TAB-SERV/Pages/ProdStop.razor.cs | 45 +++++++++++++++++ MP-TAB-SERV/Pages/Scrap.razor | 3 ++ MP-TAB-SERV/Pages/Scrap.razor.cs | 28 +++++++++++ 20 files changed, 380 insertions(+), 4 deletions(-) create mode 100644 MP-TAB-SERV/Components/DeclarMan.razor create mode 100644 MP-TAB-SERV/Components/MachSel.razor create mode 100644 MP-TAB-SERV/Components/NotesMan.razor create mode 100644 MP-TAB-SERV/Components/OdlProdFix.razor create mode 100644 MP-TAB-SERV/Components/OdlSetup.razor create mode 100644 MP-TAB-SERV/Components/ParamsMan.razor create mode 100644 MP-TAB-SERV/Components/ProdStopMan.razor create mode 100644 MP-TAB-SERV/Components/ScrapMan.razor create mode 100644 MP-TAB-SERV/Pages/Declarations.razor create mode 100644 MP-TAB-SERV/Pages/Declarations.razor.cs create mode 100644 MP-TAB-SERV/Pages/Notes.razor create mode 100644 MP-TAB-SERV/Pages/Notes.razor.cs create mode 100644 MP-TAB-SERV/Pages/ODL.razor.cs create mode 100644 MP-TAB-SERV/Pages/Parameters.razor create mode 100644 MP-TAB-SERV/Pages/Parameters.razor.cs create mode 100644 MP-TAB-SERV/Pages/ProdStop.razor create mode 100644 MP-TAB-SERV/Pages/ProdStop.razor.cs create mode 100644 MP-TAB-SERV/Pages/Scrap.razor create mode 100644 MP-TAB-SERV/Pages/Scrap.razor.cs diff --git a/MP-TAB-SERV/Components/DeclarMan.razor b/MP-TAB-SERV/Components/DeclarMan.razor new file mode 100644 index 00000000..a76c6fd7 --- /dev/null +++ b/MP-TAB-SERV/Components/DeclarMan.razor @@ -0,0 +1,5 @@ +

DeclarList

+ +@code { + +} diff --git a/MP-TAB-SERV/Components/MachSel.razor b/MP-TAB-SERV/Components/MachSel.razor new file mode 100644 index 00000000..f046721a --- /dev/null +++ b/MP-TAB-SERV/Components/MachSel.razor @@ -0,0 +1,5 @@ +

MachSel

+ +@code { + +} diff --git a/MP-TAB-SERV/Components/NotesMan.razor b/MP-TAB-SERV/Components/NotesMan.razor new file mode 100644 index 00000000..d02a6ecd --- /dev/null +++ b/MP-TAB-SERV/Components/NotesMan.razor @@ -0,0 +1,5 @@ +

NotesMan

+ +@code { + +} diff --git a/MP-TAB-SERV/Components/OdlProdFix.razor b/MP-TAB-SERV/Components/OdlProdFix.razor new file mode 100644 index 00000000..68d8acf5 --- /dev/null +++ b/MP-TAB-SERV/Components/OdlProdFix.razor @@ -0,0 +1,5 @@ +

OdlProdFix

+ +@code { + +} diff --git a/MP-TAB-SERV/Components/OdlSetup.razor b/MP-TAB-SERV/Components/OdlSetup.razor new file mode 100644 index 00000000..1bcfd3cf --- /dev/null +++ b/MP-TAB-SERV/Components/OdlSetup.razor @@ -0,0 +1,5 @@ +

OdlSetup

+ +@code { + +} diff --git a/MP-TAB-SERV/Components/ParamsMan.razor b/MP-TAB-SERV/Components/ParamsMan.razor new file mode 100644 index 00000000..75592280 --- /dev/null +++ b/MP-TAB-SERV/Components/ParamsMan.razor @@ -0,0 +1,5 @@ +

ParamsMan

+ +@code { + +} diff --git a/MP-TAB-SERV/Components/ProdStopMan.razor b/MP-TAB-SERV/Components/ProdStopMan.razor new file mode 100644 index 00000000..7b74698b --- /dev/null +++ b/MP-TAB-SERV/Components/ProdStopMan.razor @@ -0,0 +1,5 @@ +

ProdStopMan

+ +@code { + +} diff --git a/MP-TAB-SERV/Components/ScrapMan.razor b/MP-TAB-SERV/Components/ScrapMan.razor new file mode 100644 index 00000000..81e77e82 --- /dev/null +++ b/MP-TAB-SERV/Components/ScrapMan.razor @@ -0,0 +1,5 @@ +

ScrapMan

+ +@code { + +} diff --git a/MP-TAB-SERV/Pages/Declarations.razor b/MP-TAB-SERV/Pages/Declarations.razor new file mode 100644 index 00000000..1b550280 --- /dev/null +++ b/MP-TAB-SERV/Pages/Declarations.razor @@ -0,0 +1,13 @@ +@page "/declarations" + +@if (string.IsNullOrEmpty(IdxMacc) || CurrMSE == null) +{ + +} +else +{ +
+ +
+ +} diff --git a/MP-TAB-SERV/Pages/Declarations.razor.cs b/MP-TAB-SERV/Pages/Declarations.razor.cs new file mode 100644 index 00000000..0816788c --- /dev/null +++ b/MP-TAB-SERV/Pages/Declarations.razor.cs @@ -0,0 +1,45 @@ +using global::Microsoft.AspNetCore.Components; +using MP.Data.DatabaseModels; +using MP.Data.Services; + +namespace MP_TAB_SERV.Pages +{ + public partial class Declarations + { + #region Protected Properties + + protected MappaStatoExpl? CurrMSE { get; set; } = null; + protected string IdxMacc { get; set; } = ""; + + [Inject] + protected MessageService MsgServ { get; set; } = null!; + + #endregion Protected Properties + + #region Protected Methods + + protected override async Task OnInitializedAsync() + { + await ReloadData(); + } + + #endregion Protected Methods + + #region Private Methods + + private async Task ReloadData() + { + if (string.IsNullOrEmpty(IdxMacc)) + { + IdxMacc = await MsgServ.IdxMaccGet(); + // recupero MSE macchina.... + if (!string.IsNullOrEmpty(IdxMacc)) + { + CurrMSE = await MsgServ.GetMachineMse(IdxMacc); + } + } + } + + #endregion Private Methods + } +} \ No newline at end of file diff --git a/MP-TAB-SERV/Pages/Notes.razor b/MP-TAB-SERV/Pages/Notes.razor new file mode 100644 index 00000000..8219e73b --- /dev/null +++ b/MP-TAB-SERV/Pages/Notes.razor @@ -0,0 +1,14 @@ +@page "/notes" + +@if (string.IsNullOrEmpty(IdxMacc) || CurrMSE == null) +{ + +} +else +{ +
+ +
+ +} + diff --git a/MP-TAB-SERV/Pages/Notes.razor.cs b/MP-TAB-SERV/Pages/Notes.razor.cs new file mode 100644 index 00000000..e8b71a94 --- /dev/null +++ b/MP-TAB-SERV/Pages/Notes.razor.cs @@ -0,0 +1,45 @@ +using global::Microsoft.AspNetCore.Components; +using MP.Data.DatabaseModels; +using MP.Data.Services; + +namespace MP_TAB_SERV.Pages +{ + public partial class Notes + { + #region Protected Properties + + protected MappaStatoExpl? CurrMSE { get; set; } = null; + protected string IdxMacc { get; set; } = ""; + + [Inject] + protected MessageService MsgServ { get; set; } = null!; + + #endregion Protected Properties + + #region Protected Methods + + protected override async Task OnInitializedAsync() + { + await ReloadData(); + } + + #endregion Protected Methods + + #region Private Methods + + private async Task ReloadData() + { + if (string.IsNullOrEmpty(IdxMacc)) + { + IdxMacc = await MsgServ.IdxMaccGet(); + // recupero MSE macchina.... + if (!string.IsNullOrEmpty(IdxMacc)) + { + CurrMSE = await MsgServ.GetMachineMse(IdxMacc); + } + } + } + + #endregion Private Methods + } +} \ No newline at end of file diff --git a/MP-TAB-SERV/Pages/ODL.razor b/MP-TAB-SERV/Pages/ODL.razor index 20c7936e..a54dd156 100644 --- a/MP-TAB-SERV/Pages/ODL.razor +++ b/MP-TAB-SERV/Pages/ODL.razor @@ -1,7 +1,15 @@ @page "/odl" -

ODL

- -@code { - +@if (string.IsNullOrEmpty(IdxMacc) || CurrMSE == null) +{ + +} +else +{ +
+ +
+ + + } diff --git a/MP-TAB-SERV/Pages/ODL.razor.cs b/MP-TAB-SERV/Pages/ODL.razor.cs new file mode 100644 index 00000000..432a144f --- /dev/null +++ b/MP-TAB-SERV/Pages/ODL.razor.cs @@ -0,0 +1,45 @@ +using global::Microsoft.AspNetCore.Components; +using MP.Data.DatabaseModels; +using MP.Data.Services; + +namespace MP_TAB_SERV.Pages +{ + public partial class ODL + { + #region Protected Properties + + protected MappaStatoExpl? CurrMSE { get; set; } = null; + protected string IdxMacc { get; set; } = ""; + + [Inject] + protected MessageService MsgServ { get; set; } = null!; + + #endregion Protected Properties + + #region Protected Methods + + protected override async Task OnInitializedAsync() + { + await ReloadData(); + } + + #endregion Protected Methods + + #region Private Methods + + private async Task ReloadData() + { + if (string.IsNullOrEmpty(IdxMacc)) + { + IdxMacc = await MsgServ.IdxMaccGet(); + // recupero MSE macchina.... + if (!string.IsNullOrEmpty(IdxMacc)) + { + CurrMSE = await MsgServ.GetMachineMse(IdxMacc); + } + } + } + + #endregion Private Methods + } +} \ No newline at end of file diff --git a/MP-TAB-SERV/Pages/Parameters.razor b/MP-TAB-SERV/Pages/Parameters.razor new file mode 100644 index 00000000..a889102f --- /dev/null +++ b/MP-TAB-SERV/Pages/Parameters.razor @@ -0,0 +1,14 @@ +@page "/parameters" + +@if (string.IsNullOrEmpty(IdxMacc) || CurrMSE == null) +{ + +} +else +{ +
+ +
+ +} + diff --git a/MP-TAB-SERV/Pages/Parameters.razor.cs b/MP-TAB-SERV/Pages/Parameters.razor.cs new file mode 100644 index 00000000..7be577ee --- /dev/null +++ b/MP-TAB-SERV/Pages/Parameters.razor.cs @@ -0,0 +1,63 @@ +using global::System; +using global::System.Collections.Generic; +using global::System.Linq; +using global::System.Threading.Tasks; +using global::Microsoft.AspNetCore.Components; +using System.Net.Http; +using Microsoft.AspNetCore.Authorization; +using Microsoft.AspNetCore.Components.Authorization; +using Microsoft.AspNetCore.Components.Forms; +using Microsoft.AspNetCore.Components.Routing; +using Microsoft.AspNetCore.Components.Web; +using Microsoft.AspNetCore.Components.Web.Virtualization; +using Microsoft.JSInterop; +using MP_TAB_SERV; +using MP_TAB_SERV.Shared; +using MP_TAB_SERV.Components; +using MP.Data; +using MP.Data.DatabaseModels; +using MP.Data.DTO; +using MP.Data.Services; +using NLog; + +namespace MP_TAB_SERV.Pages +{ + public partial class Parameters + { + #region Protected Properties + + protected MappaStatoExpl? CurrMSE { get; set; } = null; + protected string IdxMacc { get; set; } = ""; + + [Inject] + protected MessageService MsgServ { get; set; } = null!; + + #endregion Protected Properties + + #region Protected Methods + + protected override async Task OnInitializedAsync() + { + await ReloadData(); + } + + #endregion Protected Methods + + #region Private Methods + + private async Task ReloadData() + { + if (string.IsNullOrEmpty(IdxMacc)) + { + IdxMacc = await MsgServ.IdxMaccGet(); + // recupero MSE macchina.... + if (!string.IsNullOrEmpty(IdxMacc)) + { + CurrMSE = await MsgServ.GetMachineMse(IdxMacc); + } + } + } + + #endregion Private Methods + } +} \ No newline at end of file diff --git a/MP-TAB-SERV/Pages/ProdStop.razor b/MP-TAB-SERV/Pages/ProdStop.razor new file mode 100644 index 00000000..940bcf60 --- /dev/null +++ b/MP-TAB-SERV/Pages/ProdStop.razor @@ -0,0 +1,13 @@ +@page "/prod-stop" + +@if (string.IsNullOrEmpty(IdxMacc) || CurrMSE == null) +{ + +} +else +{ +
+ +
+ +} diff --git a/MP-TAB-SERV/Pages/ProdStop.razor.cs b/MP-TAB-SERV/Pages/ProdStop.razor.cs new file mode 100644 index 00000000..6a81bbd1 --- /dev/null +++ b/MP-TAB-SERV/Pages/ProdStop.razor.cs @@ -0,0 +1,45 @@ +using global::Microsoft.AspNetCore.Components; +using MP.Data.DatabaseModels; +using MP.Data.Services; + +namespace MP_TAB_SERV.Pages +{ + public partial class ProdStop + { + #region Protected Properties + + protected MappaStatoExpl? CurrMSE { get; set; } = null; + protected string IdxMacc { get; set; } = ""; + + [Inject] + protected MessageService MsgServ { get; set; } = null!; + + #endregion Protected Properties + + #region Protected Methods + + protected override async Task OnInitializedAsync() + { + await ReloadData(); + } + + #endregion Protected Methods + + #region Private Methods + + private async Task ReloadData() + { + if (string.IsNullOrEmpty(IdxMacc)) + { + IdxMacc = await MsgServ.IdxMaccGet(); + // recupero MSE macchina.... + if (!string.IsNullOrEmpty(IdxMacc)) + { + CurrMSE = await MsgServ.GetMachineMse(IdxMacc); + } + } + } + + #endregion Private Methods + } +} \ No newline at end of file diff --git a/MP-TAB-SERV/Pages/Scrap.razor b/MP-TAB-SERV/Pages/Scrap.razor new file mode 100644 index 00000000..ae639c3c --- /dev/null +++ b/MP-TAB-SERV/Pages/Scrap.razor @@ -0,0 +1,3 @@ +

Scrap

+ + diff --git a/MP-TAB-SERV/Pages/Scrap.razor.cs b/MP-TAB-SERV/Pages/Scrap.razor.cs new file mode 100644 index 00000000..f27ad0f1 --- /dev/null +++ b/MP-TAB-SERV/Pages/Scrap.razor.cs @@ -0,0 +1,28 @@ +using global::System; +using global::System.Collections.Generic; +using global::System.Linq; +using global::System.Threading.Tasks; +using global::Microsoft.AspNetCore.Components; +using System.Net.Http; +using Microsoft.AspNetCore.Authorization; +using Microsoft.AspNetCore.Components.Authorization; +using Microsoft.AspNetCore.Components.Forms; +using Microsoft.AspNetCore.Components.Routing; +using Microsoft.AspNetCore.Components.Web; +using Microsoft.AspNetCore.Components.Web.Virtualization; +using Microsoft.JSInterop; +using MP_TAB_SERV; +using MP_TAB_SERV.Shared; +using MP_TAB_SERV.Components; +using MP.Data; +using MP.Data.DatabaseModels; +using MP.Data.DTO; +using MP.Data.Services; +using NLog; + +namespace MP_TAB_SERV.Pages +{ + public partial class Scrap + { + } +} \ No newline at end of file