public void initStockItems(StockItemsRepo sir) { Tuple <int, int, int>[] stockitems = { // West Manhattan Mcdonald's new Tuple <int, int, int> (1, 1, 800), new Tuple <int, int, int> (2, 1, 30), new Tuple <int, int, int> (3, 1, 16), new Tuple <int, int, int> (4, 1, 1200), new Tuple <int, int, int> (5, 1, 400), new Tuple <int, int, int> (6, 1, 200), new Tuple <int, int, int> (7, 1, 650), // East Manhattan Mcdonald's" new Tuple <int, int, int> (1, 2, 800), new Tuple <int, int, int> (2, 2, 30), new Tuple <int, int, int> (3, 2, 16), new Tuple <int, int, int> (4, 2, 1200), new Tuple <int, int, int> (5, 2, 400), new Tuple <int, int, int> (6, 2, 200), new Tuple <int, int, int> (7, 2, 650), // Lansing Dairy Queen new Tuple <int, int, int> (8, 3, 7), new Tuple <int, int, int> (9, 3, 8), new Tuple <int, int, int>(10, 3, 300), // Manhattan Dairy Queen new Tuple <int, int, int> (8, 4, 7), new Tuple <int, int, int> (9, 4, 8), new Tuple <int, int, int>(10, 4, 300), // Manhattan Chili's new Tuple <int, int, int>(11, 5, 250), new Tuple <int, int, int>(12, 5, 10), new Tuple <int, int, int>(13, 5, 6), // Manhattan Applebee's new Tuple <int, int, int>(14, 6, 13), new Tuple <int, int, int>(15, 6, 6), new Tuple <int, int, int>(16, 6, 10), // Manhattan Buffalo Wild Wings new Tuple <int, int, int>(17, 7, 100), new Tuple <int, int, int>(18, 7, 17), new Tuple <int, int, int>(19, 7, 80), new Tuple <int, int, int>(20, 7, 120), // Legends Outlet Buffalo Wild Wings new Tuple <int, int, int>(17, 8, 100), new Tuple <int, int, int>(18, 8, 17), new Tuple <int, int, int>(19, 8, 80), new Tuple <int, int, int>(20, 8, 120), // Manhattan Taco Bell new Tuple <int, int, int> (5, 9, 200), new Tuple <int, int, int> (7, 9, 200), new Tuple <int, int, int> (9, 9, 300), new Tuple <int, int, int>(11, 9, 200), new Tuple <int, int, int>(13, 9, 8), new Tuple <int, int, int>(23, 9, 150), new Tuple <int, int, int>(24, 9, 30), // Kansas City Taco Bell new Tuple <int, int, int> (5, 10, 200), new Tuple <int, int, int> (7, 10, 200), new Tuple <int, int, int> (9, 10, 300), new Tuple <int, int, int>(11, 10, 200), new Tuple <int, int, int>(13, 10, 8), new Tuple <int, int, int>(23, 10, 150), new Tuple <int, int, int>(24, 10, 30), // Tasty China House new Tuple <int, int, int>(5, 11, 70), new Tuple <int, int, int>(7, 11, 50), new Tuple <int, int, int>(9, 11, 400), new Tuple <int, int, int>(13, 11, 12), new Tuple <int, int, int>(25, 11, 20), new Tuple <int, int, int>(26, 11, 12), new Tuple <int, int, int>(27, 11, 30), new Tuple <int, int, int>(28, 11, 8), // Manhattan Domino's new Tuple <int, int, int>(21, 12, 120), new Tuple <int, int, int>(22, 12, 120), new Tuple <int, int, int>(23, 12, 120), // Lawrence Domino's new Tuple <int, int, int>(21, 13, 120), new Tuple <int, int, int>(22, 13, 120), new Tuple <int, int, int>(23, 13, 120), }; foreach (Tuple <int, int, int> stockitem in stockitems) { sir.CreateStockItems(stockitem.Item1, stockitem.Item2, stockitem.Item3); } }
public cDataBaseForm() { _org = new OrganizationRepo(); _rest = new RestaurantRepository(); _food = new FoodRepo(); _jobs = new JobsRepo(); _stock = new StockItemsRepo(); _emp = new EmployeeRepo(); _suppliers = new SuppliersRepo(); Init_Tables init = new Init_Tables(); InitializeComponent(); cRestOrgComboBox.Items.Clear(); init.initOrgs(_org); init.initRests(_rest); init.initJobs(_jobs); init.initSupps(_suppliers); init.initFoods(_food); init.initStockItems(_stock); IReadOnlyList <Organization> orgs = _org.RetrieveOrganizations(); IReadOnlyList <Restaurant> rests = _rest.RetrieveRestaurants(); IReadOnlyList <Jobs> jobs = _jobs.RetrieveJobs(); init.initEmp(_emp, rests, jobs); IReadOnlyList <Employee> emps = _emp.RetrieveEmployee(); IReadOnlyList <Supplier> supps = _suppliers.RetrieveSuppliers(); IReadOnlyList <Food> foods = _food.RetrieveFood(); IReadOnlyList <StockItem> stockItems = _stock.RetrieveStockItems(); foreach (var org in orgs) { cRestOrgComboBox.Items.Add(org.OrganizationName); orgListBox.Items.Add(org.OrganizationName); cSelectOrgExpendComboBox.Items.Add(org.OrganizationName); } foreach (var rest in rests) { cEmployRestComboBox.Items.Add(rest.RestaurantName); restListBox.Items.Add(rest.RestaurantName); cInventoryRestComboBox.Items.Add(rest.RestaurantName); cSelectRestExpendComboBox.Items.Add(rest.RestaurantName); cSelectRestEmpInfoComboBox.Items.Add(rest.RestaurantName); } foreach (var emp in emps) { empListBox.Items.Add(emp.EmployeeName); } foreach (var job in jobs) { jobsListBox.Items.Add(job.JobName); cEmployJobTitleComboBox.Items.Add(job.JobName); } foreach (var supp in supps) { suppListBox.Items.Add(supp.SuppliersName); cFoodSupplierComboBox.Items.Add(supp.SuppliersName); cSelectSupplierSalesComboBox.Items.Add(supp.SuppliersName); } foreach (var food in foods) { foodListBox.Items.Add(food.FoodName); cInventoryFoodComboBox.Items.Add(food.FoodName); } foreach (var si in stockItems) { invListBox.Items.Add(_rest.GetRestaurantByID(si.RestaurantID).RestaurantName + ": " + _food.GetFoodByID(si.FoodID).FoodName); } }