private void btnBaoCao_Click(object sender, EventArgs e) { FrmMain.Instance.TopMost = false; FrmHienThiBaoCao frm = new FrmHienThiBaoCao(); if (radTatCaMon.Checked) { frm.HienTatCaMon(); } else if (radTheoLoaiMon.Checked) { frm.HienMonTheoLoai((int)cmbLoaiMon.SelectedValue); } else if (radGomNhomMon.Checked) { frm.HienThiMonTheoNhom(); } else if (radTatCaHoaDon.Checked) { frm.HienThiTatCacHoaDon(); } else if (radHoaDonLapTrongNgay.Checked) { frm.HienThiTatHoaDonLapTrongNgay(); } else if (radHoaDonChonNgay.Checked) { frm.HienThiHoaDonTheoNgay((DateTime)dtpHoaDonChonNgay.Value); } else if (radHoaDonTheoThang.Checked) { frm.HienThiTatCacHoaDonTheoThang((DateTime)dtpTimeStart.Value, (DateTime)dtpTimeEnd.Value); } else if (radTatCaNguyenLieu.Checked) { frm.HienTatCaNguyenLieu(); } else if (radTatCaPhieuNhap.Checked) { frm.HienTatCaPhieuNhap(); } else if (radPhieuNhapTrongNgay.Checked) { frm.TatCaPhieuNhapLapTrongNgay(); } else if (radPhieuNhapTheoThang.Checked) { frm.HienThiTatCacPhieuNhapTheoMoc((DateTime)dtpPhieuNhapStart.Value, (DateTime)dtpPhieuNhapEnd.Value); } else if (radPhieuNhapChonNgay.Checked) { frm.HienThiPhieuNhapTheoNgay((DateTime)dtpPhieuNhapChonNgay.Value); } else if (radHoaDonMoiNhat.Checked) { frm.HienThiHoaDonMoiNhat(); } else if (radPhieuNhapNew.Checked) { frm.HienThiPhieuNhapMoiNhat(); } else if (radDoanhThuTheoNgay.Checked) { frm.DoanhThuTheoNgay((DateTime)dtpDoanhThuTheoNgay.Value); } else if (radDoanhThuTheoMoc.Checked) { frm.DoanhThuTheoMoc((DateTime)dtpDoanhThuStart.Value, (DateTime)dtpDoanhThuEnd.Value); } frm.Show(); }