Ejemplo n.º 1
0
 /// <summary>
 /// 绑定MemberList源到dataGridView 中
 /// </summary>
 /// <param name="memberListPage"></param>
 private void BindingMemberDateSource(MemberListPage listPage)
 {
     if (listPage != null && listPage.MemberArray != null && listPage.MemberArray.Count > 0)
     {
         this.SetMemberOtherValue(listPage.MemberArray);
     }
     dataGridViewPagingSumCtrl.BindingDataSource(listPage?.MemberArray, null, listPage?.TotalEntityCount, listPage?.MemberSum);
 }
Ejemplo n.º 2
0
 private void dataGridViewPagingSumCtrl_CurrentPageIndexChanged(int index)
 {
     try
     {
         if (this.pagePara == null)
         {
             return;
         }
         this.pagePara.PageIndex = index;
         MemberListPage memberList = CommonGlobalCache.ServerProxy.GetMemberListPage(this.pagePara);
         this.BindingMemberDateSource(memberList);
     }
     catch (Exception ee)
     {
         CommonGlobalUtil.ShowError(ee);
     }
 }
Ejemplo n.º 3
0
        private void Search()
        {
            try
            {
                if (CommonGlobalUtil.EngineUnconnectioned(this))
                {
                    return;
                }

                dataGridViewPagingSumCtrl.OrderPara = pagePara;
                MemberListPage listPage = CommonGlobalCache.ServerProxy.GetMemberListPage(this.pagePara);

                this.dataGridViewPagingSumCtrl.Initialize(listPage);
                this.BindingMemberDateSource(listPage);
            }
            catch (Exception ee)
            {
                ShowError(ee);
            }
            finally
            {
                UnLockPage();
            }
        }