Exemple #1
0
 protected void AvailableSubmit_Click(object sender, EventArgs e)
 {
     GetAvailableData(ItemNoTextBox.Text, ReqLocTextBox.Text);
     ReqQtyLabel.Text   = ReqQtyHidden.Value;
     AltQtyLabel.Text   = AltQtyHidden.Value;
     ReqAvailLabel.Text = ReqAvailHidden.Value;
     SubItemScriptManager.SetFocus("BranchQOHGrid");
 }
Exemple #2
0
 protected void Page_LoadComplete(object sender, EventArgs e)
 {
     QtyFilledLabel.Text = QtyFilledHidden.Value;
     SubItemScriptManager.SetFocus("BranchQOHGrid");
 }
Exemple #3
0
    private void LoadItemNumber(string itemNo)
    {
        //Get the reference data
        //http://10.1.36.34/SOE/packingandplating.aspx?ItemNumber=00200-2400-021&ShipLoc=10&RequestedQty=5&AltQty=50&AvailableQty=33
        HasProcessed.Value   = "1";
        ItemNoTextBox.Text   = itemNo;
        ReqLocTextBox.Text   = Request.QueryString["ShipLoc"].ToString();
        ReqQtyHidden.Value   = Request.QueryString["RequestedQty"].ToString();
        AltQtyHidden.Value   = Request.QueryString["AltQty"].ToString();
        ReqAvailHidden.Value = Request.QueryString["AvailableQty"].ToString();
        SellStkQty.Value     = "0";
        ReqQtyLabel.Text     = ReqQtyHidden.Value;
        AltQtyLabel.Text     = AltQtyHidden.Value;
        ReqAvailLabel.Text   = ReqAvailHidden.Value;
        SubItemScriptManager.SetFocus("ItemNoTextBox");
        // see if there was a UOM in the passed qty. If so, use it qtys entered
        char[] QtyArray = ReqQtyHidden.Value.ToCharArray();
        string UOMText  = "";

        foreach (char c in QtyArray)
        {
            if (char.IsLetter(c))
            {
                UOMText += c;
            }
        }
        EntryUOM.Value = UOMText;
        // passed variables indicate the calling page
        if (Request.QueryString["PriceWorksheet"] != null)
        {
            CallingPage.Value = "PriceWorksheet";
            GetAvailableData(ItemNoTextBox.Text, ReqLocTextBox.Text);
        }
        //if (Request.QueryString["QuoteRecall"] != null)
        //{
        //    CallingPage.Value = "QuoteRecall";
        //    QuoteNumber.Value = Request.QueryString["QuoteRecall"].ToString();
        //    QuoteFilterFieldHidden.Value = Request.QueryString["FilterField"].ToString();
        //    QuoteFilterValueHidden.Value = Request.QueryString["FilterValue"].ToString();
        //    if (QuoteFilterFieldHidden.Value == "QuotationDate")
        //    {
        //        QOHCommandHidden.Value = "3";
        //    }
        //    else
        //    {
        //        QOHCommandHidden.Value = "2";
        //    }
        //    UpdQuoteButt.Visible = true;
        //    GetQuoteData();
        //}
        //if (Request.QueryString["Virtual"] != null)
        //{
        //    CallingPage.Value = "BranchAvailable";
        //    GetVirtualData(ItemNoTextBox.Text, Request.QueryString["Virtual"]);
        //}
        // set the button to click to update the calling page
        if (Request.QueryString["ParentButton"] != null)
        {
            ParentButton.Value = Request.QueryString["ParentButton"].ToString();
        }
        // set the parent field to get the focus on the way out
        if (Request.QueryString["ParentFocus"] != null)
        {
            ParentFocusField.Value = Request.QueryString["ParentFocus"].ToString();
        }
    }