-
-
-
-
-
Server Stats
- <%--3 days ago--%>
-
-
-
<%: ServerStats %>
-
- <%--
Donec id elit non mi porta.--%>
+
+
+
+
-
-
-
IIS Stats
- <%--3 days ago--%>
-
-
-
<%: IISStats %>
-
- <%--
Donec id elit non mi porta.--%>
-
-
+
-
-
-
-
-
-
-
-
-
-
Redis Servers Data
- <%--3 days ago--%>
-
-
-
<%: redisServersData %>
-
- <%--
Donec id elit non mi porta.--%>
-
-
+
+
MoonPro / MAPO sono una suite di applicazioni e dispositivi hw dedicati per l'IOT,l'industry 4.0 e la gestione automatizzata dei processi produttivi.
+
Per maggiori informazioni visita il link sul nostro sito.
+
-
-
-
-
-
-
-
-
-
Windows size data
- <%--3 days ago--%>
-
-
-
<%: paretoBrowserSize %>
-
- <%--
Donec id elit non mi porta.--%>
-
-
-
-
Screen size data
- <%--3 days ago--%>
-
-
-
<%: paretoScreenSize %>
-
- <%--
Donec id elit non mi porta.--%>
-
-
-
-
Pixel Ratio + Windows size data
- <%--3 days ago--%>
-
-
-
<%: paretoWinPixRat %>
-
- <%--
Donec id elit non mi porta.--%>
-
-
-
-
-
-
-
-
-
-
-
-
-
Elenco librerie
- <%: numLibraries %>
-
-
-
<%: librariesVers %>
-
- <%--
Altro.--%>
-
-
-
-
-
-
-
-
+
\ No newline at end of file
diff --git a/MP-TAB/About.aspx.cs b/MP-TAB/About.aspx.cs
index e419e816..994da97c 100644
--- a/MP-TAB/About.aspx.cs
+++ b/MP-TAB/About.aspx.cs
@@ -12,67 +12,87 @@ namespace MoonProTablet
{
public partial class About : BasePage
{
+ #region Protected Fields
+
protected Assembly assembly = Assembly.GetExecutingAssembly();
- protected void Page_Load(object sender, EventArgs e)
+
+ #endregion Protected Fields
+
+ #region Public Properties
+
+ public string IISStats
{
- if (!Page.IsPostBack)
+ get
{
- // faccio reset... sessioni e vocabolario..
- doReset();
+ StringBuilder sb = new StringBuilder();
+ using (var iis = Process.GetCurrentProcess())
+ {
+ //Process iis = Process.GetCurrentProcess();
+ sb.AppendLine(string.Format("UPTIME: {0}", ToDateString(DateTime.Now - iis.StartTime)));
+ sb.AppendLine(string.Format("Priority: {0}", iis.PriorityClass));
+ sb.AppendLine(string.Format("Physical Memory Used: {0}", memFormat(iis.WorkingSet64)));
+ sb.AppendLine(string.Format("Virtual Memory Used: {0}", memFormat(iis.VirtualMemorySize64)));
+ }
+ return sb.ToString();
}
}
- private void doReset()
+ public string librariesVers
{
- string action = memLayer.ML.QSS("Action");
- string testo = "
Reset Actions
";
- long recPrev = 0;
- long recPost = 0;
- if (action != "")
+ get
{
- if (action.Contains("C"))
+ string answ = "";
+ try
{
- recPrev = Cache.Count;
- // reset dati in cache...
- memLayer.ML.flushRegisteredCache();
- recPost = Cache.Count;
- testo += string.Format("Reset Cache: {0} --> {1}", recPrev, recPost);
- }
- if (action.Contains("D"))
- {
- recPrev = memLayer.ML.numRecAppConf;
- // reset dati in cache x DbConfig...
- memLayer.ML.resetAppConf();
- recPost = memLayer.ML.numRecAppConf;
- testo += string.Format("Reset DB AppConf: {0} --> {1}", recPrev, recPost);
- }
- if (action.Contains("R"))
- {
- recPrev = memLayer.ML.numRecRedis;
- // reset dati in cache x DbConfig...
- memLayer.ML.redFlushKey("**");
- recPost = memLayer.ML.numRecRedis;
- testo += string.Format("Reset Redis: {0} --> {1}", recPrev, recPost);
- }
- if (action.Contains("S"))
- {
- recPrev = Session.Count;
- // reset dati in sessione...
- Session.Clear();
- recPost = Session.Count;
- testo += string.Format("Reset Sessione: {0} --> {1}", recPrev, recPost);
- }
- if (action.Contains("V"))
- {
- recPrev = DataWrap.DW.numRecVoc;
- // aggiorno vocabolario
- DataWrap.DW.resetVocabolario();
- recPost = DataWrap.DW.numRecVoc;
- testo += string.Format("Reset Vocabolario: {0} --> {1}", recPrev, recPost);
+ AssemblyName[] referencedAssemblyNames = assembly.GetReferencedAssemblies();
+ foreach (AssemblyName referencedAssemblyName in referencedAssemblyNames.OrderBy(n => n.Name))
+ {
+ answ += referencedAssemblyName.FullName + Environment.NewLine;
+ }
}
+ catch
+ { }
+ return answ;
}
- lblOut.Text = testo;
}
+
+ public string mainAssembly
+ {
+ get
+ {
+ string answ = "";
+ try
+ {
+ answ = assembly.FullName;
+ }
+ catch
+ { }
+ return answ;
+ }
+ }
+
+ ///
+ /// Num di librerie inserite
+ ///
+ public int numLibraries
+ {
+ get
+ {
+ int numLib = 0; ;
+ try
+ {
+ AssemblyName[] referencedAssemblyNames = assembly.GetReferencedAssemblies();
+ foreach (AssemblyName referencedAssemblyName in referencedAssemblyNames.OrderBy(n => n.Name))
+ {
+ numLib++;
+ }
+ }
+ catch
+ { }
+ return numLib;
+ }
+ }
+
///
/// Restitusice l'elenco pareto (decrescente) delle dimensioni FINESTRA browser registrate
///
@@ -94,6 +114,7 @@ namespace MoonProTablet
return sb.ToString();
}
}
+
///
/// Restitusice l'elenco pareto (decrescente) delle dimensioni SCHERMO registrate
///
@@ -115,6 +136,7 @@ namespace MoonProTablet
return sb.ToString();
}
}
+
///
/// Restitusice l'elenco pareto (decrescente) delle dimensioni FINESTRA browser + PIXEL ratio registrate
///
@@ -136,25 +158,7 @@ namespace MoonProTablet
return sb.ToString();
}
}
- ///
- /// Formatta un numero da int a size in Kb/Mb/Gb/Tb
- ///
- ///
- ///
- public string memFormat(double rawSize)
- {
- string[] sizes = { "B", "KB", "MB", "GB", "TB" };
- int order = 0;
- while (rawSize >= 1024 && order < sizes.Length - 1)
- {
- order++;
- rawSize = rawSize / 1024;
- }
- // Adjust the format string to your preferences. For example "{0:0.#}{1}" would
- // show a single decimal place, and no space.
- return String.Format("{0:0.##} {1}", rawSize, sizes[order]);
- }
///
/// Dati sui server redis...
///
@@ -193,15 +197,22 @@ namespace MoonProTablet
return sb.ToString();
}
}
- ///
- /// Stringa timing
- ///
- ///
- ///
- public string ToDateString(TimeSpan time)
+
+ public string runtimeImg
{
- return string.Format("{0}gg, {1:00}:{2:00}:{3:00} (h:m:s)", time.Days, time.Hours, time.Minutes, time.Seconds);
+ get
+ {
+ string answ = "";
+ try
+ {
+ answ = assembly.ImageRuntimeVersion;
+ }
+ catch
+ { }
+ return answ;
+ }
}
+
///
/// Statistiche server
///
@@ -241,88 +252,49 @@ namespace MoonProTablet
return sb.ToString();
}
}
- public string IISStats
+
+ #endregion Public Properties
+
+ #region Protected Methods
+
+ protected void Page_Load(object sender, EventArgs e)
{
- get
- {
- StringBuilder sb = new StringBuilder();
- using (var iis = Process.GetCurrentProcess())
- {
- //Process iis = Process.GetCurrentProcess();
- sb.AppendLine(string.Format("UPTIME: {0}", ToDateString(DateTime.Now - iis.StartTime)));
- sb.AppendLine(string.Format("Priority: {0}", iis.PriorityClass));
- sb.AppendLine(string.Format("Physical Memory Used: {0}", memFormat(iis.WorkingSet64)));
- sb.AppendLine(string.Format("Virtual Memory Used: {0}", memFormat(iis.VirtualMemorySize64)));
- }
- return sb.ToString();
- }
- }
- public string mainAssembly
- {
- get
- {
- string answ = "";
- try
- {
- answ = assembly.FullName;
- }
- catch
- { }
- return answ;
- }
- }
- public string runtimeImg
- {
- get
- {
- string answ = "";
- try
- {
- answ = assembly.ImageRuntimeVersion;
- }
- catch
- { }
- return answ;
- }
- }
- public string librariesVers
- {
- get
- {
- string answ = "";
- try
- {
- AssemblyName[] referencedAssemblyNames = assembly.GetReferencedAssemblies();
- foreach (AssemblyName referencedAssemblyName in referencedAssemblyNames.OrderBy(n => n.Name))
- {
- answ += referencedAssemblyName.FullName + Environment.NewLine;
- }
- }
- catch
- { }
- return answ;
- }
}
+
+ #endregion Protected Methods
+
+ #region Public Methods
+
///
- /// Num di librerie inserite
+ /// Formatta un numero da int a size in Kb/Mb/Gb/Tb
///
- public int numLibraries
+ ///
+ ///
+ public string memFormat(double rawSize)
{
- get
+ string[] sizes = { "B", "KB", "MB", "GB", "TB" };
+ int order = 0;
+ while (rawSize >= 1024 && order < sizes.Length - 1)
{
- int numLib = 0; ;
- try
- {
- AssemblyName[] referencedAssemblyNames = assembly.GetReferencedAssemblies();
- foreach (AssemblyName referencedAssemblyName in referencedAssemblyNames.OrderBy(n => n.Name))
- {
- numLib++;
- }
- }
- catch
- { }
- return numLib;
+ order++;
+ rawSize = rawSize / 1024;
}
+
+ // Adjust the format string to your preferences. For example "{0:0.#}{1}" would
+ // show a single decimal place, and no space.
+ return String.Format("{0:0.##} {1}", rawSize, sizes[order]);
}
+
+ ///
+ /// Stringa timing
+ ///
+ ///
+ ///
+ public string ToDateString(TimeSpan time)
+ {
+ return string.Format("{0}gg, {1:00}:{2:00}:{3:00} (h:m:s)", time.Days, time.Hours, time.Minutes, time.Seconds);
+ }
+
+ #endregion Public Methods
}
}
\ No newline at end of file
diff --git a/MP-TAB/About.aspx.designer.cs b/MP-TAB/About.aspx.designer.cs
index 0573de84..5a13fa31 100644
--- a/MP-TAB/About.aspx.designer.cs
+++ b/MP-TAB/About.aspx.designer.cs
@@ -7,65 +7,13 @@
//
//------------------------------------------------------------------------------
-namespace MoonProTablet {
-
-
- public partial class About {
-
- ///
- /// Controllo lbtGrp01.
- ///
- ///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
- ///
- protected global::System.Web.UI.WebControls.LinkButton lbtGrp01;
-
- ///
- /// Controllo LinkButton1.
- ///
- ///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
- ///
- protected global::System.Web.UI.WebControls.LinkButton LinkButton1;
-
- ///
- /// Controllo LinkButton2.
- ///
- ///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
- ///
- protected global::System.Web.UI.WebControls.LinkButton LinkButton2;
-
- ///
- /// Controllo LinkButton3.
- ///
- ///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
- ///
- protected global::System.Web.UI.WebControls.LinkButton LinkButton3;
-
- ///
- /// Controllo lbtGrp02.
- ///
- ///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
- ///
- protected global::System.Web.UI.WebControls.LinkButton lbtGrp02;
-
- ///
- /// Controllo lbtGrp03.
- ///
- ///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
- ///
- protected global::System.Web.UI.WebControls.LinkButton lbtGrp03;
-
+namespace MoonProTablet
+{
+
+
+ public partial class About
+ {
+
///
/// Controllo lblOut.
///
@@ -74,5 +22,14 @@ namespace MoonProTablet {
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
///
protected global::System.Web.UI.WebControls.Label lblOut;
+
+ ///
+ /// Controllo cmp_HwSwInfo.
+ ///
+ ///
+ /// Campo generato automaticamente.
+ /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ ///
+ protected global::MoonProTablet.WebUserControls.cmp_HwSwInfo cmp_HwSwInfo;
}
}
diff --git a/MP-TAB/MP-TAB.csproj b/MP-TAB/MP-TAB.csproj
index be64d8e4..53ffcc7f 100644
--- a/MP-TAB/MP-TAB.csproj
+++ b/MP-TAB/MP-TAB.csproj
@@ -182,12 +182,11 @@
..\packages\StackExchange.Redis.2.2.4\lib\net461\StackExchange.Redis.dll
True
-
- ..\packages\SteamWare.5.0.2011.748\lib\net462\SteamWare.dll
- True
+
+ ..\packages\SteamWare.5.0.2012.750\lib\net462\SteamWare.dll
-
- ..\packages\SteamWare.Logger.5.0.2011.748\lib\net462\SteamWare.Logger.dll
+
+ ..\packages\SteamWare.Logger.5.0.2012.750\lib\net462\SteamWare.Logger.dll
..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll
@@ -463,8 +462,6 @@
-
-
@@ -501,6 +498,7 @@
+
@@ -509,12 +507,10 @@
-
-
@@ -531,6 +527,7 @@
+
Always
@@ -542,8 +539,6 @@
PreserveNewest
-
-
Designer
@@ -901,6 +896,13 @@
Reset.aspx
+
+ ResetAct.aspx
+ ASPXCodeBehind
+
+
+ ResetAct.aspx
+
Scarti.aspx
ASPXCodeBehind
diff --git a/MP-TAB/README.txt b/MP-TAB/README.txt
deleted file mode 100644
index bf60ed18..00000000
--- a/MP-TAB/README.txt
+++ /dev/null
@@ -1,12 +0,0 @@
----------------------------------------------------------------
-------- SteamWareLib SDK -------
----------------------------------------------------------------
-
-Libreria di utility base di SteamWare.
-
-Le dipendenze inserite sono necessarie al funzionamento dell'SDK.
-
-Sono inclusi a titolo di esempio vari files di conf:
- * example-NLog.config
-
-Attenzione a configurare correttamente il file NLog.xml includendo il rule per la classe, vedere ad esempio il file example-NLog.config allegato.
\ No newline at end of file
diff --git a/MP-TAB/Reset.aspx.cs b/MP-TAB/Reset.aspx.cs
index 9bf717d3..b2764bab 100644
--- a/MP-TAB/Reset.aspx.cs
+++ b/MP-TAB/Reset.aspx.cs
@@ -5,13 +5,26 @@ namespace MoonProTablet
{
public partial class Reset : BasePage
{
+ #region Protected Methods
+
protected void Page_Load(object sender, EventArgs e)
{
- Session.Clear();
- // reset appConf
- memLayer.ML.resetAppConf();
+ // se richiesto reset esplicito
+ string action = memLayer.ML.QSS("Action");
+ if (!string.IsNullOrEmpty(action))
+ {
+ Response.Redirect($"ResetAct?Action={action}");
+ }
+ else
+ {
+ Session.Clear();
+ // reset appConf
+ memLayer.ML.resetAppConf();
+ }
// rimanda alla pagina di reg device
Response.Redirect(memLayer.ML.CRS("mainPage"));
}
+
+ #endregion Protected Methods
}
}
\ No newline at end of file
diff --git a/MP-TAB/ResetAct.aspx b/MP-TAB/ResetAct.aspx
new file mode 100644
index 00000000..49195780
--- /dev/null
+++ b/MP-TAB/ResetAct.aspx
@@ -0,0 +1,7 @@
+<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/Bootstrap.Master" AutoEventWireup="true" CodeBehind="ResetAct.aspx.cs" Inherits="MoonProTablet.ResetAct" %>
+
+
+
+
+
+
\ No newline at end of file
diff --git a/MP-TAB/ResetAct.aspx.cs b/MP-TAB/ResetAct.aspx.cs
new file mode 100644
index 00000000..5bba5925
--- /dev/null
+++ b/MP-TAB/ResetAct.aspx.cs
@@ -0,0 +1,78 @@
+using SteamWare;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace MoonProTablet
+{
+ public partial class ResetAct : System.Web.UI.Page
+ {
+ #region Private Methods
+
+ private void doReset()
+ {
+ string action = memLayer.ML.QSS("Action");
+ string testo = "Reset Actions
";
+ long recPrev = 0;
+ long recPost = 0;
+ if (action != "")
+ {
+ if (action.Contains("C"))
+ {
+ recPrev = Cache.Count;
+ // reset dati in cache...
+ memLayer.ML.flushRegisteredCache();
+ recPost = Cache.Count;
+ testo += string.Format("Reset Cache: {0} --> {1}", recPrev, recPost);
+ }
+ if (action.Contains("D"))
+ {
+ recPrev = memLayer.ML.numRecAppConf;
+ // reset dati in cache x DbConfig...
+ memLayer.ML.resetAppConf();
+ recPost = memLayer.ML.numRecAppConf;
+ testo += string.Format("Reset DB AppConf: {0} --> {1}", recPrev, recPost);
+ }
+ if (action.Contains("R"))
+ {
+ recPrev = memLayer.ML.numRecRedis;
+ // reset dati in cache x DbConfig...
+ memLayer.ML.redFlushKey("**");
+ recPost = memLayer.ML.numRecRedis;
+ testo += string.Format("Reset Redis: {0} --> {1}", recPrev, recPost);
+ }
+ if (action.Contains("S"))
+ {
+ recPrev = Session.Count;
+ // reset dati in sessione...
+ Session.Clear();
+ recPost = Session.Count;
+ testo += string.Format("Reset Sessione: {0} --> {1}", recPrev, recPost);
+ }
+ if (action.Contains("V"))
+ {
+ recPrev = DataWrap.DW.numRecVoc;
+ // aggiorno vocabolario
+ DataWrap.DW.resetVocabolario();
+ recPost = DataWrap.DW.numRecVoc;
+ testo += string.Format("Reset Vocabolario: {0} --> {1}", recPrev, recPost);
+ }
+ }
+ lblOut.Text = testo;
+ }
+
+ #endregion Private Methods
+
+ #region Protected Methods
+
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ doReset();
+ }
+
+ #endregion Protected Methods
+ }
+}
\ No newline at end of file
diff --git a/MP-IO/Default.aspx.designer.cs b/MP-TAB/ResetAct.aspx.designer.cs
similarity index 55%
rename from MP-IO/Default.aspx.designer.cs
rename to MP-TAB/ResetAct.aspx.designer.cs
index affa81a6..f1966cb3 100644
--- a/MP-IO/Default.aspx.designer.cs
+++ b/MP-TAB/ResetAct.aspx.designer.cs
@@ -7,27 +7,20 @@
//
//------------------------------------------------------------------------------
-namespace MP_IO {
-
-
- public partial class Default {
-
+namespace MoonProTablet
+{
+
+
+ public partial class ResetAct
+ {
+
///
- /// Controllo form1.
+ /// Controllo lblOut.
///
///
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
///
- protected global::System.Web.UI.HtmlControls.HtmlForm form1;
-
- ///
- /// Controllo lblVers.
- ///
- ///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
- ///
- protected global::System.Web.UI.WebControls.Label lblVers;
+ protected global::System.Web.UI.WebControls.Label lblOut;
}
}
diff --git a/MP-TAB/WebUserControls/cmp_HwSwInfo.ascx b/MP-TAB/WebUserControls/cmp_HwSwInfo.ascx
index 7257ebe9..a54e5972 100644
--- a/MP-TAB/WebUserControls/cmp_HwSwInfo.ascx
+++ b/MP-TAB/WebUserControls/cmp_HwSwInfo.ascx
@@ -1,158 +1,174 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_HwSwInfo.ascx.cs" Inherits="MoonProTablet.WebUserControls.cmp_HwSwInfo" %>
<%--SteamWare's Hw & Sw Info Page
--%>