From 99ce91745bfcc797707518e520ade2e6f27e6c80 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Tue, 3 Oct 2017 09:10:12 +0200 Subject: [PATCH] typo fix --- .../WebUserControls/mod_listaStatiEventi.ascx | 290 ++++++++---------- .../mod_listaStatiEventi.ascx.cs | 280 ++++++++--------- .../mod_listaStatiEventi.ascx.designer.cs | 107 ++++--- 3 files changed, 319 insertions(+), 358 deletions(-) diff --git a/MP-Site/WebUserControls/mod_listaStatiEventi.ascx b/MP-Site/WebUserControls/mod_listaStatiEventi.ascx index c0877e3c..d3070f79 100644 --- a/MP-Site/WebUserControls/mod_listaStatiEventi.ascx +++ b/MP-Site/WebUserControls/mod_listaStatiEventi.ascx @@ -1,174 +1,136 @@ <%@ Control Language="C#" AutoEventWireup="true" Inherits="MoonPro.WebUserControls.mod_listaStatiEventi" - CodeBehind="mod_listaStatiEventi.ascx.cs" %> + CodeBehind="mod_listaStatiEventi.ascx.cs" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %> <%@ Register Src="mod_infoAggiuntive.ascx" TagName="mod_infoAggiuntive" TagPrefix="uc1" %> <%@ Register Src="mod_datiConfermati.ascx" TagName="mod_datiConfermati" TagPrefix="uc2" %> - - - Produzione - - - - - - - - - - - - - - - - - - - Dati Confermati - - - - - - - - - - - - - - - - Elenco Stati - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Excel Stati - solo macchina corrente - - + ActiveTabIndex="0" Width="500px"> + + + Produzione + + + + + + + + Dati Confermati + + + + + + + + Elenco Stati + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Excel Stati - solo macchina corrente + - Excel Stati - tutte le macchine + + + + + Log eventi + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Excel Eventi - solo macchina corrente - - - - - - - - - Log eventi - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Excel Eventi - solo macchina corrente - - Excel Eventi - tutte le macchine - - - - - - - - + Excel Eventi - tutte le macchine + + diff --git a/MP-Site/WebUserControls/mod_listaStatiEventi.ascx.cs b/MP-Site/WebUserControls/mod_listaStatiEventi.ascx.cs index 35e2614c..42b9ff08 100644 --- a/MP-Site/WebUserControls/mod_listaStatiEventi.ascx.cs +++ b/MP-Site/WebUserControls/mod_listaStatiEventi.ascx.cs @@ -4,146 +4,146 @@ using System.Web.UI; namespace MoonPro.WebUserControls { - public partial class mod_listaStatiEventi : System.Web.UI.UserControl + public partial class mod_listaStatiEventi : System.Web.UI.UserControl + { + #region area protected + + protected resoconti _resoconti; + protected int _numRighe = 17; + + protected void Page_Load(object sender, EventArgs e) { - #region area protected - - protected resoconti _resoconti; - protected int _numRighe = 17; - - protected void Page_Load(object sender, EventArgs e) - { - _resoconti = new resoconti(); - if (!Page.IsPostBack) - { - aggiornamento(); - } - //ods_DiarioDiBordo.TypeName = "MapoDb.DataLayer.obj.taStati"; - //ods_EventList.TypeName = "MapoDb.DataLayer.obj.taEventi"; - } - - protected void reportUpdate() - { - // alzo l'evento d update/inserimento e ricarico cache... - if (eh_doUpdate != null) - { - eh_doUpdate(this, new EventArgs()); - } - } - - #endregion - protected void txtRighe_TextChanged(object sender, EventArgs e) - { - //numRighe = Convert.ToInt32(txtRighe.Text); - aggiornamento(); - } - - #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 = (string)Session["IdxMacchina"]; - } - catch - { - } - return idxMacchina; - } - set - { - Session["IdxMacchina"] = value; - } - } - public string statoDaIdx(object idx) - { - return _resoconti.statoDaIdx(Convert.ToInt32(idx)); - } - public string operatoreDaMatr(object matricola) - { - int matr = 0; - try - { - matr = Convert.ToInt32(matricola); - } - catch - { } - return _resoconti.oprDaMatr(matr); - } - public string tipoDaIdx(object idx) - { - return _resoconti.tipoDaIdx(Convert.ToInt32(idx)); - } - public void aggiornamento() - { - if (memLayer.ML.confReadInt("_logLevel") > 5) - { - logger.lg.scriviLog("inizio caricamento dati", SteamWare.tipoLog.INFO); - } - gvStati.PageSize = _numRighe; - gvEventi.PageSize = _numRighe; - ods_DiarioDiBordo.DataBind(); - ods_EventList.DataBind(); - mod_datiConfermati1.doUpdate(); - mod_infoAggiuntive1.doUpdate(); - if (memLayer.ML.confReadInt("_logLevel") > 5) - { - SteamWare.logger.lg.scriviLog("fine caricamento dati", SteamWare.tipoLog.INFO); - } - } - public void reportUpdt(object sender, EventArgs e) - { - reportUpdate(); - } - - public int numRighe - { - get - { - return _numRighe; - } - set - { - _numRighe = value; - } - } - - /// - /// restituisce stringa formattata in HH:mm - /// - /// - /// - public string durataEvento(object durataMinuti) - { - //string durataFormattata = ""; - //try - //{ - // DateTime tempo = new DateTime(); - // tempo = tempo.AddMinutes((double)durataMinuti); - // durataFormattata = string.Format("{0:00}:{1:00}:{2:00}", tempo.Hour, tempo.Minute, tempo.Second); - //} - //catch - //{ - // logger.lg.scriviLog(string.Format("errore calcolo durata: durataMinuti {0}", durataMinuti), tipoLog.EXCEPTION); - //} - //return durataFormattata; - return utility.durataEventoHMS((double)durataMinuti); - } - - #endregion - + _resoconti = new resoconti(); + if (!Page.IsPostBack) + { + aggiornamento(); + } + //ods_DiarioDiBordo.TypeName = "MapoDb.DataLayer.obj.taStati"; + //ods_EventList.TypeName = "MapoDb.DataLayer.obj.taEventi"; } + + protected void reportUpdate() + { + // alzo l'evento d update/inserimento e ricarico cache... + if (eh_doUpdate != null) + { + eh_doUpdate(this, new EventArgs()); + } + } + + #endregion + protected void txtRighe_TextChanged(object sender, EventArgs e) + { + //numRighe = Convert.ToInt32(txtRighe.Text); + aggiornamento(); + } + + #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 = (string)Session["IdxMacchina"]; + } + catch + { + } + return idxMacchina; + } + set + { + Session["IdxMacchina"] = value; + } + } + public string statoDaIdx(object idx) + { + return _resoconti.statoDaIdx(Convert.ToInt32(idx)); + } + public string operatoreDaMatr(object matricola) + { + int matr = 0; + try + { + matr = Convert.ToInt32(matricola); + } + catch + { } + return _resoconti.oprDaMatr(matr); + } + public string tipoDaIdx(object idx) + { + return _resoconti.tipoDaIdx(Convert.ToInt32(idx)); + } + public void aggiornamento() + { + if (memLayer.ML.confReadInt("_logLevel") > 5) + { + logger.lg.scriviLog("inizio caricamento dati", SteamWare.tipoLog.INFO); + } + gvStati.PageSize = _numRighe; + gvEventi.PageSize = _numRighe; + ods_DiarioDiBordo.DataBind(); + ods_EventList.DataBind(); + mod_datiConfermati1.doUpdate(); + mod_infoAggiuntive1.doUpdate(); + if (memLayer.ML.confReadInt("_logLevel") > 5) + { + SteamWare.logger.lg.scriviLog("fine caricamento dati", SteamWare.tipoLog.INFO); + } + } + public void reportUpdt(object sender, EventArgs e) + { + reportUpdate(); + } + + public int numRighe + { + get + { + return _numRighe; + } + set + { + _numRighe = value; + } + } + + /// + /// restituisce stringa formattata in HH:mm + /// + /// + /// + public string durataEvento(object durataMinuti) + { + //string durataFormattata = ""; + //try + //{ + // DateTime tempo = new DateTime(); + // tempo = tempo.AddMinutes((double)durataMinuti); + // durataFormattata = string.Format("{0:00}:{1:00}:{2:00}", tempo.Hour, tempo.Minute, tempo.Second); + //} + //catch + //{ + // logger.lg.scriviLog(string.Format("errore calcolo durata: durataMinuti {0}", durataMinuti), tipoLog.EXCEPTION); + //} + //return durataFormattata; + return utility.durataEventoHMS((double)durataMinuti); + } + + #endregion + + } } \ No newline at end of file diff --git a/MP-Site/WebUserControls/mod_listaStatiEventi.ascx.designer.cs b/MP-Site/WebUserControls/mod_listaStatiEventi.ascx.designer.cs index ee9972c9..a1af6ede 100644 --- a/MP-Site/WebUserControls/mod_listaStatiEventi.ascx.designer.cs +++ b/MP-Site/WebUserControls/mod_listaStatiEventi.ascx.designer.cs @@ -1,150 +1,149 @@ //------------------------------------------------------------------------------ -// -// 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 MoonPro.WebUserControls -{ - - +namespace MoonPro.WebUserControls { + + public partial class mod_listaStatiEventi { /// - /// TabContLogs control. + /// Controllo TabContLogs. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::AjaxControlToolkit.TabContainer TabContLogs; /// - /// TabDatiAggiuntivi control. + /// Controllo TabDatiAggiuntivi. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::AjaxControlToolkit.TabPanel TabDatiAggiuntivi; /// - /// mod_infoAggiuntive1 control. + /// Controllo mod_infoAggiuntive1. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::MoonPro.WebUserControls.mod_infoAggiuntive mod_infoAggiuntive1; /// - /// DatiConfermati control. + /// Controllo DatiConfermati. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::AjaxControlToolkit.TabPanel DatiConfermati; /// - /// mod_datiConfermati1 control. + /// Controllo mod_datiConfermati1. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::MoonPro.WebUserControls.mod_datiConfermati mod_datiConfermati1; /// - /// TabStati control. + /// Controllo TabStati. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::AjaxControlToolkit.TabPanel TabStati; /// - /// gvStati control. + /// Controllo gvStati. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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; /// - /// ods_DiarioDiBordo control. + /// Controllo ods_DiarioDiBordo. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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; /// - /// HyperLink1 control. + /// Controllo HyperLink1. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.HyperLink HyperLink1; /// - /// HyperLink3 control. + /// Controllo HyperLink3. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.HyperLink HyperLink3; /// - /// TabEventi control. + /// Controllo TabEventi. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::AjaxControlToolkit.TabPanel TabEventi; /// - /// gvEventi control. + /// Controllo gvEventi. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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; /// - /// ods_EventList control. + /// Controllo ods_EventList. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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; /// - /// HyperLink2 control. + /// Controllo HyperLink2. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.HyperLink HyperLink2; /// - /// HyperLink4 control. + /// Controllo HyperLink4. /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 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.HyperLink HyperLink4; }