public static bool IsDMs(this LeadCall item, string leadCallType) { if (leadCallType == "Others" || leadCallType == "Blowed" || leadCallType == "Not Pitched") { return(false); } else { return(true); } }
public static bool CallerIsTheLoginUser(this LeadCall item) { if (item.Member.Name == Employee.CurrentUserName) { return(true); } else { return(false); } }
public static bool IsDMs(this LeadCall item) { var type = item.LeadCallType.Code; if (type > 3) { return(true); } else { return(false); } }
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); } }
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); }
public static bool IsQualifiedDecision(this LeadCall item) { return(item.LeadCallType.Name == "Qualified Decision" ? true : false); }
public static bool IsDealClosed(this LeadCall item) { return(item.LeadCallType.Name == "Closed" ? true : false); }
public static bool IsNewDMs(this LeadCall item) { return(item.IsFirstPitch()); }
public static bool IsPitched(this LeadCall item) { return(item.LeadCallType.Name == "Pitched" ? true : false); }
public static bool IsFullPitched(this LeadCall item, LeadCall call) { return(call.LeadCallType.Name == "Full Pitched" ? true : false); }