public virtual System.Collections.IEnumerable ViewDocument(PXAdapter adapter) { PXCache tCache = FixedDemand.Cache; SOFixedDemand line = FixedDemand.Current; if (line == null) { return(adapter.Get()); } SOOrderEntry graph = PXGraph.CreateInstance <SOOrderEntry>(); graph.Document.Current = graph.Document.Search <SOOrder.orderNbr>(line.OrderNbr, line.OrderType); throw new PXRedirectRequiredException(graph, true, "View Document") { Mode = PXBaseRedirectException.WindowMode.NewWindow }; }
public virtual System.Collections.IEnumerable InventorySummary(PXAdapter adapter) { PXCache tCache = FixedDemand.Cache; SOFixedDemand line = FixedDemand.Current; if (line == null) { return(adapter.Get()); } InventoryItem item = (InventoryItem)PXSelectorAttribute.Select <SOFixedDemand.inventoryID>(tCache, line); if (item != null && item.StkItem == true) { INSubItem sbitem = (INSubItem)PXSelectorAttribute.Select <SOFixedDemand.subItemID>(tCache, line); InventorySummaryEnq.Redirect(item.InventoryID, ((sbitem != null) ? sbitem.SubItemCD : null), line.SiteID, line.LocationID); } return(adapter.Get()); }