| | |
| | | using DevExpress.Utils; |
| | | using DevExpress.Utils.Design; |
| | | using DevExpress.Utils.DragDrop; |
| | | using DevExpress.XtraEditors; |
| | | using DevExpress.XtraTreeList; |
| | | using DevExpress.XtraTreeList.Nodes; |
| | | using HStation.Vmo; |
| | | using System.ComponentModel; |
| | | using System.Windows.Media.Imaging; |
| | | using Yw; |
| | | using Yw; |
| | | using Yw.WinFrmUI; |
| | | |
| | | namespace HStation.WinFrmUI |
| | |
| | | /// <summary> |
| | | /// 聚焦改变事件 |
| | | /// </summary> |
| | | public event Action<Yw.Vmo.Role> FocusedChangedEvent; |
| | | public event Action<Yw.Vmo.RoleVmo> FocusedChangedEvent; |
| | | |
| | | /// <summary> |
| | | /// 所有绑定列表 |
| | |
| | | public async void InitialData() |
| | | { |
| | | var overlay = this.ShowOverlay(); |
| | | var allList = await BLLFactory<Yw.BLL.Role>.Instance.GetByCorpID(0); |
| | | var allBindingList = await BLLFactory<Yw.BLL.Role>.Instance.GetByCorpID(LoginUserInfo.CorpID); |
| | | _allBindingList = new List<RoleTreeListViewModel>(); |
| | | allList?.ForEach(x => |
| | | allBindingList?.ForEach(x => |
| | | { |
| | | var vm = new RoleTreeListViewModel(x); |
| | | _allBindingList.Add(vm); |