73 lines
2.1 KiB
C#
73 lines
2.1 KiB
C#
using MapoSDK;
|
|
using SteamWare;
|
|
using System;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
|
|
namespace MoonProTablet.WebUserControls
|
|
{
|
|
public partial class mod_mappaStato : BaseUserControl
|
|
{
|
|
#region Protected Methods
|
|
|
|
/// <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);
|
|
subMaccSel = lnkbtn.CommandArgument;
|
|
Response.Redirect("~/DettaglioMacchina.aspx");
|
|
}
|
|
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
}
|
|
|
|
/// <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);
|
|
}
|
|
|
|
#endregion Protected Methods
|
|
|
|
#region Public Methods
|
|
|
|
/// <summary>
|
|
/// fa update del controllo
|
|
/// </summary>
|
|
public void doUpdate()
|
|
{
|
|
ods.DataBind();
|
|
repLI.DataBind();
|
|
}
|
|
|
|
public prodCounter setData(object _numConf, object _numProd, object _numOrd)
|
|
{
|
|
int numConf = 0;
|
|
int numProd = 0;
|
|
int numOrd = 0;
|
|
int.TryParse(_numConf.ToString(), out numConf);
|
|
int.TryParse(_numProd.ToString(), out numProd);
|
|
int.TryParse(_numOrd.ToString(), out numOrd);
|
|
prodCounter countData = new prodCounter()
|
|
{
|
|
numPzConf = numConf,
|
|
numPzOrd = numOrd,
|
|
numPzProd = numProd
|
|
};
|
|
return countData;
|
|
}
|
|
|
|
#endregion Public Methods
|
|
}
|
|
} |