protected virtual IEnumerable ViewAllocDet(PXAdapter a) { if (this.ResultRecords.Current != null) { InventoryAllocDetEnq.Redirect( this.ResultRecords.Current.InventoryID, this.ResultRecords.Current.SubItemCD, null, this.ResultRecords.Current.SiteID, this.ResultRecords.Current.LocationID); } return(a.Get()); }
protected virtual IEnumerable ViewAllocDet(PXAdapter a) { if (this.ResultRecords.Current != null) { PXSegmentedState subItem = this.ResultRecords.Cache.GetValueExt <InventoryTranHistEnqResult.subItemID> (this.ResultRecords.Current) as PXSegmentedState; InventoryAllocDetEnq.Redirect( this.ResultRecords.Current.InventoryID, subItem != null ? (string)subItem.Value : null, null, this.ResultRecords.Current.SiteID, this.ResultRecords.Current.LocationID); } return(a.Get()); }
protected virtual IEnumerable ViewAllocDet(PXAdapter a) { if (this.ResultRecords.Current != null) { var currentResult = ResultRecords.Current; var intran = INTran.PK.Find(this, currentResult.DocType, currentResult.RefNbr, currentResult.LineNbr); var intransplit = INTranSplit.PK.Find(this, currentResult.DocType, currentResult.RefNbr, currentResult.LineNbr, currentResult.SplitLineNbr); if (intran != null) { PXSegmentedState subItem = ResultRecords.Cache.GetValueExt <INTranSplit.subItemID>(intransplit) as PXSegmentedState; InventoryAllocDetEnq.Redirect(intran.InventoryID, subItem != null ? (string)subItem.Value : null, null, intran.SiteID, intransplit.LocationID); } } return(a.Get()); }