private void GetPaymentOOC()
        {
            try
            {
                cr_PaymentOOC   objcrPaymentOcc = new cr_PaymentOOC();
                DataTable       dataTable       = new DataTable();
                frmReportViewer objReportviewer = new frmReportViewer();
                PaymentOOC      objPaymentOOC   = new PaymentOOC();



                dataTable = objPaymentOOC.GetPaymentOOcReport(dtpFromDate.Value, dtpToDate.Value);
                objcrPaymentOcc.SetDataSource(dataTable);

                GetCommonInfo();

                ((TextObject)objcrPaymentOcc.ReportDefinition.Sections[2].ReportObjects["txtCompanyName"]).Text = _CommpanyName;
                ((TextObject)objcrPaymentOcc.ReportDefinition.Sections[2].ReportObjects["txtAddress"]).Text     = "Branch Name:" + _branchName + "," + _branchAddress + ". Phone:" + _branchContactNumber;


                ((TextObject)objcrPaymentOcc.ReportDefinition.Sections[2].ReportObjects["txtFromDate"]).Text = "Period : " + dtpFromDate.Value.ToString("dd-MMM-yyyy") + " To " + dtpToDate.Value.ToString("dd-MMM-yyyy");

                objReportviewer.crvReportViewer.ReportSource = objcrPaymentOcc;
                objReportviewer.Text = "Payment OOC Report";
                objReportviewer.crvReportViewer.DisplayGroupTree = false;
                objReportviewer.Show();
            }
            catch (Exception)
            {
                throw;
            }
        }
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            cr_PaymentOOC rpt = new cr_PaymentOOC();

            rpt.Site = this.Site;
            return(rpt);
        }