public IEnumerable ViewTask(PXAdapter adapter)
        {
            if (Items.Current != null)
            {
                ProjectTaskEntry graph = PXGraph.CreateInstance <ProjectTaskEntry>();
                graph.Task.Current = PXSelect <PMTask, Where <PMTask.projectID, Equal <Required <PMTask.projectID> >, And <PMTask.taskID, Equal <Required <PMTask.taskID> > > > > .Select(this, Items.Current.ProjectID, Items.Current.ProjectTaskID);

                throw new PXPopupRedirectException(graph, Messages.ProjectTaskEntry + " - " + Messages.ViewTask, true);
            }
            return(adapter.Get());
        }
Ejemplo n.º 2
0
        public virtual IEnumerable ViewTask(PXAdapter adapter)
        {
            ProjectTaskEntry graph = CreateInstance <ProjectTaskEntry>();

            graph.Task.Current = PXSelect <PMTask, Where <PMTask.taskID, Equal <Current <PMTask.taskID> > > > .Select(this);

            throw new PXRedirectRequiredException(graph, true, Messages.ViewTask)
                  {
                      Mode = PXBaseRedirectException.WindowMode.NewWindow
                  };
        }