me (); = Convert.ToDateTime (monthCalendar1.TodayDate.Date.ToShortDateString ());
{insSQL2 = "Insert into Бухгалтерія values ​​(" + id + ","
+ int.Parse (textBox12.Text) + "," + int.Parse (textBox13.Text) + ")"; insCom2 = new OleDbCommand (insSQL2, con); insSQL = "Insert into Співробітники values ​​(" + id + ", '"
+ textBox1.Text + "','" + textBox2.Text + "','" + textBox3.Text + "','"
+ textBox4.Text + "','" + textBox5.Text + "','" + textBox6.Text + "','"
+ textBox7.Text + "','" + textBox8.Text + "','" + textBox9.Text + "','"
+ Convert.ToDateTime (today) + "')"; insCom = new OleDbCommand (insSQL, con); insSQL3 = "Insert into Посади values ​​(" + id + ", "
+ int.Parse (comboBox1.SelectedItem.ToString ()) + ", '" + textBox10.Text + "', '" + textBox11.Text + "'," ;
+ int.Parse (comboBox1.SelectedItem.ToString ()) + ")"; insCom3 = new OleDbCommand (insSQL3, con); (insCom2.ExecuteNonQuery () == 1 && ; insCom.ExecuteNonQuery () == 1 && insCom3.ExecuteNonQuery () == 1). Show ("Запис добавлена", "Додавання", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
{. Show ("Введені некоректні дані", "Додавання", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
}
}