protected override IEnumerable <SalesUnitLookup> GetActualLookups(Project project)
 {
     return(AllLookups.Where(salesUnitLookup => salesUnitLookup.Entity.Project.Id == project.Id));
 }
예제 #2
0
 protected override IEnumerable <TenderLookup> GetActualLookups(Project project)
 {
     return(AllLookups
            .Where(tenderLookup => tenderLookup.Project.Id == project.Id)
            .OrderByDescending(tenderLookup => tenderLookup.Entity.DateOpen));
 }
예제 #3
0
 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));
 }
예제 #4
0
 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));
 }