Exemplo n.º 1
0
 /// <summary>
 /// 获取导师详情
 /// </summary>
 /// <param name="UserId"></param>
 private void GetTutor(string UserId)
 {
     tInfo = bllUser.Get <BLLJIMP.Model.TutorInfo>(string.Format(" AutoId='{0}'", UserId));
     if (tInfo != null)
     {
         BLLJIMP.Model.UserInfo uInfo = bllUser.Get <BLLJIMP.Model.UserInfo>(string.Format("UserId='{0}'", tInfo.UserId));
         IheadImg.Src        = tInfo.TutorImg;
         txtExplain.Text     = tInfo.TutorExplain;
         txtTrade.Text       = GetTradeStr(tInfo.TradeStr);                 //行业标签
         txtProfessiona.Text = GettxtProfessionaStr(tInfo.ProfessionalStr); //专业标签
         IsFollowedString    = bllUser.CheckFollow(bllUser.GetCurrentUserInfo().UserID, tInfo.UserId) ? "关注" : "已关注";
         FansNum.InnerText   = uInfo.FansCount.ToString();
         FansNumInt          = uInfo.FansCount;
         BLLJIMP.Model.ForwardingRecord frecord = bllUser.Get <BLLJIMP.Model.ForwardingRecord>(string.Format(" FUserID='{0}' AND RUserID='{1}' AND websiteOwner='{2}' AND TypeName='导师赞'", DataLoadTool.GetCurrUserModel().UserID, tInfo.UserId, bllUser.WebsiteOwner));
         if (frecord != null)
         {
             zan = true;
         }
         UserLevel = bllUserScore.GetUserLevelByTotalScore(uInfo.HistoryTotalScore);
     }
 }