Пример #1
0
        public static bool DeleteHelpCategory(int categoryId)
        {
            HelpCategoryInfo helpCategoryInfo = new HelpCategoryInfo();

            helpCategoryInfo.CategoryId = new int?(categoryId);
            return(SubsiteCommentsProvider.Instance().CreateUpdateDeleteHelpCategory(helpCategoryInfo, DataProviderAction.Delete));
        }
Пример #2
0
        public static bool DeleteArticleCategory(int categoryId)
        {
            ArticleCategoryInfo articleCategoryInfo = new ArticleCategoryInfo();

            articleCategoryInfo.CategoryId = categoryId;
            return(SubsiteCommentsProvider.Instance().CreateUpdateDeleteArticleCategory(articleCategoryInfo, DataProviderAction.Delete));
        }
Пример #3
0
 public static int DeleteArticles(IList <int> articles)
 {
     if ((articles == null) || (articles.Count == 0))
     {
         return(0);
     }
     return(SubsiteCommentsProvider.Instance().DeleteArticles(articles));
 }
Пример #4
0
 public static int DeleteReview(IList <int> reviews)
 {
     if ((reviews == null) || (reviews.Count == 0))
     {
         return(0);
     }
     return(SubsiteCommentsProvider.Instance().DeleteReview(reviews));
 }
Пример #5
0
 public static int DeleteHelps(IList <int> helps)
 {
     if ((helps == null) || (helps.Count == 0))
     {
         return(0);
     }
     return(SubsiteCommentsProvider.Instance().DeleteHelps(helps));
 }
Пример #6
0
 public static bool CreateHelpCategory(HelpCategoryInfo helpCategory)
 {
     if (null == helpCategory)
     {
         return(false);
     }
     Globals.EntityCoding(helpCategory, true);
     return(SubsiteCommentsProvider.Instance().CreateUpdateDeleteHelpCategory(helpCategory, DataProviderAction.Create));
 }
Пример #7
0
 public static bool UpdateHelp(HelpInfo help)
 {
     if (null == help)
     {
         return(false);
     }
     Globals.EntityCoding(help, true);
     return(SubsiteCommentsProvider.Instance().UpdateHelp(help));
 }
Пример #8
0
 public static bool UpdateArticleCategory(ArticleCategoryInfo articleCategory)
 {
     if (null == articleCategory)
     {
         return(false);
     }
     Globals.EntityCoding(articleCategory, true);
     return(SubsiteCommentsProvider.Instance().CreateUpdateDeleteArticleCategory(articleCategory, DataProviderAction.Update));
 }
Пример #9
0
 public static bool UpdateArticle(ArticleInfo article)
 {
     if (null == article)
     {
         return(false);
     }
     Globals.EntityCoding(article, true);
     return(SubsiteCommentsProvider.Instance().UpdateArticle(article));
 }
Пример #10
0
 public static bool CreateAffiche(AfficheInfo affiche)
 {
     if (null == affiche)
     {
         return(false);
     }
     Globals.EntityCoding(affiche, true);
     return(SubsiteCommentsProvider.Instance().AddAffiche(affiche));
 }
Пример #11
0
        public static int SendMessageToMember(IList <MessageBoxInfo> messageBoxInfos)
        {
            int num = 0;

            foreach (MessageBoxInfo current in messageBoxInfos)
            {
                if (SubsiteCommentsProvider.Instance().InsertMessage(current, UserRole.Member))
                {
                    num++;
                }
            }
            return(num);
        }
Пример #12
0
        public static int DeleteHelps(IList <int> helps)
        {
            int result;

            if (helps == null || helps.Count == 0)
            {
                result = 0;
            }
            else
            {
                result = SubsiteCommentsProvider.Instance().DeleteHelps(helps);
            }
            return(result);
        }
Пример #13
0
        public static int DeleteAffiches(List <int> affiches)
        {
            int result;

            if (affiches == null || affiches.Count == 0)
            {
                result = 0;
            }
            else
            {
                result = SubsiteCommentsProvider.Instance().DeleteAffiches(affiches);
            }
            return(result);
        }
Пример #14
0
        public static int DeleteReview(IList <int> reviews)
        {
            int result;

            if (reviews == null || reviews.Count == 0)
            {
                result = 0;
            }
            else
            {
                result = SubsiteCommentsProvider.Instance().DeleteReview(reviews);
            }
            return(result);
        }
Пример #15
0
        public static bool CreateArticle(ArticleInfo article)
        {
            bool result;

            if (null == article)
            {
                result = false;
            }
            else
            {
                Globals.EntityCoding(article, true);
                result = SubsiteCommentsProvider.Instance().AddArticle(article);
            }
            return(result);
        }
Пример #16
0
        public static bool CreateArticleCategory(ArticleCategoryInfo articleCategory)
        {
            bool result;

            if (null == articleCategory)
            {
                result = false;
            }
            else
            {
                Globals.EntityCoding(articleCategory, true);
                result = SubsiteCommentsProvider.Instance().CreateUpdateDeleteArticleCategory(articleCategory, DataProviderAction.Create);
            }
            return(result);
        }
Пример #17
0
        public static bool UpdateHelp(HelpInfo help)
        {
            bool result;

            if (null == help)
            {
                result = false;
            }
            else
            {
                Globals.EntityCoding(help, true);
                result = SubsiteCommentsProvider.Instance().UpdateHelp(help);
            }
            return(result);
        }
Пример #18
0
        public static bool UpdateAffiche(AfficheInfo affiche)
        {
            bool result;

            if (null == affiche)
            {
                result = false;
            }
            else
            {
                Globals.EntityCoding(affiche, true);
                result = SubsiteCommentsProvider.Instance().UpdateAffiche(affiche);
            }
            return(result);
        }
Пример #19
0
        public static int SendMessageToAdmin(IList <SendMessageInfo> sendMessageList, IList <ReceiveMessageInfo> receiveMessageList)
        {
            int num = 0;

            foreach (SendMessageInfo info in sendMessageList)
            {
                Globals.EntityCoding(info, true);
                SubsiteCommentsProvider.Instance().InsertSendMessageToAdmin(info);
                num++;
            }
            foreach (ReceiveMessageInfo info2 in receiveMessageList)
            {
                Globals.EntityCoding(info2, true);
                SubsiteCommentsProvider.Instance().InsertReceiveMessageToAdmin(info2);
                num++;
            }
            return(num);
        }
Пример #20
0
        public static bool ReplyMessageToAdmin(SendMessageInfo reply)
        {
            IList <SendMessageInfo>    sendMessageList    = new List <SendMessageInfo>();
            IList <ReceiveMessageInfo> receiveMessageList = new List <ReceiveMessageInfo>();
            ReceiveMessageInfo         item = new ReceiveMessageInfo();

            item.Addressee      = reply.Addressee;
            item.Addresser      = reply.Addresser;
            item.Title          = reply.Title;
            item.PublishContent = reply.PublishContent;
            item.PublishDate    = DateTime.Now;
            sendMessageList.Add(reply);
            receiveMessageList.Add(item);
            if (SendMessageToAdmin(sendMessageList, receiveMessageList) > 0)
            {
                SubsiteCommentsProvider.Instance().PostMessageToAdminLastTime(reply.ReceiveMessageId.Value, item.PublishDate);
            }
            return(true);
        }
Пример #21
0
 public static DbQueryResult GetArticleList(ArticleQuery articleQuery)
 {
     return(SubsiteCommentsProvider.Instance().GetArticleList(articleQuery));
 }
Пример #22
0
 public static ArticleInfo GetArticle(int articleId)
 {
     return(SubsiteCommentsProvider.Instance().GetArticle(articleId));
 }
Пример #23
0
 public static IList <ArticleCategoryInfo> GetMainArticleCategories()
 {
     return(SubsiteCommentsProvider.Instance().GetMainArticleCategories());
 }
Пример #24
0
 public static ArticleCategoryInfo GetArticleCategory(int categoryId)
 {
     return(SubsiteCommentsProvider.Instance().GetArticleCategory(categoryId));
 }
Пример #25
0
 public static bool DeleteAffiche(int afficheId)
 {
     return(SubsiteCommentsProvider.Instance().DeleteAffiche(afficheId));
 }
Пример #26
0
 public static DataTable GetReplyLeaveComments(long leaveId)
 {
     return(SubsiteCommentsProvider.Instance().GetReplyLeaveComments(leaveId));
 }
Пример #27
0
 public static int DeleteLeaveComments(IList <long> leaveIds)
 {
     return(SubsiteCommentsProvider.Instance().DeleteLeaveComments(leaveIds));
 }
Пример #28
0
 public static bool DeleteLeaveCommentReply(long leaveReplyId)
 {
     return(SubsiteCommentsProvider.Instance().DeleteLeaveCommentReply(leaveReplyId));
 }
Пример #29
0
 public static int ReplyLeaveComment(LeaveCommentReplyInfo leaveReply)
 {
     leaveReply.ReplyDate = DateTime.Now;
     return(SubsiteCommentsProvider.Instance().ReplyLeaveComment(leaveReply));
 }
Пример #30
0
 public static DbQueryResult GetLeaveComments(LeaveCommentQuery query)
 {
     return(SubsiteCommentsProvider.Instance().GetLeaveComments(query));
 }