42 lines
1.2 KiB
C#
42 lines
1.2 KiB
C#
using MapoDb;
|
|
using SteamWare;
|
|
using System;
|
|
|
|
namespace MP_SITE
|
|
{
|
|
public partial class inputSeriale : BasePage
|
|
{
|
|
/// <summary>
|
|
/// caricamento pagina
|
|
/// </summary>
|
|
/// <param name="sender"></param>
|
|
/// <param name="e"></param>
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
// legge i get x processare la seriale
|
|
string idxMacchina = "";
|
|
string valore = "";
|
|
try
|
|
{
|
|
idxMacchina = Request.QueryString["idxMacchina"];
|
|
valore = Request.QueryString["valore"];
|
|
}
|
|
catch
|
|
{ }
|
|
try
|
|
{
|
|
// ora processo e salvo il valore del microstato...
|
|
DataLayerObj.checkMicroStato(idxMacchina, valore);
|
|
}
|
|
catch (Exception exc)
|
|
{
|
|
if (memLayer.ML.CRI("_logLevel") > 5)
|
|
{
|
|
string errore = $"Errore: {Environment.NewLine}{exc}";
|
|
logger.lg.scriviLog(errore, tipoLog.EXCEPTION);
|
|
lblOut.Text = errore;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |