diff --git a/MP.SPEC/Components/ListODL.razor b/MP.SPEC/Components/ListODL.razor
index d2b97d30..83b35f54 100644
--- a/MP.SPEC/Components/ListODL.razor
+++ b/MP.SPEC/Components/ListODL.razor
@@ -15,10 +15,24 @@ else
@if (currRecord != null && !showStats && isCurrOdl)
{
-
+ @if(enableForceSync)
+ {
+
+ }
+ else
+ {
+
+ }
-
+ @if(enableStopODL)
+ {
+
+ }
+ else
+ {
+
+ }
}
diff --git a/MP.SPEC/Components/ListODL.razor.cs b/MP.SPEC/Components/ListODL.razor.cs
index 6fbc41f1..9f633f5a 100644
--- a/MP.SPEC/Components/ListODL.razor.cs
+++ b/MP.SPEC/Components/ListODL.razor.cs
@@ -61,6 +61,16 @@ namespace MP.SPEC.Components
#endregion Public Methods
+ #region Protected Fields
+
+ protected bool enableForceSync = true;
+
+ protected bool enableStartPODL = true;
+
+ protected bool enableStopODL = true;
+
+ #endregion Protected Fields
+
#region Protected Properties
[Inject]
@@ -139,6 +149,21 @@ namespace MP.SPEC.Components
protected override async Task OnInitializedAsync()
{
ListStati = await MDService.AnagStatiComm();
+ string SPEC_PODL_gest = await MDService.ConfigTryGet("SPEC_PODL_gest");
+ if (!string.IsNullOrEmpty(SPEC_PODL_gest))
+ {
+ bool.TryParse(SPEC_PODL_gest, out enableStartPODL);
+ }
+ string SPEC_ODL_gest = await MDService.ConfigTryGet("SPEC_ODL_gest");
+ if (!string.IsNullOrEmpty(SPEC_ODL_gest))
+ {
+ bool.TryParse(SPEC_ODL_gest, out enableStopODL);
+ }
+ string SPEC_XODL_sync = await MDService.ConfigTryGet("SPEC_XODL_sync");
+ if (!string.IsNullOrEmpty(SPEC_XODL_sync))
+ {
+ bool.TryParse(SPEC_XODL_sync, out enableForceSync);
+ }
}
protected override async Task OnParametersSetAsync()
diff --git a/MP.SPEC/Components/ListPODL.razor b/MP.SPEC/Components/ListPODL.razor
index 0c8b8f00..67e21616 100644
--- a/MP.SPEC/Components/ListPODL.razor
+++ b/MP.SPEC/Components/ListPODL.razor
@@ -46,15 +46,24 @@ else
@if (record.IdxOdl == 0)
{
- @if (canStartOdl(record.IdxMacchina))
+ @if (enableStartPODL)
{
-
+ @if (canStartOdl(record.IdxMacchina))
+ {
+
+ }
+ else
+ {
+
+ }
}
else
{
-
- forceSyncDb()" class="btn btn-success">Forza sync → macchina
+ @if (enableForceSync)
+ {
+ forceSyncDb()" class="btn btn-success">Forza sync → macchina
+ }
+ else
+ {
+
+
+
+ }
}
diff --git a/MP.SPEC/Pages/PODL.razor.cs b/MP.SPEC/Pages/PODL.razor.cs
index 47c0a2ef..69382b78 100644
--- a/MP.SPEC/Pages/PODL.razor.cs
+++ b/MP.SPEC/Pages/PODL.razor.cs
@@ -115,8 +115,27 @@ namespace MP.SPEC.Pages
currAzienda = await MDService.ConfigTryGet("AZIENDA");
padCodXdl = await MDService.ConfigTryGet("padCodXdl");
useFasi4KeyRich = await MDService.ConfigTryGet("SPEC_KeyRichiesta");
+ // carico opzioni gestione PODL/ODL/sync
+ string SPEC_PODL_gest = await MDService.ConfigTryGet("SPEC_PODL_gest");
+ if (!string.IsNullOrEmpty(SPEC_PODL_gest))
+ {
+ bool.TryParse(SPEC_PODL_gest, out enableStartPODL);
+ }
+ string SPEC_ODL_gest = await MDService.ConfigTryGet("SPEC_ODL_gest");
+ if (!string.IsNullOrEmpty(SPEC_ODL_gest))
+ {
+ bool.TryParse(SPEC_ODL_gest, out enableStopODL);
+ }
+ string SPEC_XODL_sync = await MDService.ConfigTryGet("SPEC_XODL_sync");
+ if (!string.IsNullOrEmpty(SPEC_XODL_sync))
+ {
+ bool.TryParse(SPEC_XODL_sync, out enableForceSync);
+ }
}
+ protected bool enableStartPODL = true;
+ protected bool enableStopODL = true;
+ protected bool enableForceSync = true;
protected string useFasi4KeyRich { get; set; } = "";
protected override async Task OnParametersSetAsync()
diff --git a/MP.SPEC/Resources/ChangeLog.html b/MP.SPEC/Resources/ChangeLog.html
index febfdeff..828b6965 100644
--- a/MP.SPEC/Resources/ChangeLog.html
+++ b/MP.SPEC/Resources/ChangeLog.html
@@ -1,6 +1,6 @@
Modulo MAPOSPEC
- Versione: 6.16.2404.2411
+ Versione: 6.16.2404.2412
Note di rilascio:
-
diff --git a/MP.SPEC/Resources/VersNum.txt b/MP.SPEC/Resources/VersNum.txt
index bddef924..b73d1e8d 100644
--- a/MP.SPEC/Resources/VersNum.txt
+++ b/MP.SPEC/Resources/VersNum.txt
@@ -1 +1 @@
-6.16.2404.2411
+6.16.2404.2412
diff --git a/MP.SPEC/Resources/manifest.xml b/MP.SPEC/Resources/manifest.xml
index df258e8a..326adc19 100644
--- a/MP.SPEC/Resources/manifest.xml
+++ b/MP.SPEC/Resources/manifest.xml
@@ -1,6 +1,6 @@
-
- 6.16.2404.2411
+ 6.16.2404.2412
https://nexus.steamware.net/repository/SWS/MP-SPEC/stable/LAST/MP.SPEC.zip
https://nexus.steamware.net/repository/SWS/MP-SPEC/stable/LAST/ChangeLog.html
false