示例#1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            CrpPartyReceivables rpt = new CrpPartyReceivables();

            rpt.Site = this.Site;
            return(rpt);
        }
示例#2
0
        public void ShowRecPay(DateTime vToDate, bool vRec, DataTable dt)
        {
            try
            {
                DataTable dt1, dt2;

                objDAL.connectionstring = System.Configuration.ConfigurationManager.ConnectionStrings["MyString"].ConnectionString;
                dt1 = objDAL.getCompanyInfo();

                if (vRec == true)
                {
                    CrpPartyReceivables Rpt = new CrpPartyReceivables();
                    Rpt.Database.Tables[0].SetDataSource(dt);
                    Rpt.Database.Tables[1].SetDataSource(dt1);
                    Rpt.SetParameterValue("ToDate", vToDate);
                    this.CRViewer.ReportSource = Rpt;
                }
                else
                {
                    CrpPartyPayables Rpt = new CrpPartyPayables();
                    Rpt.Database.Tables[0].SetDataSource(dt);
                    Rpt.Database.Tables[1].SetDataSource(dt1);
                    Rpt.SetParameterValue("ToDate", vToDate);
                    this.CRViewer.ReportSource = Rpt;
                }
            }
            catch (Exception exc)
            {
                MessageBox.Show(exc.Message, "Error");
            }
        }