From e49d290da5e0d5e19d5f4a82c931eb17d96412f7 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Thu, 26 Oct 2023 11:44:54 +0200 Subject: [PATCH 1/2] Abbozzato display scheda tecnica --- MP-TAB-SERV/Components/DisabledAlert.razor.cs | 34 ++---- MP-TAB-SERV/Components/TechSheetDetail.razor | 19 ---- .../Components/TechSheetDetail.razor.cs | 6 - MP-TAB-SERV/Components/TechSheetMan.razor | 40 +++++++ MP-TAB-SERV/Components/TechSheetMan.razor.cs | 103 ++++++++++++++++++ .../Components/TechSheet_ST_Detail.razor | 18 +++ .../Components/TechSheet_ST_Detail.razor.cs | 62 +++++++++++ .../Components/TechSheet_ST_ObjCheck.razor | 5 + .../Components/TechSheet_ST_ObjView.razor | 5 + .../Components/TechSheet_ST_ObjView.razor.cs | 31 ++++++ MP-TAB-SERV/MP-TAB-SERV.csproj | 2 +- MP-TAB-SERV/Pages/MachineDetail.razor | 9 -- MP-TAB-SERV/Pages/ProdStop.razor.cs | 2 +- MP-TAB-SERV/Pages/TechSheet.razor | 2 +- MP-TAB-SERV/Resources/ChangeLog.html | 2 +- MP-TAB-SERV/Resources/VersNum.txt | 2 +- MP-TAB-SERV/Resources/manifest.xml | 2 +- MP.Data/Controllers/MpTabController.cs | 33 ++++++ MP.Data/Services/TabDataService.cs | 61 ++++++++++- 19 files changed, 369 insertions(+), 69 deletions(-) delete mode 100644 MP-TAB-SERV/Components/TechSheetDetail.razor delete mode 100644 MP-TAB-SERV/Components/TechSheetDetail.razor.cs create mode 100644 MP-TAB-SERV/Components/TechSheetMan.razor create mode 100644 MP-TAB-SERV/Components/TechSheetMan.razor.cs create mode 100644 MP-TAB-SERV/Components/TechSheet_ST_Detail.razor create mode 100644 MP-TAB-SERV/Components/TechSheet_ST_Detail.razor.cs create mode 100644 MP-TAB-SERV/Components/TechSheet_ST_ObjCheck.razor create mode 100644 MP-TAB-SERV/Components/TechSheet_ST_ObjView.razor create mode 100644 MP-TAB-SERV/Components/TechSheet_ST_ObjView.razor.cs diff --git a/MP-TAB-SERV/Components/DisabledAlert.razor.cs b/MP-TAB-SERV/Components/DisabledAlert.razor.cs index 79e86ab5..fa884552 100644 --- a/MP-TAB-SERV/Components/DisabledAlert.razor.cs +++ b/MP-TAB-SERV/Components/DisabledAlert.razor.cs @@ -1,36 +1,20 @@ -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 Newtonsoft.Json; -using NLog; namespace MP_TAB_SERV.Components { public partial class DisabledAlert { + #region Public Properties + + [Parameter] + public string Message { get; set; } = ""; + + [Parameter] + public string Subtitle { get; set; } = ""; [Parameter] public string Title { get; set; } = ""; - [Parameter] - public string Subtitle { get; set; } = ""; - [Parameter] - public string Message { get; set; } = ""; + + #endregion Public Properties } } \ No newline at end of file diff --git a/MP-TAB-SERV/Components/TechSheetDetail.razor b/MP-TAB-SERV/Components/TechSheetDetail.razor deleted file mode 100644 index f654734d..00000000 --- a/MP-TAB-SERV/Components/TechSheetDetail.razor +++ /dev/null @@ -1,19 +0,0 @@ -
-
- Scheda Tecnica -
-
-
- -
-
- -
-
- -
-
- -
-
-
\ No newline at end of file diff --git a/MP-TAB-SERV/Components/TechSheetDetail.razor.cs b/MP-TAB-SERV/Components/TechSheetDetail.razor.cs deleted file mode 100644 index 885b880d..00000000 --- a/MP-TAB-SERV/Components/TechSheetDetail.razor.cs +++ /dev/null @@ -1,6 +0,0 @@ -namespace MP_TAB_SERV.Components -{ - public partial class TechSheetDetail - { - } -} \ No newline at end of file diff --git a/MP-TAB-SERV/Components/TechSheetMan.razor b/MP-TAB-SERV/Components/TechSheetMan.razor new file mode 100644 index 00000000..a111f5dd --- /dev/null +++ b/MP-TAB-SERV/Components/TechSheetMan.razor @@ -0,0 +1,40 @@ +
+
+
+
+

Scheda Tecnica

+
+
+ @if (inAttr) + { + + } +
+
+
+
+
+ +
+ @if (ListGruppi.Count == 0) + { +
ST: Nessun Gruppo Trovato
+ } + else + { + foreach (var item in ListGruppi) + { +
+
+
+ @item.DescGruppo +
+
+ +
+
+
+ } + } +
+
\ No newline at end of file diff --git a/MP-TAB-SERV/Components/TechSheetMan.razor.cs b/MP-TAB-SERV/Components/TechSheetMan.razor.cs new file mode 100644 index 00000000..cd6dc337 --- /dev/null +++ b/MP-TAB-SERV/Components/TechSheetMan.razor.cs @@ -0,0 +1,103 @@ +using Microsoft.AspNetCore.Components; +using Microsoft.JSInterop; +using MP.Data.DatabaseModels; +using MP.Data.Services; + +namespace MP_TAB_SERV.Components +{ + public partial class TechSheetMan + { + #region Public Properties + + [Parameter] + public MappaStatoExpl? RecMSE { get; set; } = null; + + #endregion Public Properties + + #region Protected Properties + + [Inject] + protected IJSRuntime JSRuntime { get; set; } = null!; + + protected List ListGruppi { get; set; } = new List(); + + [Inject] + protected TabDataService TabServ { get; set; } = null!; + + #endregion Protected Properties + + #region Protected Methods + + protected async Task ClearOdl() + { + if (!await JSRuntime.InvokeAsync("confirm", $"Sicuro di voler resettare?")) + return; + if (IdxOdl > 0) + { + await TabServ.ST_CheckCleanByOdl(IdxOdl); + } + checkReset(); + } + + protected override async Task OnParametersSetAsync() + { + if (RecMSE != null) + { + CodArticolo = RecMSE.CodArticolo; + IdxMaccSel = RecMSE.IdxMacchina; + IdxOdl = RecMSE.IdxOdl ?? 0; + } + await ReloadData(); + checkReset(); + } + + #endregion Protected Methods + + #region Private Fields + + private string CodArticolo = ""; + + private bool inAttr = false; + + #endregion Private Fields + + #region Private Properties + + private string IdxMaccSel { get; set; } = ""; + + private int IdxOdl { get; set; } = 0; + + #endregion Private Properties + + #region Private Methods + + /// + /// Verifica visibilità reset + /// + private void checkReset() + { + // condizioni booleane + inAttr = false; + // SOLO SE ho articolo sennò niente reset... + if (!string.IsNullOrEmpty(CodArticolo)) + { + // controllo se la macchina è in attrezzaggio... + var rigaStato = TabServ.StatoMacchina(IdxMaccSel); + if (rigaStato != null) + { + inAttr = (rigaStato.IdxStato == 2); + } + } +#if false + cmp_ST_objCheck.checkInputData(); +#endif + } + + private async Task ReloadData() + { + ListGruppi = await TabServ.ST_AnagGruppiList(); + } + + #endregion Private Methods + } +} \ No newline at end of file diff --git a/MP-TAB-SERV/Components/TechSheet_ST_Detail.razor b/MP-TAB-SERV/Components/TechSheet_ST_Detail.razor new file mode 100644 index 00000000..72acf8e2 --- /dev/null +++ b/MP-TAB-SERV/Components/TechSheet_ST_Detail.razor @@ -0,0 +1,18 @@ +

TechSheet_ST_Detail

+ + +@if (showWarning) +{ +
@txtWarning
+} + +@if (ListRecord.Count == 0) +{ +} +else +{ + foreach (var item in ListRecord) + { + + } +} \ No newline at end of file diff --git a/MP-TAB-SERV/Components/TechSheet_ST_Detail.razor.cs b/MP-TAB-SERV/Components/TechSheet_ST_Detail.razor.cs new file mode 100644 index 00000000..ddb43533 --- /dev/null +++ b/MP-TAB-SERV/Components/TechSheet_ST_Detail.razor.cs @@ -0,0 +1,62 @@ +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 Newtonsoft.Json; +using NLog; +using Microsoft.Extensions.Primitives; + +namespace MP_TAB_SERV.Components +{ + public partial class TechSheet_ST_Detail + { + [Parameter] + public string CodArticolo { get; set; } = ""; + + [Parameter] + public string CodGruppo { get; set; } = ""; + + [Parameter] + public int IdxOdl { get; set; } = 0; + + + private bool showWarning = false; + private string txtWarning = ""; + + + protected override async Task OnParametersSetAsync() + { + if (IdxOdl > 0 && !string.IsNullOrEmpty(CodGruppo)) + { + await ReloadData(); + } + } + + [Inject] + protected TabDataService TabServ { get; set; } = null!; + + private async Task ReloadData() + { + await Task.Delay(1); + ListRecord = await TabServ.STAR_byGrpOdl(CodGruppo, IdxOdl); + } + + protected List ListRecord { get; set; } = new List(); + } +} \ No newline at end of file diff --git a/MP-TAB-SERV/Components/TechSheet_ST_ObjCheck.razor b/MP-TAB-SERV/Components/TechSheet_ST_ObjCheck.razor new file mode 100644 index 00000000..d190f8da --- /dev/null +++ b/MP-TAB-SERV/Components/TechSheet_ST_ObjCheck.razor @@ -0,0 +1,5 @@ +

TechSheet_ObjCheck

+ +@code { + +} diff --git a/MP-TAB-SERV/Components/TechSheet_ST_ObjView.razor b/MP-TAB-SERV/Components/TechSheet_ST_ObjView.razor new file mode 100644 index 00000000..185ee69d --- /dev/null +++ b/MP-TAB-SERV/Components/TechSheet_ST_ObjView.razor @@ -0,0 +1,5 @@ +
+ @CurrRec.Value +
+ + diff --git a/MP-TAB-SERV/Components/TechSheet_ST_ObjView.razor.cs b/MP-TAB-SERV/Components/TechSheet_ST_ObjView.razor.cs new file mode 100644 index 00000000..2733452b --- /dev/null +++ b/MP-TAB-SERV/Components/TechSheet_ST_ObjView.razor.cs @@ -0,0 +1,31 @@ +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 Newtonsoft.Json; +using NLog; + +namespace MP_TAB_SERV.Components +{ + public partial class TechSheet_ST_ObjView + { + [Parameter] + public ST_ActRow CurrRec { get; set; } = null !; + } +} \ No newline at end of file diff --git a/MP-TAB-SERV/MP-TAB-SERV.csproj b/MP-TAB-SERV/MP-TAB-SERV.csproj index 58969d46..a2c856dd 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.2609 + 6.16.2310.2611 enable MP_TAB_SERV diff --git a/MP-TAB-SERV/Pages/MachineDetail.razor b/MP-TAB-SERV/Pages/MachineDetail.razor index 74a2f0ba..9f2a5862 100644 --- a/MP-TAB-SERV/Pages/MachineDetail.razor +++ b/MP-TAB-SERV/Pages/MachineDetail.razor @@ -9,14 +9,5 @@ else - @**@ - @**@ } diff --git a/MP-TAB-SERV/Pages/ProdStop.razor.cs b/MP-TAB-SERV/Pages/ProdStop.razor.cs index 89638727..64482f08 100644 --- a/MP-TAB-SERV/Pages/ProdStop.razor.cs +++ b/MP-TAB-SERV/Pages/ProdStop.razor.cs @@ -87,7 +87,7 @@ namespace MP_TAB_SERV.Pages var rigaEvento = SMServ.GetEventRow(IdxEv); if (rigaEvento != null) { - var rigaStato = await TabServ.StatoMacchina(IdxMacc); + var rigaStato = TabServ.StatoMacchina(IdxMacc); // processo evento... if (insRealtime) { diff --git a/MP-TAB-SERV/Pages/TechSheet.razor b/MP-TAB-SERV/Pages/TechSheet.razor index fffce8e8..a728f9f2 100644 --- a/MP-TAB-SERV/Pages/TechSheet.razor +++ b/MP-TAB-SERV/Pages/TechSheet.razor @@ -9,7 +9,7 @@ else @if (enableSchedaTecnica) { - + } else { diff --git a/MP-TAB-SERV/Resources/ChangeLog.html b/MP-TAB-SERV/Resources/ChangeLog.html index 4dc4e658..07286903 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.2609

+

Versione: 6.16.2310.2611


Note di rilascio:
  • diff --git a/MP-TAB-SERV/Resources/VersNum.txt b/MP-TAB-SERV/Resources/VersNum.txt index 2468fb4d..215e26d9 100644 --- a/MP-TAB-SERV/Resources/VersNum.txt +++ b/MP-TAB-SERV/Resources/VersNum.txt @@ -1 +1 @@ -6.16.2310.2609 +6.16.2310.2611 diff --git a/MP-TAB-SERV/Resources/manifest.xml b/MP-TAB-SERV/Resources/manifest.xml index 9cdba326..906d4d4c 100644 --- a/MP-TAB-SERV/Resources/manifest.xml +++ b/MP-TAB-SERV/Resources/manifest.xml @@ -1,6 +1,6 @@ - 6.16.2310.2609 + 6.16.2310.2611 https://nexus.steamware.net/repository/SWS/MP-TAB-SERV/stable/LAST/MP-TAB-SERV.zip https://nexus.steamware.net/repository/SWS/MP-TAB-SERV/stable/LAST/ChangeLog.html false diff --git a/MP.Data/Controllers/MpTabController.cs b/MP.Data/Controllers/MpTabController.cs index 4a4ebfe1..6224c891 100644 --- a/MP.Data/Controllers/MpTabController.cs +++ b/MP.Data/Controllers/MpTabController.cs @@ -746,6 +746,39 @@ namespace MP.Data.Controllers return dbResult; } + /// + /// Restituisce elenco gruppi Scheda tecnica + /// + /// + public List ST_AnagGruppiList() + { + List dbResult = new List(); + using (var dbCtx = new MoonProContext(_configuration)) + { + dbResult = dbCtx + .DbSetStAnagGruppi + .OrderBy(x => x.OrdVisual) + .AsNoTracking() + .ToList(); + } + return dbResult; + } + + public bool ST_CheckCleanByOdl(int idxOdl) + { + bool fatto = false; + using (var dbCtx = new MoonProContext(_configuration)) + { + var IdxOdl = new SqlParameter("@IdxOdl", idxOdl); + + var result = dbCtx + .Database + .ExecuteSqlRaw("EXEC stp_ST_CHK_cleanByOdl @IdxOdl", IdxOdl); + fatto = result != 0; + } + return fatto; + } + /// /// Registra controllo /// diff --git a/MP.Data/Services/TabDataService.cs b/MP.Data/Services/TabDataService.cs index e4d7592c..b1619644 100644 --- a/MP.Data/Services/TabDataService.cs +++ b/MP.Data/Services/TabDataService.cs @@ -13,6 +13,7 @@ using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; +using static System.Runtime.CompilerServices.RuntimeHelpers; namespace MP.Data.Services { @@ -1024,6 +1025,59 @@ namespace MP.Data.Services } return answ; } + public async Task ST_CheckCleanByOdl(int idxOdl) + { + bool answ = false; + try + { + // inserisco evento + answ = dbTabController.ST_CheckCleanByOdl(idxOdl); + await FlushCache("ST"); + } + catch (Exception exc) + { + string logMsg = $"Eccezione in ST_CheckCleanByOdl | idxOdl: {idxOdl}{Environment.NewLine}{exc}"; + Log.Error(logMsg); + } + return answ; + } + + + /// + /// Restituisce elenco gruppi Scheda tecnica + /// + /// + public async Task> ST_AnagGruppiList() + { + // setup parametri costanti + string source = "DB"; + Stopwatch sw = new Stopwatch(); + sw.Start(); + List? result = new List(); + // cerco in redis... + string currKey = $"{redisBaseKey}:ST:AnagGruppi"; + RedisValue rawData = await redisDb.StringGetAsync(currKey); + if (rawData.HasValue) + { + result = JsonConvert.DeserializeObject>($"{rawData}"); + source = "REDIS"; + } + else + { + result = dbTabController.ST_AnagGruppiList(); + // serializzp e salvo... + rawData = JsonConvert.SerializeObject(result); + await redisDb.StringSetAsync(currKey, rawData, UltraLongCache); + } + if (result == null) + { + result = new List(); + } + sw.Stop(); + Log.Debug($"ST_AnagGruppiList | {source} | {sw.Elapsed.TotalMilliseconds}ms"); + return result; + } + /// /// Aggiunta record RegistroScarti @@ -1390,7 +1444,7 @@ namespace MP.Data.Services /// /// /// - public async Task StatoMacchina(string idxMacchina) + public StatoMacchineModel StatoMacchina(string idxMacchina) { // setup parametri costanti string source = "DB"; @@ -1399,8 +1453,7 @@ namespace MP.Data.Services StatoMacchineModel? result = new StatoMacchineModel(); // cerco in redis... string currKey = $"{redisBaseKey}:StatoMacc:{idxMacchina}"; - RedisValue rawData = await redisDb.StringGetAsync(currKey); - //if (!string.IsNullOrEmpty($"{rawData}")) + RedisValue rawData = redisDb.StringGet(currKey); if (rawData.HasValue) { result = JsonConvert.DeserializeObject($"{rawData}"); @@ -1411,7 +1464,7 @@ namespace MP.Data.Services result = dbTabController.StatoMacchina(idxMacchina); // serializzp e salvo... rawData = JsonConvert.SerializeObject(result); - await redisDb.StringSetAsync(currKey, rawData, TimeSpan.FromSeconds(2)); + redisDb.StringSet(currKey, rawData, TimeSpan.FromSeconds(2)); } if (result == null) { From e9ccfad8a43c7b1774abb82a86d8024129891ba1 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Thu, 26 Oct 2023 12:10:52 +0200 Subject: [PATCH 2/2] Ancora update display ST --- .../Components/TechSheet_ST_Detail.razor | 5 +- .../Components/TechSheet_ST_ObjView.razor | 31 ++++++++- .../Components/TechSheet_ST_ObjView.razor.cs | 63 ++++++++++++++++++- MP-TAB-SERV/MP-TAB-SERV.csproj | 2 +- MP-TAB-SERV/Resources/ChangeLog.html | 2 +- MP-TAB-SERV/Resources/VersNum.txt | 2 +- MP-TAB-SERV/Resources/manifest.xml | 2 +- MP.Data/DatabaseModels/ST_ActRow.cs | 5 ++ 8 files changed, 101 insertions(+), 11 deletions(-) diff --git a/MP-TAB-SERV/Components/TechSheet_ST_Detail.razor b/MP-TAB-SERV/Components/TechSheet_ST_Detail.razor index 72acf8e2..8e41f52f 100644 --- a/MP-TAB-SERV/Components/TechSheet_ST_Detail.razor +++ b/MP-TAB-SERV/Components/TechSheet_ST_Detail.razor @@ -1,7 +1,4 @@ -

    TechSheet_ST_Detail

    - - -@if (showWarning) +@if (showWarning) {
    @txtWarning
    } diff --git a/MP-TAB-SERV/Components/TechSheet_ST_ObjView.razor b/MP-TAB-SERV/Components/TechSheet_ST_ObjView.razor index 185ee69d..f9d796a1 100644 --- a/MP-TAB-SERV/Components/TechSheet_ST_ObjView.razor +++ b/MP-TAB-SERV/Components/TechSheet_ST_ObjView.razor @@ -1,5 +1,32 @@ -
    - @CurrRec.Value +
    +
    + @CurrRec.Label +
    +
    + @if (CurrRec.ShowMissingData && enableForceParamSchedaTecnica) + { + if (hasDeroga) + { + Deroga Attiva + } + else + { + + } + } + (@CurrRec.ValueRead) @CurrRec.Value + + + @if (showError) + { + + } + @if (showChecked) + { + + } + +
    diff --git a/MP-TAB-SERV/Components/TechSheet_ST_ObjView.razor.cs b/MP-TAB-SERV/Components/TechSheet_ST_ObjView.razor.cs index 2733452b..d65b35a2 100644 --- a/MP-TAB-SERV/Components/TechSheet_ST_ObjView.razor.cs +++ b/MP-TAB-SERV/Components/TechSheet_ST_ObjView.razor.cs @@ -20,12 +20,73 @@ using MP.Data.DTO; using MP.Data.Services; using Newtonsoft.Json; using NLog; +using System.ComponentModel.DataAnnotations; namespace MP_TAB_SERV.Components { public partial class TechSheet_ST_ObjView { [Parameter] - public ST_ActRow CurrRec { get; set; } = null !; + public ST_ActRow CurrRec { get; set; } = null!; + [Inject] + protected SharedMemService SMServ { get; set; } = null!; + + protected override void OnParametersSet() + { + enableForceParamSchedaTecnica = SMServ.GetConfBool("enableForceParamSchedaTecnica"); + hasDeroga = false; +#if false + try + { + var currDeroga = DataLayerObj.getDerogaSt(idxST); + answ = (currDeroga != null); + if (answ) + { + answ = (currDeroga.CanForce && currDeroga.Num == dataNum && currDeroga.CodGruppo == dataGroup && currDeroga.CodTipo == dataType && currDeroga.Oggetto == dataOggetto); + } + } + catch + { } +#endif + } + + private bool enableForceParamSchedaTecnica = false; + + public string dataCss + { + get + { + string answ = ""; + if (CurrRec.Required) + { + if (CurrRec.Value != CurrRec.ExtCode) + { + answ = " text-danger"; + } + else + { + answ = " text-success"; + } + } + return answ; + } + } + + public string derogaCss + { + get + { + string answ = enableForceParamSchedaTecnica && hasDeroga ? " bg-warning" : ""; + + return answ; + } + } + + + private bool hasDeroga = false; + private bool showError = false; + private bool showChecked = false; + + } } \ No newline at end of file diff --git a/MP-TAB-SERV/MP-TAB-SERV.csproj b/MP-TAB-SERV/MP-TAB-SERV.csproj index a2c856dd..8557a415 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.2611 + 6.16.2310.2612 enable MP_TAB_SERV diff --git a/MP-TAB-SERV/Resources/ChangeLog.html b/MP-TAB-SERV/Resources/ChangeLog.html index 07286903..ef182c56 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.2611

    +

    Versione: 6.16.2310.2612


    Note di rilascio:
    • diff --git a/MP-TAB-SERV/Resources/VersNum.txt b/MP-TAB-SERV/Resources/VersNum.txt index 215e26d9..767b41ea 100644 --- a/MP-TAB-SERV/Resources/VersNum.txt +++ b/MP-TAB-SERV/Resources/VersNum.txt @@ -1 +1 @@ -6.16.2310.2611 +6.16.2310.2612 diff --git a/MP-TAB-SERV/Resources/manifest.xml b/MP-TAB-SERV/Resources/manifest.xml index 906d4d4c..d2f0d8d0 100644 --- a/MP-TAB-SERV/Resources/manifest.xml +++ b/MP-TAB-SERV/Resources/manifest.xml @@ -1,6 +1,6 @@ - 6.16.2310.2611 + 6.16.2310.2612 https://nexus.steamware.net/repository/SWS/MP-TAB-SERV/stable/LAST/MP-TAB-SERV.zip https://nexus.steamware.net/repository/SWS/MP-TAB-SERV/stable/LAST/ChangeLog.html false diff --git a/MP.Data/DatabaseModels/ST_ActRow.cs b/MP.Data/DatabaseModels/ST_ActRow.cs index 7248effa..c458e5ca 100644 --- a/MP.Data/DatabaseModels/ST_ActRow.cs +++ b/MP.Data/DatabaseModels/ST_ActRow.cs @@ -27,5 +27,10 @@ namespace MP.Data.DatabaseModels public string ValueRead { get; set; } = ""; public string Note { get; set; } = ""; + [NotMapped] + public bool ShowMissingData + { + get => Required && (Value != ExtCode); + } } } \ No newline at end of file