Exemplo n.º 1
0
 protected override void BasePage_Load(Jnwf.Model.tb_OpenID_UserEntity user)
 {
     if (!IsPostBack)
     {
         FenDa.Model.tb_EmployeEntity model = FenDa.BLL.tb_EmployeBLL.GetInstance().GetEmployeEntityByOpenId(user.OpenID);
         if (model != null)
         {
             id          = model.Id;
             headImg     = model.HeadImg;
             name        = model.Name;
             titles      = model.Titles;
             abteilung   = model.Abteilung;
             description = model.Description;
             clever      = model.Clever;
             BindInfor();
         }
     }
 }
Exemplo n.º 2
0
 protected override void BasePage_Load(Jnwf.Model.tb_OpenID_UserEntity user)
 {
     if (!IsPostBack)
     {
         FenDa.Model.tb_EmployeEntity model = FenDa.BLL.tb_EmployeBLL.GetInstance().GetEmployeEntityByOpenId(user.OpenID);
         if (model != null)
         {
             employeId = model.Id;
         }
         //获取问题详情
         DataSet ds = FenDa.BLL.tb_QuestionBLL.GetInstance().GetQuestionListByOpenIdAndId(appid, questionId);
         if (ds != null && ds.Tables.Count > 0 && ds.Tables[0] != null && ds.Tables[0].Rows.Count > 0)
         {
             headImg                = ds.Tables[0].Rows[0]["companyImg"].ToString();
             name                   = ds.Tables[0].Rows[0]["companyName"].ToString();
             wxCode                 = ds.Tables[0].Rows[0]["WxCode"].ToString();
             codeImg                = ds.Tables[0].Rows[0]["CodeImg"].ToString();
             description            = ds.Tables[0].Rows[0]["Description"].ToString();
             repQuestion.DataSource = ds.Tables[0];
             repQuestion.DataBind();
         }
     }
 }