コード例 #1
0
        private async void CurrentStockButton_Click(object sender, RoutedEventArgs e)
        {
            DataTable SerEmpCliStats = await controller.GetStock();

            StatisticsWindow statisticsWindow = new StatisticsWindow(SerEmpCliStats);

            statisticsWindow.Show();
        }
コード例 #2
0
        //admin and employee role
        //get the PartSupplies view
        private async void IncomingPartSuppliesButton_Click(object sender, RoutedEventArgs e)
        {
            DataTable SerEmpCliStats = await controller.GetAllTable("PartSupplies");

            StatisticsWindow statisticsWindow = new StatisticsWindow(SerEmpCliStats);

            statisticsWindow.Show();
        }
コード例 #3
0
        //Admin and Employee
        //Get Services With Most Clients
        private async void SersWithMostCli_Click(object sender, RoutedEventArgs e)
        {
            DataTable statsBr = await controller.GetSerWithMostCli();

            StatisticsWindow statisticsWindow = new StatisticsWindow(statsBr);

            statisticsWindow.Show();
        }
コード例 #4
0
        //Get Employees With no Projects
        private async void EmpWithoutProj_Click(object sender, RoutedEventArgs e)
        {
            DataTable statsBr = await controller.GetEmpWithoutProj();

            StatisticsWindow statisticsWindow = new StatisticsWindow(statsBr);

            statisticsWindow.Show();
        }
コード例 #5
0
        //Get Statistics about Salary by Branch
        private async void EmpSalaryStatsBr_Click(object sender, RoutedEventArgs e)
        {
            DataTable statsBr = await controller.GetSalStatisticsBr();

            StatisticsWindow statisticsWindow = new StatisticsWindow(statsBr);

            statisticsWindow.Show();
        }
コード例 #6
0
        //Get Select Employee Suboridinates
        private async void EmpSubordinates_Click(object sender, RoutedEventArgs e)
        {
            //if no row is selected
            if (EmployeesDataGrid.SelectedCells.Count == 0)
            {
                MessageBox.Show("No Employee is Selected", "Select an Employee");
                return;
            }

            DataTable statsBr = await controller.GetEmpSubordinates(employeesSelectedCells[0]);

            StatisticsWindow statisticsWindow = new StatisticsWindow(statsBr);

            statisticsWindow.Show();
        }