private void bt_Cancel_Click(object sender, RoutedEventArgs e) { Chek ps2 = new Chek(); ps2.Show(); Hide(); }
private void bt_Insert_Chek_Click(object sender, RoutedEventArgs e) { procedures.Chek_Insert(Convert.ToInt32(tb_Number_Chek.Text.ToString()), tb_Date_Pechat.Text.ToString(), Convert.ToInt32(cb_Sotrudnik_Info.SelectedValue.ToString()), Convert.ToInt32(cb_Klient_Info.SelectedValue.ToString()), Convert.ToInt32(cb_Name_Tovar.SelectedValue.ToString()), Convert.ToInt32(cb_Name_Type_Zakaz.SelectedValue.ToString())); dgFill(QR); Chek ps2 = new Chek(); ps2.Show(); Hide(); }
private void bt_Update_Chek_Click(object sender, RoutedEventArgs e) { DataRowView ID = (DataRowView)dgChek.SelectedItems[0]; procedures.Chek_Update(Convert.ToInt32(ID["ID_Chek"]), Convert.ToInt32(tb_Number_Chek.Text.ToString()), tb_Date_Pechat.Text.ToString(), Convert.ToInt32(cb_Sotrudnik_Info.SelectedValue.ToString()), Convert.ToInt32(cb_Klient_Info.SelectedValue.ToString()), Convert.ToInt32(cb_Name_Tovar.SelectedValue.ToString()), Convert.ToInt32(cb_Name_Type_Zakaz.SelectedValue.ToString())); Chek ps2 = new Chek(); ps2.Show(); Hide(); }