protected async System.Threading.Tasks.Task Load() { var monthlyStatsResult = MonthlyStats(); monthlyStats = monthlyStatsResult; var revenueByCompanyResult = RevenueByCompany(); revenueByCompany = revenueByCompanyResult; var revenueByEmployeeResult = RevenueByEmployee(); revenueByEmployee = revenueByEmployeeResult; var revenueByMonthResult = RevenueByMonth(); revenueByMonth = revenueByMonthResult; var crmGetOpportunitiesResult = await Crm.GetOpportunities(new Query() { OrderBy = $"CloseDate desc" }); getOpportunitiesResult = crmGetOpportunitiesResult; var crmGetTasksResult = await Crm.GetTasks(new Query() { OrderBy = $"DueDate desc" }); getTasksResult = crmGetTasksResult; }
protected async System.Threading.Tasks.Task Load() { monthlyStats = await MonthlyStats(); var crmGetOpportunitiesResult = await Crm.GetOpportunities(orderby : $@"CloseDate desc", expand : $"Contact,OpportunityStatus"); getOpportunitiesResult = crmGetOpportunitiesResult.Value; var crmGetTasksResult = await Crm.GetTasks(orderby : $@"DueDate desc", expand : $"Opportunity($expand=User,Contact)"); getTasksResult = crmGetTasksResult.Value; }
protected async System.Threading.Tasks.Task Grid0LoadData(LoadDataArgs args) { try { var crmGetTasksResult = await Crm.GetTasks(filter : $"{args.Filter}", orderby : $"{args.OrderBy}", expand : $"Opportunity,TaskType,TaskStatus", top : args.Top, skip : args.Skip, count : args.Top != null && args.Skip != null); getTasksResult = crmGetTasksResult.Value.AsODataEnumerable(); getTasksCount = crmGetTasksResult.Count; } catch (Exception crmGetTasksException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to load Tasks"); } }
protected async void Load() { var monthlyStatsResult = MonthlyStats(); monthlyStats = monthlyStatsResult; var crmGetOpportunitiesResult = await Crm.GetOpportunities(new Query() { OrderBy = "CloseDate desc" }); getOpportunitiesResult = crmGetOpportunitiesResult; var crmGetTasksResult = await Crm.GetTasks(new Query() { OrderBy = "DueDate desc" }); getTasksResult = crmGetTasksResult; }
protected async System.Threading.Tasks.Task Load() { var crmGetTasksResult = await Crm.GetTasks(); getTasksResult = crmGetTasksResult; }
protected async void Load() { var crmGetTasksResult = await Crm.GetTasks(); getTasksResult = crmGetTasksResult; }