Exemple #1
0
        public virtual void addNew()
        {
            EPEventMaint graph = CreateInstance <EPEventMaint>();

            graph.Events.Insert();
            graph.Events.Cache.IsDirty = false;
            PXRedirectHelper.TryRedirect(graph, PXRedirectHelper.WindowMode.InlineWindow);
        }
Exemple #2
0
        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());
        }