Exemplo n.º 1
0
        public ArrayList GetInventIngredient(string storeId, string itemNum)
        {
            DataTable ingredient = getGui.GetIngredient(itemNum, storeId);
            ArrayList re         = new ArrayList();

            for (int i = 0; i < ingredient.Rows.Count; i++)
            {
                Ingredient ingre = new Ingredient(ingredient.Rows[i]["Ingredient"].ToString(), ingredient.Rows[i]["ItemName"].ToString(),
                                                  Convert.ToSingle(ingredient.Rows[i]["Quantity"]), Convert.ToInt32(ingredient.Rows[i]["Measurement"]),
                                                  Convert.ToSingle(ingredient.Rows[i]["Yield"]), Convert.ToDecimal(ingredient.Rows[i]["Cost"]));
                ingre.Instock = Convert.ToSingle(ingredient.Rows[i]["In_Stock"]);
                re.Add(ingre);
            }
            return(re);
        }