Exemplo n.º 1
0
 void BindData()
 {
     SendedMessageQuery query = new SendedMessageQuery();
     query.PageIndex = this.pager.PageIndex;
     query.PageSize = this.pager.PageSize;
     query.UserName = HiContext.Current.User.Username;
     DbQueryResult sendedMessages = CommentsHelper.GetSendedMessages(query);
     this.messagesList.DataSource = sendedMessages.Data;
     this.messagesList.DataBind();
     this.pager.TotalRecords = sendedMessages.TotalRecords;
 }
 private void BindData()
 {
     SendedMessageQuery query = new SendedMessageQuery();
     query.UserName = "******";
     query.SortBy = messagesList.SortOrderBy;
     query.PageIndex = pager.PageIndex;
     query.PageSize = pager.PageSize;
     if (messagesList.SortOrder.ToLower() == "desc")
     {
         query.SortOrder = SortAction.Desc;
     }
     DbQueryResult distributorSendedMessages = NoticeHelper.GetDistributorSendedMessages(query);
     messagesList.DataSource = distributorSendedMessages.Data;
     messagesList.DataBind();
     pager.TotalRecords = distributorSendedMessages.TotalRecords;
     pager1.TotalRecords = distributorSendedMessages.TotalRecords;
 }
Exemplo n.º 3
0
 public override DbQueryResult GetSendedMessages(SendedMessageQuery query)
 {
     return DataHelper.PagingByRownumber(query.PageIndex, query.PageSize, query.SortBy, query.SortOrder, query.IsCount, "Hishop_SendedMessages", "SendMessageId", string.Format("Addresser='{0}' AND Addressee IN (SELECT UserName FROM  vw_aspnet_Members) ", query.UserName), "*");
 }
Exemplo n.º 4
0
 public static DbQueryResult GetSendedMessages(SendedMessageQuery query)
 {
     return CommentsProvider.Instance().GetSendedMessages(query);
 }
Exemplo n.º 5
0
 public override DbQueryResult GetSendedMessagesToAdmin(SendedMessageQuery query)
 {
     return DataHelper.PagingByRownumber(query.PageIndex, query.PageSize, query.SortBy, query.SortOrder, query.IsCount, "Hishop_SendedMessages", "SendMessageId", string.Format("Addresser='{0}'", query.UserName), "*");
 }
Exemplo n.º 6
0
 public abstract DbQueryResult GetDistributorSendedMessages(SendedMessageQuery query);
Exemplo n.º 7
0
 public abstract DbQueryResult GetSendedMessages(SendedMessageQuery query);
Exemplo n.º 8
0
 public static DbQueryResult GetSendedMessagesToAdmin(SendedMessageQuery query)
 {
     return SubsiteCommentsProvider.Instance().GetSendedMessagesToAdmin(query);
 }