protected virtual IEnumerable ViewSummary(PXAdapter a)
 {
     if (this.ResultRecords.Current != null)
     {
         InventorySummaryEnq.Redirect(
             this.ResultRecords.Current.InventoryID,
             this.ResultRecords.Current.SubItemCD,
             this.ResultRecords.Current.SiteID,
             this.ResultRecords.Current.LocationID, false);
     }
     return(a.Get());
 }
 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());
 }
示例#3
0
        protected virtual IEnumerable ViewSummary(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;
                    InventorySummaryEnq.Redirect(intran.InventoryID, subItem != null ? (string)subItem.Value : null,
                                                 intran.SiteID, intransplit.LocationID, false);
                }
            }
            return(a.Get());
        }
示例#4
0
        public virtual IEnumerable InventorySummary(PXAdapter adapter)
        {
            PXCache tCache = transactions.Cache;
            INTran  line   = transactions.Current;

            if (line == null)
            {
                return(adapter.Get());
            }

            InventoryItem item = (InventoryItem)PXSelectorAttribute.Select <INTran.inventoryID>(tCache, line);

            if (item != null && item.StkItem == true)
            {
                INSubItem sbitem = (INSubItem)PXSelectorAttribute.Select <INTran.subItemID>(tCache, line);
                InventorySummaryEnq.Redirect(item.InventoryID,
                                             ((sbitem != null) ? sbitem.SubItemCD : null),
                                             line.SiteID,
                                             line.LocationID);
            }
            return(adapter.Get());
        }
示例#5
0
        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.PK.Find(this, line.InventoryID);

            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());
        }