protected virtual void TranslationHistory_RowSelected(PXCache cache, PXRowSelectedEventArgs e) { TranslationHistory tlist = (TranslationHistory)e.Row; PXUIFieldAttribute.SetEnabled <TranslationHistory.dateEntered>(cache, tlist, false); PXUIFieldAttribute.SetEnabled <TranslationHistory.description>(cache, tlist, false); PXUIFieldAttribute.SetEnabled <TranslationHistory.ledgerID>(cache, tlist, false); PXUIFieldAttribute.SetEnabled <TranslationHistory.finPeriodID>(cache, tlist, false); PXUIFieldAttribute.SetEnabled <TranslationHistory.referenceNbr>(cache, tlist, false); PXUIFieldAttribute.SetEnabled <TranslationHistory.batchNbr>(cache, tlist, false); //PXUIFieldAttribute.SetEnabled<TranslationHistory.reversedBatchNbr>(cache, tlist, false); PXUIFieldAttribute.SetEnabled <TranslationHistory.status>(cache, tlist, false); }
public virtual IEnumerable ViewDetails(PXAdapter adapter) { if (this.TranslationHistoryRecords.Current != null) { if (this.TranslationHistoryRecords.Current.ReferenceNbr != null) { TranslationHistoryMaint graph = PXGraph.CreateInstance <TranslationHistoryMaint>(); graph.Clear(); TranslationHistory newHist = new TranslationHistory(); graph.TranslHistRecords.Current = PXSelect <TranslationHistory, Where <TranslationHistory.referenceNbr, Equal <Required <TranslationHistory.referenceNbr> > > > .Select(this, TranslationHistoryRecords.Current.ReferenceNbr); throw new PXRedirectRequiredException(graph, true, Messages.ViewTranslationDetails) { Mode = PXBaseRedirectException.WindowMode.NewWindow }; } } return(Filter.Select()); }