예제 #1
0
 protected override void AddProperties(TemplateProperties properties)
 {
     base.AddProperties(properties);
     properties.Add("Content", _content);
     properties.Add("PhoneNumber", _phoneNumber);
     properties.Add("EnquiryType", _subcategory != null ? _subcategory.Name : "Report a site issue");
 }
예제 #2
0
 protected override void AddProperties(TemplateProperties properties)
 {
     base.AddProperties(properties);
     properties.Add("Subject", _subject);
     properties.Add("Content", _content);
     properties.Add("Organisation", _organisation, typeof(Organisation));
 }
예제 #3
0
 protected override void AddProperties(TemplateProperties properties)
 {
     base.AddProperties(properties);
     properties.Add("LoginId", _loginId);
     properties.Add("Password", _password);
     properties.Add("Candidates", _candidates);
 }
예제 #4
0
 protected virtual void AddProperties(TemplateProperties properties)
 {
     properties.Add("Id", Id);
     properties.Add("Definition", Definition);
     properties.Add("To", To, typeof(ICommunicationUser));
     properties.Add("From", From, typeof(ICommunicationUser));
 }
예제 #5
0
 protected override void AddProperties(TemplateProperties properties)
 {
     base.AddProperties(properties);
     properties.Add("ThreadId", _threadId);
     properties.Add("MessageId", _messageId);
     properties.Add("MessageSubject", _messageSubject);
     properties.Add("MessageText", _messageText);
 }
 protected override void AddProperties(TemplateProperties properties)
 {
     base.AddProperties(properties);
     properties.Add("Representee", _representee, typeof(ICommunicationUser));
     properties.Add("Subject", _subject);
     properties.Add("Content", _content);
     properties.Add("Organisation", _organisation, typeof(Organisation));
 }
예제 #7
0
 protected override void AddProperties(TemplateProperties properties)
 {
     base.AddProperties(properties);
     properties.Add("ToDisplayName", _toDisplayName);
     properties.Add("FromDisplayName", _fromDisplayName);
     properties.Add("MessageText", _messageText);
     properties.Add("JobAd", _jobAd);
 }
예제 #8
0
 protected override void AddProperties(TemplateProperties properties)
 {
     base.AddProperties(properties);
     properties.Add("JobTitle", _jobAd.Title);
     properties.Add("ExternalReferenceId", _jobAd.Integration.ExternalReferenceId);
     properties.Add("ApplicantId", _jobApplication.ApplicantId);
     properties.Add("Content", _jobApplication.CoverLetterText);
 }
예제 #9
0
 protected override void AddProperties(TemplateProperties properties)
 {
     base.AddProperties(properties);
     properties.Add("TotalCandidates", _totalCandidates);
     properties.Add("TotalJobs", _totalJobs);
     properties.Add("SuggestedCandidates", _suggestedCandidates, typeof(IList));
     properties.Add("Views", GetEmailViews(_suggestedCandidates.SelectMany(s => s.CandidateIds), _views));
 }
예제 #10
0
 protected override void AddProperties(TemplateProperties properties)
 {
     base.AddProperties(properties);
     properties.Add("AskerEmailAddress", _askerEmailAddress);
     properties.Add("AskerName", _askerName);
     properties.Add("ResourceCategory", _category);
     properties.Add("Question", _question);
 }
예제 #11
0
        protected override void AddProperties(TemplateProperties properties)
        {
            base.AddProperties(properties);

            properties.Add("toName", To.FirstName);
            properties.Add("orgName", _organisation.FullName);
            properties.Add("reportPeriod", GetReportPeriodDescription(_startDate, _endDate));
        }
예제 #12
0
파일: Emails.cs 프로젝트: formist/LinkMe
 protected override void AddProperties(TemplateProperties properties)
 {
     base.AddProperties(properties);
     properties.Add("TotalMatches", _totalMatches);
     properties.Add("Jobs", _emailItems);
     properties.Add("Timestamp", DateTime.Now.ToLongDateString());
     properties.Add("MaxMatches", MaxMatches);
 }
 protected override void AddProperties(TemplateProperties properties)
 {
     base.AddProperties(properties);
     properties.Add("Subject", _subject);
     properties.Add("Content", _content);
     properties.Add("MemberDisplayName", _candidateName);
     properties.Add("ResumeId", _resumeId);
     properties.Add("Date", DateTime.Now.ToShortDateString());
 }
예제 #14
0
 protected override void AddProperties(TemplateProperties properties)
 {
     base.AddProperties(properties);
     properties.Add("ContactName", _contactName);
     properties.Add("ContactPhone", _contactPhone);
     properties.Add("ContactEmail", _contactEmail);
     properties.Add("CompanyName", _companyName);
     properties.Add("Message", _message);
 }
예제 #15
0
        protected override void AddProperties(TemplateProperties properties)
        {
            base.AddProperties(properties);

            properties.Add("Order", _order);
            properties.Add("Products", _products);
            properties.Add("Credits", _credits);
            properties.Add("Adjustments", _adjustments);
            properties.Add("Receipt", _receipt);
        }
예제 #16
0
        protected override void AddProperties(TemplateProperties properties)
        {
            base.AddProperties(properties);

            properties.Add("OrgName", _organisation.FullName);
            properties.Add("ReportPeriod", GetReportPeriodDescription(_startDate, _endDate));
            properties.Add("NoActivity", GetNoActivityDisplayString());
            properties.Add("HaveAttachments", !GetAttachments().IsNullOrEmpty());
            properties.Add("CustomHtmlSnippets", _customHtmlSnippets.Count == 0
                ? string.Empty
                : "<p>" + string.Join("</p><p>", _customHtmlSnippets.ToArray()) + "</p>");
        }
예제 #17
0
        protected override void AddProperties(TemplateProperties properties)
        {
            base.AddProperties(properties);
            properties.Add("Invitation", _invitation);
            properties.Add("DonationAmount", _donationRequest == null ? string.Empty : _donationRequest.Amount.ToString("C"));
            properties.Add("DonationRecipient", _donationRecipient == null ? string.Empty : _donationRecipient.Name);
            properties.Add("MessageText", _invitation.Text);

            // Current Job

            if (!_currentJobs.IsNullOrEmpty() && _currentJobs.Count > 0)
            {
                // Choose the one with the most recent start date.

                var currentJob = (from j in _currentJobs
                                  where !string.IsNullOrEmpty(j.Title) &&
                                  j.Dates.Start != null
                                  orderby j.Dates.Start.Value descending
                                  select j.Title).FirstOrDefault();

                properties.Add("CurrentJob", currentJob);
            }
            else
            {
                properties.Add("CurrentJob", string.Empty);
            }

            // ContactCount

            properties.Add("ContactCount", _contactCount > 0 ? _contactCount : 0);
        }
예제 #18
0
        protected override void AddProperties(TemplateProperties properties)
        {
            base.AddProperties(properties);
            properties.Add("ToIsActivated", To.IsActivated);
            properties.Add("Invitation", _invitation);
            properties.Add("MessageText", _invitation.Text);

            if (_emailVerification != null)
            {
                properties.Add("InviteeVerificationCode", _emailVerification.VerificationCode);
                properties.Add("InvitationId", string.Empty);
            }
            else
            {
                properties.Add("InviteeVerificationCode", string.Empty);
                properties.Add("InvitationId", string.Empty);
            }

            // Current Job

            if (!_currentJobs.IsNullOrEmpty() && _currentJobs.Count > 0)
            {
                // Choose the one with the most recent start date.

                var currentJob = (from j in _currentJobs
                                  where !string.IsNullOrEmpty(j.Title) &&
                                  j.Dates.Start != null
                                  orderby j.Dates.Start.Value descending
                                  select j.Title).FirstOrDefault();

                properties.Add("CurrentJob", currentJob);
            }
            else
            {
                properties.Add("CurrentJob", string.Empty);
            }

            // ContactCount

            properties.Add("ContactCount", _contactCount > 0 ? _contactCount : 0);
        }
예제 #19
0
 protected override void AddProperties(TemplateProperties properties)
 {
     base.AddProperties(properties);
     properties.Add("Matches", _matches);
     properties.Add("Results", _jobSearchResults);
     properties.Add("CriteriaText", _criteriaText);
     properties.Add("CriteriaHtml", _criteriaHtml);
     properties.Add("CriteriaQueryString", _criteriaQueryString);
     properties.Add("SavedSearchId", _savedSearchId);
 }
예제 #20
0
        protected override string GetCopyText(TemplateContext context, TemplateProperties properties)
        {
            // Create the object to keep track of all mappings used when generating the text.

            var mappings = new TinyUrlMappings(_webSiteQuery, context.Id, context.Definition, MimeType, _webSite, context.UserId, VerticalId);

            properties.Add("TinyUrls", mappings);

            // Get the text.

            var text = base.GetCopyText(context, properties);

            // Register those mappings.

            _tinyUrlCommand.CreateMappings(mappings);
            return(text);
        }
예제 #21
0
        protected override void AddProperties(TemplateProperties properties)
        {
            base.AddProperties(properties);
            properties.Add("Criteria", _criteriaText);
            properties.Add("TotalMatches", _results.MemberIds.Count);

            properties.Add("Header", GetHeader(_results.MemberIds.Count));
            var newResults     = new List <Guid>();
            var updatedResults = new List <Guid>();
            var emailViews     = new EmployerMemberEmailViews();

            GetResults(newResults, updatedResults, emailViews);
            var newCount = newResults.Count;

            properties.Add("NewResults", newResults, typeof(IList));
            properties.Add("UpdatedResults", updatedResults, typeof(IList));
            properties.Add("Views", emailViews);

            properties.Add("NewCount", newCount);
            properties.Add("UpdatedCount", _results.MemberIds.Count - newCount);

            properties.Add("SavedSearchId", _savedSearchId.ToString("B")); // To help debugging.
        }
예제 #22
0
        protected override void AddProperties(TemplateProperties properties)
        {
            base.AddProperties(properties);
            properties.Add("ToIsActivated", To.IsActivated);
            properties.Add("Invitation", _invitation);
            properties.Add("MessageText", _invitation.Text);

            if (_emailVerification != null)
            {
                properties.Add("InviteeVerificationCode", _emailVerification.VerificationCode);
                properties.Add("InvitationId", string.Empty);
            }
            else
            {
                properties.Add("InviteeVerificationCode", string.Empty);
                properties.Add("InvitationId", string.Empty);
            }
        }
예제 #23
0
 protected override void AddProperties(TemplateProperties properties)
 {
     base.AddProperties(properties);
     properties.Add("Subject", _subject);
     properties.Add("Content", _content);
 }
예제 #24
0
 protected override void AddProperties(TemplateProperties properties)
 {
     base.AddProperties(properties);
     properties.Add("Members", _views);
 }
 protected override void AddProperties(TemplateProperties properties)
 {
     base.AddProperties(properties);
     properties.Add("Community", _community);
     properties.Add("Enquiry", _enquiry);
 }
예제 #26
0
 protected override void AddProperties(TemplateProperties properties)
 {
     base.AddProperties(properties);
     properties.Add("accountManagerName", AccountManager.FullName);
 }
예제 #27
0
        protected override void AddProperties(TemplateProperties properties)
        {
            base.AddProperties(properties);

            properties.Add("ReportDate", _dailyReport.Day.Start.Value);

            properties.Add("MemberReport", _dailyReport.MemberReport);
            properties.Add("ResumeReport", _dailyReport.ResumeReport);

            properties.Add("OpenJobAds", _dailyReport.OpenJobAds);
            properties.Add("JobSearches", _dailyReport.JobSearches);
            properties.Add("JobApplications", _dailyReport.InternalJobApplications);
            properties.Add("ExternalJobRedirects", _dailyReport.ExternalJobApplications);
            properties.Add("WebMemberSearchBreakdownReport", _dailyReport.MemberSearchReports["Web"]);
            properties.Add("WebMemberViewingBreakdownReport", _dailyReport.MemberViewingReports["Web"]);
            properties.Add("WebMemberAccessBreakdownReport", _dailyReport.MemberAccessReports["Web"]);
            properties.Add("ApiMemberSearchBreakdownReport", _dailyReport.MemberSearchReports["API"]);
            properties.Add("ApiMemberViewingBreakdownReport", _dailyReport.MemberViewingReports["API"]);
            properties.Add("ApiMemberAccessBreakdownReport", _dailyReport.MemberAccessReports["API"]);
            properties.Add("ResumeSearchAlerts", _dailyReport.ResumeSearchAlerts);
            properties.Add("JobSearchAlerts", _dailyReport.JobSearchAlerts);
            properties.Add("InvitationsSent", _dailyReport.InvitationsSent);
            properties.Add("InvitationsAccepted", _dailyReport.InvitationsAccepted);

            // Daily

            properties.Add("LoggedInUniqueDaily", _dailyReport.DailyLogIns.Values.Sum());
            properties.Add("LoggedInUniquePercentageDaily", GetPercentage(_dailyReport.DailyLogIns.Values.Sum()));
            properties.Add("LoggedInUniqueMembersDaily", _dailyReport.DailyLogIns[UserType.Member]);
            properties.Add("LoggedInUniqueEmployersDaily", _dailyReport.DailyLogIns[UserType.Employer]);
            properties.Add("LoggedInUniqueAdministratorsDaily", _dailyReport.DailyLogIns[UserType.Administrator]);
            properties.Add("LoggedInUniqueCustodiansDaily", _dailyReport.DailyLogIns[UserType.Custodian]);

            // Weekly

            properties.Add("LoggedInUniqueWeekly", _dailyReport.WeeklyLogIns.Values.Sum());
            properties.Add("LoggedInUniqueWeeklyPercentage", GetPercentage(_dailyReport.WeeklyLogIns.Values.Sum()));
            properties.Add("LoggedInUniqueMembersWeekly", _dailyReport.WeeklyLogIns[UserType.Member]);
            properties.Add("LoggedInUniqueEmployersWeekly", _dailyReport.WeeklyLogIns[UserType.Employer]);
            properties.Add("LoggedInUniqueAdministratorsWeekly", _dailyReport.WeeklyLogIns[UserType.Administrator]);
            properties.Add("LoggedInUniqueCustodiansWeekly", _dailyReport.WeeklyLogIns[UserType.Custodian]);

            // Monthly

            properties.Add("LoggedInUniqueMonthly", _dailyReport.MonthlyLogIns.Values.Sum());
            properties.Add("LoggedInUniqueMonthlyPercentage", GetPercentage(_dailyReport.MonthlyLogIns.Values.Sum()));
            properties.Add("LoggedInUniqueMembersMonthly", _dailyReport.MonthlyLogIns[UserType.Member]);
            properties.Add("LoggedInUniqueEmployersMonthly", _dailyReport.MonthlyLogIns[UserType.Employer]);
            properties.Add("LoggedInUniqueAdministratorsMonthly", _dailyReport.MonthlyLogIns[UserType.Administrator]);
            properties.Add("LoggedInUniqueCustodiansMonthly", _dailyReport.MonthlyLogIns[UserType.Custodian]);

            properties.Add("AcceptanceRateLast48Hours", _dailyReport.AcceptanceRateLast48Hours);
            properties.Add("AcceptanceRatePreviousMonth", _dailyReport.AcceptanceRatePreviousMonth);

            properties.Add("OrderReports", _dailyReport.OrderReports, typeof(IList));
            properties.Add("CommunicationReports", new SortedList((IDictionary)_dailyReport.CommunciationReports));
            properties.Add("PromotionCodeReports", new SortedList((IDictionary)_dailyReport.PromotionCodeReports));
            properties.Add("JobAdIntegrationReports", new SortedList((IDictionary)_dailyReport.JobAdIntegrationReports));
        }
예제 #28
0
 protected override void AddProperties(TemplateProperties properties)
 {
     base.AddProperties(properties);
     properties.Add("VerificationCode", _emailVerification.VerificationCode);
 }
예제 #29
0
 protected override void AddProperties(TemplateProperties properties)
 {
     base.AddProperties(properties);
     properties.Add("Quantity", _quantity);
 }
예제 #30
0
 protected override void AddProperties(TemplateProperties properties)
 {
     base.AddProperties(properties);
     properties.Add("memberCount", _totalMemberCount.ToString(MemberCountFormatString));
     properties.Add("weeklyMemberGrowth", WeeklyMemberGrowth.ToString(MemberCountFormatString));
 }