diff --git a/MP-Site/WebUserControls/baseProdControl.cs b/MP-Site/WebUserControls/baseProdControl.cs
index b5736ab8..64031b07 100644
--- a/MP-Site/WebUserControls/baseProdControl.cs
+++ b/MP-Site/WebUserControls/baseProdControl.cs
@@ -1,24 +1,39 @@
using MapoDb;
+using SteamWare;
using System;
namespace MP_SITE.WebUserControls
{
public class baseProdControl : System.Web.UI.UserControl
{
- protected int _numRighe = 17;
-
- protected resoconti _resoconti;
+ #region Private Fields
///
/// Oggetto datalayer specifico
///
private DataLayer DataLayerObj = new DataLayer();
+ #endregion Private Fields
+
+ #region Protected Fields
+
+ protected int _numRighe = 17;
+
+ protected resoconti _resoconti;
+
+ #endregion Protected Fields
+
+ #region Public Events
+
///
/// evento update
///
public event EventHandler eh_doUpdate;
+ #endregion Public Events
+
+ #region Public Properties
+
public int numRighe
{
get
@@ -31,18 +46,9 @@ namespace MP_SITE.WebUserControls
}
}
- public virtual void aggiornamento()
- {
- }
+ #endregion Public Properties
- public void reportUpdate()
- {
- // alzo l'evento d update/inserimento e ricarico cache...
- if (eh_doUpdate != null)
- {
- eh_doUpdate(this, new EventArgs());
- }
- }
+ #region Protected Methods
///
/// Verifica se la macchina MAIN sia MULTI (da DatiMacchina / redis...)
@@ -62,5 +68,44 @@ namespace MP_SITE.WebUserControls
aggiornamento();
}
}
+
+ #endregion Protected Methods
+
+ #region Public Methods
+
+ public virtual void aggiornamento()
+ {
+ }
+
+ public void reportUpdate()
+ {
+ // alzo l'evento d update/inserimento e ricarico cache...
+ if (eh_doUpdate != null)
+ {
+ eh_doUpdate(this, new EventArgs());
+ }
+ }
+
+ ///
+ /// effettua traduzione del lemma
+ ///
+ ///
+ ///
+ public string traduci(string lemma)
+ {
+ return user_std.UtSn.Traduci(lemma);
+ }
+
+ ///
+ /// effettua traduzione in inglese del lemma
+ ///
+ ///
+ ///
+ public string traduciEn(string lemma)
+ {
+ return user_std.UtSn.TraduciEn(lemma);
+ }
+
+ #endregion Public Methods
}
}
\ No newline at end of file
diff --git a/MP-Site/WebUserControls/mod_AnPro_DettArt.ascx.cs b/MP-Site/WebUserControls/mod_AnPro_DettArt.ascx.cs
index e73af5f7..94c63b10 100644
--- a/MP-Site/WebUserControls/mod_AnPro_DettArt.ascx.cs
+++ b/MP-Site/WebUserControls/mod_AnPro_DettArt.ascx.cs
@@ -6,15 +6,8 @@ namespace MP_SITE.WebUserControls
{
public partial class mod_AnPro_DettArt : baseProdControl
{
- protected void Page_Load(object sender, EventArgs e)
- {
- if (!Page.IsPostBack)
- {
- mod_righePag.numRowPag = Convert.ToInt32(memLayer.ML.CRI("_righeDataGridMed") / 2);
- grView.PageSize = mod_righePag.numRowPag;
- }
- mod_righePag.eh_newNum += Mod_righePag_eh_newNum;
- }
+ #region Private Methods
+
///
/// aggiorno numero righe da mostrare
///
@@ -24,23 +17,30 @@ namespace MP_SITE.WebUserControls
{
grView.PageSize = mod_righePag.numRowPag;
}
- ///
- /// aggiorna visualizzazione
- ///
- /// Macchina
- /// Articolo
- /// Si/No ODL già conclusi
- /// Si/No ODL in corso
- /// Si/No ODL da attrezzare
- public void doUpdate(string IdxMacchina, string CodArticolo, bool OdlChiusi, bool OdlAperti, bool OdlNew)
+
+ #endregion Private Methods
+
+ #region Protected Methods
+
+ protected void Page_Load(object sender, EventArgs e)
{
- hfIdxMacchina.Value = IdxMacchina;
- hfCodArticolo.Value = CodArticolo;
- hfClosed.Value = OdlChiusi.ToString();
- hfOpen.Value = OdlAperti.ToString();
- hfNew.Value = OdlNew.ToString();
- grView.DataBind();
+ if (!Page.IsPostBack)
+ {
+ mod_righePag.numRowPag = Convert.ToInt32(memLayer.ML.CRI("_righeDataGridMed") / 2);
+ grView.PageSize = mod_righePag.numRowPag;
+ }
+ mod_righePag.eh_newNum += Mod_righePag_eh_newNum;
}
+
+ #endregion Protected Methods
+
+ #region Public Methods
+
+ public string cssByStato(object stato)
+ {
+ return string.Format("css_{0}", stato); ;
+ }
+
///
/// formato grafico post verifica qta > 0
///
@@ -60,9 +60,24 @@ namespace MP_SITE.WebUserControls
return answ;
}
- public string cssByStato(object stato)
+ ///
+ /// aggiorna visualizzazione
+ ///
+ /// Macchina
+ /// Articolo
+ /// Si/No ODL già conclusi
+ /// Si/No ODL in corso
+ /// Si/No ODL da attrezzare
+ public void doUpdate(string IdxMacchina, string CodArticolo, bool OdlChiusi, bool OdlAperti, bool OdlNew)
{
- return string.Format("css_{0}", stato); ;
+ hfIdxMacchina.Value = IdxMacchina;
+ hfCodArticolo.Value = CodArticolo;
+ hfClosed.Value = OdlChiusi.ToString();
+ hfOpen.Value = OdlAperti.ToString();
+ hfNew.Value = OdlNew.ToString();
+ grView.DataBind();
}
+
+ #endregion Public Methods
}
}
\ No newline at end of file