示例#1
0
        protected void ReplyNumber()
        {
            Model.Reply      reply        = new Model.Reply();
            BLL.ReplyManager replyManager = new ReplyManager();

            BLL.UsersManager usersM = new UsersManager();
            Model.Users      users  = usersM.GetModel1(Session["userID"].ToString());
            int    s      = Convert.ToInt32(users.UserID);
            string str    = "remark='" + "1" + "'and receiverID='" + s + "'";
            int    number = replyManager.GetRecordCount(str);

            if (number > 0)
            {
                LabelMessage.Visible = true;
                LabelMessage.Text    = Convert.ToString(number);
            }
        }
示例#2
0
        protected void ReplyNumber()
        {
            Model.Reply      reply        = new Model.Reply();
            BLL.ReplyManager replyManager = new ReplyManager();

            BLL.AdminManager adminManager1 = new BLL.AdminManager();
            Model.Admin      admin1        = adminManager1.GetModel1(Session["SadminID"].ToString());
            int    s      = Convert.ToInt32(admin1.adminID);
            string str    = "remark='" + "1" + "'and receiverID='" + s + "'";
            int    number = replyManager.GetRecordCount(str);

            if (number > 0)
            {
                LabelMessage.Visible = true;
                LabelMessage.Text    = Convert.ToString(number);
            }
        }