Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 public void SortStepGrid(Object sender, GridViewSortEventArgs e)
 {
     try
     {
         // Create a DataView from the Linked Steps.
         DataView dv = new DataView((DataTable)Session["LinkedSteps"]);
         dv.Sort             = e.SortExpression;
         StepGrid.DataSource = dv;
         StepGrid.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("Step Sort Error " + e2.Message + ", " + e2.ToString(), 2);
     }
 }
Esempio n. 3
0
 private void ShowSteps()
 {
     // show linked steps
     StepUpdatePanel.Visible = true;
     LinkedSteps             = CheckError(mrpCalc.MstrConfigDataGetSteps(CurProcess.Value));
     if ((LinkedSteps != null) && (LinkedSteps.Rows.Count > 0))
     {
         StepGrid.DataSource = LinkedSteps;
         StepGrid.DataBind();
         Session["LinkedSteps"] = LinkedSteps;
     }
     else
     {
         StepGrid.DataBind();
         Session["LinkedSteps"] = null;
         ShowPageMessage("No Steps are linked. Used the Add button to create a new link", 0, StepMessage, StepUpdatePanel);
     }
 }