21 _personService = personService;
51 foreach (
string placeholder
in Placeholders.Placeholders_AnalyticsGenderPersonsMaleCount) { textPlaceholder.Add(placeholder,
MalePersonCount.ToString()); }
52 foreach (
string placeholder
in Placeholders.Placeholders_AnalyticsGenderPersonsMalePercentage) { textPlaceholder.Add(placeholder,
MalePersonPercentage.ToString(
"N1")); }
53 foreach (
string placeholder
in Placeholders.Placeholders_AnalyticsGenderPersonsFemaleCount) { textPlaceholder.Add(placeholder,
FemalePersonCount.ToString()); }
54 foreach (
string placeholder
in Placeholders.Placeholders_AnalyticsGenderPersonsFemalePercentage) { textPlaceholder.Add(placeholder,
FemalePersonPercentage.ToString(
"N1")); }
55 return textPlaceholder;
61 Placeholders.PLACEHOLDER_KEY_ANALYTICS_GENDER_PERSONS_MALE_COUNT,
62 Placeholders.PLACEHOLDER_KEY_ANALYTICS_GENDER_PERSONS_MALE_PERCENTAGE,
63 Placeholders.PLACEHOLDER_KEY_ANALYTICS_GENDER_PERSONS_FEMALE_COUNT,
64 Placeholders.PLACEHOLDER_KEY_ANALYTICS_GENDER_PERSONS_FEMALE_PERCENTAGE
AnalyticsModuleGenderPersons(IPersonService personService)
Constructor for the AnalyticsModuleGenderPersons
bool AnalyticsAvailable
Flag indicating if the analytics module has data.
int FemalePersonCount
Number of people that are female.
DocXPlaceholderHelper.TextPlaceholders CollectDocumentPlaceholderContents()
Collect the values for all document placeholders that are supported by this IAnalyticsModule....
int MalePersonCount
Number of people that are male.
double MalePersonPercentage
Percentage of people that are male.
List< string > SupportedDocumentPlaceholderKeys
List of all document placeholder keys that are supported by this analytics module....
double FemalePersonPercentage
Percentage of people that are female.
Class to hold text placeholders and their values.
Interface for an analytics module.
Interface for a service used to get and store a list of Person objects.
Genders
Available genders for a person.