internal static Expression <Func <SalesOrder, bool> > ByScheduledShipDateInRange(DateTime?rangeStart, DateTime?rangeEnd) { var dateInRange = PredicateHelper.DateInRange(rangeStart, rangeEnd); // ReSharper disable SimplifyConditionalTernaryExpression return(o => o.InventoryShipmentOrder.ShipmentInformation.ShipmentDate == null ? false : dateInRange.Invoke(o.InventoryShipmentOrder.ShipmentInformation.ShipmentDate)); // ReSharper restore SimplifyConditionalTernaryExpression }
internal static Expression <Func <SampleOrder, bool> > ByDateCompleted(DateTime?dateCompletedStart, DateTime?dateCompletedEnd) { var dateInRange = PredicateHelper.DateInRange(dateCompletedStart, dateCompletedEnd); return(o => dateInRange.Invoke(o.DateCompleted)); }
internal static Expression <Func <LotProductionResults, bool?> > FilterByProductionBegin(DateTime?rangeStart, DateTime?rangeEnd) { var dateInRange = PredicateHelper.DateInRange(rangeStart, rangeEnd); return(r => dateInRange.Invoke(r.ProductionBegin)); }
internal static Expression <Func <SalesOrder, bool> > ByDateOrderReceivedInRange(DateTime?rangeStart, DateTime?rangeEnd) { var dateInRange = PredicateHelper.DateInRange(rangeStart, rangeEnd); return(o => dateInRange.Invoke(o.InventoryShipmentOrder.DateReceived)); }
internal static Expression <Func <Contract, bool> > ByTermBeginInRange(DateTime?rangeStart, DateTime?rangeEnd) { var dateInRange = PredicateHelper.DateInRange(rangeStart, rangeEnd); return(c => dateInRange.Invoke(c.TermBegin)); }