示例#1
0
 public All_Kitchens(GenerateBatch _GenerateBatch, string Restaurant)
 {
     InitializeComponent();
     resturant     = Restaurant;
     generateBatch = _GenerateBatch;
     LoadKitchens("GenerateBatch");
 }
示例#2
0
 public ParentItemInRecipe(string RecipeItem, string ItemQtyy, string Unitt, string RecipeQtyy, string Recipeunit, string RecipeGenerationQty, string valofResturantt, string valofKitchenn, GenerateBatch generate)
 {
     InitializeComponent();
     generateBatch = generate;
     Dataa.Columns.Add("Select", typeof(bool));
     Dataa.Columns.Add("Code");
     Dataa.Columns.Add("Name");
     Dataa.Columns.Add("Qty");
     Dataa.Columns.Add("Unit");
     Dataa.Columns.Add("SelectedQty");
     valofResturant       = valofResturantt;
     valofKitchen         = valofKitchenn;
     ItemQty              = ItemQtyy;
     RecipeUnit           = Unitt;
     RecipeQty            = RecipeQtyy;
     RecipeUnitDefination = Recipeunit;
     RecipeQeneration     = RecipeGenerationQty;
     ItemQtytxt.Text      = (float.Parse(ItemQtyy) * float.Parse(RecipeGenerationQty)).ToString();
     ItemUnittxt.Text     = Unitt;
     LoadAllItems(RecipeItem);
 }
示例#3
0
 public AllRecipes(GenerateBatch _GererateBatch)
 {
     InitializeComponent();
     LoadToGrid();
     generatebatch = _GererateBatch;
 }
示例#4
0
        private void ListViewMenu_SelectionChanged(object sender, MouseButtonEventArgs e)
        {
            if ((sender as ListView).SelectedItems.Count > 0)
            {
                BackGroundImage.Visibility = Visibility.Hidden;
                UserControl usc = null;
                GridMain.Children.Clear();

                try
                {
                    switch (((ListViewItem)((ListView)sender).SelectedItem).Name)
                    {
                    case "Items":
                        usc = new Food_Cost.NewItems_Food_Cost();
                        GridMain.Children.Add(usc);
                        NameofForm.Text = "Items";
                        break;

                    case "PurchaseOrder":
                        usc = new PurchaseOrder();
                        GridMain.Children.Add(usc);
                        NameofForm.Text = "Purchase Orders";
                        break;

                    case "RecieveOrder":
                        usc = new RecieveOrder();
                        GridMain.Children.Add(usc);
                        NameofForm.Text = "Recieve Orders";
                        break;


                    case "Transfer_Kitchen":
                        usc = new Transfer_Kitchens();
                        GridMain.Children.Add(usc);
                        NameofForm.Text = "Transfer Kitchen";
                        break;

                    case "Transfer_Resturant":
                        usc = new Transfer_Resturant();
                        GridMain.Children.Add(usc);
                        NameofForm.Text = "Transfer Restaurant";
                        break;

                    case "Inventory":
                        usc = new Store_Sertup();
                        GridMain.Children.Add(usc);
                        NameofForm.Text = "Restaurants";
                        break;

                    case "Vendors":
                        usc = new Vendors();
                        GridMain.Children.Add(usc);
                        NameofForm.Text = "Vendors";
                        break;

                    case "KitcheItemsn":
                        usc = new KitcheItemsn();
                        GridMain.Children.Add(usc);
                        NameofForm.Text = "Kitchen Items";
                        break;

                    case "Recipes":
                        usc = new Recipes();
                        GridMain.Children.Add(usc);
                        NameofForm.Text = "Recipes";
                        break;

                    case "GenerateBatch":
                        usc = new GenerateBatch();
                        GridMain.Children.Add(usc);
                        NameofForm.Text = "Generate Batch";
                        break;


                    case "CategoriesAndSub":
                        usc = new CategoriesAndSub();
                        GridMain.Children.Add(usc);
                        NameofForm.Text = "Recipe Category And Recipe SUbCategory";
                        break;

                    case "ProcessBulkItems":
                        usc = new ProcessBulkItem();
                        GridMain.Children.Add(usc);
                        NameofForm.Text = "Process Bulk Items";
                        break;

                    case "Adjustment":
                        usc = new AdjacmentInventory();
                        GridMain.Children.Add(usc);
                        NameofForm.Text = "adjustment";
                        break;

                    case "AdjustmentReasons":
                        usc = new AdjacmentsReasons();
                        GridMain.Children.Add(usc);
                        NameofForm.Text = "adjustment Reason";
                        break;

                    case "StockInventory":
                        usc = new StockInventory();
                        GridMain.Children.Add(usc);
                        NameofForm.Text = "Stock Inventory";
                        break;

                    case "PhysicalInventory":
                        usc = new PhysicalInventory();
                        GridMain.Children.Add(usc);
                        NameofForm.Text = "Physical Inventory";
                        break;

                    case "OutletRecipeSubtraction":
                        usc = new OutletRecipeSubtraction();
                        GridMain.Children.Add(usc);
                        NameofForm.Text = "POS Recipe Subtraction";
                        break;

                    case "Users":
                        usc = new Users();
                        GridMain.Children.Add(usc);
                        NameofForm.Text = "User";
                        break;

                    case "Units":
                        usc = new Units();
                        GridMain.Children.Add(usc);
                        NameofForm.Text = "Units";
                        break;

                    case "CenterSetup":
                        setup window = new setup();
                        window.Owner = this;
                        window.ShowDialog();
                        NameofForm.Text = "Setup Center";
                        break;
                    }
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.ToString());
                }
            }
        }
示例#5
0
 public All_Resturants(GenerateBatch _GenerateBatch)
 {
     InitializeComponent();
     generateBatch = _GenerateBatch;
     LoadResturants("GenerateBatch");
 }