Example #1
0
 private void ShowInfo(int _id)
 {
     Cms.BLL.C_article_comment bll = new Cms.BLL.C_article_comment();
     model                   = bll.GetModel(_id);
     txtReContent.Text       = Utils.ToTxt(model.reply_content);
     rblIsLock.SelectedValue = model.is_lock.ToString();
     this.channel_name       = "";//new BLL.channel().GetChannelName(model.channel_id); //取得频道名称
 }
Example #2
0
 protected void btnSubmit_Click(object sender, EventArgs e)
 {
     Cms.BLL.C_article_comment bll = new Cms.BLL.C_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);
     adminUser.AddAdminLog(DTEnums.ActionEnum.Edit.ToString(), model.reply_content); //记录日志
     JscriptMsg("评论回复成功!", "comment_list.aspx?channel_id=" + model.channel_id, "Success");
 }
Example #3
0
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public bool Update(Cms.Model.C_article_comment model)
 {
     return(dal.Update(model));
 }
Example #4
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public int  Add(Cms.Model.C_article_comment model)
 {
     return(dal.Add(model));
 }