diff --git a/MP-TAB/WebUserControls/mod_sendParameters.ascx b/MP-TAB/WebUserControls/mod_sendParameters.ascx index c698d98e..ffaf62ab 100644 --- a/MP-TAB/WebUserControls/mod_sendParameters.ascx +++ b/MP-TAB/WebUserControls/mod_sendParameters.ascx @@ -8,13 +8,57 @@
Elenco parametri di configurazione ammessi per l'impianto - + Nessun parametro configurabile - + + + + + + + + + + + + +
+
+
+
+ +
+
+
+
+ <%----%> + <%-- + + + + --%> + <%-- + --%> + + + + + + + + + + + + + + + +
- +
<%--
diff --git a/MP-TAB/WebUserControls/mod_sendParameters.ascx.cs b/MP-TAB/WebUserControls/mod_sendParameters.ascx.cs index e6cd8b0d..b9e520c9 100644 --- a/MP-TAB/WebUserControls/mod_sendParameters.ascx.cs +++ b/MP-TAB/WebUserControls/mod_sendParameters.ascx.cs @@ -15,29 +15,35 @@ namespace MoonProTablet.WebUserControls { } - public static ICollection GetParameters() + public static List GetParameters() { //!!!FIXME !!!FARE recuperare VERI DATI da memoria REDIS dell'IOB... - ArrayList al = new ArrayList(); + List dcList = new List(); plcMemMap memoria = new plcMemMap(); for (int i = 0; i < 10; i++) { - dataConf currConf = new dataConf() + parameterConf currPar = new parameterConf() { name = $"Par_{i}", description = $"Parametro {i}", - value = $"{i}" + value = $"{i * 100}", + newValue = $"{i * 100 + 5}" }; + dcList.Add(currPar); +#if false memoria.mMapWrite.Add($"Parametro {i}", currConf); +#endif } +#if false foreach (var item in memoria.mMapWrite) { - al.Add(item.Value); - } - return al;// memoria.mMapWrite; + dcList.Add(item.Value); + } +#endif + return dcList;// memoria.mMapWrite; } } } \ No newline at end of file diff --git a/MapoSDK/Objects.cs b/MapoSDK/Objects.cs index 3cad726e..37cecbbd 100644 --- a/MapoSDK/Objects.cs +++ b/MapoSDK/Objects.cs @@ -114,9 +114,9 @@ namespace MapoSDK /// public int factor { get; set; } = 1; /// - /// Valore parametro (come stringa, decimali con ",") + /// Valore parametro (come stringa, decimali con ",", default VUORO) /// - public string value { get; set; } = "0"; + public string value { get; set; } = ""; /// /// Valore minimo ammesso (ove usato, es simulazione) /// @@ -127,6 +127,13 @@ namespace MapoSDK public int maxVal { get; set; } = 9999; } /// + /// Classe estesa dei parametri da impostare sul PLC + /// + public class parameterConf: dataConf + { + public string newValue { get; set; } = "ND"; + } + /// /// Struttura conf tipo dati /// public class dataConfTSVC : dataConf