48 lines
1.0 KiB
C#
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;
|
|
}
|
|
}
|
|
} |