duheng
2024-11-29 5c14c9686d2bd7c99fdd6cc6fc19404e6e4b8e4d
WinFrmUI/HStation.WinFrmUI.WE.Core/WaterWE/01-catalogue/EditCatalogueDlg.cs
文件名从 WinFrmUI/HStation.WinFrmUI.WE.Core/新文件夹/01-catalogue/EditCatalogueDlg.cs 修改
@@ -10,22 +10,22 @@
            this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon;
        }
        public event Func<Vmo.WE.CatalogueDlgVmo, object, Task<bool>> ReloadDataEvent = null;
        public event Func<Vmo.WE.CatalogueVmo, object, Task<bool>> ReloadDataEvent = null;
        private Vmo.WE.CatalogueDlgVmo _CatalogueDlg = null;
        private List<CatalogueDlgViewModel> _CatalogueDlgViews;
        private Vmo.WE.CatalogueVmo _CatalogueDlg = null;
        private List<CatalogueViewModel> _CatalogueDlgViews;
        public async void SetBindingData(Vmo.WE.CatalogueDlgVmo seriesVmo)
        public async void SetBindingData(Vmo.WE.CatalogueVmo seriesVmo)
        {
            _CatalogueDlgViews = new List<CatalogueDlgViewModel>();
            _CatalogueDlgViews = new List<CatalogueViewModel>();
            _CatalogueDlg = seriesVmo;
            this.NameTextEdit.Text = _CatalogueDlg.Name;
            this.DescriptionTextEdit.Text = _CatalogueDlg.Description;
            this.TagNameTextEdit.Text = _CatalogueDlg.TagName;
            var allList = await new BLL.WE.CatalogueDlg().GetAll();
            var allList = await new BLL.WE.Catalogue().GetAll();
            foreach (var item in allList)
            {
                _CatalogueDlgViews.Add(new CatalogueDlgViewModel(item));
                _CatalogueDlgViews.Add(new CatalogueViewModel(item));
            }
            treeListLookUpEdit1TreeList.DataSource = _CatalogueDlgViews;
            if (_CatalogueDlg.ParentIds.Count > 0)