protected void itemDropDownList_SelectedIndexChanged(object sender, EventArgs e)
        {
            int  itemId = Convert.ToInt32(itemDropDownList.SelectedValue);
            Item item   = stockOutManager.GetReorderLevel(itemId);

            reorderLevelTextBox.Text = item.ReorderLavel.ToString();

            //this code is for available quantity////////////

            StockIn stockIn = new StockIn();

            stockIn.ItemID = itemId;
            StockIn stock = stockOutManager.IsExist(stockIn);

            if (stock == null)
            {
                stockOutTextBox.Text = " ";
                messageLabel.Text    = "Empty Available Quantity";
            }
            else
            {
                StockIn aStockIn = stockOutManager.GetAvailableQuantity(stockIn);
                stockOutTextBox.Text = aStockIn.AvailableQuantity;
            }
        }
        protected void itemDropDownList_SelectedIndexChanged1(object sender, EventArgs e)
        {
            outputLabel.Text = null;
            item             = itemDropDownList.SelectedItem.Text;
            companyId        = Convert.ToInt32(companyDropDownList.SelectedValue);

            availableLabel.Text = stockOutManager.GetAvailable(item, companyId).ToString();
            reorderLabel.Text   = stockOutManager.GetReorderLevel(item, companyId).ToString();
        }
 public int GetReorderLevel(int id)
 {
     return(aStockOutManager.GetReorderLevel(id));
 }