Пример #1
0
        /// <summary>
        /// 绑定MemberList源到dataGridView 中
        /// </summary>
        /// <param name="memberListPage"></param>
        private void BindingMemberDateSource(GiftTicketPage memberListPage)
        {
            //  this.dataGridView1.DataSource = null;
            if (memberListPage != null && memberListPage.GiftTickets != null && memberListPage.GiftTickets.Count > 0)
            {
                this.SetMemberOtherValue(memberListPage.GiftTickets);
            }

            dataGridViewPagingSumCtrl.BindingDataSource(memberListPage?.GiftTickets, null, memberListPage?.TotalEntityCount, memberListPage?.GiftTicketSum);

            this.dataGridView1.Refresh();
        }
Пример #2
0
 private void dataGridViewPagingSumCtrl_CurrentPageIndexChanged(int index)
 {
     try
     {
         if (this.pagePara == null)
         {
             return;
         }
         this.pagePara.PageIndex = index;
         GiftTicketPage memberList = CommonGlobalCache.ServerProxy.GetGiftTicketPage(this.pagePara);
         this.BindingMemberDateSource(memberList);
     }
     catch (Exception ee)
     {
         CommonGlobalUtil.ShowError(ee);
     }
 }
Пример #3
0
        private void Search(object sender, EventArgs args)
        {
            try
            {
                if (CommonGlobalUtil.EngineUnconnectioned(this))
                {
                    return;
                }

                GiftTicketPage listPage = CommonGlobalCache.ServerProxy.GetGiftTicketPage(this.pagePara);
                dataGridViewPagingSumCtrl.OrderPara = pagePara;
                this.dataGridViewPagingSumCtrl.Initialize(listPage);
                this.BindingMemberDateSource(listPage);
            }
            catch (Exception ee)
            {
                ShowError(ee);
            }
            finally
            {
                UnLockPage();
            }
        }