Пример #1
0
        public override void Execute()
        {
            base.Execute();

            var cic = _aggregate.GetCohortIdentificationConfigurationIfAny();

            var collection = new ViewAggregateExtractUICollection(_aggregate);

            //if it has a cic with a query cache AND it uses joinables.  Since this is a TOP 100 select * from dataset the cache on CHI is useless only patient index tables used by this query are useful if cached
            if (cic != null && cic.QueryCachingServer_ID != null && _aggregate.PatientIndexJoinablesUsed.Any())
            {
                switch (MessageBox.Show("Use Query Cache when building query?", "Use Configured Cache", MessageBoxButtons.YesNoCancel))
                {
                case DialogResult.Cancel:
                    return;

                case DialogResult.Yes:
                    collection.UseQueryCache = true;
                    break;

                case DialogResult.No:
                    collection.UseQueryCache = false;
                    break;

                default:
                    throw new ArgumentOutOfRangeException();
                }
            }

            Activator.Activate <ViewSQLAndResultsWithDataGridUI>(collection);
        }
        public override void Execute()
        {
            base.Execute();

            if (_toFile != null)
            {
                var collection = new ViewAggregateExtractUICollection(_aggregate);
                ExtractTableVerbatim.ExtractDataToFile(collection, _toFile);
            }
            else
            {
                BasicActivator.ShowGraph(_aggregate);
            }
        }
Пример #3
0
        public override void Execute()
        {
            base.Execute();

            var cic = _aggregate.GetCohortIdentificationConfigurationIfAny();

            var collection = new ViewAggregateExtractUICollection(_aggregate);

            //if it has a cic with a query cache AND it uses joinables.  Since this is a TOP 100 select * from dataset the cache on CHI is useless only patient index tables used by this query are useful if cached
            if (cic != null && cic.QueryCachingServer_ID != null && _aggregate.PatientIndexJoinablesUsed.Any())
            {
                if (!BasicActivator.YesNo("Use Query Cache when building query?", "Use Configured Cache", out bool chosen))
                {
                    return;
                }

                collection.UseQueryCache = chosen;
            }

            BasicActivator.ShowData(collection);
        }