45 lines
1.4 KiB
C#
45 lines
1.4 KiB
C#
using SteamWare;
|
|
using System;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
|
|
namespace MoonProTablet.WebUserControls
|
|
{
|
|
public partial class mod_mappaStato : BaseUserControl
|
|
{
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// rimanda alla pagina di dettaglio della macchina scelta
|
|
/// </summary>
|
|
/// <param name="sender"></param>
|
|
/// <param name="e"></param>
|
|
protected void hlMacchina_Click(object sender, EventArgs e)
|
|
{
|
|
LinkButton lnkbtn = (LinkButton)sender;
|
|
memLayer.ML.setSessionVal("IdxMacchina", lnkbtn.CommandArgument);
|
|
memLayer.ML.setSessionVal("subMaccSel", lnkbtn.CommandArgument);
|
|
Response.Redirect("~/DettaglioMacchina.aspx");
|
|
}
|
|
/// <summary>
|
|
/// fa update del controllo
|
|
/// </summary>
|
|
public void doUpdate()
|
|
{
|
|
ods.DataBind();
|
|
repLI.DataBind();
|
|
}
|
|
/// <summary>
|
|
/// timeout scaduto
|
|
/// </summary>
|
|
/// <param name="sender"></param>
|
|
/// <param name="e"></param>
|
|
protected void Timer1_Tick(object sender, EventArgs e)
|
|
{
|
|
doUpdate();
|
|
ScriptManager.RegisterStartupScript(Page, GetType(), "temp", "<script type='text/javascript'>$('#dettMacch').trigger('create');</script>", false);
|
|
}
|
|
}
|
|
} |