fix about & info page x TAB
This commit is contained in:
+15
-184
@@ -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" %>
|
||||
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<div class="container my-3">
|
||||
<h3 class="card-title text-uppercase">SteamWare's stats page</h3>
|
||||
<div class="card bg-dark">
|
||||
<div class="card-header" id="heading04">
|
||||
<p class="mb-0">
|
||||
<asp:LinkButton runat="server" ID="lbtGrp01" class="btn btn-link collapsed p-0" data-toggle="collapse" data-target="#collapse04" aria-expanded="true" aria-controls="collapse04">
|
||||
<b>Global data</b>
|
||||
</asp:LinkButton>
|
||||
</p>
|
||||
</div>
|
||||
<div id="collapse04" class="collapse" aria-labelledby="headingOne" data-parent="#accordion">
|
||||
<div class="card-body">
|
||||
<div class="list-group">
|
||||
<div class="list-group-item bg-secondary">
|
||||
<div class="d-flex w-100 justify-content-between">
|
||||
<h5 class="mb-1">Module</h5>
|
||||
<%--<small>3 days ago</small>--%>
|
||||
</div>
|
||||
<p class="mb-1"><%: SteamWare.memLayer.ML.CRS("CodModulo") %></p>
|
||||
<%--<small>Altro.</small>--%>
|
||||
</div>
|
||||
<div class="list-group-item bg-secondary">
|
||||
<div class="d-flex w-100 justify-content-between">
|
||||
<h5 class="mb-1">.net framework</h5>
|
||||
<%--<small>3 days ago</small>--%>
|
||||
</div>
|
||||
<p class="mb-1"><%: runtimeImg %></p>
|
||||
<%--<small>Donec id elit non mi porta.</small>--%>
|
||||
</div>
|
||||
<div class="list-group-item bg-secondary">
|
||||
<div class="d-flex w-100 justify-content-between">
|
||||
<h5 class="mb-1">Main Assembly</h5>
|
||||
<%--<small>3 days ago</small>--%>
|
||||
</div>
|
||||
<p class="mb-1"><%: mainAssembly %></p>
|
||||
<%--<small>Donec id elit non mi porta.</small>--%>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="card-header text-center">
|
||||
<h2 class="card-title text-uppercase">MAPO</h2>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card bg-dark">
|
||||
<div class="card-header" id="heading01">
|
||||
<p class="mb-0">
|
||||
<asp:LinkButton runat="server" ID="LinkButton1" class="btn btn-link collapsed p-0" data-toggle="collapse" data-target="#collapse01" aria-expanded="true" aria-controls="collapse01">
|
||||
<b>Stats (Server, IIS, APP)</b>
|
||||
</asp:LinkButton>
|
||||
</p>
|
||||
</div>
|
||||
<div id="collapse01" class="collapse" aria-labelledby="heading01" data-parent="#accordion">
|
||||
<div class="card-body">
|
||||
<div class="list-group">
|
||||
<div class="list-group-item bg-secondary">
|
||||
<div class="d-flex w-100 justify-content-between">
|
||||
<h5 class="mb-1">Server Stats</h5>
|
||||
<%--<small>3 days ago</small>--%>
|
||||
</div>
|
||||
<p class="mb-1">
|
||||
<pre class="bg-secondary text-warning"><%: ServerStats %></pre>
|
||||
</p>
|
||||
<%--<small>Donec id elit non mi porta.</small>--%>
|
||||
<div class="row">
|
||||
<div class="col-3"></div>
|
||||
<div class="col-6">
|
||||
<img src="~/images/LogoMapoFull.png" class="img-fluid p-3" />
|
||||
</div>
|
||||
<div class="list-group-item bg-secondary">
|
||||
<div class="d-flex w-100 justify-content-between">
|
||||
<h5 class="mb-1">IIS Stats</h5>
|
||||
<%--<small>3 days ago</small>--%>
|
||||
</div>
|
||||
<p class="mb-1">
|
||||
<pre class="bg-secondary text-warning"><%: IISStats %></pre>
|
||||
</p>
|
||||
<%--<small>Donec id elit non mi porta.</small>--%>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-3"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card bg-dark">
|
||||
<div class="card-header" id="heading02">
|
||||
<p class="mb-0">
|
||||
<asp:LinkButton runat="server" ID="LinkButton2" class="btn btn-link collapsed p-0" data-toggle="collapse" data-target="#collapse02" aria-expanded="true" aria-controls="collapse02">
|
||||
<b>Redis Server data</b>
|
||||
</asp:LinkButton>
|
||||
</p>
|
||||
</div>
|
||||
<div id="collapse02" class="collapse" aria-labelledby="heading01" data-parent="#accordion">
|
||||
<div class="card-body">
|
||||
<div class="list-group">
|
||||
<div class="list-group-item bg-secondary">
|
||||
<div class="d-flex w-100 justify-content-between">
|
||||
<h5 class="mb-1">Redis Servers Data</h5>
|
||||
<%--<small>3 days ago</small>--%>
|
||||
</div>
|
||||
<p class="mb-1">
|
||||
<pre class="bg-secondary text-warning"><%: redisServersData %></pre>
|
||||
</p>
|
||||
<%--<small>Donec id elit non mi porta.</small>--%>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body px-3">
|
||||
<p>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.</p>
|
||||
<p>Per maggiori informazioni <a href="http://www.steamware.net/iot">visita il link</a> sul nostro sito.</p>
|
||||
<uc1:cmp_HwSwInfo runat="server" ID="cmp_HwSwInfo" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card bg-dark">
|
||||
<div class="card-header" id="heading03">
|
||||
<p class="mb-0">
|
||||
<asp:LinkButton runat="server" ID="LinkButton3" class="btn btn-link collapsed p-0" data-toggle="collapse" data-target="#collapse03" aria-expanded="true" aria-controls="collapse03">
|
||||
<b>Browser data</b>
|
||||
</asp:LinkButton>
|
||||
</p>
|
||||
</div>
|
||||
<div id="collapse03" class="collapse" aria-labelledby="heading01" data-parent="#accordion">
|
||||
<div class="card-body">
|
||||
<div class="list-group">
|
||||
<div class="list-group-item bg-secondary">
|
||||
<div class="d-flex w-100 justify-content-between">
|
||||
<h5 class="mb-1">Windows size data</h5>
|
||||
<%--<small>3 days ago</small>--%>
|
||||
</div>
|
||||
<p class="mb-1">
|
||||
<pre class="bg-secondary text-warning"><%: paretoBrowserSize %></pre>
|
||||
</p>
|
||||
<%--<small>Donec id elit non mi porta.</small>--%>
|
||||
</div>
|
||||
<div class="list-group-item bg-secondary">
|
||||
<div class="d-flex w-100 justify-content-between">
|
||||
<h5 class="mb-1">Screen size data</h5>
|
||||
<%--<small>3 days ago</small>--%>
|
||||
</div>
|
||||
<p class="mb-1">
|
||||
<pre class="bg-secondary text-warning"><%: paretoScreenSize %></pre>
|
||||
</p>
|
||||
<%--<small>Donec id elit non mi porta.</small>--%>
|
||||
</div>
|
||||
<div class="list-group-item bg-secondary">
|
||||
<div class="d-flex w-100 justify-content-between">
|
||||
<h5 class="mb-1">Pixel Ratio + Windows size data</h5>
|
||||
<%--<small>3 days ago</small>--%>
|
||||
</div>
|
||||
<p class="mb-1">
|
||||
<pre class="bg-secondary text-warning"><%: paretoWinPixRat %></pre>
|
||||
</p>
|
||||
<%--<small>Donec id elit non mi porta.</small>--%>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card bg-dark">
|
||||
<div class="card-header" id="heading05">
|
||||
<p class="mb-0">
|
||||
<asp:LinkButton runat="server" ID="lbtGrp02" class="btn btn-link collapsed p-0" data-toggle="collapse" data-target="#collapse05" aria-expanded="false" aria-controls="collapse05">
|
||||
<b>Other Libraries</b>
|
||||
</asp:LinkButton>
|
||||
</p>
|
||||
</div>
|
||||
<div id="collapse05" class="collapse" aria-labelledby="headingTwo" data-parent="#accordion">
|
||||
<div class="card-body">
|
||||
<div class="list-group">
|
||||
<div class="list-group-item bg-secondary">
|
||||
<div class="d-flex w-100 justify-content-between">
|
||||
<h5 class="mb-1">Elenco librerie</h5>
|
||||
<span><%: numLibraries %></span>
|
||||
</div>
|
||||
<p class="mb-1">
|
||||
<pre class="bg-secondary text-warning"><%: librariesVers %></pre>
|
||||
</p>
|
||||
<%--<small>Altro.</small>--%>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card bg-dark">
|
||||
<div class="card-header" id="heading06">
|
||||
<p class="mb-0">
|
||||
<asp:LinkButton runat="server" ID="lbtGrp03" class="btn btn-link collapsed p-0" data-toggle="collapse" data-target="#collapse06" aria-expanded="false" aria-controls="collapse06">
|
||||
<b>Reset Results</b>
|
||||
</asp:LinkButton>
|
||||
</p>
|
||||
</div>
|
||||
<div id="collapse06" class="collapse" aria-labelledby="headingThree" data-parent="#accordion">
|
||||
<div class="card-body">
|
||||
<p class="mb-1">
|
||||
<pre class="bg-secondary text-warning"><asp:Label ID="lblOut" runat="server" /></pre>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</asp:Content>
|
||||
</asp:Content>
|
||||
+121
-149
@@ -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 = "<h3>Reset Actions</h3>";
|
||||
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}</br>", 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}</br>", 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}</br>", 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}</br>", 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}</br>", 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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Num di librerie inserite
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Restitusice l'elenco pareto (decrescente) delle dimensioni FINESTRA browser registrate
|
||||
/// </summary>
|
||||
@@ -94,6 +114,7 @@ namespace MoonProTablet
|
||||
return sb.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Restitusice l'elenco pareto (decrescente) delle dimensioni SCHERMO registrate
|
||||
/// </summary>
|
||||
@@ -115,6 +136,7 @@ namespace MoonProTablet
|
||||
return sb.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Restitusice l'elenco pareto (decrescente) delle dimensioni FINESTRA browser + PIXEL ratio registrate
|
||||
/// </summary>
|
||||
@@ -136,25 +158,7 @@ namespace MoonProTablet
|
||||
return sb.ToString();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Formatta un numero da int a size in Kb/Mb/Gb/Tb
|
||||
/// </summary>
|
||||
/// <param name="rawSize"></param>
|
||||
/// <returns></returns>
|
||||
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]);
|
||||
}
|
||||
/// <summary>
|
||||
/// Dati sui server redis...
|
||||
/// </summary>
|
||||
@@ -193,15 +197,22 @@ namespace MoonProTablet
|
||||
return sb.ToString();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Stringa timing
|
||||
/// </summary>
|
||||
/// <param name="time"></param>
|
||||
/// <returns></returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Statistiche server
|
||||
/// </summary>
|
||||
@@ -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
|
||||
|
||||
/// <summary>
|
||||
/// Num di librerie inserite
|
||||
/// Formatta un numero da int a size in Kb/Mb/Gb/Tb
|
||||
/// </summary>
|
||||
public int numLibraries
|
||||
/// <param name="rawSize"></param>
|
||||
/// <returns></returns>
|
||||
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]);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Stringa timing
|
||||
/// </summary>
|
||||
/// <param name="time"></param>
|
||||
/// <returns></returns>
|
||||
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
|
||||
}
|
||||
}
|
||||
Generated
+16
-59
@@ -7,65 +7,13 @@
|
||||
// </generato automaticamente>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace MoonProTablet {
|
||||
|
||||
|
||||
public partial class About {
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lbtGrp01.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton lbtGrp01;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo LinkButton1.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton LinkButton1;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo LinkButton2.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton LinkButton2;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo LinkButton3.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton LinkButton3;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lbtGrp02.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton lbtGrp02;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lbtGrp03.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton lbtGrp03;
|
||||
|
||||
namespace MoonProTablet
|
||||
{
|
||||
|
||||
|
||||
public partial class About
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblOut.
|
||||
/// </summary>
|
||||
@@ -74,5 +22,14 @@ namespace MoonProTablet {
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblOut;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo cmp_HwSwInfo.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::MoonProTablet.WebUserControls.cmp_HwSwInfo cmp_HwSwInfo;
|
||||
}
|
||||
}
|
||||
|
||||
+13
-11
@@ -182,12 +182,11 @@
|
||||
<HintPath>..\packages\StackExchange.Redis.2.2.4\lib\net461\StackExchange.Redis.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="SteamWare, Version=5.0.2011.748, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\SteamWare.5.0.2011.748\lib\net462\SteamWare.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
<Reference Include="SteamWare, Version=5.0.2012.749, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\SteamWare.5.0.2012.749\lib\net462\SteamWare.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="SteamWare.Logger, Version=5.0.2011.748, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\SteamWare.Logger.5.0.2011.748\lib\net462\SteamWare.Logger.dll</HintPath>
|
||||
<Reference Include="SteamWare.Logger, Version=5.0.2012.749, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\SteamWare.Logger.5.0.2012.749\lib\net462\SteamWare.Logger.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Buffers, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll</HintPath>
|
||||
@@ -463,8 +462,6 @@
|
||||
<Content Include="Default.aspx" />
|
||||
<Content Include="Demo.aspx" />
|
||||
<Content Include="DettaglioMacchina.aspx" />
|
||||
<Content Include="example-config-table.txt" />
|
||||
<Content Include="example-favicon.ico" />
|
||||
<Content Include="favicon.ico" />
|
||||
<Content Include="Fermate.aspx" />
|
||||
<Content Include="fixODL.aspx" />
|
||||
@@ -501,6 +498,7 @@
|
||||
<Content Include="images\iconDic\7.png" />
|
||||
<Content Include="images\iconDic\8.png" />
|
||||
<Content Include="images\iconDic\9.png" />
|
||||
<Content Include="images\LogoMapoFull.png" />
|
||||
<Content Include="images\logoTextSteamware.png" />
|
||||
<Content Include="images\logoSteamware.png" />
|
||||
<Content Include="images\macchine\Steamware.png" />
|
||||
@@ -509,12 +507,10 @@
|
||||
<Content Include="jumper.aspx" />
|
||||
<Content Include="Logout.aspx" />
|
||||
<Content Include="MappaStato.aspx" />
|
||||
<Content Include="mongocrypt.dll" />
|
||||
<Content Include="ODL.aspx" />
|
||||
<Content Include="PianoProd.aspx" />
|
||||
<Content Include="Properties\PublishProfiles\IIS01.pubxml.user" />
|
||||
<Content Include="Properties\PublishProfiles\IIS02.pubxml.user" />
|
||||
<Content Include="README.txt" />
|
||||
<Content Include="regNewDevice.aspx" />
|
||||
<Content Include="Bundle.config" />
|
||||
<Content Include="Content\OpenSans.woff" />
|
||||
@@ -531,6 +527,7 @@
|
||||
<Content Include="images\iconDic\IconGen.pdn" />
|
||||
<Content Include="Content\bloccoMacc.less" />
|
||||
<Content Include="Reset.aspx" />
|
||||
<Content Include="ResetAct.aspx" />
|
||||
<Content Include="Resources\Disegni\ND.docx" />
|
||||
<Content Include="Files\Disegni\ND.pdf">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
@@ -542,8 +539,6 @@
|
||||
<Content Include="NLog.config">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="example-NLog.config" />
|
||||
<Content Include="example-app.config" />
|
||||
<None Include="NLog.xsd">
|
||||
<SubType>Designer</SubType>
|
||||
</None>
|
||||
@@ -901,6 +896,13 @@
|
||||
<Compile Include="Reset.aspx.designer.cs">
|
||||
<DependentUpon>Reset.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="ResetAct.aspx.cs">
|
||||
<DependentUpon>ResetAct.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="ResetAct.aspx.designer.cs">
|
||||
<DependentUpon>ResetAct.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Scarti.aspx.cs">
|
||||
<DependentUpon>Scarti.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
|
||||
+16
-3
@@ -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
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/Bootstrap.Master" AutoEventWireup="true" CodeBehind="ResetAct.aspx.cs" Inherits="MoonProTablet.ResetAct" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<asp:Label runat="server" ID="lblOut" />
|
||||
</asp:Content>
|
||||
@@ -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 = "<h3>Reset Actions</h3>";
|
||||
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}</br>", 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}</br>", 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}</br>", 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}</br>", 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}</br>", recPrev, recPost);
|
||||
}
|
||||
}
|
||||
lblOut.Text = testo;
|
||||
}
|
||||
|
||||
#endregion Private Methods
|
||||
|
||||
#region Protected Methods
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
doReset();
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
}
|
||||
}
|
||||
Generated
+26
@@ -0,0 +1,26 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <generato automaticamente>
|
||||
// Codice generato da uno strumento.
|
||||
//
|
||||
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
|
||||
// il codice viene rigenerato.
|
||||
// </generato automaticamente>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace MoonProTablet
|
||||
{
|
||||
|
||||
|
||||
public partial class ResetAct
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblOut.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblOut;
|
||||
}
|
||||
}
|
||||
@@ -1,158 +1,174 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_HwSwInfo.ascx.cs" Inherits="MoonProTablet.WebUserControls.cmp_HwSwInfo" %>
|
||||
<%--<h3 class="card-title text-uppercase">SteamWare's Hw & Sw Info Page</h3>--%>
|
||||
<div class="row">
|
||||
<div class="col p-4 text-dark">
|
||||
<div id="accordion">
|
||||
<div class="card">
|
||||
<div class="card-header" id="heading04">
|
||||
<h5 class="mb-0">
|
||||
<asp:LinkButton runat="server" ID="lbtGrp01" class="btn btn-link collapsed" data-toggle="collapse" data-target="#collapse04" aria-expanded="true" aria-controls="collapse04">
|
||||
<div class="col p-4 text-dark">
|
||||
<div id="accordion">
|
||||
<div class="card">
|
||||
<div class="card-header text-uppercase btn btn-block" id="heading04">
|
||||
<h5 class="mb-0">
|
||||
<asp:LinkButton runat="server" ID="lbtGrp01" class="collapsed" data-toggle="collapse" data-target="#collapse04" aria-expanded="true" aria-controls="collapse04">
|
||||
Global data
|
||||
</asp:LinkButton>
|
||||
</h5>
|
||||
</div>
|
||||
<div id="collapse04" class="collapse" aria-labelledby="headingOne" data-parent="#accordion">
|
||||
<div class="card-body">
|
||||
<div class="list-group">
|
||||
<div class="list-group-item">
|
||||
<div class="d-flex w-100 justify-content-between">
|
||||
<h5 class="mb-1">Module</h5>
|
||||
</asp:LinkButton>
|
||||
</h5>
|
||||
</div>
|
||||
<p class="mb-1"><%: SteamWare.memLayer.ML.confReadString("CodModulo") %></p>
|
||||
</div>
|
||||
<div class="list-group-item">
|
||||
<div class="d-flex w-100 justify-content-between">
|
||||
<h5 class="mb-1">.net framework</h5>
|
||||
<div id="collapse04" class="collapse" aria-labelledby="headingOne" data-parent="#accordion">
|
||||
<div class="card-body">
|
||||
<div class="list-group">
|
||||
<div class="list-group-item">
|
||||
<div class="d-flex w-100 justify-content-between">
|
||||
<h5 class="mb-1">Module</h5>
|
||||
</div>
|
||||
<p class="mb-1"><%: SteamWare.memLayer.ML.confReadString("CodModulo") %></p>
|
||||
</div>
|
||||
<div class="list-group-item">
|
||||
<div class="d-flex w-100 justify-content-between">
|
||||
<h5 class="mb-1">.net framework</h5>
|
||||
</div>
|
||||
<p class="mb-1"><%: CurrHwSwInfo.runtimeImg %></p>
|
||||
</div>
|
||||
|
||||
<div class="list-group-item">
|
||||
<div class="d-flex w-100 justify-content-between">
|
||||
<h5 class="mb-1">Main DB Conf</h5>
|
||||
</div>
|
||||
<p class="mb-1"><%: currDb %></p>
|
||||
</div>
|
||||
|
||||
<div class="list-group-item">
|
||||
<div class="d-flex w-100 justify-content-between">
|
||||
<h5 class="mb-1">Main Assembly</h5>
|
||||
</div>
|
||||
<p class="mb-1"><%: CurrHwSwInfo.mainAssembly %></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p class="mb-1"><%: SteamWare.HwSwInfo.man(System.Reflection.Assembly.GetExecutingAssembly()).runtimeImg %></p>
|
||||
</div>
|
||||
<div class="list-group-item">
|
||||
<div class="d-flex w-100 justify-content-between">
|
||||
<h5 class="mb-1">Main Assembly</h5>
|
||||
</div>
|
||||
<p class="mb-1"><%: SteamWare.HwSwInfo.man(System.Reflection.Assembly.GetExecutingAssembly()).mainAssembly %></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="card-header" id="heading01">
|
||||
<h5 class="mb-0">
|
||||
<asp:LinkButton runat="server" ID="LinkButton1" class="btn btn-link collapsed" data-toggle="collapse" data-target="#collapse01" aria-expanded="true" aria-controls="collapse01">
|
||||
<div class="card">
|
||||
<div class="card-header text-uppercase btn btn-block" id="heading01">
|
||||
<h5 class="mb-0">
|
||||
<asp:LinkButton runat="server" ID="LinkButton1" class="collapsed" data-toggle="collapse" data-target="#collapse01" aria-expanded="true" aria-controls="collapse01">
|
||||
Stats (Server, IIS, APP)
|
||||
</asp:LinkButton>
|
||||
</h5>
|
||||
</div>
|
||||
<div id="collapse01" class="collapse" aria-labelledby="heading01" data-parent="#accordion">
|
||||
<div class="card-body">
|
||||
<div class="list-group">
|
||||
<div class="list-group-item">
|
||||
<div class="d-flex w-100 justify-content-between">
|
||||
<h5 class="mb-1">Server Stats</h5>
|
||||
</asp:LinkButton>
|
||||
</h5>
|
||||
</div>
|
||||
<p class="mb-1">
|
||||
<pre><%: SteamWare.HwSwInfo.man(System.Reflection.Assembly.GetExecutingAssembly()).ServerStats %></pre>
|
||||
</p>
|
||||
</div>
|
||||
<div class="list-group-item">
|
||||
<div class="d-flex w-100 justify-content-between">
|
||||
<h5 class="mb-1">IIS Stats</h5>
|
||||
<div id="collapse01" class="collapse" aria-labelledby="heading01" data-parent="#accordion">
|
||||
<div class="card-body">
|
||||
<div class="list-group">
|
||||
<div class="list-group-item">
|
||||
<div class="d-flex w-100 justify-content-between">
|
||||
<h5 class="mb-1">Server Stats</h5>
|
||||
</div>
|
||||
<p class="mb-1">
|
||||
<pre><%: CurrHwSwInfo.ServerStats %></pre>
|
||||
</p>
|
||||
</div>
|
||||
<div class="list-group-item">
|
||||
<div class="d-flex w-100 justify-content-between">
|
||||
<h5 class="mb-1">IIS Stats</h5>
|
||||
</div>
|
||||
<p class="mb-1">
|
||||
<pre><%: CurrHwSwInfo.IISStats %></pre>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p class="mb-1">
|
||||
<pre><%: SteamWare.HwSwInfo.man(System.Reflection.Assembly.GetExecutingAssembly()).IISStats %></pre>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="card-header" id="heading02">
|
||||
<h5 class="mb-0">
|
||||
<asp:LinkButton runat="server" ID="LinkButton2" class="btn btn-link collapsed" data-toggle="collapse" data-target="#collapse02" aria-expanded="true" aria-controls="collapse02">
|
||||
<div class="card">
|
||||
<div class="card-header text-uppercase btn btn-block" id="heading02">
|
||||
<h5 class="mb-0">
|
||||
<asp:LinkButton runat="server" ID="LinkButton2" class="collapsed" data-toggle="collapse" data-target="#collapse02" aria-expanded="true" aria-controls="collapse02">
|
||||
Redis Server data
|
||||
</asp:LinkButton>
|
||||
</h5>
|
||||
</div>
|
||||
<div id="collapse02" class="collapse" aria-labelledby="heading01" data-parent="#accordion">
|
||||
<div class="card-body">
|
||||
<div class="list-group">
|
||||
<div class="list-group-item">
|
||||
<div class="d-flex w-100 justify-content-between">
|
||||
<h5 class="mb-1">Redis Servers Data</h5>
|
||||
</asp:LinkButton>
|
||||
</h5>
|
||||
</div>
|
||||
<div id="collapse02" class="collapse" aria-labelledby="heading01" data-parent="#accordion">
|
||||
<div class="card-body">
|
||||
<div class="list-group">
|
||||
<div class="list-group-item">
|
||||
<div class="d-flex w-100 justify-content-between">
|
||||
<h5 class="mb-1">Redis Servers Data</h5>
|
||||
</div>
|
||||
<p class="mb-1">
|
||||
<pre><%: CurrHwSwInfo.redisServersData %></pre>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p class="mb-1">
|
||||
<pre><%: SteamWare.HwSwInfo.man(System.Reflection.Assembly.GetExecutingAssembly()).redisServersData %></pre>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="card-header" id="heading03">
|
||||
<h5 class="mb-0">
|
||||
<asp:LinkButton runat="server" ID="LinkButton3" class="btn btn-link collapsed" data-toggle="collapse" data-target="#collapse03" aria-expanded="true" aria-controls="collapse03">
|
||||
<div class="card">
|
||||
<div class="card-header text-uppercase btn btn-block" id="heading03">
|
||||
<h5 class="mb-0">
|
||||
<asp:LinkButton runat="server" ID="LinkButton3" class="collapsed" data-toggle="collapse" data-target="#collapse03" aria-expanded="true" aria-controls="collapse03">
|
||||
Browser data
|
||||
</asp:LinkButton>
|
||||
</h5>
|
||||
</div>
|
||||
<div id="collapse03" class="collapse" aria-labelledby="heading01" data-parent="#accordion">
|
||||
<div class="card-body">
|
||||
<div class="list-group">
|
||||
<div class="list-group-item">
|
||||
<div class="d-flex w-100 justify-content-between">
|
||||
<h5 class="mb-1">Browser size data</h5>
|
||||
</asp:LinkButton>
|
||||
</h5>
|
||||
</div>
|
||||
<div id="collapse03" class="collapse" aria-labelledby="heading01" data-parent="#accordion">
|
||||
<div class="card-body">
|
||||
<div class="list-group">
|
||||
<div class="list-group-item">
|
||||
<div class="d-flex w-100 justify-content-between">
|
||||
<h5 class="mb-1">Browser size data</h5>
|
||||
</div>
|
||||
<div>
|
||||
<asp:Literal runat="server" ID="litBrowserSize" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="list-group-item">
|
||||
<div class="d-flex w-100 justify-content-between">
|
||||
<h5 class="mb-1">Screen size data</h5>
|
||||
</div>
|
||||
<div>
|
||||
<asp:Literal runat="server" ID="litScreenSize" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p class="mb-1">
|
||||
<pre><%: SteamWare.HwSwInfo.man(System.Reflection.Assembly.GetExecutingAssembly()).paretoBrowserSize %></pre>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="card-header" id="heading05">
|
||||
<h5 class="mb-0">
|
||||
<asp:LinkButton runat="server" ID="lbtGrp02" class="btn btn-link collapsed" data-toggle="collapse" data-target="#collapse05" aria-expanded="false" aria-controls="collapse05">
|
||||
<div class="card">
|
||||
<div class="card-header text-uppercase btn btn-block" id="heading05">
|
||||
<h5 class="mb-0">
|
||||
<asp:LinkButton runat="server" ID="lbtGrp02" class="collapsed" data-toggle="collapse" data-target="#collapse05" aria-expanded="false" aria-controls="collapse05">
|
||||
Other Libraries
|
||||
</asp:LinkButton>
|
||||
</h5>
|
||||
</div>
|
||||
<div id="collapse05" class="collapse" aria-labelledby="headingTwo" data-parent="#accordion">
|
||||
<div class="card-body">
|
||||
<div class="list-group">
|
||||
<div class="list-group-item">
|
||||
<div class="d-flex w-100 justify-content-between">
|
||||
<h5 class="mb-1">Elenco librerie</h5>
|
||||
<span><%: SteamWare.HwSwInfo.man(System.Reflection.Assembly.GetExecutingAssembly()).numLibraries %></span>
|
||||
</asp:LinkButton>
|
||||
</h5>
|
||||
</div>
|
||||
<div id="collapse05" class="collapse" aria-labelledby="headingTwo" data-parent="#accordion">
|
||||
<div class="card-body">
|
||||
<div class="list-group">
|
||||
<div class="list-group-item">
|
||||
<div class="d-flex w-100 justify-content-between">
|
||||
<h5 class="mb-1">Elenco librerie</h5>
|
||||
<span><%: CurrHwSwInfo.numLibraries %></span>
|
||||
</div>
|
||||
<p class="mb-1">
|
||||
<pre style="width: 100%; white-space: pre-wrap;"><%: CurrHwSwInfo.librariesVers %></pre>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p class="mb-1">
|
||||
<pre style="width: 100%; white-space: pre-wrap;"><%: SteamWare.HwSwInfo.man(System.Reflection.Assembly.GetExecutingAssembly()).librariesVers %></pre>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="card-header" id="heading06">
|
||||
<h5 class="mb-0">
|
||||
<asp:LinkButton runat="server" ID="lbtGrp03" class="btn btn-link collapsed" data-toggle="collapse" data-target="#collapse06" aria-expanded="false" aria-controls="collapse06">
|
||||
<div class="card">
|
||||
<div class="card-header text-uppercase btn btn-block" id="heading06">
|
||||
<h5 class="mb-0">
|
||||
<asp:LinkButton runat="server" ID="lbtGrp03" class="collapsed" data-toggle="collapse" data-target="#collapse06" aria-expanded="false" aria-controls="collapse06">
|
||||
Reset Results
|
||||
</asp:LinkButton>
|
||||
</h5>
|
||||
</asp:LinkButton>
|
||||
</h5>
|
||||
</div>
|
||||
<div id="collapse06" class="collapse" aria-labelledby="headingThree" data-parent="#accordion">
|
||||
<div class="card-body">
|
||||
<p class="mb-1">
|
||||
<pre style="width: 100%; white-space: pre-wrap;"><asp:Label ID="lblOut" runat="server" /></pre>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="collapse06" class="collapse" aria-labelledby="headingThree" data-parent="#accordion">
|
||||
<div class="card-body">
|
||||
<p class="mb-1">
|
||||
<pre style="width: 100%; white-space: pre-wrap;"><asp:Label ID="lblOut" runat="server" /></pre>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -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"));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Oggetto info hw/sw correnti
|
||||
/// </summary>
|
||||
public SteamWare.HwSwInfo CurrHwSwInfo
|
||||
{
|
||||
get
|
||||
{
|
||||
return SteamWare.HwSwInfo.man(System.Reflection.Assembly.GetExecutingAssembly());
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Restitusice l'elenco pareto (decrescente) delle dimensioni FINESTRA browser registrate
|
||||
/// </summary>
|
||||
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, "<br />");
|
||||
//litScreenSize.Text = CurrHwSwInfo.paretoScreenSize.Replace(Environment.NewLine, "<br />");
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
}
|
||||
}
|
||||
+77
-59
@@ -11,70 +11,88 @@ namespace MoonProTablet.WebUserControls
|
||||
{
|
||||
|
||||
|
||||
public partial class cmp_HwSwInfo
|
||||
{
|
||||
public partial class cmp_HwSwInfo
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lbtGrp01.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton lbtGrp01;
|
||||
/// <summary>
|
||||
/// Controllo lbtGrp01.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton lbtGrp01;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo LinkButton1.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton LinkButton1;
|
||||
/// <summary>
|
||||
/// Controllo LinkButton1.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton LinkButton1;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo LinkButton2.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton LinkButton2;
|
||||
/// <summary>
|
||||
/// Controllo LinkButton2.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton LinkButton2;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo LinkButton3.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton LinkButton3;
|
||||
/// <summary>
|
||||
/// Controllo LinkButton3.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton LinkButton3;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lbtGrp02.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton lbtGrp02;
|
||||
/// <summary>
|
||||
/// Controllo litBrowserSize.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Literal litBrowserSize;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lbtGrp03.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton lbtGrp03;
|
||||
/// <summary>
|
||||
/// Controllo litScreenSize.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Literal litScreenSize;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblOut.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblOut;
|
||||
}
|
||||
/// <summary>
|
||||
/// Controllo lbtGrp02.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton lbtGrp02;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lbtGrp03.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton lbtGrp03;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblOut.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblOut;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,14 +8,22 @@ namespace MoonProTablet.WebUserControls
|
||||
{
|
||||
public partial class mod_title : BaseUserControl
|
||||
{
|
||||
/// <summary>
|
||||
/// user agent corrente
|
||||
/// </summary>
|
||||
protected string userAgent = "";
|
||||
#region Protected Fields
|
||||
|
||||
/// <summary>
|
||||
/// IP corrente
|
||||
/// </summary>
|
||||
protected string postazione_IP = "";
|
||||
|
||||
/// <summary>
|
||||
/// user agent corrente
|
||||
/// </summary>
|
||||
protected string userAgent = "";
|
||||
|
||||
#endregion Protected Fields
|
||||
|
||||
#region Protected Properties
|
||||
|
||||
/// <summary>
|
||||
/// Versione corrente sw
|
||||
/// </summary>
|
||||
@@ -26,25 +34,70 @@ namespace MoonProTablet.WebUserControls
|
||||
return System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// caricamento pagina
|
||||
/// URL stringa di UPDATE...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
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
|
||||
|
||||
/// <summary>
|
||||
/// Cognome Nome utente
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Cognome Nome utente
|
||||
/// </summary>
|
||||
public string MatrOpr
|
||||
{
|
||||
get
|
||||
{
|
||||
return DataLayerObj.MatrOpr.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
#endregion Public Properties
|
||||
|
||||
#region Private Methods
|
||||
|
||||
/// <summary>
|
||||
/// verifica al presenza di un cookie VALIDO per autorizzare il device
|
||||
/// </summary>
|
||||
@@ -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
|
||||
|
||||
/// <summary>
|
||||
/// URL stringa di UPDATE...
|
||||
/// caricamento pagina
|
||||
/// </summary>
|
||||
protected string updateUrl
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
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
|
||||
|
||||
/// <summary>
|
||||
/// Verifica se la pagina corrente sia URL indicato --> mostra ACTIVE
|
||||
/// </summary>
|
||||
@@ -152,48 +215,17 @@ namespace MoonProTablet.WebUserControls
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// Cognome Nome utente
|
||||
/// </summary>
|
||||
public string MatrOpr
|
||||
|
||||
public string isActive(object pageName)
|
||||
{
|
||||
get
|
||||
string answ = "";
|
||||
if (true)
|
||||
{
|
||||
return DataLayerObj.MatrOpr.ToString();
|
||||
answ = "active";
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Cognome Nome utente
|
||||
/// </summary>
|
||||
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
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 154 KiB |
@@ -43,8 +43,8 @@
|
||||
<package id="SharpZipLib" version="1.3.0" targetFramework="net462" />
|
||||
<package id="Snappy.NET" version="1.1.1.8" targetFramework="net462" />
|
||||
<package id="StackExchange.Redis" version="2.2.4" targetFramework="net462" />
|
||||
<package id="SteamWare" version="5.0.2011.748" targetFramework="net462" />
|
||||
<package id="SteamWare.Logger" version="5.0.2011.748" targetFramework="net462" />
|
||||
<package id="SteamWare" version="5.0.2012.749" targetFramework="net462" />
|
||||
<package id="SteamWare.Logger" version="5.0.2012.749" targetFramework="net462" />
|
||||
<package id="System.Buffers" version="4.5.1" targetFramework="net462" />
|
||||
<package id="System.Diagnostics.PerformanceCounter" version="5.0.0" targetFramework="net462" />
|
||||
<package id="System.IO.Compression" version="4.3.0" targetFramework="net462" />
|
||||
|
||||
Reference in New Issue
Block a user