Files
NKC/NKC_WF/OrderManager.aspx.cs
T
2019-07-31 18:24:12 +02:00

48 lines
1.0 KiB
C#

using SteamWare;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace NKC_WF
{
public partial class OrderManager : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if(!Page.IsPostBack)
{
processPending();
checkVisibility();
}
}
private void processPending()
{
// se trova batch no riportati in REDIS li scrive x richiedere processing
}
private void checkVisibility()
{
bool hasBatch = false;
bool isBatchCompleted = false;
int BatchID = 0;
if (memLayer.ML.isInSessionObject("BatchID"))
{
hasBatch = true;
BatchID = memLayer.ML.IntSessionObj("BatchID");
}
// !!!FIXME!!! fare lettura
// leggo da REDIS se è stato COMPLETATO il Batch...
if (true)
{
isBatchCompleted = true;
}
divStatus.Visible = hasBatch;
divButtons.Visible = hasBatch && isBatchCompleted;
}
}
}