Beispiel #1
0
 public CatalogTreeView(RadTreeView treeView, WorkspaceDef wDef, bool showHasToReport, DateTime date)
 {
     _treeView = treeView;
     _treeView.AutoCheckChildNodes = true;
     _wDef            = wDef;
     _showHasToReport = showHasToReport;
     _date            = date;
     LoadTheDayExtractResult(_date);
 }
Beispiel #2
0
 public CatalogTreeView(RadTreeView treeView, CatalogDef catalog, WorkspaceDef wDef, bool showHasToDb, DateTime date)
 {
     this._treeView = treeView;
     _treeView.AutoCheckChildNodes = true;
     this.wDef        = wDef;
     this._definition = catalog;
     _showHasToDb     = showHasToDb;
     _date            = date;
     LoadTodayExtractResult(_date);
 }
Beispiel #3
0
        public void UpdateData(Core.UI.ISmartSession smartSession)
        {
            this._smartSession = smartSession;
            MonitoringSession monitSession = _smartSession.MonitoringSession as MonitoringSession;
            ProductDef        productDef   = monitSession.ActiveMonitoringProduct.Definition;
            string            _identify    = productDef.Identify;

            _wDef = WorkspaceDefinitionFactory.GetWorkspaceDef(_identify);
            LoadData();
        }
Beispiel #4
0
        public void Init(WorkspaceDef wksdef)
        {
            _wksdef = wksdef;
            var strategyFilter = UWorkspace.StrategyFilter(wksdef);

            for (int i = 0; i < checkedListBox1.Items.Count; i++)
            {
                var item  = checkedListBox1.Items[i].ToString();
                var check = strategyFilter.Sensors.Contains(item);
                checkedListBox1.SetItemChecked(i, check);
            }

            numericUpDown1.Value = Convert.ToDecimal(strategyFilter.Days);
        }
Beispiel #5
0
        public void Apply(WorkspaceDef wksdef)
        {
            if (wksdef != null && wksdef.Identify == _preProductIdentify)
            {
                return;
            }
            if (_radPageView != null)
            {
                UnattachEvents();
                _catalogs.Clear();
                this.Controls.Remove(_radPageView);
            }
            _definition = wksdef;
            GetStrategyFilter(wksdef);
            _radPageView      = new RadPageView();
            _radPageView.Font = this.Font;
            _radPageView.Dock = DockStyle.Fill;

            //by chennan 20120814 工作空间划分为当前和历史
            _histroyPageView      = new RadPageView();
            _histroyPageView.Font = this.Font;
            _histroyPageView.Dock = DockStyle.Fill;
            //

            if (_definition != null)
            {
                foreach (CatalogDef catalog in _definition.CatalogDefs)
                {
                    RadPageViewItemPage tabPage = GetRadPage(catalog);
                    tabPage.Dock = DockStyle.Fill;
                    tabPage.Tag  = catalog;
                    //by chennan 20120814 工作空间划分为当前和历史

                    if (catalog is ExtractingCatalogDef)
                    {
                        _radPageView.Pages.Add(tabPage);
                    }
                    else
                    {
                        _histroyPageView.Pages.Add(tabPage);
                    }
                }
            }

            //by chennan 20120814 工作空间划分为当前和历史
            RadPageViewItemPage page = new RadPageViewItemPage();

            page.Text = "历史监测信息";
            page.Name = "histroy";
            page.Controls.Add(_histroyPageView);
            _radPageView.Pages.Add(page);
            //
            this.Controls.Add(_radPageView);
            //
            if (wksdef != null)
            {
                _preProductIdentify = wksdef.Identify;
            }
            else
            {
                _preProductIdentify = null;
            }
        }
Beispiel #6
0
        public void Apply(string productIdentify)
        {
            WorkspaceDef wks = WorkspaceDefinitionFactory.GetWorkspaceDef(productIdentify);

            Apply(wks);
        }
Beispiel #7
0
 private void GetStrategyFilter(WorkspaceDef wksdef)
 {
     StrategyFilter = UWorkspace.StrategyFilter(wksdef);
 }