예제 #1
0
        public Goods(Export export)
        {
            myExport = export;
            myExport.OnProgressPlusOneTask("Выгружаем товары");

            var groupsIds = myExport.ProductGroups.ToExportIds();

            Nomenclatures = _nomenclatureRepository.NomenclatureInGroupsQuery(groupsIds).GetExecutableQueryOver(myExport.UOW.Session).List();
            Nomenclatures.ToList().ForEach(n => n.CreateGuidIfNotExist(export.UOW));
        }