public void AddQuestion( Document document, User recipient, string description, IEnumerable<Attachment> attachments, bool showAll )
Задать вопрос к документу
Синтаксис
public void AddQuestion( Document document, User recipient, string description, IEnumerable<Attachment> attachments, bool showAll )
Параметры
- document
- Тип: Document
Документ, к которому будет задан вопрос. Объект. Путь доступа: PublicAPI.Docflow.Document
- recipient
- Тип: User
Исполнитель. Объект. Путь доступа: PublicAPI.Portal.Security.User
- description
- Тип: System String
Описание вопроса
- attachments
- Тип: System.Collections.Generic IEnumerable Attachment
Вложения. Объект. Путь доступа: PublicAPI.Portal.Objects.Common.Attachment
- showAll
- Тип: System Boolean
Показывать всем
Заметки
Примеры
//загружаем документ по идентификатору var doc = PublicAPI.Docflow.Document.Load(3); //загружаем пользователя по идентификатору var recipient = PublicAPI.Portal.Security.User.Load(3); //находим все вложения с идентификаторами 2 и 3, используя EQL поиск var attachmets = PublicAPI.Portal.Objects.Common.Attachment.Find(new Filter{Query = "Id in (2,3)"},null); //задаем вопрос PublicAPI.Docflow.Document.AddQuestion(doc, recipient, description, attachments, showAll);
См. также