Exemplo n.º 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;
     BranchAvailableScriptManager.SetFocus("BranchQOHGrid");
 }
Exemplo n.º 2
0
    /*
     *                                           onblur='event.keyCode=13;return RemoteQty(this);'
     */
    protected void Page_Init(object sender, EventArgs e)
    {
        OKButt.Visible       = false;
        UpdQuoteButt.Visible = false;
        SubmitButt.Visible   = false;
        //NameValueCollection coll = ;
        if (Request.QueryString["ItemNumber"] != null)
        {
            //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   = Request.QueryString["ItemNumber"].ToString();
            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;
            BranchAvailableScriptManager.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();
            }

            if (Request.QueryString["SubsItemInd"] != null && Request.QueryString["SubsItemInd"].ToString() == "Y")
            {
                btnSubItems.Visible = true;
            }
        }
    }
Exemplo n.º 3
0
 protected void Page_LoadComplete(object sender, EventArgs e)
 {
     QtyFilledLabel.Text = QtyFilledHidden.Value;
     BranchAvailableScriptManager.SetFocus("BranchQOHGrid");
 }