Esempio n. 1
0
        private void btnThongKe_Click(object sender, EventArgs e)
        {
            DevExpress.XtraSplashScreen.SplashScreenManager.ShowForm(this.ParentForm, typeof(WaitFormLoad), true, true, false);
            DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormCaption("Đang xử lý...");
            List <Guid> list_coso      = CheckedComboBoxEditHelper.getCheckedValueArray(checkedComboBoxCoSo);
            List <Guid> list_loaiphong = CheckedComboBoxEditHelper.getCheckedValueArray(checkedComboBoxLoaiPhong);

            gridControlPhong.DataSource = Phong_ThongKe.getAll(list_coso, list_loaiphong);
            DevExpress.XtraSplashScreen.SplashScreenManager.CloseForm(false);
        }
Esempio n. 2
0
        private void btnTim_Click(object sender, EventArgs e)
        {
            DevExpress.XtraSplashScreen.SplashScreenManager.ShowForm(this.ParentForm, typeof(WaitFormLoad), true, true, false);
            DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormCaption("Đang xử lý...");
            //List<Guid> list_coso = CheckedComboBoxEditHelper.getCheckedValueArray(checkedComboBoxCoSo);
            //List<Guid> list_loaiphong = CheckedComboBoxEditHelper.getCheckedValueArray(checkedComboBoxLoaiPhong);
            List <Guid> list_loaiphong = CheckedComboBoxEditHelper.getCheckedValueArray(checkedCbxLoaiPhong);

            gridControlPhong.DataSource = Phong_ThongKe.getAllForTH(checkLoaiPhong.Checked ? list_loaiphong : null, checkViTri.Checked ? ucComboBoxViTri1.ViTri : null, checkDonVi.Checked ? ucComboBoxDonVi1.DonVi : null,
                                                                    (cbxEquation.EditValue != null && checkSoLuongChoNgoi.Checked) ? cbxEquation.EditValue.ToString() : null, (spinSoChoNgoi.EditValue != null && checkSoLuongChoNgoi.Checked) ? (int?)Convert.ToInt32(spinSoChoNgoi.EditValue) : null);
            DevExpress.XtraSplashScreen.SplashScreenManager.CloseForm(false);
        }
Esempio n. 3
0
        private void btnThongKe_Click(object sender, EventArgs e)
        {
            DevExpress.XtraSplashScreen.SplashScreenManager.ShowForm(this.ParentForm, typeof(WaitFormLoad), true, true, false);
            DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormCaption("Đang xử lý...");
            coldate_create.Visible = false;
            //String str = "";
            //foreach (Guid id in ucComboBoxLoaiTS1.list_loaitaisan)
            //{
            //    str += id;
            //}
            //MessageBox.Show(str);
            List <Guid> list_coso = CheckedComboBoxEditHelper.getCheckedValueArray(checkedComboBoxCoSo);

            gridControlTaiSan.DataSource = TaiSan_ThongKe.getAll(list_coso, ucComboBoxLoaiTS1.list_loaitaisan, ucComboBoxDonVi1.DonVi);
            //bandedGridViewTaiSan.PopulateColumns();
            DevExpress.XtraSplashScreen.SplashScreenManager.CloseForm(false);
        }
Esempio n. 4
0
        private void btnTim_Click(object sender, EventArgs e)
        {
            if (dateNgayTK.EditValue == null)
            {
                dateNgayTK.DateTime = DateTime.Now;
            }
            if (dateNgayTK.DateTime.Year <= 2008)
            {
                XtraMessageBox.Show("Năm thống kê phải lớn hơn 2008", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else
            {
                DevExpress.XtraSplashScreen.SplashScreenManager.ShowForm(this.ParentForm, typeof(WaitFormLoad), true, true, false);
                DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormCaption("Đang tải dữ liệu...");
                try
                {
                    //String ten = checkTen.Checked ? txtTen.Text : null;
                    //String ten = txtTen.Text;
                    LoaiTaiSan  loai       = checkLoaiTS.Checked ? ucComboBoxLoaiTS1.LoaiTS : null;
                    DonVi       DVQL       = ucComboBoxDonVi1.DonVi;
                    ViTri       vitri      = ucComboBoxViTri1.ViTri;
                    Phong       phong      = ucComboBoxViTri1.Phong;
                    List <Guid> tinhtrangs = CheckedComboBoxEditHelper.getCheckedValueArray(checkedCbxTinhTrang);
                    bool        isViTri    = true;
                    if (vitri == null)
                    {
                        isViTri = false;
                    }
                    List <CTTaiSan>      tmp  = CTTaiSanSF.search(null, loai, checkDonVi.Checked, DVQL, false, null, isViTri && checkViTri.Checked, vitri, !isViTri && checkViTri.Checked, phong, checkTinhTrang.Checked ? tinhtrangs : null).ToList();
                    List <TaiSanHienThi> list = TaiSanHienThi.Convert(tmp, dateNgayTK.DateTime.Year);
                    gridControlHaoMon.DataSource = list;

                    //saveSearchXml(this.Name);
                    //ucGridControlTaiSan1.CollapseAllGroups();
                }
                catch (Exception ex)
                {
                    Debug.WriteLine(this.Name + "->Search:" + ex.Message);
                }
                DevExpress.XtraSplashScreen.SplashScreenManager.CloseForm(false);
            }
        }
Esempio n. 5
0
        public void Search()
        {
            DevExpress.XtraSplashScreen.SplashScreenManager.ShowForm(this.ParentForm, typeof(WaitFormLoad), true, true, false);
            DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormCaption("Đang tải dữ liệu...");
            try
            {
                //String ten = checkTen.Checked ? txtTen.Text : null;
                //String ten = txtTen.Text;
                List <Guid> tinhtrangs = CheckedComboBoxEditHelper.getCheckedValueArray(checkedCbxTinhTrang);
                LoaiTaiSan  loai       = checkLoaiTS.Checked ? ucComboBoxLoaiTS1.LoaiTS : null;
                DonVi       DVQL       = ucComboBoxDonVi1.DonVi;
                ViTri       vitri      = ucComboBoxViTri1.ViTri;
                Phong       phong      = ucComboBoxViTri1.Phong;
                bool        isViTri    = true;
                if (vitri == null)
                {
                    isViTri = false;
                }
                List <TaiSanHienThi> list = TaiSanHienThi.Convert(CTTaiSanSF.search(null, loai, checkDonVi.Checked, DVQL, false, null, isViTri && checkViTri.Checked, vitri, !isViTri && checkViTri.Checked, phong, checkTinhTrang.Checked ? tinhtrangs : null,
                                                                                    (cbxEquationDonGia.EditValue != null && checkDonGia.Checked) ? cbxEquationDonGia.EditValue.ToString() : null, (spinDonGia.EditValue != null && checkDonGia.Checked) ? (long?)long.Parse(spinDonGia.EditValue.ToString()) : null,
                                                                                    (cbxEquationNgaySD.EditValue != null && checkNgaySuDung.Checked) ? cbxEquationNgaySD.EditValue.ToString() : null, (dateNgaySD.EditValue != null && checkNgaySuDung.Checked) ? (DateTime?)dateNgaySD.DateTime : null));
                //ucGridControlTaiSan1.DataSource = list;
                gridControlTaiSan.DataSource = list;
                taisans = list;
                //bool isEnabled = list.Count > 0;
                //barBtnSuaTaiSan.Enabled = isEnabled;
                //barBtnXoaTaiSan.Enabled = isEnabled;
                //btnSua_r.Enabled = isEnabled;
                //btnXoa_r.Enabled = isEnabled;

                //saveSearchXml(this.Name);
                //ucGridControlTaiSan1.CollapseAllGroups();
                gridViewTaiSan.CollapseAllGroups();
            }
            catch (Exception ex)
            {
                Debug.WriteLine(this.Name + "->Search:" + ex.Message);
            }
            DevExpress.XtraSplashScreen.SplashScreenManager.CloseForm(false);
        }
Esempio n. 6
0
        public void Search()
        {
            DevExpress.XtraSplashScreen.SplashScreenManager.ShowForm(this.ParentForm, typeof(WaitFormLoad), true, true, false);
            DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormCaption("Đang tải dữ liệu...");
            try
            {
                //String ten = checkTen.Checked ? txtTen.Text : null;
                String     ten     = txtTen.Text;
                LoaiTaiSan loai    = checkLoai.Checked ? ucComboBoxLoaiTS1.LoaiTS : null;
                DonVi      DVQL    = ucComboBoxDonVi1.DonVi;
                ViTri      vitri   = ucComboBoxViTri1.ViTri;
                Phong      phong   = ucComboBoxViTri1.Phong;
                bool       isViTri = true;
                if (vitri == null)
                {
                    isViTri = false;
                }
                List <Guid>          tinhtrangs = CheckedComboBoxEditHelper.getCheckedValueArray(checkedCbxTinhTrang);
                List <TaiSanHienThi> list       = TaiSanHienThi.Convert(CTTaiSanSF.search(checkTenTS.Checked ? ten : "", checkLoai.Checked ? loai : null, checkDVQL.Checked, DVQL, false, null, isViTri && checkViTri.Checked, vitri, !isViTri && checkViTri.Checked, phong, checkTinhTrang.Checked ? tinhtrangs : null));
                ucGridControlTaiSan1.DataSource = list;


                bool isEnabled = list.Count > 0;
                barBtnSuaTaiSan.Enabled = isEnabled;
                barBtnXoaTaiSan.Enabled = isEnabled;
                btnSua_r.Enabled        = isEnabled;
                btnXoa_r.Enabled        = isEnabled;

                saveSearchXml(this.Name);
                ucGridControlTaiSan1.CollapseAllGroups();
            }
            catch (Exception ex)
            {
                Debug.WriteLine(this.Name + "->Search:" + ex.Message);
            }
            DevExpress.XtraSplashScreen.SplashScreenManager.CloseForm(false);
        }
        //private void btnPrint_Click(object sender, EventArgs e)
        //{
        //    gridControl1.ShowPrintPreview();
        //}

        private void btnOK_Click(object sender, EventArgs e)
        {
            //get condition
            DateTime?from = (DateTime?)dateEdit_from.EditValue;
            DateTime?to   = (DateTime?)dateEdit_to.EditValue;

            if (from != null && to != null && to < from)
            {
                MessageBox.Show("Ngày chọn chưa đúng!");
                dateEdit_to.EditValue = null;
                return;
            }
            DevExpress.XtraSplashScreen.SplashScreenManager.ShowForm(this.ParentForm, typeof(WaitForm1), true, true, false);
            DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormCaption("Đang tải dữ liệu...");
            //get result
            List <Guid> list_coso      = CheckedComboBoxEditHelper.getCheckedValueArray(checkedComboBoxEdit_coso);
            List <Guid> list_tinhtrang = CheckedComboBoxEditHelper.getCheckedValueArray(checkedComboBoxEdit_tinhTrang);
            List <Guid> list_ltb       = ucTreeLoaiTB2.getListLoaiTB().Select(x => x.id).ToList();

            List <TKSLThietBiFilter> list_tk = TKSLThietBiFilter.getAll(list_coso, list_ltb, list_tinhtrang, from, to, -1, 1);

            gridControlThongKe.DataSource = list_tk;
            DevExpress.XtraSplashScreen.SplashScreenManager.CloseForm(false);
        }
Esempio n. 8
0
        private void simpleButton_Xuat_Click(object sender, EventArgs e)
        {
            switch (comboBoxEdit_LoaiBaoCao.SelectedIndex)
            {
                #region Báo cáo tăng giảm tài sản cố định

            case 0:
                if (dateEdit_TuNgay.DateTime.Date > DateTime.Today.Date)
                {
                    XtraMessageBox.Show("Ngày từ không được lớn hơn ngày hiện tại", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    dateEdit_TuNgay.Focus();
                    return;
                }
                if (dateEdit_DenNgay.DateTime.Date > DateTime.Today.Date)
                {
                    XtraMessageBox.Show("Ngày đến không được lớn hơn ngày hiện tại", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    dateEdit_DenNgay.Focus();
                    return;
                }
                if (dateEdit_TuNgay.DateTime.Date > dateEdit_DenNgay.DateTime.Date)
                {
                    XtraMessageBox.Show("Ngày từ không được lớn hơn ngày đến", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    dateEdit_TuNgay.Focus();
                    return;
                }
                if (checkEdit_XuatBaoCao.Checked)
                {
                    IsDesign = false;
                }
                else if (checkEdit_ThietKe.Checked)
                {
                    IsDesign = true;
                }

                ShowAndHide(false);
                labelControl_Status.Text = "Đang tạo report, vui lòng chờ trong giây lát...";

                _ThreadReport = new System.Threading.Thread(() =>
                {
                    DevExpress.UserSkins.BonusSkins.Register();
                    Application.EnableVisualStyles();
                    UserLookAndFeel.Default.SetSkinStyle(TSCD.Global.local_setting.ApplicationSkinName);
                    DevExpress.Skins.SkinManager.EnableFormSkins();

                    DateTime From = dateEdit_TuNgay.DateTime.Date, To = dateEdit_DenNgay.DateTime.Date;
                    List <TK_TangGiam_TheoLoaiTS> Data = GetData_BaoCaoTangGiamTaiSanCoDinh(From, To);

                    TSCD_GUI.ReportTSCD.XtraReport_BaoCaoTangGiamTSCD _XtraReport_BaoCaoTangGiamTSCD = new ReportTSCD.XtraReport_BaoCaoTangGiamTSCD(Data, From, To);
                    if (IsDesign)
                    {
                        ReportDesignTool designTool = new ReportDesignTool(_XtraReport_BaoCaoTangGiamTSCD);

                        ReportCompeleted();

                        designTool.ShowDesignerDialog();

                        ReportPrintTool printTool = new ReportPrintTool(designTool.Report);
                        printTool.PreviewForm.PrintControl.Zoom = Zoom;
                        printTool.ShowPreviewDialog();

                        ShowAndHide(true);
                    }
                    else
                    {
                        ReportPrintTool printTool = new ReportPrintTool(_XtraReport_BaoCaoTangGiamTSCD);
                        printTool.PreviewForm.PrintControl.Zoom = Zoom;
                        ReportCompeleted();

                        printTool.ShowPreviewDialog();

                        ShowAndHide(true);
                    }
                });
                _ThreadReport.SetApartmentState(ApartmentState.STA);
                _ThreadReport.Start();
                break;

                #endregion

                #region Sổ tài sản cố định

            case 1:
                if (dateEdit_Nam.DateTime.Year > DateTime.Today.Year)
                {
                    XtraMessageBox.Show("Năm lớn hơn năm hiện tại", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    return;
                }
                List <Guid> ListLoaiTaiSan = ucComboBoxLoaiTS_LoaiTaiSan.list_loaitaisan;
                if (Object.Equals(ListLoaiTaiSan, null))
                {
                    XtraMessageBox.Show("Chưa chọn loại tài sản cần thống kê", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    return;
                }
                if (!(ListLoaiTaiSan.Count > 0))
                {
                    XtraMessageBox.Show("Chưa chọn loại tài sản cần thống kê", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    return;
                }
                List <Guid> ListCoSo = CheckedComboBoxEditHelper.getCheckedValueArray(checkedComboBoxEdit_ChonCoSo);
                if (!checkEdit_ChuaCoViTri.Checked)
                {
                    if (Object.Equals(ListCoSo, null))
                    {
                        XtraMessageBox.Show("Chưa chọn cơ sở cần thống kê", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
                        return;
                    }
                    if (!(ListCoSo.Count > 0))
                    {
                        XtraMessageBox.Show("Chưa chọn cơ sở cần thống kê", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
                        return;
                    }
                }
                if (checkEdit_XuatBaoCao.Checked)
                {
                    IsDesign = false;
                }
                else if (checkEdit_ThietKe.Checked)
                {
                    IsDesign = true;
                }

                ShowAndHide(false);
                labelControl_Status.Text = "Đang tạo report, vui lòng chờ trong giây lát...";

                _ThreadReport = new System.Threading.Thread(() =>
                {
                    DevExpress.UserSkins.BonusSkins.Register();
                    Application.EnableVisualStyles();
                    UserLookAndFeel.Default.SetSkinStyle(TSCD.Global.local_setting.ApplicationSkinName);
                    DevExpress.Skins.SkinManager.EnableFormSkins();

                    Object Data = GetData_SoTaiSanCoDinh(ListLoaiTaiSan, ListCoSo, dateEdit_Nam.DateTime.Year, checkEdit_ChuaCoViTri.Checked);

                    TSCD_GUI.ReportTSCD.XtraReport_SoTaiSanCoDinh _XtraReport_SoTaiSanCoDinh = new ReportTSCD.XtraReport_SoTaiSanCoDinh(Data, dateEdit_Nam.DateTime.Year);
                    if (IsDesign)
                    {
                        ReportDesignTool designTool = new ReportDesignTool(_XtraReport_SoTaiSanCoDinh);

                        ReportCompeleted();

                        designTool.ShowDesignerDialog();

                        ReportPrintTool printTool = new ReportPrintTool(designTool.Report);
                        printTool.PreviewForm.PrintControl.Zoom = Zoom;
                        printTool.ShowPreviewDialog();

                        ShowAndHide(true);
                    }
                    else
                    {
                        ReportPrintTool printTool = new ReportPrintTool(_XtraReport_SoTaiSanCoDinh);
                        printTool.PreviewForm.PrintControl.Zoom = Zoom;
                        ReportCompeleted();

                        printTool.ShowPreviewDialog();

                        ShowAndHide(true);
                    }
                });
                _ThreadReport.SetApartmentState(ApartmentState.STA);
                _ThreadReport.Start();
                break;

                #endregion

                #region Sổ chi tiết tài sản cố định

            case 2:
                if (dateEdit_Nam.DateTime.Year > DateTime.Today.Year)
                {
                    XtraMessageBox.Show("Năm lớn hơn năm hiện tại", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    return;
                }
                else if (Object.Equals(ucComboBoxDonVi_ChonDonVi.DonVi, null))
                {
                    XtraMessageBox.Show("Chưa chọn đơn vị", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    return;
                }
                else if (Object.Equals(ucComboBoxDonVi_ChonDonVi.DonVi.id, Guid.Empty))
                {
                    XtraMessageBox.Show("Chưa chọn đơn vị", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    return;
                }
                if (checkEdit_XuatBaoCao.Checked)
                {
                    IsDesign = false;
                }
                else if (checkEdit_ThietKe.Checked)
                {
                    IsDesign = true;
                }

                ShowAndHide(false);
                labelControl_Status.Text = "Đang tạo report, vui lòng chờ trong giây lát...";

                _ThreadReport = new System.Threading.Thread(() =>
                {
                    DevExpress.UserSkins.BonusSkins.Register();
                    Application.EnableVisualStyles();
                    UserLookAndFeel.Default.SetSkinStyle(TSCD.Global.local_setting.ApplicationSkinName);
                    DevExpress.Skins.SkinManager.EnableFormSkins();

                    var DonViSelected  = ucComboBoxDonVi_ChonDonVi.DonVi;
                    Object Data        = null;
                    String strTenDonVi = "";
                    if (!Object.Equals(DonViSelected, null))
                    {
                        strTenDonVi = DonViSelected.ten;
                        Data        = GetData_SoChiTietTaiSanCoDinh(DonViSelected.id, dateEdit_Nam.DateTime.Year);
                    }

                    TSCD_GUI.ReportTSCD.XtraReport_SoChiTietTaiSanCoDinh _XtraReport_SoChiTietTaiSanCoDinh = new ReportTSCD.XtraReport_SoChiTietTaiSanCoDinh(Data, dateEdit_Nam.DateTime.Year, strTenDonVi);
                    if (IsDesign)
                    {
                        ReportDesignTool designTool = new ReportDesignTool(_XtraReport_SoChiTietTaiSanCoDinh);

                        ReportCompeleted();

                        designTool.ShowDesignerDialog();

                        ReportPrintTool printTool = new ReportPrintTool(designTool.Report);
                        printTool.PreviewForm.PrintControl.Zoom = Zoom;
                        printTool.ShowPreviewDialog();

                        ShowAndHide(true);
                    }
                    else
                    {
                        ReportPrintTool printTool = new ReportPrintTool(_XtraReport_SoChiTietTaiSanCoDinh);
                        printTool.PreviewForm.PrintControl.Zoom = Zoom;
                        ReportCompeleted();

                        printTool.ShowPreviewDialog();

                        ShowAndHide(true);
                    }
                });
                _ThreadReport.SetApartmentState(ApartmentState.STA);
                _ThreadReport.Start();
                break;

                #endregion

                #region Sổ theo dõi tài sản cố định tại nơi sử dụng

            case 3:
                if (Object.Equals(ucComboBoxDonVi_ChonDonVi.DonVi, null))
                {
                    XtraMessageBox.Show("Chưa chọn đơn vị", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    return;
                }
                else if (Object.Equals(ucComboBoxDonVi_ChonDonVi.DonVi.id, Guid.Empty))
                {
                    XtraMessageBox.Show("Chưa chọn đơn vị", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    return;
                }
                if (checkEdit_XuatBaoCao.Checked)
                {
                    IsDesign = false;
                }
                else if (checkEdit_ThietKe.Checked)
                {
                    IsDesign = true;
                }

                ShowAndHide(false);
                labelControl_Status.Text = "Đang tạo report, vui lòng chờ trong giây lát...";

                _ThreadReport = new System.Threading.Thread(() =>
                {
                    DevExpress.UserSkins.BonusSkins.Register();
                    Application.EnableVisualStyles();
                    UserLookAndFeel.Default.SetSkinStyle(TSCD.Global.local_setting.ApplicationSkinName);
                    DevExpress.Skins.SkinManager.EnableFormSkins();

                    var DonViSelected  = ucComboBoxDonVi_ChonDonVi.DonVi;
                    Object Data        = null;
                    String strTenDonVi = "";
                    if (!Object.Equals(DonViSelected, null))
                    {
                        strTenDonVi = DonViSelected.ten;
                        Data        = GetData_SoTheoDoiTaiSanCoDinhTaiNoiSuDung(DonViSelected.id);
                    }

                    TSCD_GUI.ReportTSCD.XtraReport_SoTheoDoiTSCDTaiNoiSuDung _XtraReport_SoTheoDoiTSCDTaiNoiSuDung = new ReportTSCD.XtraReport_SoTheoDoiTSCDTaiNoiSuDung(Data, strTenDonVi);
                    if (IsDesign)
                    {
                        ReportDesignTool designTool = new ReportDesignTool(_XtraReport_SoTheoDoiTSCDTaiNoiSuDung);

                        ReportCompeleted();

                        designTool.ShowDesignerDialog();

                        ReportPrintTool printTool = new ReportPrintTool(designTool.Report);
                        printTool.PreviewForm.PrintControl.Zoom = Zoom;
                        printTool.ShowPreviewDialog();

                        ShowAndHide(true);
                    }
                    else
                    {
                        ReportPrintTool printTool = new ReportPrintTool(_XtraReport_SoTheoDoiTSCDTaiNoiSuDung);
                        printTool.PreviewForm.PrintControl.Zoom = Zoom;
                        ReportCompeleted();

                        printTool.ShowPreviewDialog();

                        ShowAndHide(true);
                    }
                });
                _ThreadReport.SetApartmentState(ApartmentState.STA);
                _ThreadReport.Start();
                break;

                #endregion

            case 4:
                XtraMessageBox.Show("Chức năng này chưa có", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
                break;

            default:
                break;
            }
        }