protected void ClearEntry() { // clear process data MRPScriptManager.SetFocus("ProcessDropDown"); MstrConfigCodeTextBox.Text = ""; MstrConfigNameTextBox.Text = ""; IncUnPlatedCheckBox.Checked = false; ProcessUpdatePanel.Update(); ProcessUpdatePanel.Visible = false; Session["Process"] = null; // set buttons AddButt.Visible = true; CommandUpdatePanel.Update(); // clear tree ProcessTreeView.Visible = false; // clear filters FilterUpdatePanel.Visible = false; Session["LinkedFilters"] = null; LinkedFilters = null; FilterGrid.DataBind(); // clear steps StepUpdatePanel.Visible = false; StepGrid.DataBind(); Session["LinkedSteps"] = null; LinkedSteps = null; }
public void SortFilterGrid(Object sender, GridViewSortEventArgs e) { try { // Create a DataView from the Linked Category filters. DataView dv = new DataView((DataTable)Session["LinkedFilters"]); dv.Sort = e.SortExpression; FilterGrid.DataSource = dv; FilterGrid.DataBind(); //FilterGridPanel.Height = new Unit(double.Parse(FilterGridHeightHidden.Value), UnitType.Pixel); //FilterGridPanel.Width = new Unit(double.Parse(FilterGridWidthHidden.Value), UnitType.Pixel); } catch (Exception e2) { ShowPageMessage("Filter Sort Error " + e2.Message + ", " + e2.ToString(), 2); } }
private void ShowFilters() { // show linked filters FilterUpdatePanel.Visible = true; LinkedFilters = CheckError(mrpCalc.MstrConfigDataGetFilters(CurProcess.Value)); if ((LinkedFilters != null) && (LinkedFilters.Rows.Count > 0)) { Session["LinkedFilters"] = LinkedFilters; FilterGrid.DataSource = LinkedFilters; FilterGrid.DataBind(); } else { Session["LinkedFilters"] = null; FilterGrid.DataBind(); ShowPageMessage("No Category Filter are linked. Used the Add button to create a new link", 0, FilterMessage, FilterUpdatePanel); } }