public void PopulateOrdersListDropdowns() { if (window.sortByDropdown != null) { window.sortByDropdown.titleText.text = "Order Name ABC"; List <ListMode> modeList = new List <ListMode>(); ListMode.ListModeType modeType = ListMode.ListModeType.SortBy; modeList.Add(new ListMode("Order Name ABC", modeType)); modeList.Add(new ListMode("Order Name ZYX", modeType)); modeList.Add(new ListMode("Vendor ABC", modeType)); modeList.Add(new ListMode("Vendor ZYX", modeType)); modeList.Add(new ListMode("Earliest Delivery", modeType)); modeList.Add(new ListMode("Latest Delivery", modeType)); modeList.Add(new ListMode("Smallest Delivery", modeType)); modeList.Add(new ListMode("Largest Delivery", modeType)); //modeList.Add(new ListMode("Low Price", modeType)); //modeList.Add(new ListMode("High Price", modeType)); window.sortByDropdown.PopulateDropdownList(modeList); } if (window.filterDropdown != null) { window.filterDropdown.titleText.text = "All"; List <ListMode> modeList = new List <ListMode>(); ListMode.ListModeType modeType = ListMode.ListModeType.Filter; modeList.Add(new ListMode("All", modeType)); modeList.Add(new ListMode("Due Today", modeType)); window.filterDropdown.PopulateDropdownList(modeList); } window.searchBar.SetPlaceholder("Search orders..."); window.searchBar.window = window; window.searchBar.searchBar.onValueChanged.AddListener(delegate { SearchOrderList(); }); window.searchBar.searchBar.onEndEdit.AddListener(delegate { SearchOrderList(); }); window.searchBar.searchButton.onClick.AddListener(() => SearchOrderList()); }
/* public void PopulateFinancesDropdowns() * { * if (window.sortByDropdown != null) * { * List<ListMode> modeList = new List<ListMode>(); * ListMode.ListModeType modeType = ListMode.ListModeType.SortBy; * modeList.Add(new ListMode("Name ABC", modeType)); * modeList.Add(new ListMode("Product ABC", modeType)); * modeList.Add(new ListMode("Signing Cost", modeType)); * modeList.Add(new ListMode("Delivery Cost", modeType)); * window.sortByDropdown.PopulateDropdownList(modeList); * } * if (window.viewDropdown != null) * { * List<ListMode> modeList = new List<ListMode>(); * ListMode.ListModeType modeType = ListMode.ListModeType.View; * modeList.Add(new ListMode("All", modeType)); * modeList.Add(new ListMode("Bud", modeType)); * modeList.Add(new ListMode("Bowls", modeType)); * modeList.Add(new ListMode("Bongs", modeType)); * modeList.Add(new ListMode("Edibles", modeType)); * modeList.Add(new ListMode("General", modeType)); * modeList.Add(new ListMode("Glass Bongs", modeType)); * modeList.Add(new ListMode("Glass Pipes", modeType)); * modeList.Add(new ListMode("Pipes", modeType)); * modeList.Add(new ListMode("Plastic Bongs", modeType)); * modeList.Add(new ListMode("Plastic Pipes", modeType)); * modeList.Add(new ListMode("Rolling Paper", modeType)); * modeList.Add(new ListMode("Seeds", modeType)); * window.viewDropdown.PopulateDropdownList(modeList); * } * if (window.locationDropdown != null) * { * * } * }*/ // ------------------------------------- // Staff Window // ----- public void PopulateStaffDropdowns() { if (window.sortByDropdown != null) { List <ListMode> modeList = new List <ListMode>(); ListMode.ListModeType modeType = ListMode.ListModeType.SortBy; modeList.Add(new ListMode("Name ABC", modeType)); modeList.Add(new ListMode("Name ZYX", modeType)); modeList.Add(new ListMode("Job ABC", modeType)); modeList.Add(new ListMode("Job ZYX", modeType)); modeList.Add(new ListMode("Pay Rate", modeType)); modeList.Add(new ListMode("Happiness", modeType)); modeList.Add(new ListMode("Work Experience", modeType)); // Time since hire window.sortByDropdown.PopulateDropdownList(modeList); } if (window.filterDropdown != null) { // List all jobs that are assigned to workers (need method to look at all staff and determine which jobs to put in the dropdown List <ListMode> modeList = new List <ListMode>(); ListMode.ListModeType modeType = ListMode.ListModeType.Filter; modeList.Add(new ListMode("All", modeType)); modeList.Add(new ListMode("Cashier", modeType)); modeList.Add(new ListMode("Budtender", modeType)); modeList.Add(new ListMode("Security", modeType)); /* * modeList.Add(new ListMode("Extra1", modeType)); * modeList.Add(new ListMode("Extra2", modeType)); * modeList.Add(new ListMode("Extra3", modeType)); * modeList.Add(new ListMode("Extra4", modeType)); * modeList.Add(new ListMode("Extra5", modeType)); * modeList.Add(new ListMode("Extra6", modeType)); * modeList.Add(new ListMode("Extra7", modeType)); * modeList.Add(new ListMode("Extra8", modeType)); * modeList.Add(new ListMode("Extra9", modeType)); * modeList.Add(new ListMode("Extra10", modeType)); * modeList.Add(new ListMode("Extra11", modeType)); * modeList.Add(new ListMode("Extra12", modeType)); */ window.filterDropdown.PopulateDropdownList(modeList); } /*if (window.locationDropdown != null) * { * List<ListMode> modeList = new List<ListMode>(); * ListMode.ListModeType modeType = ListMode.ListModeType.Location; * modeList.Add(new ListMode("All", modeType)); * modeList.Add(new ListMode("MainStore", modeType)); * modeList.Add(new ListMode("SmokeLounge", modeType)); * modeList.Add(new ListMode("Storage", modeType)); * modeList.Add(new ListMode("Workshop", modeType)); * modeList.Add(new ListMode("GlassShop", modeType)); * modeList.Add(new ListMode("Processing", modeType)); * modeList.Add(new ListMode("Growroom", modeType)); * }*/ window.searchBar.SetPlaceholder("Search staff..."); window.searchBar.window = window; window.searchBar.searchBar.onValueChanged.AddListener(delegate { SearchStaffList(); }); window.searchBar.searchBar.onEndEdit.AddListener(delegate { SearchStaffList(); }); window.searchBar.searchButton.onClick.AddListener(() => SearchStaffList()); }
public void PopulateDropdowns() { if (window.sortByDropdown != null) { List <ListMode> modeList = new List <ListMode>(); ListMode.ListModeType modeType = ListMode.ListModeType.SortBy; modeList.Add(new ListMode("Name ABC", modeType)); modeList.Add(new ListMode("Name ZYX", modeType)); modeList.Add(new ListMode("Function ABC", modeType)); modeList.Add(new ListMode("Function ZYX", modeType)); modeList.Add(new ListMode("Low Price", modeType)); modeList.Add(new ListMode("High Price", modeType)); window.sortByDropdown.PopulateDropdownList(modeList); } if (window.filterDropdown != null) { List <ListMode> modeList = new List <ListMode>(); ListMode.ListModeType modeType = ListMode.ListModeType.Filter; modeList.Add(new ListMode("All", modeType)); modeList.Add(new ListMode("Budtender Counters", modeType)); modeList.Add(new ListMode("Checkout Counters", modeType)); modeList.Add(new ListMode("Decoration", modeType)); modeList.Add(new ListMode("Display Shelves", modeType)); modeList.Add(new ListMode("Security", modeType)); modeList.Add(new ListMode("Storage Shelves", modeType)); modeList.Add(new ListMode("Wall Decoration", modeType)); modeList.Add(new ListMode("Wall Display Shelves", modeType)); window.filterDropdown.PopulateDropdownList(modeList); } window.searchBar.SetPlaceholder("Search store objects..."); window.searchBar.window = window; window.searchBar.searchBar.onValueChanged.AddListener(delegate { SearchStoreObjectList(); }); window.searchBar.searchBar.onEndEdit.AddListener(delegate { SearchStoreObjectList(); }); window.searchBar.searchButton.onClick.AddListener(() => SearchStoreObjectList()); }
public void PopulateMyVendorListDropdowns() { if (window.sortByDropdown != null) { window.sortByDropdown.titleText.text = "Name ABC"; List <ListMode> modeList = new List <ListMode>(); ListMode.ListModeType modeType = ListMode.ListModeType.SortBy; modeList.Add(new ListMode("Name ABC", modeType)); modeList.Add(new ListMode("Name ZYX", modeType)); //modeList.Add(new ListMode("Function ABC", modeType)); //modeList.Add(new ListMode("Function ZYX", modeType)); //modeList.Add(new ListMode("Low Price", modeType)); //modeList.Add(new ListMode("High Price", modeType)); window.sortByDropdown.PopulateDropdownList(modeList); } if (window.filterDropdown != null) { window.filterDropdown.titleText.text = "All"; List <ListMode> modeList = new List <ListMode>(); ListMode.ListModeType modeType = ListMode.ListModeType.Filter; modeList.Add(new ListMode("All", modeType)); modeList.Add(new ListMode("Accessories", modeType)); modeList.Add(new ListMode("Bud", modeType)); modeList.Add(new ListMode("Bowls", modeType)); modeList.Add(new ListMode("Bongs", modeType)); modeList.Add(new ListMode("Dabs", modeType)); modeList.Add(new ListMode("Edibles", modeType)); modeList.Add(new ListMode("General", modeType)); modeList.Add(new ListMode("Grinders", modeType)); modeList.Add(new ListMode("Glass Bongs", modeType)); modeList.Add(new ListMode("Glass Pipes", modeType)); modeList.Add(new ListMode("Hash Oils", modeType)); modeList.Add(new ListMode("Pipes", modeType)); modeList.Add(new ListMode("Plastic Bongs", modeType)); modeList.Add(new ListMode("Plastic Pipes", modeType)); modeList.Add(new ListMode("Rolling Paper", modeType)); modeList.Add(new ListMode("Seeds", modeType)); modeList.Add(new ListMode("Tinctures", modeType)); modeList.Add(new ListMode("Topicals", modeType)); window.filterDropdown.PopulateDropdownList(modeList); } window.searchBar.SetPlaceholder("Search my vendors..."); window.searchBar.window = window; window.searchBar.searchBar.onValueChanged.AddListener(delegate { SearchVendorList(); }); window.searchBar.searchBar.onEndEdit.AddListener(delegate { SearchVendorList(); }); window.searchBar.searchButton.onClick.AddListener(() => SearchVendorList()); }