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); }
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); }