Beispiel #1
0
        /// <summary>
        /// Recall a time entry.
        /// </summary>
        /// <returns></returns>
        public virtual async Tasks.Task <bool> Recall()
        {
            msdyn_timeentry time = this.Time;

            if (!this.IsSubmitted())
            {
                return(false);
            }

            TimeEntryRecaller recaller = new TimeEntryRecaller();

            recaller.DataAccess = this.DataAccess;
            recaller.addTimeEntry(time);

            return(await recaller.ExecuteAction());
        }
Beispiel #2
0
        internal async Tasks.Task <bool> RecallSelectedTimeEntries()
        {
            TimeEntryRecaller recaller = new TimeEntryRecaller();

            recaller.DataAccess = this.DataAccess;

            foreach (msdyn_timeentry timeEntry in this.SelectedEntries())
            {
                msdyn_timeentry_msdyn_entrystatus?status = timeEntry.EntryStatus;
                if (status != null && status.Value == msdyn_timeentry_msdyn_entrystatus.Submitted)
                {
                    recaller.addTimeEntry(timeEntry);
                }
            }

            return(await recaller.ExecuteAction());
        }