public TranslationRelease() { CMSetup setup = CMSetup.Current; TranslationReleaseList.SetProcessDelegate( delegate(TranslationHistory transl) { TranslationHistoryMaint.CreateBatch(transl, false); } ); TranslationReleaseList.SetProcessCaption(Messages.Release); TranslationReleaseList.SetProcessAllVisible(false); }
public virtual IEnumerable ViewTranslation(PXAdapter adapter) { if (TranslationReleaseList.Current != null) { if (TranslationReleaseList.Current.ReferenceNbr != null) { TranslationHistoryMaint graph = PXGraph.CreateInstance <TranslationHistoryMaint>(); graph.Clear(); TranslationHistory newTranslation = new TranslationHistory(); graph.TranslHistRecords.Current = PXSelect <TranslationHistory, Where <TranslationHistory.referenceNbr, Equal <Required <TranslationHistory.referenceNbr> > > > .Select(this, TranslationReleaseList.Current.ReferenceNbr); throw new PXRedirectRequiredException(graph, true, Messages.ViewTranslation) { Mode = PXBaseRedirectException.WindowMode.NewWindow }; } } return(TranslationReleaseList.Select()); }