Esempio n. 1
0
 //忽略举报信息
 public bool hulueReport(int messageId)
 {
     starweibo.Model.messageInfo onemsg = new messageInfo();
     starweibo.BLL.messageInfo   bllmsg = new starweibo.BLL.messageInfo();
     onemsg          = bllmsg.GetModel(messageId);
     onemsg.msgState = "read";
     return(bllmsg.Update(onemsg));
 }
Esempio n. 2
0
        //被举报用户禁言
        public bool jinyan(int messageId, int userId)
        {
            starweibo.Model.messageInfo onemsg = new messageInfo();
            starweibo.BLL.messageInfo   bllmsg = new starweibo.BLL.messageInfo();
            onemsg          = bllmsg.GetModel(messageId);
            onemsg.msgState = "read";
            bllmsg.Update(onemsg);

            starweibo.Model.powerInfo onemsgP = new powerInfo();
            starweibo.BLL.powerInfo   bllmsgP = new starweibo.BLL.powerInfo();
            onemsgP        = bllmsgP.GetModel(userId);
            onemsgP.fasong = "0";

            return(bllmsgP.Update(onemsgP));
        }
Esempio n. 3
0
        //被举报微博删除
        public bool Delete(int messageId, int blogId)
        {
            starweibo.Model.messageInfo onemsg = new messageInfo();
            starweibo.BLL.messageInfo   bllmsg = new starweibo.BLL.messageInfo();
            onemsg          = bllmsg.GetModel(messageId);
            onemsg.msgState = "read";
            bllmsg.Update(onemsg);

            starweibo.Model.blogInfo oneblog = new blogInfo();
            starweibo.BLL.blogInfo   bllmsgP = new starweibo.BLL.blogInfo();
            oneblog           = bllmsgP.GetModel(blogId);
            oneblog.blogState = "1";

            return(bllmsgP.Update(oneblog));
        }
Esempio n. 4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     starweibo.BLL.messageInfo wrwe = new starweibo.BLL.messageInfo();
     unreadCount = wrwe.GetRecordCount("userId=1 and msgState='noread'");
 }