Пример #1
0
        /// <summary>
        /// 更新
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public int Update(AntSdkReceivedUserMsg.Modify model)
        {
            var updateStr = $"update C_USER_INFO set departmentId='{model.attr.departmentId}',position='{model.attr.position}',picture='{model.attr.picture}'" +
                            $",SEX='{model.attr.sex}',signature='{model.attr.signature}' where userId='{model.userId}'";

            return(AntSdkSqliteHelper.ExecuteNonQuery(updateStr, AntSdkService.AntSdkConfigInfo.AntSdkCompanyCode, AntSdkService.AntSdkLoginOutput.userId));
        }
Пример #2
0
        /// <summary>
        /// 查询用户信息
        /// </summary>
        private async void QueryUserInfo()
        {
            await Task.Run(() =>
            {
                CurrentProfile = GroupPublicFunction.QueryUserInfo(AntSdkService.AntSdkCurrentUserInfo.userId);
            });

            if (CurrentProfile == null)
            {
                CurrentProfile = AntSdkService.AntSdkCurrentUserInfo;
            }
            SetUserInfo();
            var modify = new AntSdkReceivedUserMsg.Modify();

            if (CurrentProfile != null)
            {
                var user = new Modify_content {
                    picture = CurrentProfile.picture
                };
                modify.attr = user;
            }
            modify.userId = AntSdkService.AntSdkCurrentUserInfo.userId;
            OnQueryInfoHandler(modify);
        }
Пример #3
0
 protected virtual void OnQueryInfoHandler(AntSdkReceivedUserMsg.Modify modify)
 {
     QueryInfoHandler?.Invoke(modify);
 }
Пример #4
0
 /// <summary>
 /// 查询用户信息之后用于同步头像
 /// </summary>
 /// <param name="modify"></param>
 private void _profileViewModel_QueryInfoHandler(AntSdkReceivedUserMsg.Modify modify)
 {
     OnQueryInfoHandler(modify);
 }