public PoPageContext(IRawFordPage rawFordPage) { _lines = rawFordPage.Lines.ToArray(); _index = 0; State = new PoStateHeader(this); }
private static PcPriceChange ExtractPriceChange(IRawFordPage fordPage) { var context = new PcPageContext(fordPage); context.Process(); return(context.PriceChange); }
private static PoPurchaseOrder ExtractPurchaseOrder(IRawFordPage fordPage) { var context = new PoPageContext(fordPage); context.Process(); return(context.PurchaseOrder); }
public PcPageContext(IRawFordPage rawFordPage) { _lines = rawFordPage.Lines.ToArray(); _index = 0; State = new PcStateTop(this); }
private static bool IsPurchaseOrderPage(IRawFordPage fordPage) { var lines = fordPage.Lines; if (lines != null && lines.Any()) { var firstLine = lines.First(); return(firstLine.StartsWith(PoConstants.PurchaseOrder)); } return(false); }
private static bool IsPriceChangePage(IRawFordPage fordPage) { var lines = fordPage.Lines; if (lines != null && lines.Any()) { var firstLine = lines.First(); return(firstLine.StartsWith(PcConstants.PriceChange)); } return(false); }