protected void BntReply_Click(object sender, EventArgs e)
        {
            Model.Reply      reply        = new Model.Reply();
            BLL.ReplyManager replyManager = new ReplyManager();

            Model.Reply      reply1        = new Model.Reply();
            BLL.ReplyManager replyManager1 = new ReplyManager();
            string           str           = "replyID='" + Labeltest.Text + "'";
            string           id            = replyManager1.GetUserID(str);

            string str1    = "replyID='" + Labeltest.Text + "'";
            string replyFB = replyManager1.GetFBID(str);

            BLL.AdminManager adminManager1 = new BLL.AdminManager();
            Model.Admin      admin1        = adminManager1.GetModel1(Session["SadminID"].ToString());
            int s = Convert.ToInt32(admin1.adminID);

            reply.feedbackID = Convert.ToInt32(replyFB);
            reply.text       = txtReply.Text;
            reply.replierID  = s;
            reply.receiverID = Convert.ToInt32(id);
            bool bo = replyManager.Add(reply);

            if (bo == true)
            {
                Response.Write("<script language=javascript>alert('回复成功!')</script>");
            }
            else
            {
                Response.Write("<script language=javascript>alert('回复失败!请重试')");
            }
        }
Exemple #2
0
        protected void BntReply_Click(object sender, EventArgs e)
        {
            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);

            reply.feedbackID = Convert.ToInt32(Labeltest.Text);
            reply.text       = txtReply.Text;
            reply.replierID  = s;
            reply.remark     = "1";
            reply.receiverID = Convert.ToInt32(LabelName.Text.Trim());
            bool bo = replyManager.Add(reply);

            if (bo == true)
            {
                Response.Write("<script language=javascript>alert('回复成功!')</script>");
                txtReply.Text = "";
            }
            else
            {
                Response.Write("<script language=javascript>alert('回复失败!请重试')");
            }
        }