Beispiel #1
0
        private void удалитьToolStripMenuItem_Click(object sender, EventArgs e)
        {
            connection StaffConnectuon = new connection();
            //StaffConnectuon.Open();
            StaffConnectuon.delete("Сотрудники", "[Код сотрудника]", Convert.ToString(dataGridView1.Rows[dataGridView1.CurrentRow.Index].Cells[0].Value));

            // StaffConnectuon.Close();
        }
Beispiel #2
0
 private void btnDelIll_Click(object sender, EventArgs e)
 {
     connection IllConnection = new connection();
     IllConnection.delete("Больничные", "[Код больничного]", Convert.ToString(dataGridView3.Rows[dataGridView3.CurrentRow.Index].Cells[0].Value));
     dataGridView3.DataSource = FillDGV("*", "Больничные", "[Код сотрудника] = " + IDPerson);
 }
Beispiel #3
0
 private void btnDelFamily_Click(object sender, EventArgs e)
 {
     connection FamilyConnection = new connection();
     FamilyConnection.delete("[Состав семьи]", "[Код семьи]", Convert.ToString(dataGridView1.Rows[dataGridView1.CurrentRow.Index].Cells[0].Value));
     dataGridView1.DataSource = FillDGV("*", "[Состав семьи]", "[Код сотрудника] = " + IDPerson);
 }
Beispiel #4
0
 private void btnDelHoly_Click(object sender, EventArgs e)
 {
     connection HolyConnection = new connection();
     HolyConnection.delete("Отпуска", "[Код отпуска]", Convert.ToString(dataGridView2.Rows[dataGridView2.CurrentRow.Index].Cells[0].Value));
     dataGridView2.DataSource = FillDGV("*", "Отпуска", "[Код сотрудника] = " + IDPerson);
 }
Beispiel #5
0
 private void btnDelDiplom_Click(object sender, EventArgs e)
 {
     connection DiplomConnection = new connection();
     DiplomConnection.delete("Диплом", "[Код диплома]", Convert.ToString(dataGridView0.Rows[dataGridView0.CurrentRow.Index].Cells[0].Value));
     dataGridView0.DataSource = FillDGV("*", "Диплом", "[Код сотрудника] = " + IDPerson);
 }