private void Button11_Click(object sender, EventArgs e) { dep p; p = Organisation.Start; while (comboBox1.GetItemText(comboBox1.SelectedItem) != p.info.FirstName1 + " " + p.info.Name1 + " " + p.info.FatherName1) { p = p.next; } Departments manager = new Departments(); manager = p.info; comboBox6.Items.Clear(); man x = manager.Start1; while (x != null) { comboBox6.Items.Add(x.info.FirstName1 + " " + x.info.Name1 + " " + x.info.FatherName1); x = x.next; } MessageBox.Show("Выбраны сотрудники данного администратора"); }
private void Button2_Click(object sender, EventArgs e) { dep p; p = Organisation.Start; while (comboBox1.GetItemText(comboBox1.SelectedItem) != p.info.FirstName1 + " " + p.info.Name1 + " " + p.info.FatherName1) { p = p.next; } Departments manager = new Departments(); manager = p.info; man x = manager.Start1; while (comboBox6.GetItemText(comboBox6.SelectedItem) != x.info.FirstName1 + " " + x.info.Name1 + " " + x.info.FatherName1) { x = x.next; } richTextBox1.Text = x.info.INFO(); }
private void Button6_Click(object sender, EventArgs e) { dep p; p = Organisation.Start; while (comboBox3.GetItemText(comboBox3.SelectedItem) != p.info.FirstName1 + " " + p.info.Name1 + " " + p.info.FatherName1) { p = p.next; } Departments manager = new Departments(); manager = p.info; man x = manager.Start1; while (comboBox4.GetItemText(comboBox4.SelectedItem) != x.info.FirstName1 + " " + x.info.Name1 + " " + x.info.FatherName1) { x = x.next; } MessageBox.Show("Зарплата сотрудника за год равна: " + x.info.plusCash()); }
private void Button5_Click(object sender, EventArgs e) { dep p; p = Organisation.Start; while (comboBox3.GetItemText(comboBox3.SelectedItem) != p.info.FirstName1 + " " + p.info.Name1 + " " + p.info.FatherName1) { p = p.next; } Departments manager = new Departments(); manager = p.info; man x = manager.Start1; while (comboBox4.GetItemText(comboBox4.SelectedItem) != x.info.FirstName1 + " " + x.info.Name1 + " " + x.info.FatherName1) { x = x.next; } MessageBox.Show("Зарплата сотрудника за данный месяц равна: " + x.info.requestCash(Convert.ToInt32(comboBox5.GetItemText(comboBox5.SelectedItem)))); }
private void Button4_Click(object sender, EventArgs e) { dep p; p = Organisation.Start; while (comboBox3.GetItemText(comboBox3.SelectedItem) != p.info.FirstName1 + " " + p.info.Name1 + " " + p.info.FatherName1) { p = p.next; } Departments manager = new Departments(); manager = p.info; man x = manager.Start1; while (comboBox4.GetItemText(comboBox4.SelectedItem) != x.info.FirstName1 + " " + x.info.Name1 + " " + x.info.FatherName1) { x = x.next; } x.info.Cash(Convert.ToInt32(comboBox5.GetItemText(comboBox5.SelectedItem)), Convert.ToInt32(textBox7.Text)); MessageBox.Show("Зарплата за данный месяц добавлена/изменена"); }
public man(Worker worker) { info = worker; prev = null; next = null; }