|
|
|
@ -18,12 +18,12 @@ namespace HighWayIot.Winform.UserControlPages
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 用户数据库业务实例
|
|
|
|
|
/// </summary>
|
|
|
|
|
private SysUserInfoService sysUserInfoService = new SysUserInfoService();
|
|
|
|
|
private SysUserInfoService sysUserInfoService = SysUserInfoService.Instance;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 角色数据库业务实例
|
|
|
|
|
/// </summary>
|
|
|
|
|
private SysUserRoleService sysUserRoleService = new SysUserRoleService();
|
|
|
|
|
private SysUserRoleService sysUserRoleService = SysUserRoleService.Instance;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 用户信息列表
|
|
|
|
@ -67,7 +67,7 @@ namespace HighWayIot.Winform.UserControlPages
|
|
|
|
|
entity.UserName = UserInfoDataGridView.Rows[a].Cells["UserName"].Value.ToString();
|
|
|
|
|
entity.UserRole = UserInfoDataGridView.Rows[a].Cells["UserRole"].Value.ToString();
|
|
|
|
|
entity.Password = UserInfoDataGridView.Rows[a].Cells["Password"].Value.ToString();
|
|
|
|
|
UserUpDateForm form = new UserUpDateForm(sysUserInfoService, entity, RoleNames);
|
|
|
|
|
UserUpDateForm form = new UserUpDateForm(entity, RoleNames);
|
|
|
|
|
form.ShowDialog();
|
|
|
|
|
List = sysUserInfoService.GetUserInfos();
|
|
|
|
|
UserInfoDataGridView.DataSource = null;
|
|
|
|
@ -76,7 +76,7 @@ namespace HighWayIot.Winform.UserControlPages
|
|
|
|
|
|
|
|
|
|
private void AddUser_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
UserAddForm form = new UserAddForm(sysUserInfoService, RoleNames);
|
|
|
|
|
UserAddForm form = new UserAddForm(RoleNames);
|
|
|
|
|
form.ShowDialog();
|
|
|
|
|
List = sysUserInfoService.GetUserInfos();
|
|
|
|
|
UserInfoDataGridView.DataSource = null;
|
|
|
|
|