コード例 #1
0
        protected async void Load()
        {
            var crmGetContactsResult = await Crm.GetContacts();

            getContactsResult = crmGetContactsResult;

            contactFilter = "";
        }
コード例 #2
0
        protected async System.Threading.Tasks.Task Load()
        {
            var crmGetContactsResult = await Crm.GetContacts();

            getContactsResult = crmGetContactsResult;

            contactFilter = "";
        }
コード例 #3
0
        protected async void Button1Click(MouseEventArgs args)
        {
            var crmGetContactsResult = await Crm.GetContacts(new Query()
            {
                Filter = $@"i => i.Email.Contains(""{contactFilter}"") || i.Company.Contains(""{contactFilter}"") || i.FirstName.Contains(""{contactFilter}"") || i.LastName.Contains(""{contactFilter}"")"
            });

            getContactsResult = crmGetContactsResult;
        }
コード例 #4
0
        protected async System.Threading.Tasks.Task Load()
        {
            var crmGetContactsResult = await Crm.GetContacts();

            getContactsResult = crmGetContactsResult;

            var crmGetOpportunityStatusesResult = await Crm.GetOpportunityStatuses();

            getOpportunityStatusesResult = crmGetOpportunityStatusesResult;

            opportunity = new RadzenCrm.Models.Crm.Opportunity();
        }
コード例 #5
0
        protected async void Load()
        {
            var crmGetContactsResult = await Crm.GetContacts();

            getContactsResult = crmGetContactsResult;

            var crmGetOpportunityStatusesResult = await Crm.GetOpportunityStatuses();

            getOpportunityStatusesResult = crmGetOpportunityStatusesResult;

            opportunity = new RadzenCrm.Models.Crm.Opportunity();
        }
コード例 #6
0
        protected async System.Threading.Tasks.Task Load()
        {
            var crmGetContactsResult = await Crm.GetContacts();

            getContactsResult = crmGetContactsResult.Value.AsODataEnumerable();

            var crmGetOpportunityStatusesResult = await Crm.GetOpportunityStatuses();

            getOpportunityStatusesResult = crmGetOpportunityStatusesResult.Value.AsODataEnumerable();

            opportunity = new BlazorCrmWasm.Models.Crm.Opportunity()
            {
            };
        }
コード例 #7
0
        protected async System.Threading.Tasks.Task Load()
        {
            var crmGetOpportunityByIdResult = await Crm.GetOpportunityById(id : Id);

            opportunity = crmGetOpportunityByIdResult;

            var crmGetContactsResult = await Crm.GetContacts();

            getContactsResult = crmGetContactsResult.Value.AsODataEnumerable();

            var crmGetOpportunityStatusesResult = await Crm.GetOpportunityStatuses();

            getOpportunityStatusesResult = crmGetOpportunityStatusesResult.Value.AsODataEnumerable();
        }
コード例 #8
0
        protected async System.Threading.Tasks.Task Grid0LoadData(LoadDataArgs args)
        {
            try
            {
                var crmGetContactsResult = await Crm.GetContacts(filter : $@"contains(Email,""{contactFilter}"") or contains(Company,""{contactFilter}"") or contains(FirstName,""{contactFilter}"") or contains(LastName,""{contactFilter}"")", orderby : $@"{args.OrderBy}", top : args.Top, skip : args.Skip, count : args.Top != null && args.Skip != null);

                getContactsResult = crmGetContactsResult.Value.AsODataEnumerable();

                getContactsCount = crmGetContactsResult.Count;
            }
            catch (Exception crmGetContactsException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to load Contacts");
            }
        }
コード例 #9
0
        protected async void Load()
        {
            canEdit = true;

            var crmGetOpportunityByIdResult = await Crm.GetOpportunityById(int.Parse($"{Id}"));

            opportunity = crmGetOpportunityByIdResult;

            var crmGetContactsResult = await Crm.GetContacts();

            getContactsResult = crmGetContactsResult;

            var crmGetOpportunityStatusesResult = await Crm.GetOpportunityStatuses();

            getOpportunityStatusesResult = crmGetOpportunityStatusesResult;
        }
コード例 #10
0
        protected async System.Threading.Tasks.Task Load()
        {
            canEdit = true;

            var crmGetOpportunityByIdResult = await Crm.GetOpportunityById(Id);

            opportunity = crmGetOpportunityByIdResult;

            var crmGetContactsResult = await Crm.GetContacts();

            getContactsResult = crmGetContactsResult;

            var crmGetOpportunityStatusesResult = await Crm.GetOpportunityStatuses();

            getOpportunityStatusesResult = crmGetOpportunityStatusesResult;
        }