99 lines
2.1 KiB
C#
99 lines
2.1 KiB
C#
using Data;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
|
|
namespace PUB.WebUserContols
|
|
{
|
|
public partial class mod_F2C : System.Web.UI.UserControl
|
|
{
|
|
/// <summary>
|
|
/// indicato (nuovo) numero righe x pagina
|
|
/// </summary>
|
|
public event EventHandler eh_selected;
|
|
/// <summary>
|
|
/// indicato (nuovo) numero righe x pagina
|
|
/// </summary>
|
|
public event EventHandler eh_reset;
|
|
/// <summary>
|
|
/// Load pagina
|
|
/// </summary>
|
|
/// <param name="sender"></param>
|
|
/// <param name="e"></param>
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
}
|
|
|
|
|
|
protected void lbtReset_Click(object sender, EventArgs e)
|
|
{
|
|
grView.SelectedIndex = -1;
|
|
grView.DataBind();
|
|
// sollevo evento nuovo valore...
|
|
if (eh_reset != null)
|
|
{
|
|
eh_reset(this, new EventArgs());
|
|
}
|
|
}
|
|
public void doUpdate()
|
|
{
|
|
grView.DataBind();
|
|
}
|
|
|
|
protected void grView_DataBound(object sender, EventArgs e)
|
|
{
|
|
}
|
|
|
|
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
|
|
{
|
|
// sollevo evento nuovo valore...
|
|
if (eh_selected != null)
|
|
{
|
|
eh_selected(this, new EventArgs());
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Condominio selezionato
|
|
/// </summary>
|
|
public int idxCond
|
|
{
|
|
get
|
|
{
|
|
int answ = 0;
|
|
int.TryParse(hfIdxCond.Value, out answ);
|
|
return answ;
|
|
}
|
|
set
|
|
{
|
|
hfIdxCond.Value = value.ToString();
|
|
}
|
|
}
|
|
#if false
|
|
/// <summary>
|
|
/// NUOVA Area selezionata
|
|
/// </summary>
|
|
public int idxAreaNew
|
|
{
|
|
get
|
|
{
|
|
int answ = 0;
|
|
int.TryParse(ddlAree.SelectedValue, out answ);
|
|
return answ;
|
|
}
|
|
}
|
|
#endif
|
|
#if false
|
|
protected void lbtAdd_Click(object sender, EventArgs e)
|
|
{
|
|
// aggiungo area selezionata...
|
|
DtProxy.man.taAssF2A.insertQuery(idxCond, idxAreaNew);
|
|
// aggiorno...
|
|
grView.DataBind();
|
|
ddlAree.DataBind();
|
|
}
|
|
#endif
|
|
}
|
|
} |