Ejemplo n.º 1
0
 //保存
 protected void btnSubmit_Click(object sender, EventArgs e)
 {
     ChkAdminLevel("channel_" + this.channel_name + "_comment", DTEnums.ActionEnum.Reply.ToString()); //检查权限
     BLL.article_comment bll = new BLL.article_comment();
     model.is_reply      = 1;
     model.reply_content = Utils.ToHtml(txtReContent.Text);
     model.is_lock       = int.Parse(rblIsLock.SelectedValue);
     model.reply_time    = DateTime.Now;
     bll.Update(model);
     AddAdminLog(DTEnums.ActionEnum.Reply.ToString(), "回复" + this.channel_name + "频道评论ID:" + model.id); //记录日志
     JscriptMsg("评论回复成功!", "comment_list.aspx?channel_id=" + model.channel_id);
 }
Ejemplo n.º 2
0
 //保存
 protected void btnSubmit_Click(object sender, EventArgs e)
 {
     ChkAdminLevel("channel_" + this.channel_name + "_comment", DTEnums.ActionEnum.Reply.ToString()); //检查权限
     BLL.article_comment bll = new BLL.article_comment();
     model.is_reply = 1;
     model.reply_content = Utils.ToHtml(txtReContent.Text);
     model.is_lock = int.Parse(rblIsLock.SelectedValue);
     model.reply_time = DateTime.Now;
     bll.Update(model);
     AddAdminLog(DTEnums.ActionEnum.Reply.ToString(), "回复" + this.channel_name + "频道评论ID:" + model.id); //记录日志
     JscriptMsg("评论回复成功!", "comment_list.aspx?channel_id=" + model.channel_id);
 }
Ejemplo n.º 3
0
 //保存
 protected void btnSubmit_Click(object sender, EventArgs e)
 {
     ChkAdminLevel("sys_comment", DTEnums.ActionEnum.Reply.ToString()); //检查权限
     BLL.article_comment bll = new BLL.article_comment();
     model = bll.GetModel(this.id);
     model.is_reply = 1;
     model.reply_content = Utils.ToHtml(txtReContent.Text);
     model.is_lock = int.Parse(rblIsLock.SelectedValue);
     model.reply_time = DateTime.Now;
     bll.Update(model);
     JscriptMsg("评论回复成功啦!", "list.aspx", "Success");
 }
Ejemplo n.º 4
0
 //保存
 protected void btnSubmit_Click(object sender, EventArgs e)
 {
     ChkAdminLevel("sys_comment", DTEnums.ActionEnum.Reply.ToString()); //检查权限
     BLL.article_comment bll = new BLL.article_comment();
     model               = bll.GetModel(this.id);
     model.is_reply      = 1;
     model.reply_content = Utils.ToHtml(txtReContent.Text);
     model.is_lock       = int.Parse(rblIsLock.SelectedValue);
     model.reply_time    = DateTime.Now;
     bll.Update(model);
     JscriptMsg("评论回复成功啦!", "list.aspx", "Success");
 }