public virtual void addNew() { EPEventMaint graph = CreateInstance <EPEventMaint>(); graph.Events.Insert(); graph.Events.Cache.IsDirty = false; PXRedirectHelper.TryRedirect(graph, PXRedirectHelper.WindowMode.InlineWindow); }
public virtual IEnumerable viewEvent(PXAdapter adapter) { if (this.Events.Current != null) { var evnt = this.Events.Current; this.Persist(); EPEventMaint graph = PXGraph.CreateInstance <PX.Objects.EP.EPEventMaint>(); graph.Events.Current = (CRActivity)PXSelect <CRActivity, Where <CRActivity.noteID, Equal <Required <CRActivity.noteID> > > > . SelectSingleBound(this, null, evnt.NoteID); if (graph.Events.Current != null) { PXRedirectHelper.TryRedirect(graph, PXRedirectHelper.WindowMode.InlineWindow); } } return(adapter.Get()); }