Exemple #1
0
        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);
        }
Exemple #2
0
        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);
            }
        }