//Get current employee to display //Called by each received orders controls //Parameter passed by c_orderMaster.employee_id public async Task <string> GetEmployeeName(string employeeID) { var validEmployeesRequest = await GetEmployeeListRequest.SendGetEmployeeListRequest(); c_employeeMaster = RealmManager.Find <Employee>(employeeID); return(c_employeeMaster.first_name); }
public async void RefreshEmployeeList() { RealmManager.RemoveAll <EmployeeList>(); RealmManager.RemoveAll <Employee>(); await GetEmployeeListRequest.SendGetEmployeeListRequest(); uxEmployeeListView.ItemsSource = RealmManager.All <EmployeeList>().FirstOrDefault().employees.ToList(); uxStatisticsButton.Click += uxStatisticsButton_Clicked; }
public async void RefreshEmployeeList() { RealmManager.RemoveAll <EmployeeList>(); RealmManager.RemoveAll <Employee>(); await GetEmployeeListRequest.SendGetEmployeeListRequest(); await GetMenuItemsRequest.SendGetMenuItemsRequest(); uxEmployeeListView.ItemsSource = RealmManager.All <EmployeeList>().FirstOrDefault().employees.ToList(); }
//populating the monthly view popup public async void RefreshMonthlyView() { RealmManager.RemoveAll <OrderList>(); await GetEmployeeListRequest.SendGetEmployeeListRequest(); }
//Gets current employees for the day public async void RefreshEmployeeList() { RealmManager.RemoveAll <EmployeeList>(); RealmManager.RemoveAll <Employee>(); var validEmployeesRequest = await GetEmployeeListRequest.SendGetEmployeeListRequest(); }