private List <CrmFilterTopProfitByStore> ResultFollowFilter(CRMFilterFollowProfit filter) { var crmstting = usersServices.CRMDayCanelSettingNumber(); var days = int.Parse(crmstting.DataValue); filter.DaysOfLost = days; var qr = crmCustomerService.GetCRMListFollowProfit(filter, CurrenUser); return(qr); }
public void Execute(IJobExecutionContext context) { var crms = crmCustomerService.GetAll(x => x.CRMStatus.Code != (byte)CRMStatusCode.Client && x.DateCancel.Value < DateTime.Now); var crmstting = usersServices.CRMDayCanelSettingNumber(); days = int.Parse(crmstting.DataValue); foreach (var crm in crms) { SetSatusCrm(crm); } }