protected void displayData(qRpt_CampaignReportPreference pref, qSoc_Campaign campaign, qRpt_CampaignOverviewReport a_report, List<CampaignReport> s_report, List<CampaignUserReport> u_report)
 {
     // summary
     if (pref.AnalyzedOverview == true)
     {
         //litDateReportGenerated.Text = "<br /><strong>Information last updated:</strong> " + a_report.LastTimeCompiled;
         campaignsidebar.Visible = true;
         CampaignSidebarRaw.Visible = false;
         campaignsidebar.Report = a_report;
     }
     else
     {
         //litDateReportGenerated.Text = "<br /><strong>Information last updated:</strong> " + DateTime.Now;
         campaignsidebar.Visible = false;
         CampaignSidebarRaw.Visible = true;
         CampaignSidebarRaw.S_Report = s_report;
         CampaignSidebarRaw.Report = a_report;
     }
 }
 protected void displayData(qRpt_CampaignReportPreference pref, qSoc_Campaign campaign, qRpt_CampaignOverviewReport a_report, List <CampaignReport> s_report, List <CampaignUserReport> u_report)
 {
     // summary
     if (pref.AnalyzedOverview == true)
     {
         //litDateReportGenerated.Text = "<br /><strong>Information last updated:</strong> " + a_report.LastTimeCompiled;
         campaignsidebar.Visible    = true;
         CampaignSidebarRaw.Visible = false;
         campaignsidebar.Report     = a_report;
     }
     else
     {
         //litDateReportGenerated.Text = "<br /><strong>Information last updated:</strong> " + DateTime.Now;
         campaignsidebar.Visible     = false;
         CampaignSidebarRaw.Visible  = true;
         CampaignSidebarRaw.S_Report = s_report;
         CampaignSidebarRaw.Report   = a_report;
     }
 }
    protected void displayData(qRpt_CampaignReportPreference pref, qSoc_Campaign campaign, qRpt_CampaignOverviewReport a_report, List <CampaignReport> s_report, List <CampaignUserReport> u_report)
    {
        // summary
        if (pref.AnalyzedOverview == true)
        {
            //litDateReportGenerated.Text = "<br /><strong>Information last updated:</strong> " + a_report.LastTimeCompiled;
            campaignsidebar.Visible          = true;
            CampaignSidebarRaw.Visible       = false;
            CampaignSummaryAnalyzed.Visible  = true;
            CampaignSummaryRaw.Visible       = false;
            CampaignSummaryAnalyzed.Pref     = pref;
            CampaignSummaryAnalyzed.Campaign = campaign;
            CampaignSummaryAnalyzed.Report   = a_report;
            campaignsidebar.Report           = a_report;
        }
        else
        {
            //litDateReportGenerated.Text = "<br /><strong>Information last updated:</strong> " + DateTime.Now;
            campaignsidebar.Visible         = false;
            CampaignSidebarRaw.Visible      = true;
            CampaignSummaryAnalyzed.Visible = false;
            CampaignSummaryRaw.Visible      = true;
            CampaignSummaryRaw.Pref         = pref;
            CampaignSummaryRaw.Campaign     = campaign;
            CampaignSummaryRaw.S_Report     = s_report;
            CampaignSidebarRaw.S_Report     = s_report;
            CampaignSidebarRaw.Report       = a_report;
        }

        if (pref.Language == true)
        {
            CampaignLanguage.Visible  = true;
            CampaignLanguage.U_Report = u_report;
        }
        else
        {
            CampaignLanguage.Visible = false;
        }

        if (pref.MostRecentEnrolled == true)
        {
            CampaignMostRecentEnrolled.Visible    = true;
            CampaignMostRecentEnrolled.CampaignID = campaign_id;
        }
        else
        {
            CampaignMostRecentEnrolled.Visible = false;
        }

        if (pref.HTMLReport == true)
        {
            CampaignHTMLReport.Visible = true;
            CampaignHTMLReport.Report  = a_report;
        }
        else
        {
            CampaignHTMLReport.Visible = false;
        }

        if (pref.HealthKits == true)
        {
            CampaignMostRecentHealthKits.Visible    = true;
            CampaignMostRecentHealthKits.CampaignID = campaign_id;
        }
        else
        {
            CampaignMostRecentHealthKits.Visible = false;
        }

        if (pref.EnrollmentTrend == true)
        {
            CampaignEnrollmentTrend.Visible    = true;
            CampaignEnrollmentTrend.CampaignID = campaign_id;
        }
        else
        {
            CampaignEnrollmentTrend.Visible = false;
        }
    }
    protected void displayData(qRpt_CampaignReportPreference pref, qSoc_Campaign campaign, qRpt_CampaignOverviewReport a_report, List<CampaignReport> s_report, List<CampaignUserReport> u_report)
    {
        // summary
        if (pref.AnalyzedOverview == true)
        {
            //litDateReportGenerated.Text = "<br /><strong>Information last updated:</strong> " + a_report.LastTimeCompiled;
            campaignsidebar.Visible = true;
            CampaignSidebarRaw.Visible = false;
            CampaignSummaryAnalyzed.Visible = true;
            CampaignSummaryRaw.Visible = false;
            CampaignSummaryAnalyzed.Pref = pref;
            CampaignSummaryAnalyzed.Campaign = campaign;
            CampaignSummaryAnalyzed.Report = a_report;
            campaignsidebar.Report = a_report;
        }
        else
        {
            //litDateReportGenerated.Text = "<br /><strong>Information last updated:</strong> " + DateTime.Now;
            campaignsidebar.Visible = false;
            CampaignSidebarRaw.Visible = true;
            CampaignSummaryAnalyzed.Visible = false;
            CampaignSummaryRaw.Visible = true;
            CampaignSummaryRaw.Pref = pref;
            CampaignSummaryRaw.Campaign = campaign;
            CampaignSummaryRaw.S_Report = s_report;
            CampaignSidebarRaw.S_Report = s_report;
            CampaignSidebarRaw.Report = a_report;
        }

        if (pref.Language == true)
        {
            CampaignLanguage.Visible = true;
            CampaignLanguage.U_Report = u_report;
        }
        else
            CampaignLanguage.Visible = false;

        if (pref.MostRecentEnrolled == true)
        {
            CampaignMostRecentEnrolled.Visible = true;
            CampaignMostRecentEnrolled.CampaignID = campaign_id;
        }
        else
            CampaignMostRecentEnrolled.Visible = false;

        if (pref.HTMLReport == true)
        {
            CampaignHTMLReport.Visible = true;
            CampaignHTMLReport.Report = a_report;
        }
        else
            CampaignHTMLReport.Visible = false;

        if (pref.HealthKits == true)
        {
            CampaignMostRecentHealthKits.Visible = true;
            CampaignMostRecentHealthKits.CampaignID = campaign_id;
        }
        else
            CampaignMostRecentHealthKits.Visible = false;

        if (pref.EnrollmentTrend == true)
        {
            CampaignEnrollmentTrend.Visible = true;
            CampaignEnrollmentTrend.CampaignID = campaign_id;
        }
        else
            CampaignEnrollmentTrend.Visible = false;
    }