Пример #1
0
        /// <summary>
        /// Marks the <see cref="RegistryEntryDocument"/> as complete.
        /// </summary>
        /// <param name="instance">The instance.</param>
        /// <param name="registryEntryDocument">The target.</param>
        public static void MarkRegistryEntryDocumentAsComplete(this IFunctionManager instance,
                                                               RegistryEntryDocument registryEntryDocument)
        {
            if (instance == null)
            {
                throw new ArgumentNullException("instance");
            }

            if (registryEntryDocument == null)
            {
                throw new ArgumentNullException("registryEntryDocument");
            }

            instance.MarkRegistryEntryDocumentAsComplete(registryEntryDocument.RegistryEntryId,
                                                         registryEntryDocument.DocumentDescriptionId);
        }
Пример #2
0
        /// <summary>
        /// Requests the document approval.
        /// </summary>
        /// <param name="instance">The instance.</param>
        /// <param name="registryEntryDocument">The registry entry document.</param>
        /// <param name="approverUserNameId">The approver user name id.</param>
        public static void RequestDocumentApproval(this IFunctionManager instance,
                                                   RegistryEntryDocument registryEntryDocument,
                                                   int?approverUserNameId = null)
        {
            if (instance == null)
            {
                throw new ArgumentNullException("instance");
            }

            if (registryEntryDocument == null)
            {
                throw new ArgumentNullException("registryEntryDocument");
            }

            instance.RequestDocumentApproval(registryEntryDocument.RegistryEntryId,
                                             registryEntryDocument.DocumentDescriptionId, approverUserNameId ?? 0);
        }
Пример #3
0
        /// <summary>
        /// Requests the document approval.
        /// </summary>
        /// <param name="instance">The instance.</param>
        /// <param name="registryEntryDocument">The registry entry document.</param>
        /// <param name="approverUserNameId">The approver user name id.</param>
        public static async System.Threading.Tasks.Task RequestDocumentApprovalAsync(this IAsyncFunctionManager instance,
                                                                                     RegistryEntryDocument registryEntryDocument,
                                                                                     int?approverUserNameId = null)
        {
            if (instance == null)
            {
                throw new ArgumentNullException("instance");
            }

            if (registryEntryDocument == null)
            {
                throw new ArgumentNullException("registryEntryDocument");
            }

            await instance.RequestDocumentApprovalAsync(registryEntryDocument.RegistryEntryId,
                                                        registryEntryDocument.DocumentDescriptionId, approverUserNameId ?? 0);
        }
Пример #4
0
        /// <summary>
        /// Marks the <see cref="RegistryEntryDocument"/> as complete.
        /// </summary>
        /// <param name="instance">The instance.</param>
        /// <param name="registryEntryDocument">The target.</param>
        public static async System.Threading.Tasks.Task MarkRegistryEntryDocumentAsCompleteAsync(this IAsyncFunctionManager instance,
                                                                                                 RegistryEntryDocument registryEntryDocument)
        {
            if (instance == null)
            {
                throw new ArgumentNullException("instance");
            }

            if (registryEntryDocument == null)
            {
                throw new ArgumentNullException("registryEntryDocument");
            }

            await instance.MarkRegistryEntryDocumentAsCompleteAsync(registryEntryDocument.RegistryEntryId,
                                                                    registryEntryDocument.DocumentDescriptionId);
        }