55 lines
2.2 KiB
C#
55 lines
2.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
using SteamWare;
|
|
using MapoDb;
|
|
using System.Globalization;
|
|
|
|
namespace MP_IO
|
|
{
|
|
public partial class inputIOB : System.Web.UI.Page
|
|
{
|
|
/// <summary>
|
|
/// caricamento pagina
|
|
/// </summary>
|
|
/// <param name="sender"></param>
|
|
/// <param name="e"></param>
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
Response.Redirect(string.Format("IOB/input/{0}?valore={1}&dtEve={2}&dtCurr={3}&cnt={4}", Request.QueryString["idxMacchina"], Request.QueryString["valore"], Request.QueryString["dtEve"], Request.QueryString["dtCurr"], Request.QueryString["cnt"]));
|
|
#if false
|
|
// legge i get x processare la seriale
|
|
string idxMacchina = "";
|
|
string valore = "";
|
|
string dtEve = "";
|
|
string dtCurr = "";
|
|
string contatore = "";
|
|
string answ = "";
|
|
DateTime dataOraEvento = DateTime.Now;
|
|
try
|
|
{
|
|
idxMacchina = Request.QueryString["idxMacchina"];
|
|
valore = Request.QueryString["valore"];
|
|
dtEve = Request.QueryString["dtEve"]; // formato yyyymmddHHMMSSnnn ovvero da anno a millisecondi
|
|
dtCurr = Request.QueryString["dtCurr"]; // formato yyyymmddHHMMSSnnn ovvero da anno a millisecondi
|
|
contatore = Request.QueryString["cnt"];
|
|
if (contatore == "" || contatore == null) contatore = "0";
|
|
if (memLayer.ML.CRI("_logLevel") > 6)
|
|
{
|
|
logger.lg.scriviLog(string.Format("Valori letti:{0}idxMacchina: {1}{0}valore: {2}{0}dtEve: {3}{0}dtCurr: {4}{0}cnt: {5}", Environment.NewLine, idxMacchina, valore, dtEve, dtCurr, contatore), tipoLog.INFO);
|
|
}
|
|
}
|
|
catch
|
|
{ }
|
|
answ = DataLayer.processInput(idxMacchina, valore, dtEve, dtCurr, contatore);
|
|
// ripulisco pagina restituita e tolgo html (solo codice ok/NO)
|
|
Response.Clear();
|
|
Response.Write(answ);
|
|
Context.Response.End();
|
|
#endif
|
|
}
|
|
}
|
|
} |