Example #1
0
    protected void Page_Init(object sender, EventArgs e)
    {
        PackPlateScriptManager.SetFocus("ItemNoTextBox");
        WebEnabledHidden.Value = "1";
        NameValueCollection coll = Request.QueryString;

        if (coll["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   = coll["ItemNumber"].ToString();
            ReqLocTextBox.Text   = coll["ShipLoc"].ToString();
            ReqQtyHidden.Value   = coll["RequestedQty"].ToString();
            AltQtyHidden.Value   = coll["AltQty"].ToString();
            ReqAvailHidden.Value = coll["AvailableQty"].ToString();
            GetPackPlateData(ItemNoTextBox.Text, ReqLocTextBox.Text);
            ReqQtyLabel.Text   = ReqQtyHidden.Value;
            AltQtyLabel.Text   = AltQtyHidden.Value;
            ReqAvailLabel.Text = ReqAvailHidden.Value;
            PackPlateScriptManager.SetFocus("ItemNoTextBox");
        }
        else
        {
            PackPlateScriptManager.SetFocus("ItemNoTextBox");
            ItemPromptInd.Value = "Z";
        }
    }
Example #2
0
 protected void PackPlateSubmit_Click(object sender, EventArgs e)
 {
     lblErrorMessage.Text = "";
     MessageUpdatePanel.Update();
     GetPackPlateData(ItemNoTextBox.Text, ReqLocTextBox.Text);
     ReqQtyLabel.Text   = ReqQtyHidden.Value;
     AltQtyLabel.Text   = AltQtyHidden.Value;
     ReqAvailLabel.Text = ReqAvailHidden.Value;
     PackPlateScriptManager.SetFocus("ItemNoTextBox");
 }