protected virtual IEnumerable ViewSummary(PXAdapter a) { if (this.ResultRecords.Current != null) { PXSegmentedState subItem = this.ResultRecords.Cache.GetValueExt <InventoryTranHistEnqResult.subItemID> (this.ResultRecords.Current) as PXSegmentedState; InventorySummaryEnq.Redirect( this.ResultRecords.Current.InventoryID, subItem != null ? (string)subItem.Value : null, this.ResultRecords.Current.SiteID, this.ResultRecords.Current.LocationID, false); } return(a.Get()); }
protected virtual IEnumerable ViewAllocDet(PXAdapter a) { if (this.Records.Current != null) { PXSegmentedState subItem = this.Records.Cache.GetValueExt <INTranSplit.subItemID> (this.Records.Current) as PXSegmentedState; InventoryAllocDetEnq.Redirect( this.Records.Current.InventoryID, subItem != null ? (string)subItem.Value : null, this.Records.Current.LotSerialNbr, this.Records.Current.SiteID, this.Records.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()); }