예제 #1
0
        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("Выбраны сотрудники данного администратора");
        }
예제 #2
0
        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();
        }
예제 #3
0
        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());
        }
예제 #4
0
        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))));
        }
예제 #5
0
        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("Зарплата за данный месяц добавлена/изменена");
        }
예제 #6
0
 public man(Worker worker)
 {
     info = worker;
     prev = null;
     next = null;
 }