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; }
protected void RefreshGrid() { SaveButton.Visible = false; CommandUpdatePanel.Update(); ClearPageMessages(); Session["MRPMaintCatRng"] = CheckError(mrpCalc.CatRngDataGetAll()); MaintGrid.DataSource = (DataTable)Session["MRPMaintCatRng"]; MaintGrid.DataBind(); MaintUpdatePanel.Update(); }
protected void ClearEntry() { StepCodeTextBox.Text = ""; StepNameTextBox.Text = ""; ParentFactorBox.Text = ""; StepOrderTextBox.Text = ""; AddEditUpdatePanel.Update(); SaveButton.Visible = false; AddButt.Visible = true; CommandUpdatePanel.Update(); MRPScriptManager.SetFocus("SearchTextBox"); }
protected void ClearEntry() { CatRngCodeTextBox.Text = ""; CatRngNameTextBox.Text = ""; BegCatTextBox.Text = ""; EndCatTextBox.Text = ""; PackRngTextBox.Text = ""; PlatingRngTextBox.Text = ""; ParentRoundingLimitTextBox.Text = DefParentRoundLimit.Value; AddEditUpdatePanel.Update(); SaveButton.Visible = false; AddButt.Visible = true; CommandUpdatePanel.Update(); MRPScriptManager.SetFocus("SearchTextBox"); }
protected void ClearEntry() { VelocityCodeTextBox.Text = ""; VelCodeDescTextBox.Text = ""; ROPCartonsTextBox.Text = ""; ParentItemIsBulkRadioButton.Checked = false; ParentItemIsNotBulkRadioButton.Checked = true; BomIsRequiredRadioButton.Checked = false; BomIsNotRequiredRadioButton.Checked = true; NeedFactorTextBox.Text = ""; AddEditUpdatePanel.Update(); SaveButton.Visible = false; AddButt.Visible = true; CommandUpdatePanel.Update(); MRPScriptManager.SetFocus("SearchTextBox"); }
public void LoadEntryData(string StepCode) { ClearPageMessages(); dt = mrpCalc.StepDataGetStep(StepCode); if (dt != null) { ClearEntry(); StepCodeTextBox.Text = dt.Rows[0]["StepCode"].ToString(); StepCodeTextBox.Enabled = false; StepNameTextBox.Text = dt.Rows[0]["StepName"].ToString(); ParentFactorBox.Text = string.Format(Num2Format, dt.Rows[0]["ParentROPProtectionFactor"]); StepOrderTextBox.Text = dt.Rows[0]["RunOrder"].ToString(); HiddenID.Value = dt.Rows[0]["pScanStepID"].ToString(); AddEditUpdatePanel.Update(); SaveButton.Visible = true; AddButt.Visible = false; CommandUpdatePanel.Update(); MRPScriptManager.SetFocus("StepNameTextBox"); } }
public void LoadEntryData(string MstrConfigCode) { try { ClearEntry(); ClearPageMessages(); PageFunc.Value = "Upd"; Session["Process"] = CheckError(mrpCalc.MstrConfigDataGetConfig(MstrConfigCode)); dt = (DataTable)Session["Process"]; if (dt != null) { MstrConfigCodeTextBox.Text = dt.Rows[0]["ConfigName"].ToString(); MstrConfigCodeTextBox.Enabled = false; MRPScriptManager.SetFocus("MstrConfigNameTextBox"); MstrConfigNameTextBox.Text = dt.Rows[0]["ConfigDesc"].ToString(); PackBranchDropDownList.SelectedValue = dt.Rows[0]["PackBranch"].ToString().Trim(); if (dt.Rows[0]["IncludeUnplated"].ToString() == "True") { IncUnPlatedCheckBox.Checked = true; } else { IncUnPlatedCheckBox.Checked = false; } HiddenID.Value = dt.Rows[0]["pMasterConfigID"].ToString(); CurProcess.Value = dt.Rows[0]["ConfigName"].ToString(); ProcessUpdatePanel.Visible = true; ProcessUpdatePanel.Update(); ProcessSaveButton.Visible = true; AddButt.Visible = false; CommandUpdatePanel.Update(); ShowFilters(); ShowSteps(); UpdateTree(); } } catch (Exception e2) { ShowPageMessage("Data Error " + e2.Message + ", " + e2.ToString(), 2); } }
public void LoadEntryData(string VelocityCode) { ClearPageMessages(); dt = mrpCalc.VelocityDataGetVelocity(VelocityCode); if (dt != null) { ClearEntry(); VelocityCodeTextBox.Text = dt.Rows[0]["VelocityCode"].ToString(); VelocityCodeTextBox.Enabled = false; VelCodeDescTextBox.Text = dt.Rows[0]["VelocityCdDesc"].ToString(); ROPCartonsTextBox.Text = string.Format(Num2Format, dt.Rows[0]["ROPCartons"]); if (dt.Rows[0]["ParentBulk0"].ToString() == "True") { ParentItemIsBulkRadioButton.Checked = true; ParentItemIsNotBulkRadioButton.Checked = false; } else { ParentItemIsBulkRadioButton.Checked = false; ParentItemIsNotBulkRadioButton.Checked = true; } if (dt.Rows[0]["BOMReqd"].ToString() == "True") { BomIsRequiredRadioButton.Checked = true; BomIsNotRequiredRadioButton.Checked = false; } else { BomIsRequiredRadioButton.Checked = false; BomIsNotRequiredRadioButton.Checked = true; } NeedFactorTextBox.Text = string.Format(Num2Format, dt.Rows[0]["ROPNeedFactor"]); HiddenID.Value = dt.Rows[0]["pVelocityCodeID"].ToString(); AddEditUpdatePanel.Update(); SaveButton.Visible = true; AddButt.Visible = false; CommandUpdatePanel.Update(); } }
public void LoadEntryData(string CatRngCode) { ClearPageMessages(); dt = CheckError(mrpCalc.CatRngDataGetStep(CatRngCode)); if (dt != null) { ClearEntry(); CatRngCodeTextBox.Text = dt.Rows[0]["FilterCode"].ToString(); CatRngCodeTextBox.Enabled = false; CatRngNameTextBox.Text = dt.Rows[0]["FilterName"].ToString(); BegCatTextBox.Text = dt.Rows[0]["BegCategory"].ToString(); EndCatTextBox.Text = dt.Rows[0]["EndCategory"].ToString(); PackRngTextBox.Text = dt.Rows[0]["PackageRange"].ToString(); PlatingRngTextBox.Text = dt.Rows[0]["PlateRange"].ToString(); ParentRoundingLimitTextBox.Text = dt.Rows[0]["ParentRoundLimit"].ToString(); HiddenID.Value = dt.Rows[0]["pCategoryRangeID"].ToString(); AddEditUpdatePanel.Update(); SaveButton.Visible = true; AddButt.Visible = false; CommandUpdatePanel.Update(); MRPScriptManager.SetFocus("CatRngNameTextBox"); } }
protected void ClearPageMessages() { MessageLabel.Text = ""; CommandUpdatePanel.Update(); }