Exemplo n.º 1
0
        // 显示 个人信息
        protected void ShowPerson()
        {
            userinfo  user  = new userinfo();
            DataTable table = user.showPerson(Session["username"].ToString());

            if (table.Rows.Count > 0)
            {
                LabelName.Text    = table.Rows[0]["id"].ToString();
                LabelSex.Text     = table.Rows[0]["sex"].ToString();
                TextBoxphone.Text = table.Rows[0]["pnumber"].ToString();
                TextBoxmail.Text  = table.Rows[0]["email"].ToString();
                social            = table.Rows[0]["social"].ToString();
                header            = table.Rows[0]["header"].ToString();
            }
        }
        // 显示社团信息
        protected void ShowPersonSocial()
        {
            string    socialID = null;
            userinfo  user     = new userinfo();
            DataTable table    = user.showPerson(Session["username"].ToString());

            if (table.Rows.Count > 0)
            {
                //Session["zxcvbnm"] = table.Rows[0]["social"].ToString();
                socialID = table.Rows[0]["social"].ToString();
            }
            DataTable table2 = user.showPersonSocial(socialID);

            if (table2.Rows.Count > 0)
            {
                LabelSocial.Text    = table2.Rows[0]["socname"].ToString();
                Session["hdfkiuyr"] = table2.Rows[0]["socname"].ToString();
            }
            else
            {
                LabelSocial.Text = "无";
            }
        }
Exemplo n.º 3
0
 //确认 该账户 是否yi you she tuan
 protected bool IsCreate()
 {
     if (user.isManagerOne(Session["username"].ToString()))
     {
         return(false);
     }
     else
     {
         int       mem   = 1000;
         DataTable table = user.showPerson(Session["username"].ToString());
         if (table.Rows.Count > 0)
         {
             mem = int.Parse(table.Rows[0]["social"].ToString());
         }
         if (mem == 0)
         {
             return(true);
         }
         else
         {
             return(false);
         }
     }
 }