42 lines
801 B
C#
42 lines
801 B
C#
using System;
|
|
|
|
namespace MP_SITE.WebUserControls
|
|
{
|
|
public class baseProdControl : System.Web.UI.UserControl
|
|
{
|
|
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 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());
|
|
}
|
|
}
|
|
}
|
|
} |