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(); 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); }