Example #1
0
        public void UnMarkProspectCustomerConverted(long eventCustomerId, ProspectCustomerTag tag)
        {
            var prospectCustomer = GetProspectCustomer(eventCustomerId);

            if (prospectCustomer == null || (tag == ProspectCustomerTag.Cancellation && prospectCustomer.Tag == ProspectCustomerTag.NoShow && prospectCustomer.IsConverted.HasValue && prospectCustomer.IsConverted.Value == false))
            {
                return;
            }
            prospectCustomer.IsConverted   = false;
            prospectCustomer.Status        = (long)ProspectCustomerConversionStatus.NotConverted;
            prospectCustomer.Tag           = tag;
            prospectCustomer.CreatedOn     = DateTime.Now;
            prospectCustomer.TagUpdateDate = DateTime.Now;

            _uniqueItemProspectCustomerRepository.Save(prospectCustomer);
        }
Example #2
0
 private bool IsCustomerDispositionForRemove(ProspectCustomerTag prospectCustomerTag)
 {
     return //prospectCustomerTag == ProspectCustomerTag.RecentlySawDoc ||
            (prospectCustomerTag == ProspectCustomerTag.NotInterested ||
             prospectCustomerTag == ProspectCustomerTag.HomeVisitRequested ||
             prospectCustomerTag == ProspectCustomerTag.DoNotCall ||
             prospectCustomerTag == ProspectCustomerTag.Deceased ||
             prospectCustomerTag == ProspectCustomerTag.MovedRelocated ||
             prospectCustomerTag == ProspectCustomerTag.NoLongeronInsurancePlan ||
             prospectCustomerTag == ProspectCustomerTag.MobilityIssue ||
             prospectCustomerTag == ProspectCustomerTag.InLongTermCareNursingHome ||
             prospectCustomerTag == ProspectCustomerTag.IncorrectPhoneNumber ||
             prospectCustomerTag == ProspectCustomerTag.IncorrectPhoneNumber_TalkedToOthers ||
             prospectCustomerTag == ProspectCustomerTag.NotEligible ||
             prospectCustomerTag == ProspectCustomerTag.MobilityIssues_LeftMessageWithOther ||
             prospectCustomerTag == ProspectCustomerTag.DebilitatingDisease);
 }
Example #3
0
        public Customer UpdateDoNotCallStatuswithReason(Customer customer, bool isRevertDoNotCall, ProspectCustomerTag prospectCustomerTag, long?sourceId = null)
        {
            customer.DoNotContactTypeId = isRevertDoNotCall ? (long?)null : (long)DoNotContactType.DoNotCall;

            if (ProspectCustomerTag.MemberStatesIneligibleMastectomy == prospectCustomerTag)
            {
                customer.DoNotContactReasonId = isRevertDoNotCall ? (long?)null : (long)DoNotContactReason.Other;
            }
            else
            {
                customer.DoNotContactReasonId = isRevertDoNotCall ? (long?)null : (long)DoNotContactReason.CustomerRequest;
            }

            customer.DoNotContactUpdateDate   = isRevertDoNotCall ? (DateTime?)null : DateTime.Now;
            customer.DoNotContactUpdateSource = isRevertDoNotCall ? (long?)null : sourceId;

            return(customer);
        }