예제 #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));
 }
예제 #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));
        }
예제 #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));
        }
예제 #4
0
        internal bool Send(IHostMessage msg, int timeout)
        {
            if (msg == null)
            {
                Log.Debug("ICommunication:" + ErrInfoList.ErrDictionary["FF05"]);
                return(false);
            }
            bool flag = false;

            if (msg.IsReturn)
            {
                lock (lockEvent)
                {
                    lock (lockinfo)
                    {
                        info     = new messageInfo();
                        info.msg = msg;
                        info.ev  = new AutoResetEvent(initialState: false);
                    }
                    byte[] transmitterData = msg.TransmitterData;
                    try
                    {
                        Console.WriteLine("[" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff") + "]发送数据:" + Util.ConvertbyteArrayToHexWordstring(transmitterData));
                    }
                    catch (Exception ex)
                    {
                        Log.Error(ex.Message);
                    }
                    Log.Debug("TXD:[" + Util.ConvertbyteArrayToHexstring(transmitterData) + "]");
                    int num = Send(transmitterData);
                    if (num > 0 && num == transmitterData.Length)
                    {
                        flag = info.ev.WaitOne(timeout, exitContext: true);
                        if (flag)
                        {
                            if (msg.Status != 0)
                            {
                                flag = false;
                            }
                        }
                        else if (!isReturnReadTag)
                        {
                            msg.Status = MsgStatus.Timeout;
                        }
                    }
                    lock (lockinfo)
                    {
                        info = null;
                    }
                }
            }
            else
            {
                byte[] transmitterData2 = msg.TransmitterData;
                Console.WriteLine("[" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff") + "]发送数据:" + Util.ConvertbyteArrayToHexWordstring(transmitterData2));
                Log.Debug("TXD:[" + Util.ConvertbyteArrayToHexstring(transmitterData2) + "]");
                int num2 = Send(transmitterData2);
                if (num2 > 0 && num2 == transmitterData2.Length)
                {
                    flag = true;
                }
            }
            if (isReturnReadTag)
            {
                isReturnReadTag = false;
            }
            if (isGetOneTag)
            {
                isGetOneTag = false;
            }
            return(flag);
        }
예제 #5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            starweibo.BLL.adminInfo          bllAdmin = new adminInfo();
            List <starweibo.Model.adminInfo> admins   = bllAdmin.GetModelList("1=1");

            this.rtpadminList.DataSource = admins;
            this.rtpadminList.DataBind();

            starweibo.BLL.blogInfo          bllblogInfo = new blogInfo();
            List <starweibo.Model.blogInfo> blogInfos   = bllblogInfo.GetModelList("1=1");

            this.rptblogInfoList.DataSource = blogInfos;
            this.rptblogInfoList.DataBind();

            starweibo.BLL.chatInfo          bllchatInfo = new chatInfo();
            List <starweibo.Model.chatInfo> chatInfos   = bllchatInfo.GetModelList("1=1");

            this.rptchatInfoList.DataSource = chatInfos;
            this.rptchatInfoList.DataBind();

            starweibo.BLL.messageInfo          bllmessageInfo = new messageInfo();
            List <starweibo.Model.messageInfo> messageInfos   = bllmessageInfo.GetModelList("1=1");

            this.rptmessageInfoList.DataSource = messageInfos;
            this.rptmessageInfoList.DataBind();

            starweibo.BLL.photoGroupInfo          bllphotoGroupInfo = new photoGroupInfo();
            List <starweibo.Model.photoGroupInfo> photoGroupInfos   = bllphotoGroupInfo.GetModelList("1=1");

            this.rptphotoGroupInfoList.DataSource = photoGroupInfos;
            this.rptphotoGroupInfoList.DataBind();

            starweibo.BLL.photos          bllphotos = new photos();
            List <starweibo.Model.photos> photoss   = bllphotos.GetModelList("1=1");

            this.rptphotosList.DataSource = photoss;
            this.rptphotosList.DataBind();

            starweibo.BLL.powerInfo          bllpowerInfo = new powerInfo();
            List <starweibo.Model.powerInfo> powerInfos   = bllpowerInfo.GetModelList("1=1");

            this.rptpowerInfoList.DataSource = powerInfos;
            this.rptpowerInfoList.DataBind();

            starweibo.BLL.relationGroupInfo          bllrelationGroupInfo = new relationGroupInfo();
            List <starweibo.Model.relationGroupInfo> relationGroupInfos   = bllrelationGroupInfo.GetModelList("1=1");

            this.rptrelationGroupInfoList.DataSource = relationGroupInfos;
            this.rptrelationGroupInfoList.DataBind();

            starweibo.BLL.relationInfo          bllrelationInfo = new relationInfo();
            List <starweibo.Model.relationInfo> relationInfos   = bllrelationInfo.GetModelList("1=1");

            this.rptrelationInfoList.DataSource = relationInfos;
            this.rptrelationInfoList.DataBind();

            starweibo.BLL.typeDic          blltypeDic = new typeDic();
            List <starweibo.Model.typeDic> typeDics   = blltypeDic.GetModelList("1=1");

            this.rpttypeDicList.DataSource = typeDics;
            this.rpttypeDicList.DataBind();

            starweibo.BLL.userInfo          blluserInfo = new userInfo();
            List <starweibo.Model.userInfo> userInfos   = blluserInfo.GetModelList("1=1");

            this.rptuserInfoList.DataSource = userInfos;
            this.rptuserInfoList.DataBind();


            starweibo.BLL.atV          bllAtV = new atV();
            List <starweibo.Model.atV> atVs   = bllAtV.GetModelList("1=1");

            this.rtpatVList.DataSource = atVs;
            this.rtpatVList.DataBind();

            starweibo.BLL.chatV          bllchatV = new chatV();
            List <starweibo.Model.chatV> chatVs   = bllchatV.GetModelList("1=1");

            this.rtpchatVList.DataSource = chatVs;
            this.rtpchatVList.DataBind();

            starweibo.BLL.CollectionV          bllCollectionV = new CollectionV();
            List <starweibo.Model.CollectionV> CollectionVs   = bllCollectionV.GetModelList("1=1");

            this.rtpCollectionVList.DataSource = CollectionVs;
            this.rtpCollectionVList.DataBind();

            starweibo.BLL.focusV          bllfocusV = new focusV();
            List <starweibo.Model.focusV> focusVs   = bllfocusV.GetModelList("1=1");

            this.rtpfocusVList.DataSource = focusVs;
            this.rtpfocusVList.DataBind();

            starweibo.BLL.replyV          bllreplyV = new replyV();
            List <starweibo.Model.replyV> replyVs   = bllreplyV.GetModelList("1=1");

            this.rtpreplyVList.DataSource = replyVs;
            this.rtpreplyVList.DataBind();

            starweibo.BLL.reportV          bllreportV = new reportV();
            List <starweibo.Model.reportV> reportVs   = bllreportV.GetModelList("1=1");

            this.rtpreportVList.DataSource = reportVs;
            this.rtpreportVList.DataBind();

            starweibo.BLL.zanV          bllzanV = new zanV();
            List <starweibo.Model.zanV> zanVs   = bllzanV.GetModelList("1=1");

            this.rtpzanVList.DataSource = zanVs;
            this.rtpzanVList.DataBind();
        }