private void FrmInPhieuThu_Load(object sender, EventArgs e)
        {
            crpPhieuThu  pc          = new crpPhieuThu();
            PhieuThuDTO  dtoPhieuThu = new PhieuThuDTO();
            TT_CongTyBLL bllCty      = new TT_CongTyBLL();

            dtoPhieuThu = Variable.dtoPhieuThu;
            pc.SetParameterValue("SoPhieu", dtoPhieuThu.SoPhieu);
            pc.SetParameterValue("NguoiNhanTien", dtoPhieuThu.KhachHang);
            pc.SetParameterValue("DiaChiNguoiNhan", dtoPhieuThu.DiaChi);
            pc.SetParameterValue("LyDoChi", dtoPhieuThu.LyDoThu);
            pc.SetParameterValue("TienBangChu", dtoPhieuThu.VietBangChu);
            pc.SetParameterValue("KemTheo", dtoPhieuThu.KemTheo);
            pc.SetParameterValue("SoTien", dtoPhieuThu.SoTien);
            TT_CongTyDTO dtoCty = new TT_CongTyDTO();

            dtoCty = bllCty.GetThongTinDoanhNghiep();
            pc.SetParameterValue("TenCongTy", dtoCty.TenCT);
            pc.SetParameterValue("DiaChi", dtoCty.DiaChi);
            cvrPhieuThu.ReportSource = pc;
        }
 private void FrmTTDoanhNghiep_Load(object sender, EventArgs e)
 {
     try
     {
         TT_CongTyDTO dtoCongTy = new TT_CongTyDTO();
         dtoCongTy          = bllTT_CT.GetThongTinDoanhNghiep();
         txtTenCongTy.Text  = dtoCongTy.TenCT;
         txtSoTaiKhoan.Text = dtoCongTy.SoTaiKhoan;
         txtNganHang.Text   = dtoCongTy.NganHang;
         txtMaSoThue.Text   = dtoCongTy.MaThue;
         txtDienThoai.Text  = dtoCongTy.SoDT;
         txtDiDong.Text     = dtoCongTy.Mobile;
         txtEmail.Text      = dtoCongTy.Email;
         txtFax.Text        = dtoCongTy.Fax;
         txtWebsite.Text    = dtoCongTy.WebSite;
         //pbLogo.Text = dtoCongTy.LoGo;
         strLogo        = dtoCongTy.LoGo;
         pbLogo.Image   = Image.FromFile(strLogo);
         txtDiaChi.Text = dtoCongTy.DiaChi;
     }
     catch { }
 }
        private void FrmInPhieuChi_Load(object sender, EventArgs e)
        {
            PhieuChi     pc          = new PhieuChi();
            PhieuChiDTO  dtoPhieuChi = new PhieuChiDTO();
            TT_CongTyBLL bllCty      = new TT_CongTyBLL();

            dtoPhieuChi = Variable.dtoPhieuChi;
            pc.SetParameterValue("SoPhieu", dtoPhieuChi.SoPhieu);
            pc.SetParameterValue("NguoiNhanTien", dtoPhieuChi.KhachHang);
            pc.SetParameterValue("DiaChiNguoiNhan", dtoPhieuChi.DiaChi);
            pc.SetParameterValue("LyDoChi", dtoPhieuChi.LyDoChi);
            pc.SetParameterValue("TienBangChu", dtoPhieuChi.VietBangChu);
            pc.SetParameterValue("KemTheo", dtoPhieuChi.KemTheo);
            pc.SetParameterValue("SoTien", dtoPhieuChi.SoTien);
            // Lấy thông tin của công ty
            TT_CongTyDTO dtoCty = new TT_CongTyDTO();

            dtoCty = bllCty.GetThongTinDoanhNghiep();
            pc.SetParameterValue("TenCongTy", dtoCty.TenCT);
            pc.SetParameterValue("DiaChi", dtoCty.DiaChi);
            cvrPhieuChi.ReportSource = pc;
        }