Beispiel #1
0
    protected void Button1_Click(object sender, EventArgs e)
    {
        if(hid.Value == "1")
        {
            Daxu.Entity.userfackinfo userfck = new Daxu.Entity.userfackinfo();
            userfck.huifuname = "管理员";
            userfck.huifudataTime =DateTime.Now;
            if (_cnen.Checked)
            {
                userfck.cnen = "1";
            }
            else
            {
                userfck.cnen = "0";

            }
            userfck.huifuconter =SubStr( _huifuconter.Text,480);
            userfck.id = Convert.ToInt32(Request.QueryString["id"]);
            Daxu.BLL.userfackinfoBll.UpdateIuserinfofak(userfck);
        }
        Response.Redirect("Statistics.aspx");
    }
Beispiel #2
0
    protected void Button1_Click(object sender, EventArgs e)
    {
        //string str = ConfigurationManager.ConnectionStrings["SqlServerConnectionString"].ConnectionString;
        //int ff =Convert.ToInt32( Request["id"].ToString());
        //SqlConnection conn = new SqlConnection(str);
        ////string sql = "insert into userfackinfo (huifu ,huifudata) values (@huifu,@huifudata) where id='"+ff+"' ";
        //string sql = "update  [userfackinfo] set huifu=@huifu ,huifudata=@huifudata,shifouYHF=@shifouYHF  where id='" + ff + "'";
        //SqlCommand cmd = new SqlCommand(sql,conn);
        //cmd.CommandType = CommandType.Text;
        //SqlParameter parmeter = new SqlParameter();
        //parmeter.ParameterName = "@huifu";
        //parmeter.SqlDbType = SqlDbType.VarChar;
        //parmeter.Size = 1000;
        //parmeter.Value = TextBox2.Text.ToString().Trim();
        //cmd.Parameters.Add(parmeter);
        //SqlParameter parmeter1 = new SqlParameter();
        //parmeter1.ParameterName = "@huifudata";
        //parmeter1.SqlDbType = SqlDbType.VarChar;
        //parmeter.Size =50;
        //parmeter1.Value =TextBox1.Text.ToString().Trim();
        //cmd.Parameters.Add(parmeter1);
        //SqlParameter parmeter2 = new SqlParameter();
        //parmeter2.ParameterName = "@shifouYHF";
        //parmeter2.SqlDbType = SqlDbType.VarChar;
        //parmeter.Size = 50;
        //parmeter2.Value ="已回复";
        //cmd.Parameters.Add(parmeter2);
        //conn.Open();
        //cmd.ExecuteNonQuery();

        //conn.Close();

        Daxu.Entity.userfackinfo userfackinfo = new Daxu.Entity.userfackinfo();
        userfackinfo.huifuconter = huifuconter.Text;
        userfackinfo.id = Convert.ToInt32(Request.QueryString["id"]);
        Daxu.BLL.userfackinfoBll.UpdateIuserinfofak(userfackinfo);
        Response.Redirect("liouyanhuifu.aspx");
    }
Beispiel #3
0
    protected void Button1_Click(object sender, EventArgs e)
    {
        if(hid.Value == "1")
        {
            Daxu.Entity.userfackinfo userfck = new Daxu.Entity.userfackinfo();
            userfck.huifuname = "管理员";
            userfck.huifuname =Convert.ToString(DateTime.Now);
            userfck.huifuname= Convert.ToString(Session["username"]);
            if (_cnen.Checked)
            {
                userfck.cnen = "1";
            }
            else
            {
                userfck.cnen = "0";

            }
            userfck.huifuconter =SubStr( _huifuconter.Text,480);
            userfck.id = Convert.ToInt32(Request.QueryString["id"]);
            Daxu.BLL.userfackinfoBll.UpdateIuserinfofak(userfck);
        }
        Response.Redirect("/Admin/service/onlinemanagement.aspx");
    }
Beispiel #4
0
        public ActionResult LiuyanFb(string title, string tiwenconert, string UserId, string yzm)
        {
            string yamxt = Convert.ToString(Session["yzm"]);
            if (yzm.ToLower() != yamxt.ToLower())
            {
                bool Success = false;

                userinfo currentModel = Daxu.BLL.userinfoBll.GetEntity<userinfo>(new SearchEntityList()
                {
                    ModelEqual = "userinfo",
                    IdEqual = UserId

                }, null);
                if (currentModel != null)
                {
                    userfackinfo userfackinfo = new userfackinfo()
                    {

                        yonghuming = currentModel.name,
                        datatime = DateTime.Now,
                        tiwenconert = tiwenconert,
                        tell = currentModel.tell,
                        title = title,
                        QQ = currentModel.QQ,
                        Tx = currentModel.Tx,
                        userinfoId = Convert.ToString(currentModel.id)

                    };
                    int i = Daxu.BLL.userfackinfoBll.InsertEntity<userfackinfo>(userfackinfo);

                    if (i > 0)
                    {
                        return Json(new ResultMessage() { Success = true, Message = "发布成功!" });

                    }
                    else
                    {
                        return Json(new ResultMessage() { Success = true, Message = "发布失败!" });

                    }
                }
                else
                {
                    return Json(new ResultMessage() { Success = false, Message = "登陆失效,请重新登陆!" });

                }
            }
            else
            {
                return Json(new ResultMessage() { Success = false, Message = "验证码输入有误请重新输入!" });

            }
        }