| | |
| | | using DevExpress.Utils.DragDrop; |
| | | using DevExpress.XtraBars.Docking2010; |
| | | using DevExpress.XtraEditors; |
| | | using DevExpress.XtraTreeList.Nodes; |
| | | using System.Collections.Generic; |
| | | using System.Data; |
| | | using System.Linq; |
| | | using System.Threading.Tasks; |
| | | using System.Windows.Forms; |
| | | using Yw; |
| | | using Yw.WinFrmUI; |
| | | |
| | |
| | | /// </summary> |
| | | public override async void InitialDataSource() |
| | | { |
| | | var allList = await new Yw.BLL.ProjectMenu().GetByProjectID(GlobalParas._GlobalParas.ProjectID); |
| | | var allList = await new Yw.BLL.ProjectMenu().GetByProjectID(LoginUserInfo.ProjectID); |
| | | _allBindingList = new List<MenuViewModel>(); |
| | | if (allList != null) |
| | | { |
| | |
| | | this.menuViewModelBindingSource.DataSource = _allBindingList; |
| | | this.menuViewModelBindingSource.ResetBindings(false); |
| | | // this.treeList1.ForceInitialize(); |
| | | //this.treeList1.CollapseAll(); |
| | | this.treeList1.ExpandAll(); |
| | | } |
| | | |
| | | public override void VerifyAuth() |
| | |
| | | dlg.SetBindingData(row != null ? row.ID : 0); |
| | | dlg.ReloadDataEvent += async (rhs) => |
| | | { |
| | | var id = await _bll.Insert(rhs); |
| | | var id = await _bll.InsertEx(rhs); |
| | | if (id > 0) |
| | | { |
| | | rhs.ID = id; |