Пример #1
0
        /// <summary>
        /// Searches the operation did finish with result.
        /// </summary>
        /// <param name="operation">The operation.</param>
        /// <param name="result">The result.</param>
        public override void SearchOperationDidFinishWithResult(Operation operation, UPCRMResult result)
        {
            TimelineSearch timelineSearch = this.searches[this.nextSearch++];

            timelineSearch.Result = result;
            this.ExecuteNextSearch();
        }
Пример #2
0
        private void ExecuteNextSearch()
        {
            if (this.nextSearch < this.searches.Count)
            {
                TimelineSearch timelineSearch = this.searches[this.nextSearch];
                if (timelineSearch.CrmQuery == null)
                {
                    ++this.nextSearch;
                    this.ExecuteNextSearch();
                    return;
                }

                timelineSearch.CrmQuery.Find(this.RequestOption, this);
                return;
            }

            this.BuildPageFromResults();
        }
Пример #3
0
        /// <summary>
        /// Updates the element for calendar group.
        /// </summary>
        /// <param name="origDetailGroup">The original detail group.</param>
        /// <returns></returns>
        public override UPMCalendarPopoverGroup UpdateElementForCalendarGroup(UPMCalendarPopoverGroup origDetailGroup)
        {
            if (!(origDetailGroup.Context is ResultRowCalendarItem))
            {
                return(base.UpdateElementForCalendarGroup(origDetailGroup));
            }

            if (origDetailGroup.Invalid)
            {
                ResultRowCalendarItem      calendarItem    = (ResultRowCalendarItem)origDetailGroup.Context;
                UPCoreMappingResultContext resultContext   = calendarItem.ResultContext;
                TimelineSearch             timelineSearch  = (TimelineSearch)resultContext.Context;
                string sourceCopyFieldGroupName            = timelineSearch.FieldGroupName;
                IConfigurationUnitStore configStore        = ConfigurationUnitStore.DefaultStore;
                FieldControl            sourceFieldControl = configStore.FieldControlByNameFromGroup("Details", sourceCopyFieldGroupName) ??
                                                             configStore.FieldControlByNameFromGroup("MiniDetails", sourceCopyFieldGroupName);

                this.Loader = new UPCalendarPopoverLoader(this);
                this.Loader.LoadElementForCalendarGroupFieldControl(origDetailGroup, sourceFieldControl);
            }

            return(origDetailGroup);
        }