inizio fix area WebUserControls

This commit is contained in:
Samuele E. Locatelli
2020-09-11 15:35:06 +02:00
parent 567290861e
commit bd275bf385
3 changed files with 56 additions and 192 deletions
+56 -50
View File
@@ -3,58 +3,64 @@ using System;
namespace MP_SITE.WebUserControls
{
public class baseProdControl : System.Web.UI.UserControl
{
/// <summary>
/// Oggetto datalayer specifico
/// </summary>
DataLayer DataLayerObj = new DataLayer();
/// <summary>
/// evento update
/// </summary>
public event EventHandler eh_doUpdate;
protected resoconti _resoconti;
protected int _numRighe = 17;
protected void Page_Load(object sender, EventArgs e)
{
_resoconti = new resoconti();
if (!Page.IsPostBack)
{
aggiornamento();
}
}
public virtual void aggiornamento()
public class baseProdControl : System.Web.UI.UserControl
{
protected int _numRighe = 17;
}
public int numRighe
{
get
{
return _numRighe;
}
set
{
_numRighe = value;
}
}
public void reportUpdate()
{
// alzo l'evento d update/inserimento e ricarico cache...
if (eh_doUpdate != null)
{
eh_doUpdate(this, new EventArgs());
}
}
protected resoconti _resoconti;
/// <summary>
/// Verifica se la macchina MAIN sia MULTI (da DatiMacchina / redis...)
/// </summary>
/// <param name="idxMacchina"></param>
/// <returns></returns>
protected bool isMulti(string idxMacchina)
{
return DataLayerObj.isMulti(idxMacchina);
/// <summary>
/// Oggetto datalayer specifico
/// </summary>
private DataLayer DataLayerObj = new DataLayer();
/// <summary>
/// evento update
/// </summary>
public event EventHandler eh_doUpdate;
public int numRighe
{
get
{
return _numRighe;
}
set
{
_numRighe = value;
}
}
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());
}
}
/// <summary>
/// Verifica se la macchina MAIN sia MULTI (da DatiMacchina / redis...)
/// </summary>
/// <param name="idxMacchina"></param>
/// <returns></returns>
protected bool isMulti(string idxMacchina)
{
return DataLayerObj.isMulti(idxMacchina);
}
protected void Page_Load(object sender, EventArgs e)
{
_resoconti = new resoconti();
if (!Page.IsPostBack)
{
aggiornamento();
}
}
}
}
}