Exemple #1
0
        /// <summary>
        /// Получение списка позиций принятых накладных (поступивших в точное наличие)
        /// </summary>
        /// <param name="storageIdsSubQuery">Подзапрос для кодов МХ</param>
        /// <param name="articleIdsSubQuery">Подзапрос для кодов товаров</param>
        /// <param name="date">Дата выборки</param>
        public IEnumerable <IncomingWaybillRow> GetReceiptedWaybillRows(ISubQuery storageIdsSubQuery, ISubQuery articleIdsSubQuery, DateTime date)
        {
            var receiptWaybillRows          = receiptWaybillRepository.GetReceiptedWaybillRows(storageIdsSubQuery, articleIdsSubQuery, date).Select(x => ConvertToIncomingWaybillRow(x));
            var movementWaybillRows         = movementWaybillRepository.GetReceiptedWaybillRows(storageIdsSubQuery, articleIdsSubQuery, date).Select(x => ConvertToIncomingWaybillRow(x));
            var changeOwnerWaybillRows      = changeOwnerWaybillRepository.GetReceiptedWaybillRows(storageIdsSubQuery, articleIdsSubQuery, date).Select(x => ConvertToIncomingWaybillRow(x));
            var returnFromClientWaybillRows = returnFromClientWaybillRepository.GetReceiptedWaybillRows(storageIdsSubQuery, articleIdsSubQuery, date).Select(x => ConvertToIncomingWaybillRow(x));

            return(receiptWaybillRows
                   .Concat(movementWaybillRows)
                   .Concat(changeOwnerWaybillRows)
                   .Concat(returnFromClientWaybillRows));
        }