/// <summary> /// 初始化数据 /// </summary> public void InitUserInfo() { SysAccount account = userService.Get(userId); if (null != account) { this.txtCode.Text = account.Code; this.txtName.Text = account.Name; this.drpUserType.SelectedValue = account.IsEnabled == true ? "1" : "0"; } }