Ejemplo n.º 1
0
        protected void ItemDropDownList_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (itemDropDownList.SelectedIndex > 0)
            {
                int     companyId = Convert.ToInt32(companyDropDownList.SelectedValue);
                string  itemName  = itemDropDownList.SelectedItem.ToString();
                StockIn stockIn   = stockOutManager.GetAvailableStock(companyId, itemName);

                reorderlevelTextBox.Text = stockIn.ReorderLevel.ToString();
                quantityTextBox.Text     = stockIn.AvailableQuantity.ToString();

                stockOutQantityTextBox.Text = "";
                itemLabel.Text = "";
            }
            else
            {
                reorderlevelTextBox.Text = "";
                quantityTextBox.Text     = "";
                itemLabel.Text           = "Please Select a Item";
                itemLabel.ForeColor      = Color.Orange;
            }
        }