using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using SteamWare; namespace MoonProTablet.WebUserControls { public partial class mod_mappaStato : System.Web.UI.UserControl { protected void Page_Load(object sender, EventArgs e) { } /// /// url completo immagine /// /// /// public string ImgUrl(object url) { return string.Format("./images/macchine/{0}", url); } /// /// restituisce cod CSS dato cod semaforo /// /// /// public string cssDaSemaforo(object semaforo) { return resoconti.mngr.cssDaCodColore(semaforo.ToString()); } /// /// fomratta durata in minuti/ore/gg a seconda del totale... /// /// /// public string formatDurata(object min) { return utility.formatDurata(min); } /// /// rimanda alla pagina di dettaglio della macchina scelta /// /// /// protected void hlMacchina_Click(object sender, EventArgs e) { LinkButton lnkbtn = (LinkButton)sender; memLayer.ML.setSessionVal("IdxMacchina", lnkbtn.CommandArgument); Response.Redirect("~/DettaglioMacchina.aspx"); } /// /// fa update del controllo /// public void doUpdate() { ods.DataBind(); repLI.DataBind(); } /// /// timeout scaduto /// /// /// protected void Timer1_Tick(object sender, EventArgs e) { doUpdate(); //ScriptManager.RegisterStartupScript(Page, GetType(), "temp", "", false); ScriptManager.RegisterStartupScript(Page, GetType(), "temp", "", false); } } }