Beispiel #1
0
        private RadPageViewItemPage GetRadPage(CatalogDef catalog)
        {
            RadPageViewItemPage page = new RadPageViewItemPage();

            page.Text = catalog.Text;
            Control ui = GetUserControl(catalog);

            if (ui != null)
            {
                ui.Dock = DockStyle.Fill;
                page.Controls.Add(ui);
            }
            if (catalog is ExtractingCatalogDef)
            {
                CatalogTreeView ct = new CatalogTreeView(ui as RadTreeView, catalog, _wDef, chkHasToDb.Checked, dateTimePicker1.Value);
                _catalogs.Add(catalog.ClassString, ct);
            }
            //else if (catalog is SubProductCatalogDef)
            //{
            //    UCOperationBar oprBar = new UCOperationBar();
            //    oprBar.btnOpenFiles.Tag = catalog.ClassString;
            //    oprBar.Dock = DockStyle.Top;
            //    oprBar.btnOpenFiles.Click += new EventHandler(oprBar_Click);
            //    oprBar.tsCBGroup.Tag = catalog.ClassString;
            //    page.Controls.Add(oprBar);
            //    _catalogs.Add(catalog.ClassString, new CatalogListView(this, catalog, page, ui as RadListView));
            //    InitOprBarGroupItem(oprBar.tsCBGroup);
            //    oprBar.tsCBGroup.SelectedIndexChanged += new EventHandler(tsCBGroup_SelectedIndexChanged);
            //}
            return(page);
        }
Beispiel #2
0
        private void LoadData()
        {
            if (_wDef == null)
            {
                _catalogTreeView = null;
                return;
            }
            _radPageView.Pages.Clear();

            RadPageViewItemPage tabPage = new RadPageViewItemPage();

            tabPage.Text = "待入库产品";
            tabPage.Dock = DockStyle.Fill;
            _radPageView.Pages.Add(tabPage);

            RadTreeView ui = GetUserControl();

            tabPage.Controls.Add(ui);

            _catalogTreeView = new CatalogTreeView(ui, _wDef, chkHasToDb.Checked, dateTimePicker1.Value);

            lbMessage.Text = "";
        }