public override void Execute()
        {
            base.Execute();

            var collection = new ViewCohortExtractionUICollection(Cohort)
            {
                Top             = Sample,
                IncludeCohortID = _includeCohortID
            };

            FileInfo toFile = ToFile;

            if (AskForFile)
            {
                toFile = BasicActivator.SelectFile("Save cohort as", "Comma Separated Values", "*.csv");
                if (toFile == null)
                {
                    // user cancelled selecting a file
                    return;
                }
            }

            if (toFile == null)
            {
                BasicActivator.ShowData(collection);
            }
            else
            {
                ExtractTableVerbatim.ExtractDataToFile(collection, toFile);
            }
        }
예제 #2
0
 public override void Execute()
 {
     if (ToFile == null)
     {
         BasicActivator.ShowData(_collection);
     }
     else
     {
         ExtractTableVerbatim.ExtractDataToFile(_collection, ToFile);
     }
 }
        public override void Execute()
        {
            base.Execute();

            if (_toFile != null)
            {
                var collection = new ViewAggregateExtractUICollection(_aggregate);
                ExtractTableVerbatim.ExtractDataToFile(collection, _toFile);
            }
            else
            {
                BasicActivator.ShowGraph(_aggregate);
            }
        }
예제 #4
0
        public override void Execute()
        {
            base.Execute();

            var collection = new ArbitraryTableExtractionUICollection(_table)
            {
                OverrideSql = _query
            };

            if (_toFile != null)
            {
                ExtractTableVerbatim.ExtractDataToFile(collection, _toFile);
            }
            else
            {
                BasicActivator.ShowData(collection);
            }
        }