Exemple #1
0
 /// <summary>
 /// Получить все записи информации о документе обмена.
 /// </summary>
 /// <param name="document">Документ.</param>
 /// <returns>Записи информации.</returns>
 public static IQueryable <IExchangeDocumentInfo> GetAllExDocumentInfos(Docflow.IOfficialDocument document)
 {
     return(ExchangeDocumentInfos.GetAll(x => Equals(x.Document, document)));
 }
Exemple #2
0
        public static IExchangeDocumentInfo GetExDocumentInfoByExternalId(ExchangeCore.IBoxBase box, string serviceId)
        {
            var rootBox = ExchangeCore.PublicFunctions.BoxBase.GetRootBox(box);

            return(ExchangeDocumentInfos.GetAll().OrderByDescending(x => x.Id).FirstOrDefault(x => Equals(x.RootBox, rootBox) && x.ServiceDocumentId == serviceId));
        }