protected override void OnInit(EventArgs e) { InitializeComponent(); pnlMenu.Controls.Add(new LiteralControl("<h2>What-If: Products</h2>")); base.OnInit(e); if (!LocalTablesLinked()) { ResetModelGoToModels(); } if (!IsWhatifMode()) { string whatifPart = "whatif_"; Response.Redirect(PAGENAME.Substring(whatifPart.Length)); } helperProduct.SetMenuContainer(pnlMenu); helperProduct.OnInit(e); string dataFile = GetDirectory() + userDir + MAIN_USER_DATABASE; srcProductsList.DataFile = dataFile; dropListProducts.DataBind(); srcSelectedOper.DataFile = dataFile; srcComboOperTo.DataFile = dataFile; FillGridRouting(); tableSync = new TableSyncOperRouting(userDir); //srcSortRouting.DataFile = dataFile; //InitializeSortRoutingComp(); }
protected override void OnInit(EventArgs e) { InitializeComponent(); base.OnInit(e); if (!IsWhatifMode()) { string whatifPart = "whatif_"; Response.Redirect(PAGENAME.Substring(whatifPart.Length)); } tableSync = new TableSyncEquip(userDir); }
protected override void OnInit(EventArgs e) { InitializeComponent(); pnlMenu.Controls.Add(new LiteralControl("<h2>What-If:Products</h2>")); base.OnInit(e); if (!IsWhatifMode()) { string whatifPart = "whatif_"; Response.Redirect(PAGENAME.Substring(whatifPart.Length)); } helperProduct.SetMenuContainer(pnlMenu); helperProduct.OnInit(e); tableSync = new TableSyncOperRouting(userDir); }
protected override void OnInit(EventArgs e) { InitializeComponent(); pnlMenu.Controls.Add(new LiteralControl("<h2>What-If: Products</h2>")); base.OnInit(e); if (!IsWhatifMode()) { string whatifPart = "whatif_"; Response.Redirect(PAGENAME.Substring(whatifPart.Length)); } helperProduct.SetMenuContainer(pnlMenu); helperProduct.OnInit(e); string dataFile = GetDirectory() + userDir + MAIN_USER_DATABASE; tableSync = new TableSyncProduct(userDir); //srcProductsList.DataFile = dataFile; }
protected override void OnInit(EventArgs e) { InitializeComponent(); pnlMenu.Controls.Add(new LiteralControl("<h2>What-If: Products</h2>")); base.OnInit(e); if (!LocalTablesLinked()) { ResetModelGoToModels(); } if (!IsWhatifMode()) { string whatifPart = "whatif_"; Response.Redirect(PAGENAME.Substring(whatifPart.Length)); } helperProduct.SetMenuContainer(pnlMenu); helperProduct.OnInit(e); string dataFile = GetDirectory() + userDir + MAIN_USER_DATABASE; srcProductsList.DataFile = dataFile; srcProductStructure.DataFile = dataFile; try { dropListProducts.DataBind(); } catch (Exception) { Master.ShowErrorMessage(); } Control buttondiv = getButtonDiv(); Button btnCopyTable = buttondiv.FindControl(PageControls.BTN_COPY_TABLE) as Button; extenderCopy.TargetControlID = copyAllDummy.ID; btnCopyTable.Click += btnCopyTable_Click; hdnCopyMode = new HiddenField(); pnlCopyTable.Controls.Add(hdnCopyMode); tableSync = new TableSynchronization(userDir); }