Ejemplo n.º 1
0
 private void btnShowCTPX_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (string.IsNullOrEmpty(StaticValue.MaPhieuXuat))
     {
         MessageBox.Show("Vui lòng chọn phiếu xuất để có thể thực hiện được chức năng này!", CommonConstant.MESSAGE_WARNING, MessageBoxButtons.OK, MessageBoxIcon.Warning);
         return;
     }
     //show
     Cursor.Current = Cursors.WaitCursor;
     customersNavigationPage.Controls.Clear();
     NhapXuat.frmChiTietPhieuXuat frm1 = new NhapXuat.frmChiTietPhieuXuat();
     customersNavigationPage.Controls.Add(frm1);
     navigationFrame.SelectedPageIndex = 1;
     navBarControl.ActiveGroup         = customersNavBarGroup;
     Cursor.Current = Cursors.Default;
 }
Ejemplo n.º 2
0
 private void btnShowPhieuXuat_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     employeesNavigationPage.Controls.Clear();
     NhapXuat.frmPhieuXuat frm = new NhapXuat.frmPhieuXuat();
     frm.btnDetails.Click += delegate
     {
         Cursor.Current = Cursors.WaitCursor;
         customersNavigationPage.Controls.Clear();
         NhapXuat.frmChiTietPhieuXuat frm1 = new NhapXuat.frmChiTietPhieuXuat();
         customersNavigationPage.Controls.Add(frm1);
         navigationFrame.SelectedPageIndex = 1;
         navBarControl.ActiveGroup         = customersNavBarGroup;
         Cursor.Current = Cursors.Default;
     };
     employeesNavigationPage.Controls.Add(frm);
 }