Beispiel #1
0
        private void BindData()
        {
            MessageBoxQuery query = new MessageBoxQuery();

            query.Sernder   = "admin";
            query.PageIndex = this.pager.PageIndex;
            query.PageSize  = this.pager.PageSize;
            DbQueryResult managerSendedMessages = NoticeHelper.GetManagerSendedMessages(query, UserRole.Distributor);

            this.messagesList.DataSource = managerSendedMessages.Data;
            this.messagesList.DataBind();
            this.pager.TotalRecords  = managerSendedMessages.TotalRecords;
            this.pager1.TotalRecords = managerSendedMessages.TotalRecords;
        }
Beispiel #2
0
        private void BindData()
        {
            DbQueryResult managerSendedMessages = NoticeHelper.GetManagerSendedMessages(new MessageBoxQuery
            {
                Sernder   = "admin",
                PageIndex = this.pager.PageIndex,
                PageSize  = this.pager.PageSize
            }, Hidistro.Membership.Core.Enums.UserRole.Member);

            this.messagesList.DataSource = managerSendedMessages.Data;
            this.messagesList.DataBind();
            this.pager.TotalRecords  = managerSendedMessages.TotalRecords;
            this.pager1.TotalRecords = managerSendedMessages.TotalRecords;
        }
Beispiel #3
0
        private DataGridViewModel <Dictionary <string, object> > GetDataList(MessageBoxQuery query)
        {
            DataGridViewModel <Dictionary <string, object> > dataGridViewModel = new DataGridViewModel <Dictionary <string, object> >();

            if (query != null)
            {
                DbQueryResult managerSendedMessages = NoticeHelper.GetManagerSendedMessages(query);
                dataGridViewModel.rows  = DataHelper.DataTableToDictionary(managerSendedMessages.Data);
                dataGridViewModel.total = managerSendedMessages.TotalRecords;
                foreach (Dictionary <string, object> row in dataGridViewModel.rows)
                {
                }
            }
            return(dataGridViewModel);
        }