コード例 #1
0
 public virtual IEnumerable viewExternalTransaction(PXAdapter adapter)
 {
     if (this.PaymentTrans.Current != null)
     {
         ExternalTransactionExt   row   = this.PaymentTrans.Current;
         ExternalTransactionMaint graph = PXGraph.CreateInstance <ExternalTransactionMaint>();
         graph.CurrentTransaction.Current = row;
         if (graph.CurrentTransaction.Current != null)
         {
             throw new PXRedirectRequiredException(graph, true, Messages.ViewExternalTransaction)
                   {
                       Mode = PXBaseRedirectException.WindowMode.NewWindow
                   };
         }
     }
     return(Filter.Select());
 }
コード例 #2
0
        public virtual IEnumerable viewDocument(PXAdapter adapter)
        {
            ExternalTransactionExt tran = this.PaymentTrans.Current;

            if (tran != null)
            {
                PXGraph target = CCTransactionsHistoryEnq.FindSourceDocumentGraph(tran.DocType, tran.RefNbr, null, null);
                if (target != null)
                {
                    throw new PXRedirectRequiredException(target, true, Messages.ViewDocument)
                          {
                              Mode = PXBaseRedirectException.WindowMode.NewWindow
                          }
                }
                ;
            }
            return(Filter.Select());
        }
コード例 #3
0
        public virtual IEnumerable viewProcessingCenter(PXAdapter adapter)
        {
            if (this.PaymentTrans.Current != null)
            {
                ExternalTransactionExt row        = this.PaymentTrans.Current;
                CustomerPaymentMethod  pmInstance = PXSelect <CustomerPaymentMethod, Where <CustomerPaymentMethod.pMInstanceID, Equal <Required <CustomerPaymentMethod.pMInstanceID> > > > .Select(this, row.PMInstanceID);

                CCProcessingCenterMaint graph = PXGraph.CreateInstance <CCProcessingCenterMaint>();
                graph.ProcessingCenter.Current = graph.ProcessingCenter.Search <CCProcessingCenter.processingCenterID>(pmInstance.CCProcessingCenterID);
                if (graph.ProcessingCenter.Current != null)
                {
                    throw new PXRedirectRequiredException(graph, true, Messages.ViewProcessingCenter)
                          {
                              Mode = PXBaseRedirectException.WindowMode.NewWindow
                          };
                }
            }
            return(Filter.Select());
        }
コード例 #4
0
        public virtual IEnumerable viewOrigDocument(PXAdapter adapter)
        {
            ExternalTransactionExt tran = this.PaymentTrans.Current;

            if (tran != null && !string.IsNullOrWhiteSpace(tran.OrigRefNbr))
            {
                SO.SOOrderEntry graph = PXGraph.CreateInstance <SO.SOOrderEntry>();
                graph.Document.Current = graph.Document.Search <SO.SOOrder.orderNbr>(tran.OrigRefNbr, tran.OrigDocType);

                if (graph.Document.Current != null)
                {
                    throw new PXRedirectRequiredException(graph, true, Messages.ViewOrigDocument)
                          {
                              Mode = PXBaseRedirectException.WindowMode.NewWindow
                          }
                }
                ;
            }
            return(Filter.Select());
        }