示例#1
0
 public static void ArticleUnPublish(int[] arrId)
 {
     foreach (int id in arrId)
     {
         PSCPortal.CMS.ArticleComment article = FeedBackList.Where(a => a.ID == id).Single();
         article.IsPublish = false;
         article.Update();
         //Libs.Ultility.DeleteArticleIndexing(idArticle);
     }
 }
示例#2
0
 public static void ArticlePublish(string[] arrId)
 {
     foreach (string id in arrId)
     {
         int ID = int.Parse(id);
         PSCPortal.CMS.ArticleComment feedback = FeedBackList.Where(a => a.ID == ID).Single();
         feedback.IsPublish = true;
         feedback.Update();
         //Libs.Ultility.IndexingArticle(article);
     }
 }
示例#3
0
 //private string _content = string.Empty;
 //public string FeedBackContent
 //{
 //    get
 //    {
 //        return _content;
 //    }
 //    set
 //    {
 //        _content = value;
 //    }
 //}
 //private string _contentreplay = string.Empty;
 //public string FeedBackContentReply
 //{
 //    get
 //    {
 //        return _contentreplay;
 //    }
 //    set
 //    {
 //        _contentreplay = value;
 //    }
 //}
 public ArticleCommentArgs(ArticleComment Artcomment, bool isEdit)
 {
     _Artcomment = Artcomment;
     _isEdit     = isEdit;
 }
示例#4
0
 public static void ArticleEdit(int id)
 {
     PSCPortal.CMS.ArticleComment feedback = FeedBackList.Where(a => a.ID == id).Single();
     PSCDialog.DataShare = new PSCPortal.CMS.ArticleCommentArgs(feedback, true);
 }