diff --git a/MP-SITE/.editorconfig b/MP-SITE/.editorconfig
index 2e51bfe2..845489c5 100644
--- a/MP-SITE/.editorconfig
+++ b/MP-SITE/.editorconfig
@@ -32,3 +32,15 @@ dotnet_diagnostic.CA2000.severity = none
# CA1030: Usare gli eventi dove appropriato
dotnet_diagnostic.CA1030.severity = none
+
+# CA5368: Impostare ViewStateUserKey per classi derivate da Page
+dotnet_diagnostic.CA5368.severity = none
+
+# CA1052: I tipi che contengono membri static devono Static o NotInheritable
+dotnet_diagnostic.CA1052.severity = none
+
+# RCS1102: Make class static.
+dotnet_diagnostic.RCS1102.severity = none
+
+# CA1062: Convalidare gli argomenti di metodi pubblici
+dotnet_diagnostic.CA1062.severity = none
diff --git a/MP-SITE/BaseExportPage.cs b/MP-SITE/BaseExportPage.cs
index d8c57500..ca6d0432 100644
--- a/MP-SITE/BaseExportPage.cs
+++ b/MP-SITE/BaseExportPage.cs
@@ -8,59 +8,8 @@ namespace MP_SITE
{
public class BaseExportPage : System.Web.UI.Page
{
- public override void VerifyRenderingInServerForm(Control control)
- {
- // Confirms that an HtmlForm control is rendered for the specified ASP.NET server control at run time.
- }
-
protected resoconti _resoconti;
- protected void Page_Load(object sender, EventArgs e)
- {
- _resoconti = new resoconti();
- if (!Page.IsPostBack)
- {
- aggiornamento();
- doExport();
- }
- }
-
- internal void doExport()
- {
- StringWriter stringWrite;
- HtmlTextWriter htmlWrite;
- startResponse(out stringWrite, out htmlWrite);
- renderControl(htmlWrite);
- endResponse(stringWrite);
- }
-
- internal void startResponse(out StringWriter stringWrite, out HtmlTextWriter htmlWrite)
- {
- Response.Clear();
- Response.AddHeader("content-disposition", "attachment; filename=DatiConfermati.xls");
- Response.Charset = "";
- // If you want the option to open the Excel file without saving than
- // comment out the line below
- Response.Cache.SetCacheability(HttpCacheability.NoCache);
- Response.ContentType = "application/vnd.xls";
- stringWrite = new StringWriter();
- htmlWrite = new HtmlTextWriter(stringWrite);
- }
-
- internal virtual void renderControl(HtmlTextWriter htmlWrite)
- {
- }
-
- internal void endResponse(StringWriter stringWrite)
- {
- Response.Write(stringWrite.ToString());
- Response.End();
- }
-
- internal virtual void aggiornamento()
- {
- }
-
///
/// idx della macchina da mostrare
///
@@ -84,14 +33,23 @@ namespace MP_SITE
}
}
- public string statoDaIdx(object idx)
+ ///
+ /// restituisce stringa formattata in HH:mm
+ ///
+ ///
+ ///
+ public string durataEvento(object durataMinuti)
{
- return _resoconti.statoDaIdx(Convert.ToInt32(idx));
- }
-
- public string tipoDaIdx(object idx)
- {
- return _resoconti.tipoDaIdx(Convert.ToInt32(idx));
+ string answ = "";
+ if (durataMinuti != null)
+ {
+ //string durataFormattata = "";
+ //int ore = (int)Math.Floor(((double)durataMinuti) / 60);
+ //durataFormattata = string.Format("{0}h:{1:#.0}min", ore, (double)durataMinuti - 60 * ore);
+ //return durataFormattata;
+ answ = durataMinuti.ToString();
+ }
+ return answ;
}
public string macchinaDaIdx(object idx)
@@ -119,19 +77,65 @@ namespace MP_SITE
return _resoconti.oprDaMatr(matr);
}
- ///
- /// restituisce stringa formattata in HH:mm
- ///
- ///
- ///
- public string durataEvento(object durataMinuti)
+ public string statoDaIdx(object idx)
{
- string answ = "";
- if (durataMinuti != null)
+ return _resoconti.statoDaIdx(Convert.ToInt32(idx));
+ }
+
+ public string tipoDaIdx(object idx)
+ {
+ return _resoconti.tipoDaIdx(Convert.ToInt32(idx));
+ }
+
+ public override void VerifyRenderingInServerForm(Control control)
+ {
+ // Confirms that an HtmlForm control is rendered for the specified ASP.NET server control at run time.
+ }
+
+ internal virtual void aggiornamento()
+ {
+ }
+
+ internal void doExport()
+ {
+ StringWriter stringWrite;
+ HtmlTextWriter htmlWrite;
+ startResponse(out stringWrite, out htmlWrite);
+ renderControl(htmlWrite);
+ endResponse(stringWrite);
+ }
+
+ internal void endResponse(StringWriter stringWrite)
+ {
+ Response.Write(stringWrite.ToString());
+ Response.End();
+ }
+
+ internal virtual void renderControl(HtmlTextWriter htmlWrite)
+ {
+ }
+
+ internal void startResponse(out StringWriter stringWrite, out HtmlTextWriter htmlWrite)
+ {
+ Response.Clear();
+ Response.AddHeader("content-disposition", "attachment; filename=DatiConfermati.xls");
+ Response.Charset = "";
+ // If you want the option to open the Excel file without saving than
+ // comment out the line below
+ Response.Cache.SetCacheability(HttpCacheability.NoCache);
+ Response.ContentType = "application/vnd.xls";
+ stringWrite = new StringWriter();
+ htmlWrite = new HtmlTextWriter(stringWrite);
+ }
+
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ _resoconti = new resoconti();
+ if (!Page.IsPostBack)
{
- answ = durataMinuti.ToString();
+ aggiornamento();
+ doExport();
}
- return answ;
}
}
}
\ No newline at end of file
diff --git a/MP-SITE/erroreComunicazione.aspx b/MP-SITE/erroreComunicazione.aspx
index 83fd5360..478c055e 100644
--- a/MP-SITE/erroreComunicazione.aspx
+++ b/MP-SITE/erroreComunicazione.aspx
@@ -1,15 +1,14 @@
-<%@ Page Language="C#" MasterPageFile="~/WebMasterPages/MAPO_warning.master" AutoEventWireup="true" Inherits="erroreComunicazione" Title="Untitled Page" Codebehind="erroreComunicazione.aspx.cs" %>
+<%@ Page Language="C#" MasterPageFile="~/WebMasterPages/MAPO_warning.master" AutoEventWireup="true" Inherits="MP_SITE.erroreComunicazione" Title="Untitled Page" CodeBehind="erroreComunicazione.aspx.cs" %>
-
- Cod 101: Errore di comunicazione
- Sono oltre minuti che non si ricevono dati di aggiornamento dalla macchina selezionata,
+ Cod 101: Errore di comunicazione
+ Sono oltre
+
+ minuti che non si ricevono dati di aggiornamento dalla macchina selezionata,
prego seguire lo schema seguente per determinare il guasto:
-
- Caso 1:
-
- tutte le macchine hanno problemi di comunicazione
+ Caso 1:
+ tutte le macchine hanno problemi di comunicazione
Prego verificare che non ci siano problemi globali alla rete:
@@ -17,10 +16,8 @@
Gli switch sono tutti accesi e funzionanti?
I cavi di rete sono tutti collegati?
-
- Caso 2:
-
- solo questa macchina ha problemi di comunicazione
+ Caso 2:
+ solo questa macchina ha problemi di comunicazione
Prego verificare che la macchina corrente sia funzionante:
@@ -29,4 +26,4 @@
La scheda di aquisizione è accesa?
La macchina CN è accesa?
-
+
\ No newline at end of file
diff --git a/MP-SITE/erroreComunicazione.aspx.cs b/MP-SITE/erroreComunicazione.aspx.cs
index a0652c34..60bbc33e 100644
--- a/MP-SITE/erroreComunicazione.aspx.cs
+++ b/MP-SITE/erroreComunicazione.aspx.cs
@@ -1,9 +1,12 @@
using System;
-public partial class erroreComunicazione : BasePage
+namespace MP_SITE
{
- protected void Page_Load(object sender, EventArgs e)
+ public partial class erroreComunicazione : BasePage
{
- lblMinLag.Text = SteamWare.memLayer.ML.CRS("keepAliveMin");
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ lblMinLag.Text = SteamWare.memLayer.ML.CRS("keepAliveMin");
+ }
}
}
\ No newline at end of file
diff --git a/MP-SITE/erroreComunicazione.aspx.designer.cs b/MP-SITE/erroreComunicazione.aspx.designer.cs
index 0243bfa7..03f7f4cb 100644
--- a/MP-SITE/erroreComunicazione.aspx.designer.cs
+++ b/MP-SITE/erroreComunicazione.aspx.designer.cs
@@ -1,23 +1,26 @@
//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-// Runtime Version:2.0.50727.4927
+//
+// Codice generato da uno strumento.
//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
+// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
+// il codice viene rigenerato.
+//
//------------------------------------------------------------------------------
+namespace MP_SITE
+{
-public partial class erroreComunicazione {
-
- ///
- /// lblMinLag control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.Label lblMinLag;
+ public partial class erroreComunicazione
+ {
+
+ ///
+ /// Controllo lblMinLag.
+ ///
+ ///
+ /// 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 lblMinLag;
+ }
}
diff --git a/MP-SITE/excelAllMacchineDatiConfermati.aspx b/MP-SITE/excelAllMacchineDatiConfermati.aspx
index 2683ada3..23355073 100644
--- a/MP-SITE/excelAllMacchineDatiConfermati.aspx
+++ b/MP-SITE/excelAllMacchineDatiConfermati.aspx
@@ -1,10 +1,7 @@
<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/MAPO_noAjax.master" AutoEventWireup="true" CodeBehind="excelAllMacchineDatiConfermati.aspx.cs" Inherits="MP_SITE.excelAllMacchineDatiConfermati" EnableEventValidation="false" %>
-
+
diff --git a/MP-SITE/excelAllMacchineExportEventi.aspx b/MP-SITE/excelAllMacchineExportEventi.aspx
index 89252150..8d195267 100644
--- a/MP-SITE/excelAllMacchineExportEventi.aspx
+++ b/MP-SITE/excelAllMacchineExportEventi.aspx
@@ -1,10 +1,8 @@
<%@ Page Language="C#" MasterPageFile="~/WebMasterPages/MAPO_noAjax.master" AutoEventWireup="true" EnableEventValidation="false"
- Inherits="excelAllMacchineExportEventi" Title="Untitled Page" Codebehind="excelAllMacchineExportEventi.aspx.cs" %>
+ Inherits="MP_SITE.excelAllMacchineExportEventi" Title="Untitled Page" CodeBehind="excelAllMacchineExportEventi.aspx.cs" %>
-
+
@@ -26,7 +24,7 @@
-
+
@@ -43,4 +41,4 @@
Type="DateTime" />
-
+
\ No newline at end of file
diff --git a/MP-SITE/excelAllMacchineExportEventi.aspx.cs b/MP-SITE/excelAllMacchineExportEventi.aspx.cs
index 7299abbd..1cb5a357 100644
--- a/MP-SITE/excelAllMacchineExportEventi.aspx.cs
+++ b/MP-SITE/excelAllMacchineExportEventi.aspx.cs
@@ -3,134 +3,19 @@ using System;
using System.Web;
using System.Web.UI;
-public partial class excelAllMacchineExportEventi : System.Web.UI.Page
+namespace MP_SITE
{
-
- public override void VerifyRenderingInServerForm(Control control)
- {
-
- // Confirms that an HtmlForm control is rendered for the specified ASP.NET server control at run time.
-
- }
-
- private void doExport()
- {
- Response.Clear();
- Response.AddHeader("content-disposition", "attachment; filename=Eventi.xls");
- Response.Charset = "";
- // If you want the option to open the Excel file without saving than
- // comment out the line below
- Response.Cache.SetCacheability(HttpCacheability.NoCache);
- Response.ContentType = "application/vnd.xls";
- System.IO.StringWriter stringWrite = new System.IO.StringWriter();
- System.Web.UI.HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite);
- gvEventi.RenderControl(htmlWrite);
- Response.Write(stringWrite.ToString());
- Response.End();
-
- }
-
- #region area protected
-
- protected resoconti _resoconti;
-
- protected void Page_Load(object sender, EventArgs e)
- {
- _resoconti = new resoconti();
- if (!Page.IsPostBack)
+ public partial class excelAllMacchineExportEventi : BaseExportPage
{
- aggiornamento();
- doExport();
+ internal override void renderControl(HtmlTextWriter htmlWrite)
+ {
+ gvEventi.RenderControl(htmlWrite);
+ }
+
+ internal override void aggiornamento()
+ {
+ gvEventi.AllowPaging = false;
+ ods_EventList.DataBind();
+ }
}
- }
-
- protected void reportUpdate()
- {
- // alzo l'evento d update/inserimento e ricarico cache...
- if (eh_doUpdate != null)
- {
- eh_doUpdate(this, new EventArgs());
- }
- }
-
- #endregion
-
-
- #region area public
-
- #region gestione eventi
-
- public event EventHandler eh_doUpdate;
-
- #endregion
-
- ///
- /// idx della macchina da mostrare
- ///
- public string idxMacchina
- {
- get
- {
- string idxMacchina = "1";
- try
- {
- idxMacchina = memLayer.ML.StringSessionObj("IdxMacchina");
- }
- catch
- {
- }
- return idxMacchina;
- }
- set
- {
- memLayer.ML.setSessionVal("IdxMacchina", value);
- }
- }
- public string statoDaIdx(object idx)
- {
- return _resoconti.statoDaIdx(Convert.ToInt32(idx));
- }
- public string tipoDaIdx(object idx)
- {
- return _resoconti.tipoDaIdx(Convert.ToInt32(idx));
- }
- public string macchinaDaIdx(object idx)
- {
- return _resoconti.macchinaDaIdx(idx.ToString());
- }
- public void aggiornamento()
- {
- gvEventi.AllowPaging = false;
- //gvEventi.PageSize = _numRighe;
- ods_EventList.DataBind();
- }
- public void reportUpdt(object sender, EventArgs e)
- {
- reportUpdate();
- }
-
- public string operatoreDaMatr(object matricola)
- {
- int matr = 0;
- try
- {
- matr = Convert.ToInt32(matricola);
- }
- catch
- { }
- return _resoconti.oprDaMatr(matr);
- }
-
- ///
- /// restituisce stringa formattata in HH:mm
- ///
- ///
- ///
- public string durataEvento(object durataMinuti)
- {
- return durataMinuti.ToString();
- }
-
- #endregion
-
-}
+}
\ No newline at end of file
diff --git a/MP-SITE/excelAllMacchineExportEventi.aspx.designer.cs b/MP-SITE/excelAllMacchineExportEventi.aspx.designer.cs
index e4b9672c..57586fac 100644
--- a/MP-SITE/excelAllMacchineExportEventi.aspx.designer.cs
+++ b/MP-SITE/excelAllMacchineExportEventi.aspx.designer.cs
@@ -1,31 +1,35 @@
//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
+//
+// Codice generato da uno strumento.
//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
+// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
+// il codice viene rigenerato.
+//
//------------------------------------------------------------------------------
+namespace MP_SITE
+{
-public partial class excelAllMacchineExportEventi {
-
- ///
- /// gvEventi control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.GridView gvEventi;
-
- ///
- /// ods_EventList control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.ObjectDataSource ods_EventList;
+ public partial class excelAllMacchineExportEventi
+ {
+
+ ///
+ /// Controllo gvEventi.
+ ///
+ ///
+ /// 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.GridView gvEventi;
+
+ ///
+ /// Controllo ods_EventList.
+ ///
+ ///
+ /// 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.ObjectDataSource ods_EventList;
+ }
}
diff --git a/MP-SITE/excelAllMacchineExportStati.aspx b/MP-SITE/excelAllMacchineExportStati.aspx
index 248f6d3e..e4823f23 100644
--- a/MP-SITE/excelAllMacchineExportStati.aspx
+++ b/MP-SITE/excelAllMacchineExportStati.aspx
@@ -1,10 +1,8 @@
<%@ Page Language="C#" MasterPageFile="~/WebMasterPages/MAPO_noAjax.master" AutoEventWireup="true" EnableEventValidation="false"
- Inherits="excelAllMacchineExportStati" Title="Untitled Page" Codebehind="excelAllMacchineExportStati.aspx.cs" %>
+ Inherits="MP_SITE.excelAllMacchineExportStati" Title="Untitled Page" CodeBehind="excelAllMacchineExportStati.aspx.cs" %>
-
+
@@ -25,7 +23,7 @@
-
+
@@ -35,12 +33,9 @@
-
-
-
+
+
+
-
+
\ No newline at end of file
diff --git a/MP-SITE/excelAllMacchineExportStati.aspx.cs b/MP-SITE/excelAllMacchineExportStati.aspx.cs
index f54e099d..2c562363 100644
--- a/MP-SITE/excelAllMacchineExportStati.aspx.cs
+++ b/MP-SITE/excelAllMacchineExportStati.aspx.cs
@@ -3,132 +3,19 @@ using System;
using System.Web;
using System.Web.UI;
-public partial class excelAllMacchineExportStati : System.Web.UI.Page
+namespace MP_SITE
{
-
- public override void VerifyRenderingInServerForm(Control control)
- {
-
- // Confirms that an HtmlForm control is rendered for the specified ASP.NET server control at run time.
-
- }
-
- private void doExport()
- {
- Response.Clear();
- Response.AddHeader("content-disposition", "attachment; filename=Stati.xls");
- Response.Charset = "";
- // If you want the option to open the Excel file without saving than
- // comment out the line below
- Response.Cache.SetCacheability(HttpCacheability.NoCache);
- Response.ContentType = "application/vnd.xls";
- System.IO.StringWriter stringWrite = new System.IO.StringWriter();
- System.Web.UI.HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite);
- gvStati.RenderControl(htmlWrite);
- Response.Write(stringWrite.ToString());
- Response.End();
-
- }
-
- #region area protected
-
- protected resoconti _resoconti;
-
- protected void Page_Load(object sender, EventArgs e)
- {
- _resoconti = new resoconti();
- if (!Page.IsPostBack)
+ public partial class excelAllMacchineExportStati : BaseExportPage
{
- aggiornamento();
- doExport();
+ internal override void aggiornamento()
+ {
+ gvStati.AllowPaging = false;
+ ods_DiarioDiBordo.DataBind();
+ }
+
+ internal override void renderControl(HtmlTextWriter htmlWrite)
+ {
+ gvStati.RenderControl(htmlWrite);
+ }
}
- }
-
- protected void reportUpdate()
- {
- // alzo l'evento d update/inserimento e ricarico cache...
- if (eh_doUpdate != null)
- {
- eh_doUpdate(this, new EventArgs());
- }
- }
-
- #endregion
-
-
- #region area public
-
- #region gestione eventi
-
- public event EventHandler eh_doUpdate;
-
- #endregion
-
- ///
- /// idx della macchina da mostrare
- ///
- public string idxMacchina
- {
- get
- {
- string idxMacchina = "1";
- try
- {
- idxMacchina = memLayer.ML.StringSessionObj("IdxMacchina");
- }
- catch
- {
- }
- return idxMacchina;
- }
- set
- {
- memLayer.ML.setSessionVal("IdxMacchina", value);
- }
- }
- public string macchinaDaIdx(object idx)
- {
- return _resoconti.macchinaDaIdx(idx.ToString());
- }
- public string statoDaIdx(object idx)
- {
- return _resoconti.statoDaIdx(Convert.ToInt32(idx));
- }
- public string tipoDaIdx(object idx)
- {
- return _resoconti.tipoDaIdx(Convert.ToInt32(idx));
- }
- public void aggiornamento()
- {
- gvStati.AllowPaging = false;
- ods_DiarioDiBordo.DataBind();
- }
- public void reportUpdt(object sender, EventArgs e)
- {
- reportUpdate();
- }
-
- public string operatoreDaMatr(object matricola)
- {
- int matr = 0;
- try
- {
- matr = Convert.ToInt32(matricola);
- }
- catch
- { }
- return _resoconti.oprDaMatr(matr);
- }
- ///
- /// restituisce stringa formattata in HH:mm
- ///
- ///
- ///
- public string durataEvento(object durataMinuti)
- {
- return durataMinuti.ToString();
- }
-
- #endregion
-
-}
+}
\ No newline at end of file
diff --git a/MP-SITE/excelAllMacchineExportStati.aspx.designer.cs b/MP-SITE/excelAllMacchineExportStati.aspx.designer.cs
index 3ecca14a..290b4154 100644
--- a/MP-SITE/excelAllMacchineExportStati.aspx.designer.cs
+++ b/MP-SITE/excelAllMacchineExportStati.aspx.designer.cs
@@ -1,31 +1,35 @@
//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
+//
+// Codice generato da uno strumento.
//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
+// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
+// il codice viene rigenerato.
+//
//------------------------------------------------------------------------------
+namespace MP_SITE
+{
-public partial class excelAllMacchineExportStati {
-
- ///
- /// gvStati control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.GridView gvStati;
-
- ///
- /// ods_DiarioDiBordo control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.ObjectDataSource ods_DiarioDiBordo;
+ public partial class excelAllMacchineExportStati
+ {
+
+ ///
+ /// Controllo gvStati.
+ ///
+ ///
+ /// 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.GridView gvStati;
+
+ ///
+ /// Controllo ods_DiarioDiBordo.
+ ///
+ ///
+ /// 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.ObjectDataSource ods_DiarioDiBordo;
+ }
}
diff --git a/MP-SITE/excelExportDatiConfermati.aspx b/MP-SITE/excelExportDatiConfermati.aspx
index 1477fd03..a36a44db 100644
--- a/MP-SITE/excelExportDatiConfermati.aspx
+++ b/MP-SITE/excelExportDatiConfermati.aspx
@@ -1,15 +1,11 @@
<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/MAPO_noAjax.master"
- AutoEventWireup="true" CodeBehind="excelExportDatiConfermati.aspx.cs" Inherits="excelExportDatiConfermati"
+ AutoEventWireup="true" CodeBehind="excelExportDatiConfermati.aspx.cs" Inherits="MP_SITE.excelExportDatiConfermati"
EnableEventValidation="false" %>
-
+
-
+
@@ -30,12 +26,9 @@
-
-
-
+
+
+
-
+
\ No newline at end of file
diff --git a/MP-SITE/excelExportDatiConfermati.aspx.cs b/MP-SITE/excelExportDatiConfermati.aspx.cs
index ef16b31e..65ba8a72 100644
--- a/MP-SITE/excelExportDatiConfermati.aspx.cs
+++ b/MP-SITE/excelExportDatiConfermati.aspx.cs
@@ -3,132 +3,19 @@ using System;
using System.Web;
using System.Web.UI;
-public partial class excelExportDatiConfermati : System.Web.UI.Page
+namespace MP_SITE
{
- public override void VerifyRenderingInServerForm(Control control)
- {
-
- // Confirms that an HtmlForm control is rendered for the specified ASP.NET server control at run time.
-
- }
-
- private void doExport()
- {
- Response.Clear();
- Response.AddHeader("content-disposition", "attachment; filename=DatiConfermati.xls");
- Response.Charset = "";
- // If you want the option to open the Excel file without saving than
- // comment out the line below
- Response.Cache.SetCacheability(HttpCacheability.NoCache);
- Response.ContentType = "application/vnd.xls";
- System.IO.StringWriter stringWrite = new System.IO.StringWriter();
- System.Web.UI.HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite);
- gvDatiConf.RenderControl(htmlWrite);
- Response.Write(stringWrite.ToString());
- Response.End();
-
- }
-
- #region area protected
-
- protected resoconti _resoconti;
-
- protected void Page_Load(object sender, EventArgs e)
- {
- _resoconti = new resoconti();
- if (!Page.IsPostBack)
+ public partial class excelExportDatiConfermati : BaseExportPage
{
- aggiornamento();
- doExport();
+ internal override void aggiornamento()
+ {
+ gvDatiConf.AllowPaging = false;
+ ods_Dati.DataBind();
+ }
+
+ internal override void renderControl(HtmlTextWriter htmlWrite)
+ {
+ gvDatiConf.RenderControl(htmlWrite);
+ }
}
- }
-
- protected void reportUpdate()
- {
- // alzo l'evento d update/inserimento e ricarico cache...
- if (eh_doUpdate != null)
- {
- eh_doUpdate(this, new EventArgs());
- }
- }
-
- #endregion
-
-
- #region area public
-
- #region gestione eventi
-
- public event EventHandler eh_doUpdate;
-
- #endregion
-
- ///
- /// idx della macchina da mostrare
- ///
- public string idxMacchina
- {
- get
- {
- string idxMacchina = "1";
- try
- {
- idxMacchina = memLayer.ML.StringSessionObj("IdxMacchina");
- }
- catch
- {
- }
- return idxMacchina;
- }
- set
- {
- memLayer.ML.setSessionVal("IdxMacchina", value);
- }
- }
- public string statoDaIdx(object idx)
- {
- return _resoconti.statoDaIdx(Convert.ToInt32(idx));
- }
- public string tipoDaIdx(object idx)
- {
- return _resoconti.tipoDaIdx(Convert.ToInt32(idx));
- }
- public string macchinaDaIdx(object idx)
- {
- return _resoconti.macchinaDaIdx(idx.ToString());
- }
- public void aggiornamento()
- {
- gvDatiConf.AllowPaging = false;
- //gvEventi.PageSize = _numRighe;
- ods_Dati.DataBind();
- }
- public void reportUpdt(object sender, EventArgs e)
- {
- reportUpdate();
- }
-
- public string operatoreDaMatr(object matricola)
- {
- int matr = 0;
- try
- {
- matr = Convert.ToInt32(matricola);
- }
- catch
- { }
- return _resoconti.oprDaMatr(matr);
- }
-
- ///
- /// restituisce stringa formattata in HH:mm
- ///
- ///
- ///
- public string durataEvento(object durataMinuti)
- {
- return durataMinuti.ToString();
- }
-
- #endregion
-}
+}
\ No newline at end of file
diff --git a/MP-SITE/excelExportDatiConfermati.aspx.designer.cs b/MP-SITE/excelExportDatiConfermati.aspx.designer.cs
index d6825427..0e77317a 100644
--- a/MP-SITE/excelExportDatiConfermati.aspx.designer.cs
+++ b/MP-SITE/excelExportDatiConfermati.aspx.designer.cs
@@ -1,32 +1,35 @@
//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-// Runtime Version:2.0.50727.4961
+//
+// Codice generato da uno strumento.
//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
+// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
+// il codice viene rigenerato.
+//
//------------------------------------------------------------------------------
+namespace MP_SITE
+{
-public partial class excelExportDatiConfermati {
-
- ///
- /// gvDatiConf control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.GridView gvDatiConf;
-
- ///
- /// ods_Dati control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.ObjectDataSource ods_Dati;
+ public partial class excelExportDatiConfermati
+ {
+
+ ///
+ /// Controllo gvDatiConf.
+ ///
+ ///
+ /// 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.GridView gvDatiConf;
+
+ ///
+ /// Controllo ods_Dati.
+ ///
+ ///
+ /// 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.ObjectDataSource ods_Dati;
+ }
}
diff --git a/MP-SITE/excelExportEventi.aspx b/MP-SITE/excelExportEventi.aspx
index d1810c56..ee82ad7f 100644
--- a/MP-SITE/excelExportEventi.aspx
+++ b/MP-SITE/excelExportEventi.aspx
@@ -1,10 +1,7 @@
-<%@ Page Language="C#" MasterPageFile="~/WebMasterPages/MAPO_noAjax.master" AutoEventWireup="true" EnableEventValidation="false" Inherits="excelExportEventi"
- Title="Untitled Page" Codebehind="excelExportEventi.aspx.cs" %>
+<%@ Page Language="C#" MasterPageFile="~/WebMasterPages/MAPO_noAjax.master" AutoEventWireup="true" EnableEventValidation="false" Inherits="MP_SITE.excelExportEventi" Title="Untitled Page" CodeBehind="excelExportEventi.aspx.cs" %>
-
+
@@ -26,7 +23,7 @@
-
+
@@ -45,4 +42,4 @@
Type="DateTime" />
-
+
\ No newline at end of file
diff --git a/MP-SITE/excelExportEventi.aspx.cs b/MP-SITE/excelExportEventi.aspx.cs
index 69e20125..09d8e89d 100644
--- a/MP-SITE/excelExportEventi.aspx.cs
+++ b/MP-SITE/excelExportEventi.aspx.cs
@@ -3,124 +3,19 @@ using System;
using System.Web;
using System.Web.UI;
-public partial class excelExportEventi : System.Web.UI.Page
+namespace MP_SITE
{
-
- public override void VerifyRenderingInServerForm(Control control)
- {
-
- // Confirms that an HtmlForm control is rendered for the specified ASP.NET server control at run time.
-
- }
-
- private void doExport()
- {
- Response.Clear();
- Response.AddHeader("content-disposition", "attachment; filename=Eventi.xls");
- Response.Charset = "";
- // If you want the option to open the Excel file without saving than
- // comment out the line below
- Response.Cache.SetCacheability(HttpCacheability.NoCache);
- Response.ContentType = "application/vnd.xls";
- System.IO.StringWriter stringWrite = new System.IO.StringWriter();
- System.Web.UI.HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite);
- gvEventi.RenderControl(htmlWrite);
- Response.Write(stringWrite.ToString());
- Response.End();
-
- }
-
- #region area protected
-
- protected resoconti _resoconti;
-
- protected void Page_Load(object sender, EventArgs e)
- {
- _resoconti = new resoconti();
- if (!Page.IsPostBack)
+ public partial class excelExportEventi : BaseExportPage
{
- aggiornamento();
- doExport();
+ internal override void aggiornamento()
+ {
+ gvEventi.AllowPaging = false;
+ ods_EventList.DataBind();
+ }
+
+ internal override void renderControl(HtmlTextWriter htmlWrite)
+ {
+ gvEventi.RenderControl(htmlWrite);
+ }
}
- }
-
- protected void reportUpdate()
- {
- // alzo l'evento d update/inserimento e ricarico cache...
- if (eh_doUpdate != null)
- {
- eh_doUpdate(this, new EventArgs());
- }
- }
-
- #endregion
-
-
- #region area public
-
- #region gestione eventi
-
- public event EventHandler eh_doUpdate;
-
- #endregion
-
- ///
- /// idx della macchina da mostrare
- ///
- public string idxMacchina
- {
- get
- {
- string idxMacchina = "1";
- try
- {
- idxMacchina = memLayer.ML.StringSessionObj("IdxMacchina");
- }
- catch
- {
- }
- return idxMacchina;
- }
- set
- {
- memLayer.ML.setSessionVal("IdxMacchina", value);
- }
- }
- public string statoDaIdx(object idx)
- {
- return _resoconti.statoDaIdx(Convert.ToInt32(idx));
- }
- public string tipoDaIdx(object idx)
- {
- return _resoconti.tipoDaIdx(Convert.ToInt32(idx));
- }
- public string macchinaDaIdx(object idx)
- {
- return _resoconti.macchinaDaIdx(idx.ToString());
- }
- public void aggiornamento()
- {
- gvEventi.AllowPaging = false;
- //gvEventi.PageSize = _numRighe;
- ods_EventList.DataBind();
- }
- public void reportUpdt(object sender, EventArgs e)
- {
- reportUpdate();
- }
-
- public string operatoreDaMatr(object matricola)
- {
- int matr = 0;
- try
- {
- matr = Convert.ToInt32(matricola);
- }
- catch
- { }
- return _resoconti.oprDaMatr(matr);
- }
-
- #endregion
-
-}
+}
\ No newline at end of file
diff --git a/MP-SITE/excelExportEventi.aspx.designer.cs b/MP-SITE/excelExportEventi.aspx.designer.cs
index 7d8fa2de..574f0069 100644
--- a/MP-SITE/excelExportEventi.aspx.designer.cs
+++ b/MP-SITE/excelExportEventi.aspx.designer.cs
@@ -1,31 +1,33 @@
//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
+//
+// Codice generato da uno strumento.
//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
+// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
+// il codice viene rigenerato.
+//
//------------------------------------------------------------------------------
+namespace MP_SITE
+{
+ public partial class excelExportEventi
+ {
+ ///
+ /// Controllo gvEventi.
+ ///
+ ///
+ /// 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.GridView gvEventi;
-public partial class excelExportEventi {
-
- ///
- /// gvEventi control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.GridView gvEventi;
-
- ///
- /// ods_EventList control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.ObjectDataSource ods_EventList;
+ ///
+ /// Controllo ods_EventList.
+ ///
+ ///
+ /// 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.ObjectDataSource ods_EventList;
+ }
}
diff --git a/MP-SITE/excelExportStati.aspx b/MP-SITE/excelExportStati.aspx
index 06aa8934..aecbe9dd 100644
--- a/MP-SITE/excelExportStati.aspx
+++ b/MP-SITE/excelExportStati.aspx
@@ -1,10 +1,7 @@
-<%@ Page Language="C#" MasterPageFile="~/WebMasterPages/MAPO_noAjax.master" AutoEventWireup="true" EnableEventValidation="false" Inherits="excelExportStati"
- Title="Untitled Page" Codebehind="excelExportStati.aspx.cs" %>
+<%@ Page Language="C#" MasterPageFile="~/WebMasterPages/MAPO_noAjax.master" AutoEventWireup="true" EnableEventValidation="false" Inherits="MP_SITE.excelExportStati" Title="Untitled Page" CodeBehind="excelExportStati.aspx.cs" %>
-
+
@@ -45,4 +42,4 @@
Type="Double" />
-
+
\ No newline at end of file
diff --git a/MP-SITE/excelExportStati.aspx.cs b/MP-SITE/excelExportStati.aspx.cs
index c2a2ab70..6276927b 100644
--- a/MP-SITE/excelExportStati.aspx.cs
+++ b/MP-SITE/excelExportStati.aspx.cs
@@ -3,136 +3,19 @@ using System;
using System.Web;
using System.Web.UI;
-public partial class excelExportStati : System.Web.UI.Page
+namespace MP_SITE
{
-
- public override void VerifyRenderingInServerForm(Control control)
- {
-
- // Confirms that an HtmlForm control is rendered for the specified ASP.NET server control at run time.
-
- }
-
- private void doExport()
- {
- Response.Clear();
- Response.AddHeader("content-disposition", "attachment; filename=Stati.xls");
- Response.Charset = "";
- // If you want the option to open the Excel file without saving than
- // comment out the line below
- Response.Cache.SetCacheability(HttpCacheability.NoCache);
- Response.ContentType = "application/vnd.xls";
- System.IO.StringWriter stringWrite = new System.IO.StringWriter();
- System.Web.UI.HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite);
- gvStati.RenderControl(htmlWrite);
- Response.Write(stringWrite.ToString());
- Response.End();
-
- }
-
- #region area protected
-
- protected resoconti _resoconti;
-
- protected void Page_Load(object sender, EventArgs e)
- {
- _resoconti = new resoconti();
- if (!Page.IsPostBack)
+ public partial class excelExportStati : BaseExportPage
{
- aggiornamento();
- doExport();
+ internal override void aggiornamento()
+ {
+ gvStati.AllowPaging = false;
+ ods_DiarioDiBordo.DataBind();
+ }
+
+ internal override void renderControl(HtmlTextWriter htmlWrite)
+ {
+ gvStati.RenderControl(htmlWrite);
+ }
}
- }
-
- protected void reportUpdate()
- {
- // alzo l'evento d update/inserimento e ricarico cache...
- if (eh_doUpdate != null)
- {
- eh_doUpdate(this, new EventArgs());
- }
- }
-
- #endregion
-
-
- #region area public
-
- #region gestione eventi
-
- public event EventHandler eh_doUpdate;
-
- #endregion
-
- ///
- /// idx della macchina da mostrare
- ///
- public string idxMacchina
- {
- get
- {
- string idxMacchina = "1";
- try
- {
- idxMacchina = memLayer.ML.StringSessionObj("IdxMacchina");
- }
- catch
- {
- }
- return idxMacchina;
- }
- set
- {
- memLayer.ML.setSessionVal("IdxMacchina", value);
- }
- }
- public string macchinaDaIdx(object idx)
- {
- return _resoconti.macchinaDaIdx(idx.ToString());
- }
- public string statoDaIdx(object idx)
- {
- return _resoconti.statoDaIdx(Convert.ToInt32(idx));
- }
- public string tipoDaIdx(object idx)
- {
- return _resoconti.tipoDaIdx(Convert.ToInt32(idx));
- }
- public void aggiornamento()
- {
- gvStati.AllowPaging = false;
- ods_DiarioDiBordo.DataBind();
- }
- public void reportUpdt(object sender, EventArgs e)
- {
- reportUpdate();
- }
-
- public string operatoreDaMatr(object matricola)
- {
- int matr = 0;
- try
- {
- matr = Convert.ToInt32(matricola);
- }
- catch
- { }
- return _resoconti.oprDaMatr(matr);
- }
- ///
- /// restituisce stringa formattata in HH:mm
- ///
- ///
- ///
- public string durataEvento(object durataMinuti)
- {
- //string durataFormattata = "";
- //int ore = (int)Math.Floor(((double)durataMinuti) / 60);
- //durataFormattata = string.Format("{0}h:{1:#.0}min", ore, (double)durataMinuti - 60 * ore);
- //return durataFormattata;
- return durataMinuti.ToString();
- }
-
- #endregion
-
-}
+}
\ No newline at end of file
diff --git a/MP-SITE/excelExportStati.aspx.designer.cs b/MP-SITE/excelExportStati.aspx.designer.cs
index cc86cf3c..ad01f662 100644
--- a/MP-SITE/excelExportStati.aspx.designer.cs
+++ b/MP-SITE/excelExportStati.aspx.designer.cs
@@ -1,31 +1,35 @@
//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
+//
+// Codice generato da uno strumento.
//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
+// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
+// il codice viene rigenerato.
+//
//------------------------------------------------------------------------------
+namespace MP_SITE
+{
-public partial class excelExportStati {
-
- ///
- /// gvStati control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.GridView gvStati;
-
- ///
- /// ods_DiarioDiBordo control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.ObjectDataSource ods_DiarioDiBordo;
+ public partial class excelExportStati
+ {
+
+ ///
+ /// Controllo gvStati.
+ ///
+ ///
+ /// 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.GridView gvStati;
+
+ ///
+ /// Controllo ods_DiarioDiBordo.
+ ///
+ ///
+ /// 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.ObjectDataSource ods_DiarioDiBordo;
+ }
}
diff --git a/MP-Site/App_Start/BundleConfig.cs b/MP-Site/App_Start/BundleConfig.cs
index 675c1bc1..8663dcb1 100644
--- a/MP-Site/App_Start/BundleConfig.cs
+++ b/MP-Site/App_Start/BundleConfig.cs
@@ -2,51 +2,51 @@
namespace MP_SITE
{
- public class BundleConfig
- {
- // Per altre informazioni sulla creazione di bundle, vedere https://go.microsoft.com/fwlink/?LinkID=303951
- public static void RegisterBundles(BundleCollection bundles)
+ public class BundleConfig
{
- // codice JS!
- bundles.Add(new ScriptBundle("~/bundles/WebFormsJs").Include(
- "~/Scripts/WebForms/WebForms.js",
- "~/Scripts/WebForms/WebUIValidation.js",
- "~/Scripts/WebForms/MenuStandards.js",
- "~/Scripts/WebForms/Focus.js",
- "~/Scripts/WebForms/GridView.js",
- "~/Scripts/WebForms/DetailsView.js",
- "~/Scripts/WebForms/TreeView.js",
- "~/Scripts/WebForms/WebParts.js"));
+ // Per altre informazioni sulla creazione di bundle, vedere https://go.microsoft.com/fwlink/?LinkID=303951
+ public static void RegisterBundles(BundleCollection bundles)
+ {
+ // codice JS!
+ bundles.Add(new ScriptBundle("~/bundles/WebFormsJs").Include(
+ "~/Scripts/WebForms/WebForms.js",
+ "~/Scripts/WebForms/WebUIValidation.js",
+ "~/Scripts/WebForms/MenuStandards.js",
+ "~/Scripts/WebForms/Focus.js",
+ "~/Scripts/WebForms/GridView.js",
+ "~/Scripts/WebForms/DetailsView.js",
+ "~/Scripts/WebForms/TreeView.js",
+ "~/Scripts/WebForms/WebParts.js"));
- // L'ordine è molto importante per il funzionamento di questi file poiché hanno dipendenze esplicite
- bundles.Add(new ScriptBundle("~/bundles/MsAjaxJs").Include(
- "~/Scripts/WebForms/MsAjax/MicrosoftAjax.js",
- "~/Scripts/WebForms/MsAjax/MicrosoftAjaxApplicationServices.js",
- "~/Scripts/WebForms/MsAjax/MicrosoftAjaxTimer.js",
- "~/Scripts/WebForms/MsAjax/MicrosoftAjaxWebForms.js"));
+ // L'ordine è molto importante per il funzionamento di questi file poiché hanno dipendenze esplicite
+ bundles.Add(new ScriptBundle("~/bundles/MsAjaxJs").Include(
+ "~/Scripts/WebForms/MsAjax/MicrosoftAjax.js",
+ "~/Scripts/WebForms/MsAjax/MicrosoftAjaxApplicationServices.js",
+ "~/Scripts/WebForms/MsAjax/MicrosoftAjaxTimer.js",
+ "~/Scripts/WebForms/MsAjax/MicrosoftAjaxWebForms.js"));
- bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
- "~/Scripts/modernizr-*"));
+ bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
+ "~/Scripts/modernizr-*"));
- bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
- "~/Scripts/jquery-{version}.js"));
+ bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
+ "~/Scripts/jquery-{version}.js"));
- bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include(
- "~/Scripts/jquery-ui-{version}.js"));
+ bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include(
+ "~/Scripts/jquery-ui-{version}.js"));
- bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
- "~/Scripts/bootstrap.js"));
+ bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
+ "~/Scripts/bootstrap.js"));
- bundles.Add(new ScriptBundle("~/bundles/vis").Include(
- "~/vis/vis.js"));
+ bundles.Add(new ScriptBundle("~/bundles/vis").Include(
+ "~/vis/vis.js"));
- //// CSS!
- //bundles.Add(new StyleBundle("~/Content/css").Include(
- // "~/Content/bootstrap.css",
- // "~/Content/Style.css"));
+ //// CSS!
+ //bundles.Add(new StyleBundle("~/Content/css").Include(
+ // "~/Content/bootstrap.css",
+ // "~/Content/Style.css"));
- // abilito boundle "forzato"!
- BundleTable.EnableOptimizations = true;
+ // abilito boundle "forzato"!
+ BundleTable.EnableOptimizations = true;
+ }
}
- }
}
\ No newline at end of file
diff --git a/MP-Site/App_Start/MP_Startup.cs b/MP-Site/App_Start/MP_Startup.cs
index 8c01c7ec..882bd9c0 100644
--- a/MP-Site/App_Start/MP_Startup.cs
+++ b/MP-Site/App_Start/MP_Startup.cs
@@ -3,21 +3,21 @@ using System;
namespace MP_SITE
{
- public class MP_Startup
- {
- public static void Init()
+ public class MP_Startup
{
- logger.lg.scriviLog("Esecuzione MyStartup.init()", tipoLog.STARTUP);
- try
- {
- // inizializzo appConf prima di tutto il resto...
- memLayer.ML.resetAppConf();
- logger.lg.scriviLog("Completata esecuzione preliminare setup AppConf", tipoLog.STARTUP);
- }
- catch (Exception exc)
- {
- logger.lg.scriviLog(string.Format("Eccezione in fase di INIT preliminare applicazione{0}{1}", Environment.NewLine, exc), tipoLog.EXCEPTION);
- }
+ public static void Init()
+ {
+ logger.lg.scriviLog("Esecuzione MyStartup.init()", tipoLog.STARTUP);
+ try
+ {
+ // inizializzo appConf prima di tutto il resto...
+ memLayer.ML.resetAppConf();
+ logger.lg.scriviLog("Completata esecuzione preliminare setup AppConf", tipoLog.STARTUP);
+ }
+ catch (Exception exc)
+ {
+ logger.lg.scriviLog(string.Format("Eccezione in fase di INIT preliminare applicazione{0}{1}", Environment.NewLine, exc), tipoLog.EXCEPTION);
+ }
+ }
}
- }
}
\ No newline at end of file
diff --git a/MP-Site/App_Start/RouteConfig.cs b/MP-Site/App_Start/RouteConfig.cs
index de3ecf93..ef70a72c 100644
--- a/MP-Site/App_Start/RouteConfig.cs
+++ b/MP-Site/App_Start/RouteConfig.cs
@@ -6,13 +6,13 @@ using Microsoft.AspNet.FriendlyUrls;
namespace MP_SITE
{
- public static class RouteConfig
- {
- public static void RegisterRoutes(RouteCollection routes)
+ public static class RouteConfig
{
- var settings = new FriendlyUrlSettings();
- settings.AutoRedirectMode = RedirectMode.Permanent;
- routes.EnableFriendlyUrls(settings);
+ public static void RegisterRoutes(RouteCollection routes)
+ {
+ var settings = new FriendlyUrlSettings();
+ settings.AutoRedirectMode = RedirectMode.Permanent;
+ routes.EnableFriendlyUrls(settings);
+ }
}
- }
-}
+}
\ No newline at end of file