69 lines
1.7 KiB
C#
69 lines
1.7 KiB
C#
using System;
|
|
using System.Web.UI;
|
|
|
|
namespace MP_ADM.WebUserControls
|
|
{
|
|
public partial class mod_storicoTC : BaseUserControl
|
|
{
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
if (!Page.IsPostBack)
|
|
{
|
|
// seleziono valori "0"
|
|
ddlArticolo.SelectedIndex = 0;
|
|
ddlMacchine.SelectedIndex = 0;
|
|
grViewTempi.PageSize = pageSize;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// dimensione pagina
|
|
/// </summary>
|
|
public int pageSize
|
|
{
|
|
get
|
|
{
|
|
int answ = 10;
|
|
try
|
|
{
|
|
answ = Convert.ToInt32(txtPageSize.Text);
|
|
}
|
|
catch
|
|
{ }
|
|
return answ;
|
|
}
|
|
set
|
|
{
|
|
txtPageSize.Text = value.ToString();
|
|
}
|
|
}
|
|
|
|
protected void ddlArticolo_SelectedIndexChanged(object sender, EventArgs e)
|
|
{
|
|
updateElenco();
|
|
}
|
|
|
|
protected void ddlMacchine_SelectedIndexChanged(object sender, EventArgs e)
|
|
{
|
|
updateElenco();
|
|
}
|
|
|
|
/// <summary>
|
|
/// effettua update elenco tempi per articolo/impianto
|
|
/// </summary>
|
|
private void updateElenco()
|
|
{
|
|
// carico update!
|
|
}
|
|
|
|
/// <summary>
|
|
/// cambio dim pagina
|
|
/// </summary>
|
|
/// <param name="sender"></param>
|
|
/// <param name="e"></param>
|
|
protected void txtPageSize_TextChanged(object sender, EventArgs e)
|
|
{
|
|
grViewTempi.PageSize = pageSize;
|
|
}
|
|
}
|
|
} |