/// <summary> /// 加载表单 数据 /// </summary> /// <param name="Id"></param> /// <returns></returns> public async Task <Dictionary <string, object> > LoadFormAsync(Guid Id) { var res = new Dictionary <string, object>(); var Model = await this.FindByIdAsync(Id); var User = await userDb.FindByIdAsync(Model?.Member_UserID); res[nameof(Id)] = Id; res[nameof(Model)] = Model.ToNewByNull(); res[nameof(User)] = User.ToNewByNull(); return(res); }
/// <summary> /// 加载表单 数据 /// </summary> /// <param name="Id"></param> /// <returns></returns> public async Task <Dictionary <string, object> > LoadFormAsync(Guid Id) { var res = new Dictionary <string, object>(); var Model = await this.FindByIdAsync(Id); var _Sys_User = await dbUser.FindByIdAsync(Model.AppLog_UserID); res[nameof(Id)] = Id; res[nameof(Model)] = Model.NullSafe(); res[nameof(_Sys_User.User_Name)] = _Sys_User.User_Name; return(res); }