private void CreatePartCollectionReport(int Noofrecords)
        {
            try
            {
                IReports objReports        = null;
                DataSet  dsPartCollDetails = null;
                if (isCommonCDO)
                {
                    if (!CollectionHelper.IsServerConnected((cboSiteCode.SelectedItem as SiteConfig).ExchangeConnectionString))
                    {
                        return;
                    }
                    if (!_collectionHelper.IsAuthorized(SecurityHelper.CurrentUser.SecurityUserID, "BMC.Presentation.CommonCDOforDeclaration"))
                    {
                        return;
                    }
                    objReports = ReportsBusinessObject.CreateInstance((cboSiteCode.SelectedItem as SiteConfig).ExchangeConnectionString, (cboSiteCode.SelectedItem as SiteConfig).TicketConnectionString);
                }
                else
                {
                    objReports = ReportsBusinessObject.CreateInstance();
                }

                dsPartCollDetails = objReports.GetPartCollectionDetails(Noofrecords);
                if (dsPartCollDetails.Tables[0].Rows.Count == 0)
                {
                    LogManager.WriteLog("No Records found for the selected criteria - Return", LogManager.enumLogLevel.Info);

                    MessageBox.ShowBox("MessageID261", BMC_Icon.Information);
                    return;
                }
                if (isCommonCDO)
                {
                    using (CReportViewer cReportViewer = new CReportViewer((cboSiteCode.SelectedItem as SiteConfig).ExchangeConnectionString, (cboSiteCode.SelectedItem as SiteConfig).TicketConnectionString))
                    {
                        LogManager.WriteLog("Report data fetched successfully from database", LogManager.enumLogLevel.Info);
                        cReportViewer.ShowPartCollection(Noofrecords, (cboSiteCode.SelectedItem as SiteConfig).ExchangeConnectionString, (cboSiteCode.SelectedItem as SiteConfig).TicketConnectionString);
                        cReportViewer.SetOwner(Window.GetWindow(this));
                        cReportViewer.Show();
                    }
                }
                else
                {
                    using (CReportViewer cReportViewer = new CReportViewer())
                    {
                        LogManager.WriteLog("Report data fetched successfully from database", LogManager.enumLogLevel.Info);
                        cReportViewer.ShowPartCollection(Noofrecords);
                        cReportViewer.SetOwner(Window.GetWindow(this));
                        cReportViewer.Show();
                    }
                }

                LogManager.WriteLog("Show Part Collection Report Successfull", LogManager.enumLogLevel.Info);
            }
            catch (Exception ex)
            {
                ExceptionManager.Publish(ex);
            }
        }