示例#1
0
        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;
        }
示例#2
0
        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;
        }
示例#3
0
        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");
            }
        }
示例#4
0
        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;
        }
示例#6
0
        protected async void Load()
        {
            var crmGetTasksResult = await Crm.GetTasks();

            getTasksResult = crmGetTasksResult;
        }