Ejemplo n.º 1
0
 protected void ClearEntry()
 {
     StepCodeTextBox.Text  = "";
     StepNameTextBox.Text  = "";
     ParentFactorBox.Text  = "";
     StepOrderTextBox.Text = "";
     AddEditUpdatePanel.Update();
     SaveButton.Visible = false;
     AddButt.Visible    = true;
     CommandUpdatePanel.Update();
     MRPScriptManager.SetFocus("SearchTextBox");
 }
Ejemplo n.º 2
0
 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");
 }
Ejemplo n.º 3
0
 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");
 }
Ejemplo n.º 4
0
    protected void ShowPageMessage(string PageMessage, int MessageType)
    {
        switch (MessageType)
        {
        case 1:
            MessageLabel.CssClass = "warn";
            break;

        case 2:
            MessageLabel.CssClass = "error";
            break;

        default:
            MessageLabel.CssClass = "success";
            break;
        }
        //MessageLabel.CssClass = "error";
        MessageLabel.Text = PageMessage;
        AddEditUpdatePanel.Update();
    }
Ejemplo n.º 5
0
 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");
     }
 }
Ejemplo n.º 6
0
 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();
     }
 }
Ejemplo n.º 7
0
 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");
     }
 }
Ejemplo n.º 8
0
 protected void ClearPageMessages()
 {
     MessageLabel.Text = "";
     AddEditUpdatePanel.Update();
 }