public virtual IEnumerable Voided(PXAdapter adapter) { CARecon recon = CAReconRecords.Current; if (recon != null) { PXLongOperation.StartOperation(this, delegate() { CAReconEntry.ReconVoided(recon); }); CAReconRecords.View.RequestRefresh(); } return(adapter.Get()); }
public virtual IEnumerable ViewDoc(PXAdapter adapter) { CARecon curRecon = CAReconRecords.Current; CAReconEntry graph = PXGraph.CreateInstance <CAReconEntry>(); graph.CAReconRecords.Current = curRecon; throw new PXRedirectRequiredException(graph, true, "Document") { Mode = PXBaseRedirectException.WindowMode.NewWindow }; }
public virtual IEnumerable ViewRecon(PXAdapter adapter) { if (CATranListRecords.Current.ReconNbr != null) { CAReconEntry graph = PXGraph.CreateInstance <CAReconEntry>(); CARecon recon = PXSelect <CARecon, Where <CARecon.reconNbr, Equal <Required <CATran.reconNbr> > > > .Select(graph, CATranListRecords.Current.ReconNbr); if (recon != null) { graph.CAReconRecords.Current = recon; throw new PXRedirectRequiredException(graph, "Reconciliation"); } } return(Filter.Select()); }
public virtual IEnumerable CreateRecon(PXAdapter adapter) { if (this.Views.ContainsKey("cashAccountFilter")) { CashAccountFilter createReconFilter = cashAccountFilter.Current; WebDialogResult result = this.Views["cashAccountFilter"].AskExt(); if (result == WebDialogResult.OK) { CashAccount acct = PXSelect <CashAccount, Where <CashAccount.cashAccountID, Equal <Required <AddTrxFilter.cashAccountID> > > > .Select(this, createReconFilter.CashAccountID); CAReconEntry.ReconCreate(acct); CAReconRecords.View.RequestRefresh(); } } return(adapter.Get()); }
public override void Persist() { List <CATran> list = new List <CATran>((IEnumerable <CATran>) this.CATrans.Cache.Cached); list.Concat_((IEnumerable <CATran>) this.CATransInBatch.Cache.Cached); using (PXTransactionScope ts = new PXTransactionScope()) { base.Persist(); foreach (CATran tran in list) { CAReconEntry.UpdateClearedOnSourceDoc(tran); } ts.Complete(); } }
public override void Persist() { List <CATran> list = new List <CATran>((IEnumerable <CATran>) this.Caches[typeof(CATran)].Updated); using (var ts = new PXTransactionScope()) { base.Persist(); foreach (CATran tran in list) { if (tran.Reconciled != true) { CAReconEntry.UpdateClearedOnSourceDoc(tran); } } ts.Complete(this); } Caches[typeof(CM.CurrencyInfo)].SetStatus(Caches[typeof(CM.CurrencyInfo)].Current, PXEntryStatus.Inserted); }