Пример #1
0
        public static int SendMessage(IList <SendMessageInfo> sendMessageList, IList <ReceiveMessageInfo> receiveMessageList)
        {
            int num = 0;

            foreach (SendMessageInfo info in sendMessageList)
            {
                Globals.EntityCoding(info, true);
                CommentDataProvider.Instance().InsertSendMessage(info);
                num++;
            }
            foreach (ReceiveMessageInfo info2 in receiveMessageList)
            {
                Globals.EntityCoding(info2, true);
                CommentDataProvider.Instance().InsertReceiveMessage(info2);
                num++;
            }
            return(num);
        }
Пример #2
0
        public static bool ReplyMessage(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 (SendMessage(sendMessageList, receiveMessageList) > 0)
            {
                CommentDataProvider.Instance().PostMessageLastTime(reply.ReceiveMessageId.Value, item.PublishDate);
            }
            return(true);
        }
Пример #3
0
 public static bool AddProductToFavorite(int productId)
 {
     return(CommentDataProvider.Instance().AddProductToFavorite(productId));
 }
Пример #4
0
 public static bool PostMemberMessageIsRead(long messageId)
 {
     return(CommentDataProvider.Instance().PostMemberMessageIsRead(messageId));
 }
Пример #5
0
 public static DataSet GetProductConsultationsAndReplys(ProductConsultationAndReplyQuery query, out int total)
 {
     return(CommentDataProvider.Instance().GetProductConsultationsAndReplys(query, out total));
 }
Пример #6
0
 public static int GetUserProductReviewsCount()
 {
     return(CommentDataProvider.Instance().GetUserProductReviewsCount());
 }
Пример #7
0
 public static ProductInfo GetProductDetails(int productId)
 {
     return(CommentDataProvider.Instance().GetProductDetails(productId));
 }
Пример #8
0
 public static int DeleteFavorite(int favoriteId)
 {
     return(CommentDataProvider.Instance().DeleteFavorite(favoriteId));
 }
Пример #9
0
 public static SendMessageInfo GetSendedMessage(long sendMessageId)
 {
     return(CommentDataProvider.Instance().GetSendedMessage(sendMessageId));
 }
Пример #10
0
 public static ReceiveMessageInfo GetReceiveMessage(long receiveMessageId)
 {
     return(CommentDataProvider.Instance().GetReceiveMessage(receiveMessageId));
 }
Пример #11
0
 public static int DeleteSendedMessages(IList <long> sendedMessageList)
 {
     return(CommentDataProvider.Instance().DeleteSendedMessages(sendedMessageList));
 }
Пример #12
0
 public static bool DeleteSendedMessage(long sendMessageId)
 {
     return(CommentDataProvider.Instance().DeleteSendedMessage(sendMessageId));
 }
Пример #13
0
 public static bool DeleteReceivedMessage(long receiveMessageId)
 {
     return(CommentDataProvider.Instance().DeleteReceivedMessage(receiveMessageId));
 }
Пример #14
0
 public static int DeleteReceiedMessages(IList <long> receivedMessageList)
 {
     return(CommentDataProvider.Instance().DeleteReceiedMessages(receivedMessageList));
 }
Пример #15
0
 public static bool ExistsProduct(int productId)
 {
     return(CommentDataProvider.Instance().ExistsProduct(productId));
 }
Пример #16
0
 public static DbQueryResult GetSendedMessages(SendedMessageQuery query)
 {
     return(CommentDataProvider.Instance().GetSendedMessages(query));
 }
Пример #17
0
 public static int UpdateFavorite(int favoriteId, string tags, string remark)
 {
     return(CommentDataProvider.Instance().UpdateFavorite(favoriteId, tags, remark));
 }
Пример #18
0
 public static bool SendMessage(MessageBoxInfo messageBoxInfo)
 {
     return(CommentDataProvider.Instance().InsertMessage(messageBoxInfo));
 }
Пример #19
0
 public static DbQueryResult GetFavorites(string tags, Pagination page)
 {
     return(CommentDataProvider.Instance().GetFavorites(HiContext.Current.User.UserId, tags, page));
 }
Пример #20
0
 public static int DeleteMemberMessages(IList <long> messageList)
 {
     return(CommentDataProvider.Instance().DeleteMemberMessages(messageList));
 }
Пример #21
0
 public static bool DeleteFavorites(string string_0)
 {
     return(CommentDataProvider.Instance().DeleteFavorites(string_0));
 }
Пример #22
0
 public static DbQueryResult GetMemberReceivedMessages(MessageBoxQuery query)
 {
     return(CommentDataProvider.Instance().GetMemberReceivedMessages(query));
 }
Пример #23
0
 public static DataSet GetUserProductReviewsAndReplys(UserProductReviewAndReplyQuery query, out int total)
 {
     return(CommentDataProvider.Instance().GetUserProductReviewsAndReplys(query, out total));
 }
Пример #24
0
 public static MessageBoxInfo GetMemberMessage(long messageId)
 {
     return(CommentDataProvider.Instance().GetMemberMessage(messageId));
 }
Пример #25
0
 public static DbQueryResult GetBatchBuyProducts(ProductQuery query)
 {
     return(CommentDataProvider.Instance().GetBatchBuyProducts(query));
 }
Пример #26
0
 public static bool PostMessageIsRead(long receiveMessageId)
 {
     return(CommentDataProvider.Instance().PostMessageIsRead(receiveMessageId));
 }