예제 #1
0
        //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);
        }
예제 #2
0
        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;
        }
예제 #3
0
        public async void RefreshEmployeeList()
        {
            RealmManager.RemoveAll <EmployeeList>();
            RealmManager.RemoveAll <Employee>();
            await GetEmployeeListRequest.SendGetEmployeeListRequest();

            await GetMenuItemsRequest.SendGetMenuItemsRequest();

            uxEmployeeListView.ItemsSource = RealmManager.All <EmployeeList>().FirstOrDefault().employees.ToList();
        }
예제 #4
0
 //populating the monthly view popup
 public async void RefreshMonthlyView()
 {
     RealmManager.RemoveAll <OrderList>();
     await GetEmployeeListRequest.SendGetEmployeeListRequest();
 }
예제 #5
0
 //Gets current employees for the day
 public async void RefreshEmployeeList()
 {
     RealmManager.RemoveAll <EmployeeList>();
     RealmManager.RemoveAll <Employee>();
     var validEmployeesRequest = await GetEmployeeListRequest.SendGetEmployeeListRequest();
 }