Пример #1
0
        private void bvbSignout_ItemClick(object sender, BackstageViewItemEventArgs e)
        {
            try
            {
                foreach (var child in this.MdiChildren)
                {
                    child.Close();
                }

                if (this.MdiChildren.Count() == 0)
                {
                    Application.Restart();
                }
                else
                {
                    BackstageView.Visible = false;
                }
            }
            catch (Exception ex)
            {
                if (CDS.Shared.Exception.UserInterfaceExceptionHandler.HandleException(ref ex))
                {
                    throw ex;
                }
            }
        }
Пример #2
0
 private void bvtiPrint_SelectedChanged(object sender, BackstageViewItemEventArgs e)
 {
     if (backstageViewControl1.SelectedTab == bvtiPrint)
     {
         this.printControl1.InitPrintingSystem();
     }
 }
Пример #3
0
 private void backstageViewButtonItemLogout_ItemClick(object sender, BackstageViewItemEventArgs e)
 {
     if (XtraMessageBox.Show("Bạn có muốn thoát chương trình ?", "Thông báo", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
     {
         Application.Exit();
     }
 }
Пример #4
0
 private void backstageViewControl1_ItemClick(object sender, BackstageViewItemEventArgs e)
 {
     if (modulesNavigator.CurrentModule == null)
     {
         return;
     }
     modulesNavigator.CurrentModule.ButtonClick(string.Format("{0}", e.Item.Tag));
 }
Пример #5
0
 void backstageViewControl_SelectedTabChanged(object sender, BackstageViewItemEventArgs e)
 {
     if (e.Item == tabBackstageViewExport)
     {
         AddBackStageViewModule(ViewModel.SelectedExportModuleType, tabBackstageViewExport);
     }
     if (e.Item == tabBackstageViewPrint)
     {
         AddBackStageViewModule(ViewModel.SelectedPrintModuleType, tabBackstageViewPrint);
     }
 }
Пример #6
0
 private void backstageViewTabItemThoat_ItemPressed(object sender, BackstageViewItemEventArgs e)
 {
     if (XtraMessageBox.Show("Bạn có muốn thoát chương trình ?", "Thông báo", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
     {
         Application.Exit();
     }
     else
     {
         backstageViewControl.Ribbon.HideApplicationButtonContentControl();
     }
 }
Пример #7
0
 private void backstageViewTabItemImport_SelectedChanged(object sender, BackstageViewItemEventArgs e)
 {
     if (backstageViewClientControlImport.Visible)
     {
         if (_ucImport == null)
         {
             _ucImport = new ucImport();
         }
         _ucImport.Dock = DockStyle.Fill;
         backstageViewClientControlImport.Controls.Add(_ucImport);
     }
 }
Пример #8
0
 public void ExitClicked(object sender, BackstageViewItemEventArgs e)
 {
     DialogResult dialogResult = DialogBoxTemplates.ShowYesNoCancelDialogBox(CaseKeeper.AppMainForm, CloudTask_GUI.Properties.Resources.ResourceManager.GetString("SaveChangesInCurrentCase"));
     if (dialogResult != DialogResult.Cancel)
     {
         if (dialogResult == DialogResult.Yes)
         {
             SaveCase();
         }
         CaseKeeper.AppMainForm.Close();
     }
 }
Пример #9
0
        public void ExitClicked(object sender, BackstageViewItemEventArgs e)
        {
            DialogResult dialogResult = DialogBoxTemplates.ShowYesNoCancelDialogBox(CaseKeeper.AppMainForm, CloudTask_GUI.Properties.Resources.ResourceManager.GetString("SaveChangesInCurrentCase"));

            if (dialogResult != DialogResult.Cancel)
            {
                if (dialogResult == DialogResult.Yes)
                {
                    SaveCase();
                }
                CaseKeeper.AppMainForm.Close();
            }
        }
Пример #10
0
 private void bvbExit_ItemClick(object sender, BackstageViewItemEventArgs e)
 {
     try
     {
         Application.Exit();
     }
     catch (Exception ex)
     {
         if (CDS.Shared.Exception.UserInterfaceExceptionHandler.HandleException(ref ex))
         {
             throw ex;
         }
     }
 }
Пример #11
0
 private void backstageViewTabItemCauHinh_SelectedChanged(object sender, BackstageViewItemEventArgs e)
 {
     if (backstageViewClientControlCauHinh.Visible)
     {
         DevExpress.XtraSplashScreen.SplashScreenManager.ShowForm(this, typeof(WaitForm1), true, true, false);
         DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormCaption("Đang tải dữ liệu...");
         if (_ucCauHinh == null)
         {
             _ucCauHinh = new ucCauHinh();
         }
         _ucCauHinh.reLoad();
         _ucCauHinh.Dock = DockStyle.Fill;
         backstageViewClientControlCauHinh.Controls.Add(_ucCauHinh);
         DevExpress.XtraSplashScreen.SplashScreenManager.CloseForm();
     }
 }
Пример #12
0
        private void backstageViewTabItemLogHeThong_ItemPressed(object sender, BackstageViewItemEventArgs e)
        {
            DevExpress.XtraSplashScreen.SplashScreenManager.ShowForm(this, typeof(WaitFormLoad), true, true, false);
            DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormCaption("Đang tải dữ liệu...");
            DBInstance.reNew();
            if (_ucLogHeThong != null)
            {
                ribbonMain.Pages.Remove(ribbonMain.Pages.GetPageByName(rbnPageLogHeThong));
            }

            _ucLogHeThong      = new ucLogHeThong();
            _ucLogHeThong.Dock = DockStyle.Fill;
            addRibbonPage(_ucLogHeThong.getRibbonControl());

            _ucLogHeThong.loadData();
            panelControlMain.Controls.Clear();
            panelControlMain.Controls.Add(_ucLogHeThong);

            ribbonMain.SelectedPage = ribbonMain.Pages.GetPageByName(rbnPageLogHeThong);

            DevExpress.XtraSplashScreen.SplashScreenManager.CloseForm(false);

            _ucLogHeThong.barButtonItemDongTab.ItemClick += barButtonLogHeThongItemDongTab_ItemClick;
        }
Пример #13
0
 private void backstageViewControl1_ItemClick(object sender, BackstageViewItemEventArgs e)
 {
     if(modulesNavigator.CurrentModule == null) return;
     modulesNavigator.CurrentModule.ButtonClick(string.Format("{0}", e.Item.Tag));
 }
Пример #14
0
 private void backstageViewTabItem1_ItemPressed(object sender, BackstageViewItemEventArgs e)
 {
     PlanDurumuListe();
 }
Пример #15
0
 private void backstageViewTabItemCauHinh_SelectedChanged(object sender, BackstageViewItemEventArgs e)
 {
     if(backstageViewClientControlCauHinh.Visible)
     {
         DevExpress.XtraSplashScreen.SplashScreenManager.ShowForm(this, typeof(WaitForm1), true, true, false);
         DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormCaption("Đang tải dữ liệu...");
         if (_ucCauHinh == null) _ucCauHinh = new ucCauHinh();
         _ucCauHinh.reLoad();
         _ucCauHinh.Dock = DockStyle.Fill;
         backstageViewClientControlCauHinh.Controls.Add(_ucCauHinh);
         DevExpress.XtraSplashScreen.SplashScreenManager.CloseForm();
     }
 }
Пример #16
0
 public void DeleteCaseClicked(object sender, BackstageViewItemEventArgs e)
 {
     this.DeleteCase();
 }
Пример #17
0
 private void backstageViewTabItemGiaoDienVaNgonNgu_SelectedChanged(object sender, BackstageViewItemEventArgs e)
 {
     if (backstageViewClientControlGiaoDienVaNgonNgu.Visible)
     {
         if (_ucGiaoDienvaNgonNgu == null)
         {
             _ucGiaoDienvaNgonNgu = new ucGiaoDienvaNgonNgu();
         }
         _ucGiaoDienvaNgonNgu.Dock = DockStyle.Fill;
         backstageViewClientControlGiaoDienVaNgonNgu.Controls.Add(_ucGiaoDienvaNgonNgu);
     }
 }
Пример #18
0
 private void backstageViewTabItemThongTinPhanMem_SelectedChanged(object sender, BackstageViewItemEventArgs e)
 {
     if (backstageViewClientControlThongTinPhanMem.Visible)
     {
         ThongTinPhanMem();
     }
 }
Пример #19
0
 private void backstageExitButton_ItemClick(object sender, BackstageViewItemEventArgs e)
 {
     Close();
 }
Пример #20
0
 public void DeleteCaseClicked(object sender, BackstageViewItemEventArgs e)
 {
     this.DeleteCase();
 }
Пример #21
0
 private void backstageViewButtonItemRestart_ItemClick(object sender, BackstageViewItemEventArgs e)
 {
 }
Пример #22
0
 private void backstageViewTabItemRestart_ItemPressed(object sender, BackstageViewItemEventArgs e)
 {
     Application.Restart();
     Application.ExitThread();
 }
Пример #23
0
 public void OpenCaseClicked(object sender, BackstageViewItemEventArgs e)
 {
     this.LoadCase();
 }
Пример #24
0
 public void NewCaseClicked(object sender, BackstageViewItemEventArgs e)
 {
     this.CreateNewCase();
 }
Пример #25
0
 private void backstageViewTabItemThongTinPhanMem_SelectedChanged(object sender, BackstageViewItemEventArgs e)
 {
     if (backstageViewClientControlThongTinPhanMem.Visible)
     {
         ThongTinPhanMem();
     }
 }
Пример #26
0
 private void backstageViewTabItemCapNhatPhanMem_SelectedChanged(object sender, BackstageViewItemEventArgs e)
 {
     if (backstageViewClientControlCapNhatPhanMem.Visible)
     {
         if (_ucCapNhatPhanMem == null) _ucCapNhatPhanMem = new ucCapNhatPhanMem();
         _ucCapNhatPhanMem.Dock = DockStyle.Fill;
         backstageViewClientControlCapNhatPhanMem.Controls.Add(_ucCapNhatPhanMem);
     }
 }
Пример #27
0
 private void bvbiExit_ItemClick(object sender, BackstageViewItemEventArgs e)
 {
     this.Close();
 }
Пример #28
0
 public void NewCaseClicked(object sender, BackstageViewItemEventArgs e)
 {
     this.CreateNewCase();
 }
Пример #29
0
 private void backstageViewTabItemLogout_ItemPressed(object sender, BackstageViewItemEventArgs e)
 {
     if (XtraMessageBox.Show("Bạn có muốn thoát chương trình ?", "Thông báo", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
         Application.Exit();
     else
         backstageViewControl1.Ribbon.HideApplicationButtonContentControl();
 }
Пример #30
0
 private void backstageViewTabItemGiaoDienvaNgonNgu_SelectedChanged(object sender, BackstageViewItemEventArgs e)
 {
     if (backstageViewClientControlGiaoDienvaNgonNgu.Visible)
     {
         if (_ucGiaoDienvaNgonNgu == null) _ucGiaoDienvaNgonNgu = new ucGiaoDienvaNgonNgu();
         _ucGiaoDienvaNgonNgu.Dock = DockStyle.Fill;
         backstageViewClientControlGiaoDienvaNgonNgu.Controls.Add(_ucGiaoDienvaNgonNgu);
     }
 }
Пример #31
0
 private void btnQuit_ItemClick(object sender, BackstageViewItemEventArgs e)
 {
     Close();
 }
Пример #32
0
 private void backstageViewTabItemCapNhatPhanMem_SelectedChanged(object sender, BackstageViewItemEventArgs e)
 {
     if (backstageViewClientControlCapNhatPhanMem.Visible)
     {
         if (_ucCapNhatPhanMem == null)
         {
             _ucCapNhatPhanMem = new ucCapNhatPhanMem();
         }
         _ucCapNhatPhanMem.Dock = DockStyle.Fill;
         backstageViewClientControlCapNhatPhanMem.Controls.Add(_ucCapNhatPhanMem);
     }
 }
Пример #33
0
        private void backstageViewTabItemPhanQuyen_ItemPressed(object sender, BackstageViewItemEventArgs e)
        {
            DevExpress.XtraSplashScreen.SplashScreenManager.ShowForm(this, typeof(WaitFormLoad), true, true, false);
            DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormCaption("Đang tải dữ liệu...");
            DBInstance.reNew();
            if (_ucPhanQuyen != null)
            {
                ribbonMain.Pages.Remove(ribbonMain.Pages.GetPageByName(rbnPagePhanQuyen));
            }

            _ucPhanQuyen = new ucPhanQuyen();
            _ucPhanQuyen.Dock = DockStyle.Fill;
            addRibbonPage(_ucPhanQuyen.getRibbonControl());

            _ucPhanQuyen.loadData();
            panelControlMain.Controls.Clear();
            panelControlMain.Controls.Add(_ucPhanQuyen);

            ribbonMain.SelectedPage = ribbonMain.Pages.GetPageByName(rbnPagePhanQuyen);

            DevExpress.XtraSplashScreen.SplashScreenManager.CloseForm(false);

            _ucPhanQuyen.barButtonItemDongTab.ItemClick += barButtonPhanQuyenItemDongTab_ItemClick;
        }
Пример #34
0
 private void backstageViewTabItemKhoiDongLai_ItemPressed(object sender, BackstageViewItemEventArgs e)
 {
     Application.Restart();
     Application.ExitThread();
 }
Пример #35
0
 private void cmdQuitSubSystem_ItemClick(object sender, BackstageViewItemEventArgs e)
 {
     Close();
 }
Пример #36
0
 private void backstageViewControl1_ItemClick(object sender, BackstageViewItemEventArgs e)
 {
     //if( e.Item.Name == "Open Recent" )
     //{
     //}
 }
Пример #37
0
 private void backstageViewButtonItemLogout_ItemClick(object sender, BackstageViewItemEventArgs e)
 {
     if (XtraMessageBox.Show("Bạn có muốn thoát chương trình ?", "Thông báo", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
         Application.Exit();
 }
Пример #38
0
 void OnRecentItemClick(object sender, BackstageViewItemEventArgs e)
 {
     //MainForm frm = (MainForm)BackstageView.Ribbon.FindForm();
     //frm.OpenFile((string)e.Item.Tag);
     BackstageView.Ribbon.HideApplicationButtonContentControl();
 }
Пример #39
0
 private void backstageViewControl1_SelectedTabChanged(object sender, BackstageViewItemEventArgs e)
 {
     //if( e.Item.Name == "Open Recent" )
     //{
     //}
 }
Пример #40
0
 private void bvbiExit_ItemClick(object sender, BackstageViewItemEventArgs e)
 {
     this.Close();
 }
Пример #41
0
 void backstageViewControl_SelectedTabChanged(object sender, BackstageViewItemEventArgs e) {
     if(e.Item == tabBackstageViewExport)
         AddBackStageViewModule(ViewModel.SelectedExportModuleType, tabBackstageViewExport);
     if(e.Item == tabBackstageViewPrint)
         AddBackStageViewModule(ViewModel.SelectedPrintModuleType, tabBackstageViewPrint);
 }
Пример #42
0
 private void backstageViewTabItemImport_SelectedChanged(object sender, BackstageViewItemEventArgs e)
 {
     if (backstageViewClientControlImport.Visible)
     {
         if (_ucImport == null) _ucImport = new ucImport();
         _ucImport.Dock = DockStyle.Fill;
         backstageViewClientControlImport.Controls.Add(_ucImport);
     }
 }
Пример #43
0
 private void backstageViewButtonItemRestart_ItemClick(object sender, BackstageViewItemEventArgs e)
 {
 }
Пример #44
0
 private void backstageViewButtonItem1_ItemClick(object sender, BackstageViewItemEventArgs e) /* COMPL */
 {
     Application.Exit();
 }
Пример #45
0
        private void backstageViewTabImportAll_ItemPressed(object sender, BackstageViewItemEventArgs e)
        {
            OpenFileDialog open = new OpenFileDialog();

            open.Filter = "All Excel Files(*.xls,*.xlsx)|*.xls;*.xlsx";
            open.Title  = "Chọn tập tin để Import";
            if (open.ShowDialog() == DialogResult.OK)
            {
                //vitri
                DevExpress.XtraSplashScreen.SplashScreenManager.ShowForm(this.ParentForm, typeof(WaitForm1), true, true, false);
                DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormCaption("Đang Import...");
                if (PTB_GUI.Libraries.ExcelDataBaseHelper.ImportViTri(open.FileName, "ViTri"))
                {
                    DevExpress.XtraSplashScreen.SplashScreenManager.CloseForm(false);
                    XtraMessageBox.Show("Import thành công!");
                }
                else
                {
                    DevExpress.XtraSplashScreen.SplashScreenManager.CloseForm(false);
                    XtraMessageBox.Show("Import không thành công!");
                }
                //nhanvien
                DevExpress.XtraSplashScreen.SplashScreenManager.ShowForm(this.ParentForm, typeof(WaitForm1), true, true, false);
                DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormCaption("Đang Import...");
                if (PTB_GUI.Libraries.ExcelDataBaseHelper.ImportNhanVien(open.FileName, "NhanVienPT"))
                {
                    DevExpress.XtraSplashScreen.SplashScreenManager.CloseForm(false);
                    XtraMessageBox.Show("Import thành công!");
                }
                else
                {
                    DevExpress.XtraSplashScreen.SplashScreenManager.CloseForm(false);
                    XtraMessageBox.Show("Import không thành công!");
                }
                //phong
                DevExpress.XtraSplashScreen.SplashScreenManager.ShowForm(this.ParentForm, typeof(WaitForm1), true, true, false);
                DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormCaption("Đang Import...");
                if (PTB_GUI.Libraries.ExcelDataBaseHelper.ImportPhong(open.FileName, "Phong"))
                {
                    DevExpress.XtraSplashScreen.SplashScreenManager.CloseForm(false);
                    XtraMessageBox.Show("Import thành công!");
                }
                else
                {
                    DevExpress.XtraSplashScreen.SplashScreenManager.CloseForm(false);
                    XtraMessageBox.Show("Import không thành công!");
                }
                //loaitb
                DevExpress.XtraSplashScreen.SplashScreenManager.ShowForm(this.ParentForm, typeof(WaitForm1), true, true, false);
                DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormCaption("Đang Import...");
                if (PTB_GUI.Libraries.ExcelDataBaseHelper.ImportLoaiThietBi(open.FileName, "LoaiThietBi"))
                {
                    DevExpress.XtraSplashScreen.SplashScreenManager.CloseForm(false);
                    XtraMessageBox.Show("Import thành công!");
                }
                else
                {
                    DevExpress.XtraSplashScreen.SplashScreenManager.CloseForm(false);
                    XtraMessageBox.Show("Import không thành công!");
                }
                //tinhtrang
                DevExpress.XtraSplashScreen.SplashScreenManager.ShowForm(this.ParentForm, typeof(WaitForm1), true, true, false);
                DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormCaption("Đang Import...");
                if (PTB_GUI.Libraries.ExcelDataBaseHelper.ImportTinhTrang(open.FileName, "TinhTrang"))
                {
                    DevExpress.XtraSplashScreen.SplashScreenManager.CloseForm(false);
                    XtraMessageBox.Show("Import thành công!");
                }
                else
                {
                    DevExpress.XtraSplashScreen.SplashScreenManager.CloseForm(false);
                    XtraMessageBox.Show("Import không thành công!");
                }
                //tb chung
                DevExpress.XtraSplashScreen.SplashScreenManager.ShowForm(this.ParentForm, typeof(WaitForm1), true, true, false);
                DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormCaption("Đang Import...");
                if (PTB_GUI.Libraries.ExcelDataBaseHelper.ImportThietBiChung(open.FileName, "ThietBiChung"))
                {
                    DevExpress.XtraSplashScreen.SplashScreenManager.CloseForm(false);
                    XtraMessageBox.Show("Import thành công!");
                }
                else
                {
                    DevExpress.XtraSplashScreen.SplashScreenManager.CloseForm(false);
                    XtraMessageBox.Show("Import không thành công!");
                }
                //tb rieng
                DevExpress.XtraSplashScreen.SplashScreenManager.ShowForm(this.ParentForm, typeof(WaitForm1), true, true, false);
                DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormCaption("Đang Import...");
                if (PTB_GUI.Libraries.ExcelDataBaseHelper.ImportThietBiRieng(open.FileName, "ThietBiRieng"))
                {
                    DevExpress.XtraSplashScreen.SplashScreenManager.CloseForm(false);
                    XtraMessageBox.Show("Import thành công!");
                }
                else
                {
                    DevExpress.XtraSplashScreen.SplashScreenManager.CloseForm(false);
                    XtraMessageBox.Show("Import không thành công!");
                }
            }
        }
Пример #46
0
 private void bvtiPrint_SelectedChanged(object sender, BackstageViewItemEventArgs e)
 {
     if(backstageViewControl1.SelectedTab == bvtiPrint)
         this.printControl1.InitPrintingSystem();
 }
Пример #47
0
 public void OpenCaseClicked(object sender, BackstageViewItemEventArgs e)
 {
     this.LoadCase();
 }
Пример #48
0
 private void bvItemExportProjResources_ItemClick(object sender, BackstageViewItemEventArgs e)
 {
 }
Пример #49
0
        private void backstageViewTabImportAll_ItemPressed(object sender, BackstageViewItemEventArgs e)
        {
            OpenFileDialog open = new OpenFileDialog();
            open.Filter = "All Excel Files(*.xls,*.xlsx)|*.xls;*.xlsx";
            open.Title = "Chọn tập tin để Import";
            if (open.ShowDialog() == DialogResult.OK)
            {
                //vitri
                DevExpress.XtraSplashScreen.SplashScreenManager.ShowForm(this.ParentForm, typeof(WaitForm1), true, true, false);
                DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormCaption("Đang Import...");
                if (PTB_GUI.Libraries.ExcelDataBaseHelper.ImportViTri(open.FileName, "ViTri"))
                {
                    DevExpress.XtraSplashScreen.SplashScreenManager.CloseForm(false);
                    XtraMessageBox.Show("Import thành công!");
                }
                else
                {
                    DevExpress.XtraSplashScreen.SplashScreenManager.CloseForm(false);
                    XtraMessageBox.Show("Import không thành công!");
                }
                //nhanvien
                DevExpress.XtraSplashScreen.SplashScreenManager.ShowForm(this.ParentForm, typeof(WaitForm1), true, true, false);
                DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormCaption("Đang Import...");
                if (PTB_GUI.Libraries.ExcelDataBaseHelper.ImportNhanVien(open.FileName, "NhanVienPT"))
                {
                    DevExpress.XtraSplashScreen.SplashScreenManager.CloseForm(false);
                    XtraMessageBox.Show("Import thành công!");
                }
                else
                {
                    DevExpress.XtraSplashScreen.SplashScreenManager.CloseForm(false);
                    XtraMessageBox.Show("Import không thành công!");
                }
                //phong
                DevExpress.XtraSplashScreen.SplashScreenManager.ShowForm(this.ParentForm, typeof(WaitForm1), true, true, false);
                DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormCaption("Đang Import...");
                if (PTB_GUI.Libraries.ExcelDataBaseHelper.ImportPhong(open.FileName, "Phong"))
                {
                    DevExpress.XtraSplashScreen.SplashScreenManager.CloseForm(false);
                    XtraMessageBox.Show("Import thành công!");
                }
                else
                {
                    DevExpress.XtraSplashScreen.SplashScreenManager.CloseForm(false);
                    XtraMessageBox.Show("Import không thành công!");
                }
                //loaitb
                DevExpress.XtraSplashScreen.SplashScreenManager.ShowForm(this.ParentForm, typeof(WaitForm1), true, true, false);
                DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormCaption("Đang Import...");
                if (PTB_GUI.Libraries.ExcelDataBaseHelper.ImportLoaiThietBi(open.FileName, "LoaiThietBi"))
                {
                    DevExpress.XtraSplashScreen.SplashScreenManager.CloseForm(false);
                    XtraMessageBox.Show("Import thành công!");
                }
                else
                {
                    DevExpress.XtraSplashScreen.SplashScreenManager.CloseForm(false);
                    XtraMessageBox.Show("Import không thành công!");
                }
                //tinhtrang
                DevExpress.XtraSplashScreen.SplashScreenManager.ShowForm(this.ParentForm, typeof(WaitForm1), true, true, false);
                DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormCaption("Đang Import...");
                if (PTB_GUI.Libraries.ExcelDataBaseHelper.ImportTinhTrang(open.FileName, "TinhTrang"))
                {
                    DevExpress.XtraSplashScreen.SplashScreenManager.CloseForm(false);
                    XtraMessageBox.Show("Import thành công!");
                }
                else
                {
                    DevExpress.XtraSplashScreen.SplashScreenManager.CloseForm(false);
                    XtraMessageBox.Show("Import không thành công!");
                }
                //tb chung
                DevExpress.XtraSplashScreen.SplashScreenManager.ShowForm(this.ParentForm, typeof(WaitForm1), true, true, false);
                DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormCaption("Đang Import...");
                if (PTB_GUI.Libraries.ExcelDataBaseHelper.ImportThietBiChung(open.FileName, "ThietBiChung"))
                {
                    DevExpress.XtraSplashScreen.SplashScreenManager.CloseForm(false);
                    XtraMessageBox.Show("Import thành công!");
                }
                else
                {
                    DevExpress.XtraSplashScreen.SplashScreenManager.CloseForm(false);
                    XtraMessageBox.Show("Import không thành công!");
                }
                //tb rieng
                DevExpress.XtraSplashScreen.SplashScreenManager.ShowForm(this.ParentForm, typeof(WaitForm1), true, true, false);
                DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormCaption("Đang Import...");
                if (PTB_GUI.Libraries.ExcelDataBaseHelper.ImportThietBiRieng(open.FileName, "ThietBiRieng"))
                {
                    DevExpress.XtraSplashScreen.SplashScreenManager.CloseForm(false);
                    XtraMessageBox.Show("Import thành công!");
                }
                else
                {
                    DevExpress.XtraSplashScreen.SplashScreenManager.CloseForm(false);
                    XtraMessageBox.Show("Import không thành công!");
                }

            }
        }