71 lines
1.4 KiB
C#
71 lines
1.4 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.site
|
|
{
|
|
public partial class BatchPreview : System.Web.UI.Page
|
|
{
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
if (!Page.IsPostBack)
|
|
{
|
|
doUpdate();
|
|
}
|
|
cmp_BP_bunkList.eh_doRefresh += Cmp_BP_bunkList_eh_doRefresh;
|
|
cmp_BP_sheetList.eh_doRefresh += Cmp_BP_sheetList_eh_doRefresh;
|
|
}
|
|
|
|
private void Cmp_BP_sheetList_eh_doRefresh(object sender, EventArgs e)
|
|
{
|
|
// imposto sheet sul foglio...
|
|
cmp_MU_svgViewer.SheetId = cmp_BP_sheetList.SheetIdSel;
|
|
}
|
|
|
|
private void Cmp_BP_bunkList_eh_doRefresh(object sender, EventArgs e)
|
|
{
|
|
// aggiorno sheets
|
|
cmp_BP_sheetList.BunkId = cmp_BP_bunkList.BunkIdSel;
|
|
}
|
|
|
|
protected int bunkIndex
|
|
{
|
|
get
|
|
{
|
|
return cmp_BP_bunkList.selIndex;
|
|
}
|
|
set
|
|
{
|
|
cmp_BP_bunkList.selIndex = value;
|
|
}
|
|
}
|
|
protected int StackId
|
|
{
|
|
get
|
|
{
|
|
return cmp_BP_bunkList.BunkIdSel;
|
|
}
|
|
}
|
|
|
|
private void doUpdate()
|
|
{
|
|
cmp_BP_bunkList.BatchId = BatchId;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Batch corrente...
|
|
/// </summary>
|
|
public int BatchId
|
|
{
|
|
get
|
|
{
|
|
int answ = memLayer.ML.QSI("BatchId");
|
|
return answ;
|
|
}
|
|
}
|
|
}
|
|
} |