Esempio n. 1
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            frmAddEditAcceptance frm = new frmAddEditAcceptance(MethodType.Add, new AIReports()
            {
                PRId = purchaseRequests.Id
            });

            frm.ShowDialog();
            Init();
        }
Esempio n. 2
0
 private void btnEditPQRepo_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     try
     {
         if (AIGridView.GetFocusedRow() is AIReports item)
         {
             item = new UnitOfWork().AIReportsRepo.Find(x => x.Id == item.Id);
             frmAddEditAcceptance frm = new frmAddEditAcceptance(MethodType.Edit, item);
             frm.ShowDialog();
         }
     }
     catch (Exception exception)
     {
     }
 }