| | |
| | | |
| | | 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; |
| | |
| | | /// <summary> |
| | | /// 绑定数据 |
| | | /// </summary> |
| | | public async void SetBindingData() |
| | | public async void SetBindingData(long catalogid = 0) |
| | | { |
| | | _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)); |
| | |
| | | this.treeListLookUpEdit1.EditValue = vm.ID; |
| | | SelectedChanged(vm); |
| | | } |
| | | if (catalogid != 0) |
| | | { |
| | | treeListLookUpEdit1.EditValue = catalogid; |
| | | if (SelectedChangedEvent != null) |
| | | { |
| | | SelectedChangedEvent.Invoke(catalogid); |
| | | } |
| | | } |
| | | } |
| | | |
| | | //选择对象变换 |