public IEnumerable subcontractLines() { var extension = PXCache <POOrderFilter> .GetExtension <PoOrderFilterExt>(Base2.orderfilter.Current); return(Base2.pOOrderLinesList().Cast <POLineRS>() .Where(line => line.OrderType == POOrderType.RegularSubcontract && extension.SubcontractNumber.IsIn(null, line.OrderNbr))); }
public IEnumerable poOrderLinesList() { return(Base2.pOOrderLinesList().Cast <POLineRS>() .Where(line => line.OrderType != POOrderType.RegularSubcontract)); }