| | |
| | | using DevExpress.Utils.DragDrop; |
| | | using DevExpress.XtraEditors; |
| | | using System.Windows.Controls; |
| | | using Yw; |
| | | using Yw.DAL.Basic; |
| | | using Yw.Vmo; |
| | | using Yw.WinFrmUI; |
| | | |
| | |
| | | { |
| | | var overlay = this.ShowOverlay(); |
| | | |
| | | var allList = await BLLFactory<Yw.BLL.User>.Instance.GetByCorpID(GlobalParas._GlobalParas.CorpID); |
| | | var allList = await BLLFactory<Yw.BLL.User>.Instance.GetByCorpID(LoginUserInfo.CorpID); |
| | | _allBindingList = new List<UserViewModel>(); |
| | | if (allList != null && allList.Count > 0) |
| | | { |
| | |
| | | if (e.Column == this.colAccount) |
| | | { |
| | | _userLoginAccountViewModelList.Clear(); |
| | | var allLoginAccountList = await BLLFactory<Yw.BLL.UserLoginAccountStd>.Instance.GetByUserID(vm.ID); |
| | | var allLoginAccountList = await BLLFactory<Yw.BLL.UserLoginAccount>.Instance.GetByUserID(vm.ID); |
| | | foreach (var item in allLoginAccountList) |
| | | { |
| | | _userLoginAccountViewModelList.Add(new UserAccountViewModel(item)); |
| | |
| | | if (e.Column == this.colEditPwd) |
| | | { |
| | | var dlg = new UpdatePwdDlg(); |
| | | dlg.SetBindingData(vm.ID);//不对要修改,还是做成列表 |
| | | dlg.SetBindingData(vm.ID); |
| | | dlg.ShowDialog(); |
| | | } |
| | | } |
| | |
| | | dlg.SetBindingData((Yw.Model.eUseStatus)vm.UseStatus); |
| | | dlg.ReloadDataEvent += async (status) => |
| | | { |
| | | var bol = await BLLFactory<Yw.BLL.User>.Instance.UpdateUseStatus(vm.ID, (int)status); |
| | | var bol = await BLLFactory<Yw.BLL.User>.Instance.UpdateUseStatus(vm.ID, status); |
| | | if (bol) |
| | | { |
| | | vm.UseStatus = (eUseStatus)status; |
| | | vm.UseStatus = status; |
| | | this.gridView1.RefreshRow(this.gridView1.FocusedRowHandle); |
| | | return true; |
| | | } |