Пример #1
0
        private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (thisStatus == 1)
            {
                using (WinForms.AddInformationAboutElements.AddNakladnaya NewAct = new UchetUSP.WinForms.AddInformationAboutElements.AddNakladnaya(1, dataGridView1[0, dataGridView1.SelectedCells[0].RowIndex].Value.ToString()))
                {
                    NewAct.ShowDialog();
                }
            }
            else if (thisStatus == 2)
            {
                using (WinForms.AddInformationAboutElements.AddNakladnaya NewAct = new UchetUSP.WinForms.AddInformationAboutElements.AddNakladnaya(2, dataGridView1[0, dataGridView1.SelectedCells[0].RowIndex].Value.ToString()))
                {
                    NewAct.ShowDialog();
                }

                UpdateData();

            }
            else if (thisStatus == 3)
            {
                using (WinForms.AddInformationAboutElements.AddNakladnaya NewAct = new UchetUSP.WinForms.AddInformationAboutElements.AddNakladnaya(1, dataGridView1[0, dataGridView1.SelectedCells[0].RowIndex].Value.ToString()))
                {
                    NewAct.ShowDialog();
                }
            }
        }
Пример #2
0
 private void просмотретьToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (WinForms.AddInformationAboutElements.AddNakladnaya NewAct = new UchetUSP.WinForms.AddInformationAboutElements.AddNakladnaya(1, dataGridView1[0, dataGridView1.SelectedCells[0].RowIndex].Value.ToString()))
     {
         NewAct.ShowDialog();
     }
 }
Пример #3
0
 private void оформитьНакладнуюToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (AccessUser.AccessUser.GetRLType(1))
     {
         using (WinForms.AddInformationAboutElements.AddNakladnaya AddNakl = new UchetUSP.WinForms.AddInformationAboutElements.AddNakladnaya(0))
         {
             AddNakl.ShowDialog();
         }
     }
     else
     {
         MessageBox.Show("У Вас нет прав на оформление тебования-накладных!");
     }
 }