private void btn_inlog_Click(object sender, EventArgs e) { Login_Service login = new Login_Service(); //Login_DAO login = new Login_DAO(); Inlog inlog = new Inlog(); string password = txt_Password.Text; inlog = login.GetEmployeeWithPassword(int.Parse(password)); if (inlog.functie == "manager" && inlog.wachtwoord == txt_Password.Text) { this.Hide(); ManagementActionForm managementOverview = new ManagementActionForm(inlog); managementOverview.Show(); } else if (inlog.functie == "barman" || inlog.functie == "kok" && inlog.wachtwoord == txt_Password.Text) { this.Hide(); KitchenActionForm kitchenAndBar = new KitchenActionForm(inlog); kitchenAndBar.Show(); } else if (inlog.functie == "bediening" && inlog.wachtwoord == txt_Password.Text) { this.Hide(); TableForm table = new TableForm(inlog); table.Show(); } else { lbl_IncorrectPassword.ForeColor = Color.Red; lbl_IncorrectPassword.Text = "Incorrect wachtwoord, probeer opnieuw"; txt_Password.Clear(); } }
private void btn_Terug_Click(object sender, EventArgs e) { TableForm form = new TableForm(werknemer); this.Close(); form.Show(); }
private void btnBetaald_Click(object sender, EventArgs e) { TableForm form = new TableForm(werknemer); //string paymenttype; string comment = txtboxOpmerking.Text; string amountWithBtwS = bon.totaalprijs.ToString().Replace(',', '.'); string tipS = bon.fooi.ToString().Replace(',', '.'); //bon.bestelling_ID //paymenttype = PaymentType(); //if(paymenttype != "") //{ orderService.Paid(tafel_ID, amountWithBtwS, tipS, comment, bon.bestelling_ID); tafelService.EditStatus(tafel_ID, false); MessageBox.Show("De bestelling is betaald!"); this.Close(); form.Show(); //} }