public virtual IEnumerable UpdateExpirationDate(PXAdapter adapter) { if (ProcessingCenter.Current != null) { CCProcessingCenter row = ProcessingCenter.Current; CCUpdateExpirationDatesProcess updateGraph = PXGraph.CreateInstance <CCUpdateExpirationDatesProcess>(); updateGraph.Filter.Current = new CCUpdateExpirationDatesProcess.CPMFilter() { ProcessingCenterID = row.ProcessingCenterID }; throw new PXRedirectRequiredException(updateGraph, true, "UpdateExpirationDate") { Mode = PXBaseRedirectException.WindowMode.NewWindow }; } return(adapter.Get()); }
public virtual IEnumerable UpdateExpirationDate(PXAdapter adapter) { if (ProcessingCenter.Current != null) { CCProcessingCenter row = ProcessingCenter.Current; if (string.IsNullOrEmpty(CCProcessingUtils.GetExpirationDateFormat(this, row.ProcessingCenterID))) { ICCPaymentProcessing processor = this.CreateAndInitProcessor(row); this.ImportExpDateFromPC(processor); this.Save.Press(); } CCUpdateExpirationDatesProcess updateGraph = PXGraph.CreateInstance <CCUpdateExpirationDatesProcess>(); updateGraph.Filter.Current = new CCUpdateExpirationDatesProcess.CPMFilter() { ProcessingCenterID = row.ProcessingCenterID }; throw new PXRedirectRequiredException(updateGraph, true, "UpdateExpirationDate") { Mode = PXBaseRedirectException.WindowMode.NewWindow }; } return(adapter.Get()); }