From fea4a016cdc369be9001fb6dd15295eb68e2381f Mon Sep 17 00:00:00 2001 From: duheng <2784771470@qq.com> Date: 星期一, 17 二月 2025 21:25:51 +0800 Subject: [PATCH] 报表代码提交 --- WinFrmUI/HStation.WinFrmUI.Auth.Core/03-user/AddUserDlg.cs | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/WinFrmUI/HStation.WinFrmUI.Auth.Core/03-user/AddUserDlg.cs b/WinFrmUI/HStation.WinFrmUI.Auth.Core/03-user/AddUserDlg.cs index f7357a3..a3594ca 100644 --- a/WinFrmUI/HStation.WinFrmUI.Auth.Core/03-user/AddUserDlg.cs +++ b/WinFrmUI/HStation.WinFrmUI.Auth.Core/03-user/AddUserDlg.cs @@ -15,7 +15,7 @@ /// <summary> /// 杩斿洖鏁版嵁浜嬩欢 /// </summary> - public event Action<Yw.Vmo.User> ReloadDataEvent; + public event Action<Yw.Vmo.UserVmo> ReloadDataEvent; //楠岃瘉 private async Task<bool> Valid() @@ -42,19 +42,19 @@ //纭畾 private async void GeneralOkAndCancelCtrl1_OkEvent() { - var vmo = new Yw.Vmo.User(); + var vmo = new Yw.Vmo.UserVmo(); if (!await Valid()) { return; } vmo.Name = this.txtName.Text.Trim(); - vmo.LoginName = this.txtLoginName.Text.Trim(); - vmo.LoginPwd = this.txtPwd.Text.Trim(); + var LoginName = this.txtLoginName.Text.Trim(); + var LoginPwd = this.txtPwd.Text.Trim(); vmo.CorpID = GlobalParas._GlobalParas.CorpID; vmo.Description = this.txtDescription.Text.Trim(); vmo.Tag = this.txtTagName.Text.Trim(); - vmo.UseStatus = Yw.Vmo.eUseStatus.Disable; - var id = await BLLFactory<Yw.BLL.User>.Instance.Insert(vmo); + vmo.UseStatus = Yw.Model.eUseStatus.Enable; + var id = await BLLFactory<Yw.BLL.User>.Instance.Insert(vmo, LoginName, LoginPwd); if (id < 1) { TipFormHelper.ShowError("娣诲姞澶辫触锛�"); -- Gitblit v1.9.3