private void SetTopInfo() { //string name = "liulixing"; string name = "tz888admin"; // string name = Page.User.Identity.Name; DataTable dtUser = dal.GetList("LoginInfoTab", "NickName,ManageTypeID,MemberGradeID", "LoginId", 1, 1, 0, 1, "LoginName='" + name + "'"); if (!string.IsNullOrEmpty(dtUser.Rows[0]["NickName"].ToString())) { lblUserName.Text = dtUser.Rows[0]["NickName"].ToString(); } else { lblUserName.Text = name.Trim(); } DataTable dt = new DataTable(); Tz888.BLL.Login.LoginInfoBLL bllLoginInfo = new Tz888.BLL.Login.LoginInfoBLL(); dt = bllLoginInfo.GetLoginInfoByLoginName(name.Trim()); try { if (dt != null && dt.Rows.Count > 0) { lblInfoCount.Text = "(" + dt.Rows[0]["TodayInfoCount"].ToString().Trim() + ")"; lblMemberCount.Text = "(" + dt.Rows[0]["TodayMemberCount"].ToString().Trim() + ")"; } } catch { } }
private void SetTopInfo() { DataTable dtUser = dal.GetList("LoginInfoTab", "NickName,ManageTypeID,MemberGradeID", "LoginId", 1, 1, 0, 1, "LoginName='262734254'"); if (!string.IsNullOrEmpty(dtUser.Rows[0]["NickName"].ToString())) { lblUserName.Text = dtUser.Rows[0]["NickName"].ToString(); } else { lblUserName.Text = Page.User.Identity.Name.Trim(); } //try //{ // if (!string.IsNullOrEmpty(dtUser.Rows[0]["NickName"].ToString())) // { // lblUserName.Text = dtUser.Rows[0]["NickName"].ToString(); // } // else { lblUserName.Text = Page.User.Identity.Name.Trim(); } // if (dtUser.Rows[0]["MemberGradeID"].ToString() == "1") // { // lblMemberGrade.Text = "拓富通试用会员"; // } // //else // //{ // // lblMemberGrade.Text = "拓富通会员"; // // if (memgrade == "3") // // { // // lblMemberGrade.Text = "拓富通银牌会员"; // // } // // if (memgrade == "4") // // { // // lblMemberGrade.Text = "拓富通金牌会员"; // // } // // if (memgrade == "5") // // { // // lblMemberGrade.Text = "拓富通钻石会员"; // // } // //} //} //catch { lblUserName.Text = Page.User.Identity.Name.Trim(); } DataTable dt = new DataTable(); Tz888.BLL.Login.LoginInfoBLL bllLoginInfo = new Tz888.BLL.Login.LoginInfoBLL(); dt = bllLoginInfo.GetLoginInfoByLoginName("262734254"); try { if (dt != null && dt.Rows.Count > 0) { lblInfoCount.Text = "(" + dt.Rows[0]["TodayInfoCount"].ToString().Trim() + ")"; lblMemberCount.Text = "(" + dt.Rows[0]["TodayMemberCount"].ToString().Trim() + ")"; } } catch { } }