예제 #1
0
        public string check(string userName)
        {
            starweibo.BLL.userInfo          findmail  = new starweibo.BLL.userInfo();
            List <starweibo.Model.userInfo> MNoteName = new List <starweibo.Model.userInfo>();

            MNoteName = findmail.GetModelList("userName='******'");
            return(MNoteName[0].userMail);
        }
예제 #2
0
        public bool chongzhi(string userPwd, string userName)
        {
            List <starweibo.Model.userInfo> shengqing = new List <starweibo.Model.userInfo>();

            starweibo.BLL.userInfo oneshenqing = new starweibo.BLL.userInfo();
            shengqing            = oneshenqing.GetModelList("userName='******'");
            shengqing[0].userPwd = userPwd;
            return(oneshenqing.Update(shengqing[0]));
        }
예제 #3
0
        public int checkname(string name)
        {
            starweibo.BLL.userInfo          blluser = new starweibo.BLL.userInfo();
            List <starweibo.Model.userInfo> moduser = new List <starweibo.Model.userInfo>();

            moduser = blluser.GetModelList("userName='******'");
            if (moduser.Count == 0)
            {
                return(-1);
            }
            else
            {
                return(moduser[0].id);
            }
        }
예제 #4
0
        //发送公告
        public void SendSysMsg(string msgContent)
        {
            starweibo.BLL.chatInfo   SysMsg = new starweibo.BLL.chatInfo();
            starweibo.Model.chatInfo molMsg = new starweibo.Model.chatInfo();

            List <starweibo.Model.userInfo> SSM = new List <starweibo.Model.userInfo>();

            starweibo.BLL.userInfo bllSSM = new starweibo.BLL.userInfo();
            SSM = bllSSM.GetModelList("1=1");
            foreach (starweibo.Model.userInfo onessm in SSM)
            {
                if (onessm.id != 44)
                {
                    molMsg.receiverId = onessm.id;
                    molMsg.msgContent = msgContent;
                    molMsg.senderId   = 44;
                    molMsg.msgState   = "noread";
                    SysMsg.Add(molMsg);
                }
            }
        }
예제 #5
0
        public void charuP(string userName)
        {
            List <starweibo.Model.userInfo> shenqing = new List <starweibo.Model.userInfo>();

            starweibo.BLL.userInfo    oneshenqing = new starweibo.BLL.userInfo();
            starweibo.BLL.powerInfo   OP          = new starweibo.BLL.powerInfo();
            starweibo.Model.powerInfo IDP         = new starweibo.Model.powerInfo();

            shenqing     = oneshenqing.GetModelList("userName='******'");
            IDP.userId   = shenqing[0].id;
            IDP.zan      = "1";
            IDP.pinglun  = "1";
            IDP.at       = "1";
            IDP.guanzhu  = "1";
            IDP.jubao    = "1";
            IDP.zhuanfa  = "1";
            IDP.shoucang = "1";
            IDP.fasong   = "1";

            OP.Add(IDP);
        }