private void DoAddFiringReason(object sender, RoutedEventArgs e) { EmployeeController.DoAddFiringReason(reasonText.Text); HRDHomePage hrdHomePage = new HRDHomePage(); this.NavigationService.Navigate(hrdHomePage); MessageBox.Show("Reason Added !"); }
private void DoChangeStatus(object sender, RoutedEventArgs e) { int id; Int32.TryParse(idText.Text, out id); EmployeeController.DoChangeEmployeeStatus(id); HRDHomePage hrdHomePage = new HRDHomePage(); this.NavigationService.Navigate(hrdHomePage); MessageBox.Show("Employee Status Changed !"); }
private void DoGiveResponse(object sender, RoutedEventArgs e) { int id; Int32.TryParse(idText.Text, out id); EmployeeController.DoChangePermissionStatus(id, responseText.Text); HRDHomePage hrdHomePage = new HRDHomePage(); this.NavigationService.Navigate(hrdHomePage); MessageBox.Show("Response Sent !"); }
private void DoRequestSalary(object sender, RoutedEventArgs e) { int id, raiseSalary; Int32.TryParse(idText.Text, out id); Int32.TryParse(salaryText.Text, out raiseSalary); EmployeeController.DoRequestRaiseSalary(id, raiseSalary); HRDHomePage hrdHomePage = new HRDHomePage(); this.NavigationService.Navigate(hrdHomePage); MessageBox.Show("Request Sent !"); }
private void DoRegisterButton(object sender, RoutedEventArgs e) { String[] employeeData = new String[10]; employeeData[0] = usernameText.Text; employeeData[1] = fullnameText.Text; employeeData[2] = emailText.Text; employeeData[3] = passwordText.Password; employeeData[4] = phoneNumberText.Text; employeeData[5] = addressText.Text; employeeData[6] = genderBox.Text; employeeData[7] = departmentBox.Text; EmployeeController.DoInsertEmployee(employeeData); HRDHomePage hrdHomePage = new HRDHomePage(); this.NavigationService.Navigate(hrdHomePage); MessageBox.Show("Register Success"); }