protected void Page_Load(object sender, EventArgs e) { ProcessLogFileName = @"Excel\" + Session["UserName"].ToString() + "ProcessLog.txt"; if (!Page.IsPostBack) { //RunByLabel.Text = Session["UserName"].ToString(); CatBegTextBox.Focus(); btnAccept.Visible = false; ProcessPanel.Visible = false; ActionPanel.Visible = false; ActionSubmitButt.Visible = false; PrintButt.Visible = false; SKUPanel.Visible = false; FactorPrompt.Visible = false; CPRFactor.Text = "1"; Session["PageOp"] = ""; string FullFilePath = Server.MapPath(ProcessLogFileName); using (StreamWriter sw = new StreamWriter(FullFilePath)) { sw.WriteLine("Branch Stocking Analysis started at " + DateTime.Now.ToLongDateString() + " " + DateTime.Now.ToLongTimeString()); } LoadBranches(); } else { SKUPanel.Height = int.Parse(yh.Text.ToString()) - 90; ActionPanel.Height = int.Parse(yh.Text.ToString()) - 90; ResultsUpdatePanel.Update(); } ScriptManager1.AsyncPostBackTimeout = 1200; //ScriptManager1.SetFocus(CatBegTextBox); ScriptManager1.RegisterAsyncPostBackControl(BranchListButt); //lblErrorMessage.Text = Session["PageOp"]; }
protected void ItemSearchButt_Click(object sender, ImageClickEventArgs e) { BindSKUGrid(); ResultsUpdatePanel.Update(); CatBegTextBox.Focus(); FactorPrompt.Visible = false; //FindUpdatePanel.Update(); }
private void GridBind() { //ResultsObjectDataSource.Select(); if (string.IsNullOrWhiteSpace(ResultsGridView.DataSourceID)) { ResultsGridView.DataSourceID = "ResultsObjectDataSource"; } //int hhh = ResultsGridView.Rows.Count; ; ResultsDiv.Visible = true; ResultsUpdatePanel.Update(); }
protected void BranchListButt_Click(object sender, ImageClickEventArgs e) { Session["PageOp"] = "List"; btnAccept.Visible = false; ProcessPanel.Visible = false; ActionPanel.Visible = false; ActionSubmitButt.Visible = false; PrintButt.Visible = false; SKUPanel.Visible = false; BranchPanel.Visible = true; ResultsUpdatePanel.Update(); }