protected override IEnumerable <SalesUnitLookup> GetActualLookups(Project project) { return(AllLookups.Where(salesUnitLookup => salesUnitLookup.Entity.Project.Id == project.Id)); }
protected override IEnumerable <TenderLookup> GetActualLookups(Project project) { return(AllLookups .Where(tenderLookup => tenderLookup.Project.Id == project.Id) .OrderByDescending(tenderLookup => tenderLookup.Entity.DateOpen)); }
protected override IEnumerable <PriceCalculationLookup> GetActualLookups(Project project) { return(AllLookups .Where(priceCalculationLookup => priceCalculationLookup.PriceCalculationItems.SelectMany(priceCalculationItemLookup => priceCalculationItemLookup.SalesUnits).Any(salesUnitLookup => salesUnitLookup.Project.Id == project.Id)) .OrderByDescending(priceCalculationLookup => priceCalculationLookup.Entity.TaskCloseMoment)); }
protected override IEnumerable <TechnicalRequrementsTaskLookup> GetActualLookups(Project project) { return(AllLookups .Where(technicalRequrementsTaskLookup => technicalRequrementsTaskLookup.Requrements.SelectMany(technicalRequrementsLookup => technicalRequrementsLookup.SalesUnits).Any(su => su.Project.Id == project.Id)) .OrderByDescending(technicalRequrementsTaskLookup => technicalRequrementsTaskLookup.Start)); }
protected override IEnumerable <SalesUnitLookup> GetActualLookups(Specification specification) { return(AllLookups.Where(lookup => lookup.Specification != null && lookup.Specification?.Id == specification.Id)); }