diff --git a/MP-Site/WebUserControls/mod_logTC.ascx b/MP-Site/WebUserControls/mod_logTC.ascx new file mode 100644 index 00000000..2424811f --- /dev/null +++ b/MP-Site/WebUserControls/mod_logTC.ascx @@ -0,0 +1,63 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_logTC.ascx.cs" Inherits="MP_SITE.WebUserControls.mod_logTC" %> + + + + + + + + Nessun record trovato + + + <%----%> + + + + + <%-- + + + + + Art: + + + + <%# Eval("Descrizione") %>' + + + + + <%# Eval("Qta") %> + pz + + + + + + + + + + + + + + Nota: + + + + + + --%> + + + <%--EnableCaching="true" CacheDuration="60"--%> + + + + + + + + \ No newline at end of file diff --git a/MP-Site/WebUserControls/mod_logTC.ascx.cs b/MP-Site/WebUserControls/mod_logTC.ascx.cs new file mode 100644 index 00000000..f75407cf --- /dev/null +++ b/MP-Site/WebUserControls/mod_logTC.ascx.cs @@ -0,0 +1,46 @@ +using SteamWare; +using System; +using System.Web.UI; + +namespace MP_SITE.WebUserControls +{ + public partial class mod_logTC : baseProdControl + { + public override void aggiornamento() + { + if (memLayer.ML.CRI("_logLevel") > 5) + { + logger.lg.scriviLog("inizio caricamento dati TC", tipoLog.INFO); + } + grView.PageSize = _numRighe; + ods.DataBind(); + if (memLayer.ML.CRI("_logLevel") > 5) + { + logger.lg.scriviLog("fine caricamento dati TC", tipoLog.INFO); + } + if (!Page.IsPostBack) + { + fixMacchina(); + } + } + public void reportUpdt(object sender, EventArgs e) + { + reportUpdate(); + } + + private void fixMacchina() + { + string IdxMacc = memLayer.ML.StringSessionObj("IdxMacchina"); + int idx = 0; + if (isMulti(IdxMacc)) + { + idx = IdxMacc.IndexOf("#"); + if (idx > 0) + { + IdxMacc = IdxMacc.Substring(0, IdxMacc.IndexOf("#")); + } + } + memLayer.ML.setSessionVal("IdxMacchinaTC", IdxMacc); + } + } +} \ No newline at end of file diff --git a/MP-Site/WebUserControls/mod_logTC.ascx.designer.cs b/MP-Site/WebUserControls/mod_logTC.ascx.designer.cs new file mode 100644 index 00000000..6ec65b83 --- /dev/null +++ b/MP-Site/WebUserControls/mod_logTC.ascx.designer.cs @@ -0,0 +1,33 @@ +//------------------------------------------------------------------------------ +// +// Codice generato da uno strumento. +// +// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se +// il codice viene rigenerato. +// +//------------------------------------------------------------------------------ + +namespace MP_SITE.WebUserControls { + + + public partial class mod_logTC { + + /// + /// Controllo grView. + /// + /// + /// 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 grView; + + /// + /// Controllo ods. + /// + /// + /// 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; + } +}