Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
 public static bool AddProductToFavorite(int productId)
 {
     return(CommentDataProvider.Instance().AddProductToFavorite(productId));
 }
Exemplo n.º 4
0
 public static bool PostMemberMessageIsRead(long messageId)
 {
     return(CommentDataProvider.Instance().PostMemberMessageIsRead(messageId));
 }
Exemplo n.º 5
0
 public static DataSet GetProductConsultationsAndReplys(ProductConsultationAndReplyQuery query, out int total)
 {
     return(CommentDataProvider.Instance().GetProductConsultationsAndReplys(query, out total));
 }
Exemplo n.º 6
0
 public static int GetUserProductReviewsCount()
 {
     return(CommentDataProvider.Instance().GetUserProductReviewsCount());
 }
Exemplo n.º 7
0
 public static ProductInfo GetProductDetails(int productId)
 {
     return(CommentDataProvider.Instance().GetProductDetails(productId));
 }
Exemplo n.º 8
0
 public static int DeleteFavorite(int favoriteId)
 {
     return(CommentDataProvider.Instance().DeleteFavorite(favoriteId));
 }
Exemplo n.º 9
0
 public static SendMessageInfo GetSendedMessage(long sendMessageId)
 {
     return(CommentDataProvider.Instance().GetSendedMessage(sendMessageId));
 }
Exemplo n.º 10
0
 public static ReceiveMessageInfo GetReceiveMessage(long receiveMessageId)
 {
     return(CommentDataProvider.Instance().GetReceiveMessage(receiveMessageId));
 }
Exemplo n.º 11
0
 public static int DeleteSendedMessages(IList <long> sendedMessageList)
 {
     return(CommentDataProvider.Instance().DeleteSendedMessages(sendedMessageList));
 }
Exemplo n.º 12
0
 public static bool DeleteSendedMessage(long sendMessageId)
 {
     return(CommentDataProvider.Instance().DeleteSendedMessage(sendMessageId));
 }
Exemplo n.º 13
0
 public static bool DeleteReceivedMessage(long receiveMessageId)
 {
     return(CommentDataProvider.Instance().DeleteReceivedMessage(receiveMessageId));
 }
Exemplo n.º 14
0
 public static int DeleteReceiedMessages(IList <long> receivedMessageList)
 {
     return(CommentDataProvider.Instance().DeleteReceiedMessages(receivedMessageList));
 }
Exemplo n.º 15
0
 public static bool ExistsProduct(int productId)
 {
     return(CommentDataProvider.Instance().ExistsProduct(productId));
 }
Exemplo n.º 16
0
 public static DbQueryResult GetSendedMessages(SendedMessageQuery query)
 {
     return(CommentDataProvider.Instance().GetSendedMessages(query));
 }
Exemplo n.º 17
0
 public static int UpdateFavorite(int favoriteId, string tags, string remark)
 {
     return(CommentDataProvider.Instance().UpdateFavorite(favoriteId, tags, remark));
 }
Exemplo n.º 18
0
 public static bool SendMessage(MessageBoxInfo messageBoxInfo)
 {
     return(CommentDataProvider.Instance().InsertMessage(messageBoxInfo));
 }
Exemplo n.º 19
0
 public static DbQueryResult GetFavorites(string tags, Pagination page)
 {
     return(CommentDataProvider.Instance().GetFavorites(HiContext.Current.User.UserId, tags, page));
 }
Exemplo n.º 20
0
 public static int DeleteMemberMessages(IList <long> messageList)
 {
     return(CommentDataProvider.Instance().DeleteMemberMessages(messageList));
 }
Exemplo n.º 21
0
 public static bool DeleteFavorites(string string_0)
 {
     return(CommentDataProvider.Instance().DeleteFavorites(string_0));
 }
Exemplo n.º 22
0
 public static DbQueryResult GetMemberReceivedMessages(MessageBoxQuery query)
 {
     return(CommentDataProvider.Instance().GetMemberReceivedMessages(query));
 }
Exemplo n.º 23
0
 public static DataSet GetUserProductReviewsAndReplys(UserProductReviewAndReplyQuery query, out int total)
 {
     return(CommentDataProvider.Instance().GetUserProductReviewsAndReplys(query, out total));
 }
Exemplo n.º 24
0
 public static MessageBoxInfo GetMemberMessage(long messageId)
 {
     return(CommentDataProvider.Instance().GetMemberMessage(messageId));
 }
Exemplo n.º 25
0
 public static DbQueryResult GetBatchBuyProducts(ProductQuery query)
 {
     return(CommentDataProvider.Instance().GetBatchBuyProducts(query));
 }
Exemplo n.º 26
0
 public static bool PostMessageIsRead(long receiveMessageId)
 {
     return(CommentDataProvider.Instance().PostMessageIsRead(receiveMessageId));
 }