示例#1
0
 public static bool IsDMs(this LeadCall item, string leadCallType)
 {
     if (leadCallType == "Others" || leadCallType == "Blowed" || leadCallType == "Not Pitched")
     {
         return(false);
     }
     else
     {
         return(true);
     }
 }
示例#2
0
 public static bool CallerIsTheLoginUser(this LeadCall item)
 {
     if (item.Member.Name == Employee.CurrentUserName)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
示例#3
0
        public static bool IsDMs(this LeadCall item)
        {
            var type = item.LeadCallType.Code;

            if (type > 3)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
示例#4
0
        public static bool IsFirstPitch(this LeadCall item)
        {
            var ls = item.CompanyRelationship.LeadCalls.FindAll(lc => lc.LeadCallType.Code >= 40 && lc.Lead.Name == item.Lead.Name).OrderBy(o => o.CallDate).ToList().FirstOrDefault();

            if (ls != null && ls.CallDate == item.CallDate)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
示例#5
0
        public static DateTime?GetAvailabeTime(this LeadCall item)
        {
            if (item.CallBackDate == null)
            {
                return(null);
            }
            var date           = item.CallBackDate.Value;
            var districtNumber = item.Lead.SubCompanyID == null ? item.Lead.Company.DistrictNumber : item.Lead.SubCompany.DistrictNumber;

            if (districtNumber != null)
            {
                var differs = districtNumber.TimeDifference;
                date = date.AddHours(-differs);
            }
            return(date);
        }
示例#6
0
 public static bool IsQualifiedDecision(this LeadCall item)
 {
     return(item.LeadCallType.Name == "Qualified Decision" ? true : false);
 }
示例#7
0
 public static bool IsDealClosed(this LeadCall item)
 {
     return(item.LeadCallType.Name == "Closed" ? true : false);
 }
示例#8
0
 public static bool IsNewDMs(this LeadCall item)
 {
     return(item.IsFirstPitch());
 }
示例#9
0
 public static bool IsPitched(this LeadCall item)
 {
     return(item.LeadCallType.Name == "Pitched" ? true : false);
 }
示例#10
0
 public static bool IsFullPitched(this LeadCall item, LeadCall call)
 {
     return(call.LeadCallType.Name == "Full Pitched" ? true : false);
 }