public SmartsheetSyncProcess()
 {
     Projects.SetProcessCaption("Sync");
     Projects.SetProcessAllCaption("Sync All");
     Projects.SetProcessDelegate <ProjectEntry>(
         delegate(ProjectEntry graph, PMProject projectRow)
     {
         graph.Clear();
         ProjectEntryExt projectEntryExtGraph = graph.GetExtension <ProjectEntryExt>();
         projectEntryExtGraph.CreateUpdateGanttProject(graph, projectRow, "", true);
     });
 }
Esempio n. 2
0
        protected virtual IEnumerable SynGanttSmartsheetProject(PXAdapter adapter)
        {
            PMProject pmProjectRow = this.Base.Project.Current;

            this.Base.Actions.PressSave();
            PXLongOperation.StartOperation(this.Base,
                                           delegate()
            {
                using (PXTransactionScope ts = new PXTransactionScope())
                {
                    ProjectEntry projectEntryGraph = PXGraph.CreateInstance <ProjectEntry>();
                    ProjectEntryExt graphExtended  = projectEntryGraph.GetExtension <ProjectEntryExt>();
                    graphExtended.CreateUpdateGanttProject(projectEntryGraph, pmProjectRow);

                    ts.Complete();
                }
            });

            return(adapter.Get());
        }