private void ShowInfo(int _id)
 {
     BLL.article_comment bll = new BLL.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); //取得频道名称
 }
 private void ShowInfo(int _id)
 {
     BLL.article_comment bll = new BLL.article_comment();
     model                   = bll.GetModel(_id);
     txtReContent.Text       = Vincent._DTcms.Utils.ToTxt(model.reply_content);
     rblIsLock.SelectedValue = model.is_lock.ToString();
     this.channel_name       = new BLL.channel().GetChannelName(model.channel_id); //取得频道名称
 }
Exemple #3
0
 private void ShowInfo(int _id)
 {
     ChkAdminLevel("sys_comment", DTEnums.ActionEnum.View.ToString()); //检查权限
     BLL.article_comment bll = new BLL.article_comment();
     model = bll.GetModel(_id);
     txtReContent.Text = Utils.ToTxt(model.reply_content);
     rblIsLock.SelectedValue = model.is_lock.ToString();
 }
Exemple #4
0
 private void ShowInfo(int _id)
 {
     ChkAdminLevel("sys_comment", DTEnums.ActionEnum.View.ToString()); //检查权限
     BLL.article_comment bll = new BLL.article_comment();
     model                   = bll.GetModel(_id);
     txtReContent.Text       = Utils.ToTxt(model.reply_content);
     rblIsLock.SelectedValue = model.is_lock.ToString();
 }
Exemple #5
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");
 }
Exemple #6
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");
 }
 //保存
 protected void btnSubmit_Click(object sender, EventArgs e)
 {
     ChkAdminLevel("channel_" + this.channel_name + "_comment", MXEnums.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);
     AddAdminLog(MXEnums.ActionEnum.Reply.ToString(), "回复" + this.channel_name + "频道评论ID:" + model.id); //记录日志
     JscriptMsg("评论回复成功!", "comment_list.aspx?channel_id=" + model.channel_id, "Success");
 }
 //保存
 protected void btnSubmit_Click(object sender, EventArgs e)
 {
     ChkAdminLevel("channel_" + this.channel_name + "_comment", Vincent._DTcms.DTEnums.ActionEnum.Reply.ToString()); //检查权限
     BLL.article_comment bll = new BLL.article_comment();
     model               = bll.GetModel(this.id);
     model.is_reply      = 1;
     model.reply_content = Vincent._DTcms.Utils.ToHtml(txtReContent.Text);
     model.is_lock       = int.Parse(rblIsLock.SelectedValue);
     model.reply_time    = DateTime.Now;
     bll.Update(model);
     AddAdminLog(Vincent._DTcms.DTEnums.ActionEnum.Reply.ToString(), "回复" + this.channel_name + "频道评论ID:" + model.id); //记录日志
     JscriptMsg("评论回复成功!", "comment_list.aspx?channel_id=" + model.channel_id, "Success");
 }