Пример #1
0
        private void BasePage_Loaded(object sender, RoutedEventArgs e)
        {
            //考核项目树
            var nodes = SysContext.ParseProjectsTreeData(SysContext.projects);

            _gpTreeData.Bind(nodes);
        }
Пример #2
0
        private void BasePage_Loaded(object sender, RoutedEventArgs e)
        {
            //树
            var nodes = TreeHelper.ParseGroupsTreeData(DataCacheUtils.AllGroups.Where(kvp => kvp.Value.gp_system == false).Select(kvp => kvp.Value));

            _gpTreeData.Bind(nodes);

            nodes = SysContext.ParseProjectsTreeData(SysContext.projects);
            _projTreeData.Bind(nodes);
        }
Пример #3
0
        private void BasePage_Loaded(object sender, RoutedEventArgs e)
        {
            //考核项目树
            var nodes = SysContext.ParseProjectsTreeData(SysContext.projects);

            _gpTreeData.Bind(nodes);
            gpTree.ExpandAll();
            gpTree.Select(0);

            dgAttach.ItemsSource = EvaluationContext.upload_attaches;
        }
Пример #4
0
        private void RefreshProjects(string party)
        {
            IList <TreeViewData.NodeViewModel> nodes = new List <TreeViewData.NodeViewModel>();

            if (SysContext.party_projects.ContainsKey(party))
            {
                var projs = SysContext.party_projects[party];

                nodes = SysContext.ParseProjectsTreeData(SysContext.projects.Where(e => projs.Contains(e.id)));
            }

            _gpTreeData.Bind(nodes);
            gpTree.ExpandAll();
            gpTree.Select(0);
        }