protected override void BasePage_Load(Jnwf.Model.tb_OpenID_UserEntity user) { if (!IsPostBack) { if (user != null) { openid = user.OpenID; //获取公司信息 DataSet tmpds = FenDa.BLL.tb_CompanyBLL.GetInstance().GetCompanyModelByOpenId(appid); if (tmpds != null && tmpds.Tables.Count > 0 && tmpds.Tables[0] != null && tmpds.Tables[0].Rows.Count > 0) { companyId = Convert.ToInt32(tmpds.Tables[0].Rows[0]["Id"]); headImg = tmpds.Tables[0].Rows[0]["HeadImg"].ToString(); name = tmpds.Tables[0].Rows[0]["RealName"].ToString(); wxCode = tmpds.Tables[0].Rows[0]["WeiXinCode"].ToString(); codeImg = tmpds.Tables[0].Rows[0]["CodeImg"].ToString(); description = tmpds.Tables[0].Rows[0]["Description"].ToString(); //获取当前公司的所有回答过的问题 DataSet ds = FenDa.BLL.tb_SolutionBLL.GetInstance().GetSolutionListByCompanyId(companyId); if (ds != null && ds.Tables.Count > 0 && ds.Tables[0] != null && ds.Tables[0].Rows.Count > 0) { repSolutionlist.DataSource = ds.Tables[0]; repSolutionlist.DataBind(); solutionNumber = ds.Tables[0].Rows.Count; } } } } }
protected override void BasePage_Load(Jnwf.Model.tb_OpenID_UserEntity user) { if (!IsPostBack) { if (user != null) { //获取公司信息 DataSet tmpds = FenDa.BLL.tb_CompanyBLL.GetInstance().GetCompanyModelByOpenId(appid); if (tmpds != null && tmpds.Tables.Count > 0 && tmpds.Tables[0] != null && tmpds.Tables[0].Rows.Count > 0) { companyId = Convert.ToInt32(tmpds.Tables[0].Rows[0]["Id"]); } //收听过的 DataSet ds = FenDa.BLL.tb_ListenInBLL.GetInstance().GetListenInListByappIdAndOpenId(appid, user.OpenID); if (ds != null && ds.Tables.Count > 0 && ds.Tables[0] != null && ds.Tables[0].Rows.Count > 0) { rptListenInlist.DataSource = ds.Tables[0]; rptListenInlist.DataBind(); linstenInNum = ds.Tables[0].Rows.Count; } //我问过的问题 DataSet dss = FenDa.BLL.tb_QuestionBLL.GetInstance().GetQuestionListByCompanyOpenIdAndOpenId(appid, user.OpenID); if (dss != null && dss.Tables.Count > 0 && dss.Tables[0] != null && dss.Tables[0].Rows.Count > 0) { rptQuestionlist.DataSource = dss.Tables[0]; rptQuestionlist.DataBind(); questionNum = dss.Tables[0].Rows.Count; } headImg = user.HeadImgurl; nickName = user.NickName; openId = user.OpenID; } } }
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(); } } }
protected override void BasePage_Load(Jnwf.Model.tb_OpenID_UserEntity user) { if (!IsPostBack) { //获取公司信息 DataSet tmpds = FenDa.BLL.tb_CompanyBLL.GetInstance().GetCompanyModelByOpenId(appid); if (tmpds != null && tmpds.Tables.Count > 0 && tmpds.Tables[0] != null && tmpds.Tables[0].Rows.Count > 0) { companyId = Convert.ToInt32(tmpds.Tables[0].Rows[0]["Id"]); headImg = tmpds.Tables[0].Rows[0]["HeadImg"].ToString(); name = tmpds.Tables[0].Rows[0]["RealName"].ToString(); wxCode = tmpds.Tables[0].Rows[0]["WeiXinCode"].ToString(); codeImg = tmpds.Tables[0].Rows[0]["CodeImg"].ToString(); description = tmpds.Tables[0].Rows[0]["Description"].ToString(); } BindInfor(); } }
protected override void BasePage_Load(Jnwf.Model.tb_OpenID_UserEntity user) { if (!IsPostBack) { if (user != null) { //获取问答详情 DataSet ds = FenDa.BLL.tb_SolutionBLL.GetInstance().GetSolutionModelById(solutionId, companyId); 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(); } } } }
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(); } } }
public tb_App_UserExtEntity() { user = new tb_App_UserEntity(); ext = new tb_OpenID_UserEntity(); }
protected override void BasePage_Load(Jnwf.Model.tb_OpenID_UserEntity user) { }