37 lines
843 B
C#
37 lines
843 B
C#
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 StackManager : BasePage
|
|
{
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
if (!Page.IsPostBack)
|
|
{
|
|
checkVisibility();
|
|
}
|
|
cmp_taktList.eh_doRefresh += Cmp_taktList_eh_doRefresh;
|
|
}
|
|
|
|
private void Cmp_taktList_eh_doRefresh(object sender, EventArgs e)
|
|
{
|
|
checkVisibility();
|
|
// imposto batch!
|
|
cmp_stackList.BatchId = cmp_taktList.BatchIdSel;
|
|
}
|
|
|
|
private void checkVisibility()
|
|
{
|
|
// Di default nascondo i dettagli...
|
|
bool detVisible = (cmp_taktList.BatchIdSel > 0);
|
|
cmp_stackList.Visible = detVisible;
|
|
cmp_stackBuilding.Visible = detVisible;
|
|
}
|
|
|
|
}
|
|
} |