Przeglądaj źródła

手机端个人信息查看个人账号

临城职教中职
ndbs 2 lat temu
rodzic
commit
7270880fde
3 zmienionych plików z 11 dodań i 4 usunięć
  1. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/my/userInfo/userInfo.js
  2. +4
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Util/Learun.Util.Operat/OperatorHelper.cs
  3. +5
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Util/Learun.Util/Web/UserInfo.cs

+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/my/userInfo/userInfo.js Wyświetl plik

@@ -1,4 +1,4 @@
(function () {
(function () {
var page = {
isScroll: true,
init: function ($page) {
@@ -9,7 +9,7 @@
$page.find('img').attr('src', config.webapi + 'learun/adms/user/img?data=' + baseinfo.userId);


$page.find('.account').text(baseinfo.account);
$page.find('.account').text(baseinfo.IdentityCardNo);
$page.find('.enCode').text(baseinfo.enCode);
$page.find('.realName').text(baseinfo.realName);
$page.find('.gender').text(baseinfo.gender == 1 ? '男' : '女');


+ 4
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Util/Learun.Util.Operat/OperatorHelper.cs Wyświetl plik

@@ -323,13 +323,16 @@ namespace Learun.Util.Operat
userInfo.isSystem = userEntity.F_SecurityLevel == 1 ? true : false;
userInfo.Description = userEntity.F_Description;

userInfo.IdentityCardNo =
userEntity.F_IdentityCardNo.IsEmpty().ToString() == "True" ? "" : "";

userInfo.roleIds = userRelationIBLL.GetObjectIds(userEntity.F_UserId, 1);
if (!string.IsNullOrEmpty(userInfo.roleIds))
{
var rolelist = userRelationIBLL.GetRoleListByUserId(userEntity.F_UserId);
foreach (var roleEntity in rolelist)
{
userInfo.roleName += roleEntity.F_FullName+ ",";
userInfo.roleName += roleEntity.F_FullName + ",";
}
}
userInfo.postIds = userRelationIBLL.GetObjectIds(userEntity.F_UserId, 2);


+ 5
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Util/Learun.Util/Web/UserInfo.cs Wyświetl plik

@@ -19,6 +19,10 @@ namespace Learun.Util
/// </summary>
public string userId { get; set; }
/// <summary>
/// 身份号
/// </summary>
public string IdentityCardNo { get; set; }
/// <summary>
/// 工号
/// </summary>
public string enCode { get; set; }
@@ -153,7 +157,7 @@ namespace Learun.Util
/// 学生专业
/// </summary>

public string majorno { get; set; }
public string majorno { get; set; }
/// <summary>
/// 学生年级
/// </summary>


Ładowanie…
Anuluj
Zapisz