diff --git a/MP-TAB/About.aspx b/MP-TAB/About.aspx index f61473f6..822e3761 100644 --- a/MP-TAB/About.aspx +++ b/MP-TAB/About.aspx @@ -1,192 +1,23 @@ <%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/Bootstrap.Master" AutoEventWireup="true" CodeBehind="About.aspx.cs" Inherits="MoonProTablet.About" %> +<%@ Register Src="~/WebUserControls/cmp_HwSwInfo.ascx" TagPrefix="uc1" TagName="cmp_HwSwInfo" %> + -
-

SteamWare's stats page

-
-
-

- -

-
-
-
-
-
-
-
Module
- <%--3 days ago--%> -
-

<%: SteamWare.memLayer.ML.CRS("CodModulo") %>

- <%--Altro.--%> -
-
-
-
.net framework
- <%--3 days ago--%> -
-

<%: runtimeImg %>

- <%--Donec id elit non mi porta.--%> -
-
-
-
Main Assembly
- <%--3 days ago--%> -
-

<%: mainAssembly %>

- <%--Donec id elit non mi porta.--%> -
-
+
+
+

MAPO

-
-
-
-
-

- -

-
-
-
-
-
-
-
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..56af1e20 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.749\lib\net462\SteamWare.dll - - ..\packages\SteamWare.Logger.5.0.2011.748\lib\net462\SteamWare.Logger.dll + + ..\packages\SteamWare.Logger.5.0.2012.749\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/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-TAB/ResetAct.aspx.designer.cs b/MP-TAB/ResetAct.aspx.designer.cs new file mode 100644 index 00000000..f1966cb3 --- /dev/null +++ b/MP-TAB/ResetAct.aspx.designer.cs @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// Codice generato da uno strumento. +// +// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se +// il codice viene rigenerato. +// +//------------------------------------------------------------------------------ + +namespace MoonProTablet +{ + + + public partial class ResetAct + { + + /// + /// 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.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

--%>
-
-
-
-
-
-
-

<%: SteamWare.memLayer.ML.confReadString("CodModulo") %>

-
-
-
-
.net framework
+
+
+
+
+
+
Module
+
+

<%: SteamWare.memLayer.ML.confReadString("CodModulo") %>

+
+
+
+
.net framework
+
+

<%: CurrHwSwInfo.runtimeImg %>

+
+ +
+
+
Main DB Conf
+
+

<%: currDb %>

+
+ +
+
+
Main Assembly
+
+

<%: CurrHwSwInfo.mainAssembly %>

+
+
+
-

<%: SteamWare.HwSwInfo.man(System.Reflection.Assembly.GetExecutingAssembly()).runtimeImg %>

-
-
-
-
Main Assembly
-
-

<%: SteamWare.HwSwInfo.man(System.Reflection.Assembly.GetExecutingAssembly()).mainAssembly %>

-
-
-
-
-
-
-
-
-

-

<%: SteamWare.HwSwInfo.man(System.Reflection.Assembly.GetExecutingAssembly()).ServerStats %>
-

-
-
-
-
IIS Stats
+
+
+
+
+
+
Server Stats
+
+

+

<%: CurrHwSwInfo.ServerStats %>
+

+
+
+
+
IIS Stats
+
+

+

<%: CurrHwSwInfo.IISStats %>
+

+
+
+
-

-

<%: SteamWare.HwSwInfo.man(System.Reflection.Assembly.GetExecutingAssembly()).IISStats %>
-

-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
Redis Servers Data
+
+

+

<%: CurrHwSwInfo.redisServersData %>
+

+
+
+
-

-

<%: SteamWare.HwSwInfo.man(System.Reflection.Assembly.GetExecutingAssembly()).redisServersData %>
-

-
-
- - -
-
-
-
+
+
+
+
+
+
+
Browser size data
+
+
+ +
+
+
+
+
Screen size data
+
+
+ +
+
+
+
-

-

<%: SteamWare.HwSwInfo.man(System.Reflection.Assembly.GetExecutingAssembly()).paretoBrowserSize %>
-

-
- - - -
-
-
-
+
+
+
+
+
+
+
Elenco librerie
+ <%: CurrHwSwInfo.numLibraries %> +
+

+

<%: CurrHwSwInfo.librariesVers %>
+

+
+
+
-

-

<%: SteamWare.HwSwInfo.man(System.Reflection.Assembly.GetExecutingAssembly()).librariesVers %>
-

-
- - - -
-
-
-
+
+
+
+

+

+

+
+
+
-
-
-

-

-

-
-
- - \ No newline at end of file diff --git a/MP-TAB/WebUserControls/cmp_HwSwInfo.ascx.cs b/MP-TAB/WebUserControls/cmp_HwSwInfo.ascx.cs index 53149a93..d31e54a1 100644 --- a/MP-TAB/WebUserControls/cmp_HwSwInfo.ascx.cs +++ b/MP-TAB/WebUserControls/cmp_HwSwInfo.ascx.cs @@ -1,6 +1,8 @@ -using System; +using SteamWare; +using System; using System.Collections.Generic; using System.Linq; +using System.Text; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; @@ -9,9 +11,63 @@ namespace MoonProTablet.WebUserControls { public partial class cmp_HwSwInfo : BaseUserControl { + #region Public Properties + + public string currDb + { + get + { + string connStr = memLayer.ML.confReadString("DbConfConnectionString"); + return connStr.Substring(0, connStr.IndexOf(";Persist Security")); + } + } + + /// + /// Oggetto info hw/sw correnti + /// + public SteamWare.HwSwInfo CurrHwSwInfo + { + get + { + return SteamWare.HwSwInfo.man(System.Reflection.Assembly.GetExecutingAssembly()); + } + } + + /// + /// Restitusice l'elenco pareto (decrescente) delle dimensioni FINESTRA browser registrate + /// + public string paretoBrowserSize + { + get + { + StringBuilder sb = new StringBuilder(); + string redHash = memLayer.ML.redHash("COUNT:wh:*"); + int numRec = memLayer.ML.redCountKey(redHash); + var redKeys = memLayer.ML.redGetKeys(redHash); + // riordino elenco + sb.AppendLine(string.Format("Trovate {0} combinazioni", numRec)); + string currKey = ""; + string currVal = ""; + foreach (var item in redKeys) + { + currKey = item.ToString().Replace(memLayer.ML.redHash("COUNT:wh:"), ""); + currVal = memLayer.ML.getRSV(item); + sb.AppendLine($"{currKey}: {currVal}"); + } + return sb.ToString(); + } + } + + #endregion Public Properties + + #region Protected Methods + protected void Page_Load(object sender, EventArgs e) { - + litBrowserSize.Text = CurrHwSwInfo.paretoBrowserSize.Replace(Environment.NewLine, "
"); + //litScreenSize.Text = CurrHwSwInfo.paretoScreenSize.Replace(Environment.NewLine, "
"); } + + #endregion Protected Methods } } \ No newline at end of file diff --git a/MP-TAB/WebUserControls/cmp_HwSwInfo.ascx.designer.cs b/MP-TAB/WebUserControls/cmp_HwSwInfo.ascx.designer.cs index a0aacef3..7a224aa5 100644 --- a/MP-TAB/WebUserControls/cmp_HwSwInfo.ascx.designer.cs +++ b/MP-TAB/WebUserControls/cmp_HwSwInfo.ascx.designer.cs @@ -11,70 +11,88 @@ namespace MoonProTablet.WebUserControls { - public partial class cmp_HwSwInfo - { + public partial class cmp_HwSwInfo + { - /// - /// 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 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 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 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 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 litBrowserSize. + /// + /// + /// 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.Literal litBrowserSize; - /// - /// 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; + /// + /// Controllo litScreenSize. + /// + /// + /// 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.Literal litScreenSize; - /// - /// 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.WebControls.Label lblOut; - } + /// + /// 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; + + /// + /// 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.WebControls.Label lblOut; + } } diff --git a/MP-TAB/WebUserControls/mod_title.ascx.cs b/MP-TAB/WebUserControls/mod_title.ascx.cs index 2757b322..fcbb59ac 100644 --- a/MP-TAB/WebUserControls/mod_title.ascx.cs +++ b/MP-TAB/WebUserControls/mod_title.ascx.cs @@ -8,14 +8,22 @@ namespace MoonProTablet.WebUserControls { public partial class mod_title : BaseUserControl { - /// - /// user agent corrente - /// - protected string userAgent = ""; + #region Protected Fields + /// /// IP corrente /// protected string postazione_IP = ""; + + /// + /// user agent corrente + /// + protected string userAgent = ""; + + #endregion Protected Fields + + #region Protected Properties + /// /// Versione corrente sw /// @@ -26,25 +34,70 @@ namespace MoonProTablet.WebUserControls return System.Reflection.Assembly.GetExecutingAssembly().GetName().Version; } } + /// - /// caricamento pagina + /// URL stringa di UPDATE... /// - /// - /// - protected void Page_Load(object sender, EventArgs e) + protected string updateUrl { - if (!Page.IsPostBack) + get { - // prima apertura registro NO popup = refresh enabled - memLayer.ML.setSessionVal("refreshEnabled", true); - } - // se ho user/dominio e matricola in sessione NON controllo coockie - if (user_std.UtSn.utente == "" || user_std.UtSn.dominio == "" || DataLayerObj.MatrOpr == 0) - { - // altrimenti controllo se c'è utente in sessione.. - checkAuthCookieMoonProTablet(); + return string.Format("http://seriate.steamware.net:8083/SWS/MAPO/TAB/{0}/manifest.xml", memLayer.ML.CRS("appVers")); } } + + #endregion Protected Properties + + #region Public Properties + + /// + /// Cognome Nome utente + /// + public string CognomeNome + { + get + { + string swData = ""; + string cognomeNome = ""; + try + { + cognomeNome = user_std.UtSn.CognomeNome; + } + catch (Exception exc) + { + logger.lg.scriviLog($"Eccezione in {titolo} recupero CognomeNome: {Environment.NewLine}{exc}", tipoLog.EXCEPTION); + } + if (DataLayerObj.MatrOpr > 0) + { + swData = DataLayerObj.CognomeNomeOpr; + } + else if (cognomeNome != "") + { + swData = cognomeNome; + } + else + { + swData = "MoonProTablet"; + } + return swData; + } + } + + /// + /// Cognome Nome utente + /// + public string MatrOpr + { + get + { + return DataLayerObj.MatrOpr.ToString(); + } + } + + #endregion Public Properties + + #region Private Methods + /// /// verifica al presenza di un cookie VALIDO per autorizzare il device /// @@ -119,25 +172,35 @@ namespace MoonProTablet.WebUserControls logger.lg.scriviLog(string.Format("Errore in checkAuthCookie:{0}{1}", Environment.NewLine, exc), tipoLog.EXCEPTION); } } + + #endregion Private Methods + + #region Protected Methods + /// - /// URL stringa di UPDATE... + /// caricamento pagina /// - protected string updateUrl + /// + /// + protected void Page_Load(object sender, EventArgs e) { - get + if (!Page.IsPostBack) { - return string.Format("http://seriate.steamware.net:8083/SWS/MAPO/TAB/{0}/manifest.xml", memLayer.ML.CRS("appVers")); + // prima apertura registro NO popup = refresh enabled + memLayer.ML.setSessionVal("refreshEnabled", true); + } + // se ho user/dominio e matricola in sessione NON controllo coockie + if (user_std.UtSn.utente == "" || user_std.UtSn.dominio == "" || DataLayerObj.MatrOpr == 0) + { + // altrimenti controllo se c'è utente in sessione.. + checkAuthCookieMoonProTablet(); } } - public string isActive(object pageName) - { - string answ = ""; - if (true) - { - answ = "active"; - } - return answ; - } + + #endregion Protected Methods + + #region Public Methods + /// /// Verifica se la pagina corrente sia URL indicato --> mostra ACTIVE /// @@ -152,48 +215,17 @@ namespace MoonProTablet.WebUserControls } return answ; } - /// - /// Cognome Nome utente - /// - public string MatrOpr + + public string isActive(object pageName) { - get + string answ = ""; + if (true) { - return DataLayerObj.MatrOpr.ToString(); + answ = "active"; } + return answ; } - /// - /// Cognome Nome utente - /// - public string CognomeNome - { - get - { - string swData = ""; - string cognomeNome = ""; - try - { - cognomeNome = user_std.UtSn.CognomeNome; - } - catch (Exception exc) - { - logger.lg.scriviLog(string.Format("Eccezione in User.aspx - page_load: {0}", exc), tipoLog.EXCEPTION); - } - if (DataLayerObj.MatrOpr > 0) - { - swData = DataLayerObj.CognomeNomeOpr; - } - else if (cognomeNome != "") - { - swData = cognomeNome; - } - else - { - swData = "MoonProTablet"; - } - return swData; - } - } + #endregion Public Methods } } \ No newline at end of file diff --git a/MP-TAB/images/LogoMapoFull.png b/MP-TAB/images/LogoMapoFull.png new file mode 100644 index 00000000..3d766f04 Binary files /dev/null and b/MP-TAB/images/LogoMapoFull.png differ diff --git a/MP-TAB/packages.config b/MP-TAB/packages.config index 6e164383..bb14c59e 100644 --- a/MP-TAB/packages.config +++ b/MP-TAB/packages.config @@ -43,8 +43,8 @@ - - + +