示例#1
0
        /// <summary>
        /// Отчеты по всем точкам
        /// </summary>
        public void InsPointReportsAll()
        {
            var doc = Application.DocumentManager.MdiActiveDocument;

            if (doc == null)
            {
                return;
            }
            var db = doc.Database;

            using (doc.LockDocument())
            {
                var tables = new List <Entity>();
                foreach (var item in Points)
                {
                    var report = new InsPointReport(item, doc.Database);
                    report.CalcRows();
                    var table = report.Create();
                    tables.Add(table);
                }
                // вставка таблиц
                doc.Editor.Drag(tables, 150);
                PluginStatisticsHelper.AddStatistic();
            }
        }
示例#2
0
        /// <summary>
        /// Отчет по точке - вставка таблицы отчета
        /// </summary>
        public void InsPointReport()
        {
            var doc = Application.DocumentManager.MdiActiveDocument;

            if (doc == null)
            {
                return;
            }
            using (doc.LockDocument())
            {
                var report = new InsPointReport(this, doc.Database);
                report.CalcRows();
                var table = report.Create();
                report.Insert(table, doc);
                PluginStatisticsHelper.AddStatistic();
            }
        }