示例#1
0
        private void bunifuThinButton21_Click(object sender, EventArgs e)
        {
            if (txtNam.Text == "")
            {
                MessageBox.Show("Bạn chưa điền đầy đủ thông tin phía trên!! Xin nhập lại");
                return;
            }
            HoaDonBUS hoaDonBUS = new HoaDonBUS();

            if (!hoaDonBUS.KiemTraNam(Int32.Parse(txtNam.Text)))
            {
                MessageBox.Show("Năm bạn cần xem không có hóa đơn nào được xuất nên không có doanh thu!! Xin nhập lại");
                return;
            }
            bunifuCustomDataGrid1.DataSource = hoaDonBUS.DoanhThu2(Int32.Parse(txtNam.Text));
        }