Esempio n. 1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            crpPhieuThu rpt = new crpPhieuThu();

            rpt.Site = this.Site;
            return(rpt);
        }
 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;
 }
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
 {
     crpPhieuThu rpt = new crpPhieuThu();
     rpt.Site = this.Site;
     return rpt;
 }