lixiaojun
2024-11-03 7507591ef45cfa8f1080f6dbf68b411edcc7f086
WinFrmUI/HStation.WinFrmUI.Basic/02-SysPropManage/SysTypeTreeListLookUpEdit.cs
@@ -1,4 +1,5 @@
using System.ComponentModel;
using DevExpress.Utils.Extensions;
using System.ComponentModel;
using Yw.Dto;
namespace HStation.WinFrmUI.Basic
@@ -16,7 +17,7 @@
        public class CurrentViewModel
        {
            public CurrentViewModel(SysTypeLogicalTreeDto rhs)
            public CurrentViewModel(Yw.Vmo.SysTypeLogicalTreeVmo rhs)
            {
                var module = rhs.LogicalModel as Yw.Dto.SysModuleStdDto;
                this.ID = module.ID;
@@ -75,10 +76,10 @@
        public async void SetBindingData()
        {
            _bll = new Yw.BLL.SysTypeStd();
            _allBindingList = new BindingList<CurrentViewModel>();
            var alllist = await _bll.GetExtendLogicalTreeList();
            if (alllist == null)
                return;
            _allBindingList = new BindingList<CurrentViewModel>();
            foreach (var item in alllist)
            {
                _allBindingList.Add(new CurrentViewModel(item));
@@ -95,7 +96,7 @@
            this.treeListLookUpEdit1TreeList.ExpandAll();
            if (_allBindingList.Count > 0)
            {
                var vm = _allBindingList.First();
                var vm = _allBindingList.Where(x => x.ParentID != 0).First();
                this.treeListLookUpEdit1.EditValue = vm.ID;
                SelectedChanged(vm);
            }