Beispiel #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            if (dataGridView_family.Rows.Count == 0)
            {
                return;
            }
            int     selRowNum = dataGridView_family.SelectedCells[0].RowIndex;
            decimal tabNumber = (decimal)dataGridView_family.Rows[selRowNum].Cells[2].Value;

            if (priem.Checked == true)
            {
                PriemWorkPrikaz priemWorkPrikaz = new PriemWorkPrikaz(tabNumber);
                priemWorkPrikaz.Show();
            }

            if (deletework.Checked == true)
            {
                DelWorkPrikaz delWorkPrikaz = new DelWorkPrikaz(tabNumber);
                delWorkPrikaz.Show();
            }

            if (perevod.Checked == true)
            {
                PerevodWorkPrikaz perevodWorkPrikaz = new PerevodWorkPrikaz(tabNumber);
                perevodWorkPrikaz.Show();
            }

            if (comandirovka.Checked == true)
            {
                KomandirovkaForm form = new KomandirovkaForm();
                form.SetOneWorkerByTabelNumber(tabNumber);
                form.Show();
            }
        }
 private void button3_Click(object sender, EventArgs e)
 {
     try
     {
         Model1        model         = new Model1();
         var           card          = model.PERSONCARD.Find(id);
         DelWorkPrikaz delWorkPrikaz = new DelWorkPrikaz(card.TABEL_NUM.Value);
         delWorkPrikaz.Show();
     }
     catch (Exception ex)
     {
         Console.WriteLine("Ошибка при создании приказа об увольнении для карточки с id={} {}", id, ex);
     }
 }
Beispiel #3
0
        private void ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            DelWorkPrikaz deleteWork = new DelWorkPrikaz();

            deleteWork.Show();
        }