} //Doen Finall Function private void kitchenComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e) { CodeOfKitchens = Classes.RetrieveKitchenCode(Kitchencbx.SelectedItem.ToString(), StoreIDcbx.SelectedItem.ToString()); LoadAllBulkItems(); Details.Visibility = Visibility.Hidden; ItemsDetails.Visibility = Visibility.Visible; } //Doen Finall Function
private void Button_Click(object sender, RoutedEventArgs e) { if (WorkStation_no.Text == "" || Restaurant_cbx.Text == "" || Kitchen_cbx.Text == "") { MessageBox.Show("Null Fields"); return; } string ResturantCode = Classes.RetrieveRestaurantCode(Restaurant_cbx.SelectedItem.ToString()); string KitchenCode = Classes.RetrieveKitchenCode(Kitchen_cbx.SelectedItem.ToString(), Restaurant_cbx.SelectedItem.ToString()); if (WorkStation_no.Text.Length == 1) { WorkStation_no.Text = "0" + WorkStation_no.Text; } if (ResturantCode.Length == 1) { ResturantCode = "0" + ResturantCode; } if (KitchenCode.Length == 1) { KitchenCode = "0" + KitchenCode; } string WorkStationInfo = WorkStation_no.Text + "," + ResturantCode + "," + KitchenCode + "," + WorkStation_Name.Text; File.WriteAllText("Workstation.dll", WorkStationInfo); Classes.LogTable(WorkStationInfo, WorkStation_Name.Text, "WS", "Update"); MessageBox.Show("Saved"); Classes.GetWS(); }
private void KitchenBtn_Click(object sender, RoutedEventArgs e) { All_Kitchens allKitchen = new All_Kitchens(this, ShipTo.Text); allKitchen.ShowDialog(); KitchenCode = Classes.RetrieveKitchenCode(KitchenShipTo.Text, ShipTo.Text); }
} //Done private void Kitchencbx_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (Outletcbx.Text != "") { ValOfKitchen = Classes.RetrieveKitchenCode(Kitchencbx.SelectedItem.ToString(), Outletcbx.SelectedItem.ToString()); TheInventoryDetails.IsEnabled = true; } } //Done
} //Done private void ComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (Kitchencbx.SelectedItem != null) { ValOfKitchen = Classes.RetrieveKitchenCode(Kitchencbx.SelectedItem.ToString(), Outletcbx.SelectedItem.ToString()); Adjact.Visibility = Visibility.Visible; NumberOfItemText.Visibility = Visibility.Visible; TotalofItems.Visibility = Visibility.Visible; NUmberOfItems.Visibility = Visibility.Visible; Total_Price.Visibility = Visibility.Visible; Adjact.IsEnabled = true; adjacChose.Visibility = Visibility.Hidden; AdjacInfo.Visibility = Visibility.Visible; addItemBtn.Visibility = Visibility.Visible; RemoveItemBtn.Visibility = Visibility.Visible; LoadAllReasons(); Serial_Adjacment_NO.Text = Classes.InCrementTransactionSerial("Adjacment_tbl", "Adjacment_ID"); } } //Done