Example #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;
        }
Example #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;
        }
        protected async System.Threading.Tasks.Task Grid0LoadData(LoadDataArgs args)
        {
            try
            {
                var crmGetOpportunitiesResult = await Crm.GetOpportunities(filter : $"{args.Filter}", orderby : $"{args.OrderBy}", expand : $"Contact,OpportunityStatus,User", top : args.Top, skip : args.Skip, count : args.Top != null && args.Skip != null);

                getOpportunitiesResult = crmGetOpportunitiesResult.Value.AsODataEnumerable();

                getOpportunitiesCount = crmGetOpportunitiesResult.Count;
            }
            catch (Exception crmGetOpportunitiesException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to load Opportunities");
            }
        }
Example #4
0
        protected async void Load()
        {
            var crmGetOpportunitiesResult = await Crm.GetOpportunities();

            getOpportunitiesResult = crmGetOpportunitiesResult;

            var crmGetTaskTypesResult = await Crm.GetTaskTypes();

            getTaskTypesResult = crmGetTaskTypesResult;

            var crmGetTaskStatusesResult = await Crm.GetTaskStatuses();

            getTaskStatusesResult = crmGetTaskStatusesResult;

            task = new RadzenCrm.Models.Crm.Task();
        }
        protected async System.Threading.Tasks.Task Load()
        {
            var crmGetTaskByIdResult = await Crm.GetTaskById(id : Id);

            task = crmGetTaskByIdResult;

            var crmGetOpportunitiesResult = await Crm.GetOpportunities();

            getOpportunitiesResult = crmGetOpportunitiesResult.Value.AsODataEnumerable();

            var crmGetTaskTypesResult = await Crm.GetTaskTypes();

            getTaskTypesResult = crmGetTaskTypesResult.Value.AsODataEnumerable();

            var crmGetTaskStatusesResult = await Crm.GetTaskStatuses();

            getTaskStatusesResult = crmGetTaskStatusesResult.Value.AsODataEnumerable();
        }
        protected async System.Threading.Tasks.Task Load()
        {
            var crmGetOpportunitiesResult = await Crm.GetOpportunities();

            getOpportunitiesResult = crmGetOpportunitiesResult.Value.AsODataEnumerable();

            var crmGetTaskTypesResult = await Crm.GetTaskTypes();

            getTaskTypesResult = crmGetTaskTypesResult.Value.AsODataEnumerable();

            var crmGetTaskStatusesResult = await Crm.GetTaskStatuses();

            getTaskStatusesResult = crmGetTaskStatusesResult.Value.AsODataEnumerable();

            task = new BlazorCrmWasm.Models.Crm.Task()
            {
            };
        }
Example #7
0
        protected async System.Threading.Tasks.Task Load()
        {
            canEdit = true;

            var crmGetTaskByIdResult = await Crm.GetTaskById(Id);

            task = crmGetTaskByIdResult;

            var crmGetOpportunitiesResult = await Crm.GetOpportunities();

            getOpportunitiesResult = crmGetOpportunitiesResult;

            var crmGetTaskTypesResult = await Crm.GetTaskTypes();

            getTaskTypesResult = crmGetTaskTypesResult;

            var crmGetTaskStatusesResult = await Crm.GetTaskStatuses();

            getTaskStatusesResult = crmGetTaskStatusesResult;
        }
Example #8
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 void Load()
        {
            canEdit = true;

            var crmGetTaskByIdResult = await Crm.GetTaskById(int.Parse($"{Id}"));

            task = crmGetTaskByIdResult;

            var crmGetOpportunitiesResult = await Crm.GetOpportunities();

            getOpportunitiesResult = crmGetOpportunitiesResult;

            var crmGetTaskTypesResult = await Crm.GetTaskTypes();

            getTaskTypesResult = crmGetTaskTypesResult;

            var crmGetTaskStatusesResult = await Crm.GetTaskStatuses();

            getTaskStatusesResult = crmGetTaskStatusesResult;
        }
Example #10
0
        protected async void Load()
        {
            var crmGetOpportunitiesResult = await Crm.GetOpportunities();

            getOpportunitiesResult = crmGetOpportunitiesResult;
        }
        protected async System.Threading.Tasks.Task Load()
        {
            var crmGetOpportunitiesResult = await Crm.GetOpportunities();

            getOpportunitiesResult = crmGetOpportunitiesResult;
        }