Exemple #1
0
        private void btnxuat_Click(object sender, EventArgs e)
        {
            foreach (Form mdiChild in Main.ActiveForm.MdiChildren)
            {
                if (mdiChild.Name == "frmXuatKetQua")
                {
                    mdiChild.Activate();
                    mdiChild.Close();
                }
            }
            frmXuatKetQua uc = new frmXuatKetQua();

            uc.strReport = "rptkhachhang.rdlc";
            uc.MdiParent = Main.ActiveForm;
            uc.Show();
        }
Exemple #2
0
        private void btnxuat_Click(object sender, EventArgs e)
        {
            foreach (Form mdiChild in Main.ActiveForm.MdiChildren)
            {
                if (mdiChild.Name == "frmXuatKetQua")
                {
                    mdiChild.Activate();
                    mdiChild.Close();
                }
            }
            frmXuatKetQua uc = new frmXuatKetQua();

            uc.strReport = "rpthoadon.rdlc";
            if (cbhoadon.Text.Trim() != "")
            {
                DTO_HoaDon dto = new DTO_HoaDon();
                dto.ma_hoa_don = cbhoadon.Text.Trim();
                new BLL_INAN()._Luu_Data_Hoa_Don(dto);
            }
            uc.MdiParent = Main.ActiveForm;
            uc.Show();
        }