internal static IEnumerable <Expression <Func <LotProductionResults, ProductionResultReturn> > > SplitSelectDetail(IQueryable <ProductionBatch> productionBatches)
        {
            var resultItemProjectors = LotProductionResultItemProjectors.Select();

            return(SplitSelectReturn()
                   .ToAppendedList(SelectBatchResultsSummary(productionBatches).Merge(p => new ProductionResultReturn
            {
                ResultItems = p.ResultItems.Select(i => resultItemProjectors.Invoke(i)),
            }).ExpandAll()));
        }
예제 #2
0
        internal static Expression <Func <ChileLotProduction, MillAndWetdownReturn> > SelectDetail(ILotUnitOfWork lotUnitOfWork)
        {
            var resultItem = LotProductionResultItemProjectors.SelectMillAndWetdownResultItem();
            var pickedItem = PickedInventoryItemProjectors.SelectMillAndWetdownPickedItem(lotUnitOfWork);

            return(SelectBase().Merge(m => new MillAndWetdownReturn
            {
                ResultItems = m.Results.ResultItems.Select(i => resultItem.Invoke(i)),
                PickedItems = m.PickedInventory.Items.Select(i => pickedItem.Invoke(i))
            }));
        }