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

            if (type > 3)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Ejemplo n.º 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);
            }
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 6
0
 public static bool IsQualifiedDecision(this LeadCall item)
 {
     return(item.LeadCallType.Name == "Qualified Decision" ? true : false);
 }
Ejemplo n.º 7
0
 public static bool IsDealClosed(this LeadCall item)
 {
     return(item.LeadCallType.Name == "Closed" ? true : false);
 }
Ejemplo n.º 8
0
 public static bool IsNewDMs(this LeadCall item)
 {
     return(item.IsFirstPitch());
 }
Ejemplo n.º 9
0
 public static bool IsPitched(this LeadCall item)
 {
     return(item.LeadCallType.Name == "Pitched" ? true : false);
 }
Ejemplo n.º 10
0
 public static bool IsFullPitched(this LeadCall item, LeadCall call)
 {
     return(call.LeadCallType.Name == "Full Pitched" ? true : false);
 }