Beispiel #1
0
        protected void DisplayReportParameter()
        {
            strDateOfContact.Text = string.Format("{0}{1}{2}{3}{4}", "Date of Event = [Start Date : ", DOCStartDate.Date.ToString("MM/dd/yyyy"), "] - [End Date : ", DOCEndDate.Date.ToString("MM/dd/yyyy"), "]");

            strRunDate.Text = string.Format("{0}{1}", "Run Date Time = ", DateTime.Now.ToString());

            if (ReportType != PAMReportType.National)
            {
                trState.Visible = true;
                strState.Text   = string.Format("{0}{1}", "State Providing the Activity-Event = ", State.GetStateName(StateFIPSCode));
            }
            if (ReportType == PAMReportType.National)
            {
                trNational.Visible = true;
                strNational.Text   = "National = United States Total";
            }

            if (ReportType == PAMReportType.PresenterContributor)
            {
                trPresenterContributor.Visible = true;
                strPresenterContributor.Text   = string.Format("{0}{1}", "Presenter Contributor = ", PresenterContributorName);
            }
            if (ReportType == PAMReportType.Submitter)
            {
                trSubmitter.Visible = true;
                strSubmitter.Text   = string.Format("{0}{1}", "Submitter = ", SubmitterName);
            }
            if (ReportType == PAMReportType.Agency)
            {
                trAgencies.Visible = true;
                strAgencies.Text   = string.Format("{0}{1}", "Agency = ", AgencyName);
            }
            if (ReportType == PAMReportType.CountyOfActivityEvent)
            {
                trCountyOfActivityEvent.Visible = true;
                strCountyOfActivityEvent.Text   = string.Format("{0}{1}{2}", "County Of Activity-Event = ", CountyName, " County");
            }
            if (ReportType == PAMReportType.ZipCodeOfActivityEvent)
            {
                trZipCodeOfActivityEvent.Visible = true;
                strZipCodeOfActivityEvent.Text   = string.Format("{0}{1}", "ZIP Code of Activity-Event = ", ZipCodeOfActivityEvent);
            }

            if (ReportType == PAMReportType.SubStateRegionOnAgency)
            {
                string _agencyName = SubStatLogic.GetSubStateRegionAgencyNameForReport(SubStateRegionId);

                trContactsBySubStateRegionOnAgency.Visible = true;
                strContactsBySubStateRegionOnAgency.Text   = string.Format("{0}{1}{2}{3}{4}", "Reporting Substate Regions Based on Agency Groupings = ", SubStateRegionName, " [", _agencyName, "]");
            }

            if (ReportType == PAMReportType.SubStateRegionOnCountiesOfActivityEvent)
            {
                string _countyname = SubStatLogic.GetSubStateRegionCountyNameForReport(SubStateRegionId);

                trContactsBySubStateRegionOnCountiesOfActivityEvent.Visible = true;
                strContactsBySubStateRegionOnCountiesOfActivityEvent.Text   = string.Format("{0}{1}{2}{3}{4}", "Substate Region Based on Counties of Activity-Event = ", SubStateRegionName, " [", _countyname, "]");
            }
        }
        protected void DisplayReportParameter()
        {
            if (ReportType == CCReportType.ContactsBySubmitter)
            {
                strDateOfContact.Text = string.Format("{0}{1}{2}{3}{4}", "Date Record Initially Submitted (Entered) = [Start Date : ", DOCStartDate.Date.ToString("MM/dd/yyyy"), "] - [End Date : ", DOCEndDate.Date.ToString("MM/dd/yyyy"), "]");
            }
            else
            {
                strDateOfContact.Text = string.Format("{0}{1}{2}{3}{4}", "Date Of Contact = [Start Date : ", DOCStartDate.Date.ToString("MM/dd/yyyy"), "] - [End Date : ", DOCEndDate.Date.ToString("MM/dd/yyyy"), "]");
            }

            strRunDate.Text = string.Format("{0}{1}", "Run Date Time = ", DateTime.Now.ToString());

            if (ReportType != CCReportType.ContactsByNational)
            {
                trState.Visible = true;
                strState.Text   = string.Format("{0}{1}", "State Providing the Counseling Activity  = ", State.GetStateName(StateFIPSCode));
            }
            if (ReportType == CCReportType.ContactsByNational)
            {
                trNational.Visible = true;
                strNational.Text   = "National = United States Total";
            }

            if (ReportType == CCReportType.ContactsByCounselor)
            {
                trCounselor.Visible = true;
                strCounselor.Text   = string.Format("{0}{1}", "Counselor = ", CounselorName);

                trAgencies.Visible = true;
                if (AgencyId == "0")
                {
                    strAgencies.Text = string.Format("{0}{1}", "Agency = ", "All Agencies For Counselor");
                }
                else
                {
                    strAgencies.Text = string.Format("{0}{1}", "Agency = ", AgencyName);
                }
            }
            if (ReportType == CCReportType.ContactsBySubmitter)
            {
                trSubmitter.Visible = true;
                strSubmitter.Text   = string.Format("{0}{1}", "Submitter = ", SubmitterName);

                trAgencies.Visible = true;
                if (AgencyId == "0")
                {
                    strAgencies.Text = string.Format("{0}{1}", "Agency = ", "All Agencies For Submitter");
                }
                else
                {
                    strAgencies.Text = string.Format("{0}{1}", "Agency = ", AgencyName);
                }
            }
            if (ReportType == CCReportType.ContactsByAgency)
            {
                trAgencies.Visible = true;
                strAgencies.Text   = string.Format("{0}{1}", "Agency = ", AgencyName);
            }
            if (ReportType == CCReportType.ContactsByCountyOfCounselorLocation)
            {
                trCountyOfCounselorLocation.Visible = true;
                strCountyOfCounselorLocation.Text   = string.Format("{0}{1}{2}", "County of Counselor Location = ", CountyName, " County");
                if (IsSubStateAdmin) //substate admin has selected agencydropdown
                {
                    trAgencies.Visible = true;
                    strAgencies.Text   = string.Format("{0}{1}", "Agency = ", AgencyName);
                }
            }
            if (ReportType == CCReportType.ContactsByZipCodeOfCounselorLocation)
            {
                trZipCodeOfCounselorLocation.Visible = true;
                strZipCodeOfCounselorLocation.Text   = string.Format("{0}{1}", "ZIP Code of Counselor Location = ", ZipCodeOfCounselorLocation);
                if (IsSubStateAdmin) //substate admin has selected agencydropdown
                {
                    trAgencies.Visible = true;
                    strAgencies.Text   = string.Format("{0}{1}", "Agency = ", AgencyName);
                }
            }
            if (ReportType == CCReportType.ContactsByCountyOfClientResidence)
            {
                trCountyOfClientResidence.Visible = true;
                strCountyOfClientResidence.Text   = string.Format("{0}{1}{2}", "County of Client Residence = ", CountyNameofClientResidence, " County");
                if (IsSubStateAdmin) //substate admin has selected agencydropdown
                {
                    trAgencies.Visible = true;
                    strAgencies.Text   = string.Format("{0}{1}", "Agency = ", AgencyName);
                }
            }
            if (ReportType == CCReportType.ContactsByZipcodeOfClientResidence)
            {
                trZipCodeOfClientResidence.Visible = true;
                strZipCodeOfClientResidence.Text   = string.Format("{0}{1}", "ZIP Code of Client Residence = ", ZIPCodeofClientResidenceTitle);

                if (IsSubStateAdmin) //substate admin has selected agencydropdown
                {
                    trAgencies.Visible = true;
                    strAgencies.Text   = string.Format("{0}{1}", "Agency = ", AgencyName);
                }
            }
            if (ReportType == CCReportType.ContactsBySubStateRegionOnAgency)
            {
                string _agencyName = SubStatLogic.GetSubStateRegionAgencyNameForReport(SubStateRegionId);

                trContactsBySubStateRegionOnAgency.Visible = true;
                strContactsBySubStateRegionOnAgency.Text   = string.Format("{0}{1}{2}{3}{4}", "Reporting Substate Regions Based on Agency Groupings = ", SubStateRegionName, " [", _agencyName, "]");
            }

            if (ReportType == CCReportType.ContactsBySubStateRegionOnCountiesoOfCounselorLocation)
            {
                string _countyname = SubStatLogic.GetSubStateRegionCountyNameForReport(SubStateRegionId);

                trCountyOfCounselorLocation.Visible = true;

                strCountyOfCounselorLocation.Text = string.Format("{0}{1}{2}{3}{4}", "Substate Region Based on Counties of Counselor Locations = ", SubStateRegionName, " [", _countyname, "]");
            }
            if (ReportType == CCReportType.ContactsBySubStateRegionOnZipcodesOfCounselorLocation)
            {
                string _zips = SubStatLogic.GetSubStateRegionZipCodeForReport(SubStateRegionId);

                trZipCodeOfClientResidence.Visible = true;

                strZipCodeOfClientResidence.Text = string.Format("{0}{1}{2}{3}{4}", "Substate Region Based on ZIP Codes of Counselor Locations = ", ZIPCodeofClientResidence, " [", _zips, "]");
            }
            if (ReportType == CCReportType.ContactsBySubStateRegionOnCountiesOfClientResidence)
            {
                string _countyname = SubStatLogic.GetSubStateRegionCountyNameForReport(SubStateRegionId);

                trCountyOfCounselorLocation.Visible = true;

                strCountyOfCounselorLocation.Text = string.Format("{0}{1}{2}{3}{4}", "Substate Region Based on Counties of Client Residence = ", SubStateRegionName, " [", _countyname, "]");
            }
            if (ReportType == CCReportType.ContactsBySubStateRegionOnZipcodeOfClientResidence)
            {
                string _zips = SubStatLogic.GetSubStateRegionZipCodeForReport(SubStateRegionId);

                trZipCodeOfClientResidence.Visible = true;
                strZipCodeOfClientResidence.Text   = string.Format("{0}{1}{2}{3}{4}", "Substate Region Based on ZIP Codes of Client Residence = ", ZIPCodeofClientResidence, " [", _zips, "]");
            }
        }