From 61148aa5ceca69f5588bd3803aac83b2b9e5cfc6 Mon Sep 17 00:00:00 2001 From: duheng <2784771470@qq.com> Date: 星期五, 17 一月 2025 17:10:58 +0800 Subject: [PATCH] 优化界面 --- WinFrmUI/HStation.WinFrmUI.Auth.Core/03-user/UserMgrPage.cs | 15 ++++++--------- 1 files changed, 6 insertions(+), 9 deletions(-) diff --git a/WinFrmUI/HStation.WinFrmUI.Auth.Core/03-user/UserMgrPage.cs b/WinFrmUI/HStation.WinFrmUI.Auth.Core/03-user/UserMgrPage.cs index e61555d..1c84539 100644 --- a/WinFrmUI/HStation.WinFrmUI.Auth.Core/03-user/UserMgrPage.cs +++ b/WinFrmUI/HStation.WinFrmUI.Auth.Core/03-user/UserMgrPage.cs @@ -39,11 +39,11 @@ { var overlay = this.ShowOverlay(); - var allBindingList = await BLLFactory<Yw.BLL.User>.Instance.GetByCorpID(GlobalParas._GlobalParas.CorpID); + var allList = await BLLFactory<Yw.BLL.User>.Instance.GetByCorpID(GlobalParas._GlobalParas.CorpID); _allBindingList = new List<UserViewModel>(); - if (allBindingList != null && allBindingList.Count > 0) + if (allList != null && allList.Count > 0) { - foreach (var item in allBindingList) + foreach (var item in allList) { var vm = new UserViewModel(item); _allBindingList.Add(vm); @@ -428,7 +428,7 @@ { return; } - var userRoleInput = new SetUserRoleInput(); + var userRoleInput = new SetUserRoleInputVmo(); userRoleInput.UserID = vm.ID; userRoleInput.RoleIds = new List<long>(); foreach (var item in _userRoleHaveViewModelList) @@ -507,18 +507,15 @@ XtraMessageBox.Show("閲嶇疆澶辫触锛�"); return; } - // var model = bll.GetByID(row.ID); + // var model = bll.GetByID(row.UserID); // row.Reset(model); this.gridView1.RefreshRow(this.gridView1.FocusedRowHandle); XtraMessageBox.Show("閲嶇疆鎴愬姛锛�"); } if (e.Column == this.colEditPwd) { - var loginAccount = await BLLFactory<Yw.BLL.UserLoginAccount>.Instance.GetByUserID(vm.ID); - if (loginAccount == null || loginAccount.Count == 0) - return; var dlg = new UpdatePwdDlg(); - dlg.SetBindingData(loginAccount.First().ID);//涓嶅瑕佷慨鏀�,杩樻槸鍋氭垚鍒楄〃 + dlg.SetBindingData(vm.ID); dlg.ShowDialog(); } } -- Gitblit v1.9.3