private void BindingSource(SupplierAccountRecordPage listPage)
        {
            if (listPage != null && listPage.SupplierAccountRecords != null && listPage.SupplierAccountRecords.Count > 0)
            {
                foreach (var item in listPage.SupplierAccountRecords)
                {
                    item.SupplierName    = GlobalCache.GetSupplierName(item.SupplierID);
                    item.AdminUserName   = GlobalCache.GetUserName(item.AdminUserID);
                    item.AccountTypeName = GlobalUtil.GetAccountTypeName(item.AccountType);
                }
            }

            this.dataGridViewPagingSumCtrl.BindingDataSource(listPage.SupplierAccountRecords, null, listPage?.TotalEntityCount, listPage?.Sum);
        }
 private void dataGridViewPagingSumCtrl_CurrentPageIndexChanged(int index)
 {
     try
     {
         if (this.pagePara == null)
         {
             return;
         }
         this.pagePara.PageIndex = index;
         SupplierAccountRecordPage listPage = GlobalCache.ServerProxy.GetSupplierAccountRecordPage(this.pagePara);
         this.BindingSource(listPage);
     }
     catch (Exception ee)
     {
         GlobalUtil.ShowError(ee);
     }
 }
 public void Search(SupplierAccountRecordPagePara para)
 {
     try
     {
         if (GlobalUtil.EngineUnconnectioned(this))
         {
             return;
         }
         SupplierAccountRecordPage listPage = GlobalCache.ServerProxy.GetSupplierAccountRecordPage(this.pagePara);
         dataGridViewPagingSumCtrl.OrderPara = pagePara;
         this.dataGridViewPagingSumCtrl.Initialize(listPage);
         this.BindingSource(listPage);
     }
     catch (Exception ee)
     {
         GlobalUtil.ShowError(ee);
     }
     finally
     {
         GlobalUtil.UnLockPage(this);
     }
 }