private void dataGridViewPagingSumCtrl_CurrentPageIndexChanged(int index)
        {
            try
            {
                if (CommonGlobalUtil.EngineUnconnectioned(this))
                {
                    return;
                }

                if (this.pagePara == null)
                {
                    return;
                }
                this.pagePara.PageIndex = index;
                CheckStoreSummaryPage listPage = CommonGlobalCache.ServerProxy.GetCheckStoreSummaryPage(this.pagePara);
                this.BindingCheckStoreSummaryBindingSource(listPage);
            }
            catch (Exception ee)
            {
                ShowError(ee);
            }
            finally
            {
                UnLockPage();
            }
        }
 private void BindingCheckStoreSummaryBindingSource(CheckStoreSummaryPage listPage)
 {
     if (listPage != null && listPage.CheckStoreSummarys != null && listPage.CheckStoreSummarys.Count > 0)
     {
         foreach (CheckStoreSummary order in listPage.CheckStoreSummarys)
         {
             Costume costume = CommonGlobalCache.CostumeList.Find(t => t.ID == order.CostumeID);
             if (costume != null)
             {
                 order.Price       = costume.Price;
                 order.CostPrice   = costume.CostPrice;
                 order.CostumeName = costume.Name;
                 order.ShopName    = CommonGlobalCache.GetShopName(order.ShopID);
             }
         }
     }
     this.skinSplitContainer1.Panel2Collapsed = true;
     dataGridView1.CellValueChanged          -= dataGridView1_CellValueChanged;
     this.dataGridViewPagingSumCtrl.BindingDataSource(listPage?.CheckStoreSummarys, null, listPage?.TotalEntityCount, listPage?.CheckStoreSummarySum);
     dataGridView1.CellValueChanged += dataGridView1_CellValueChanged;
 }
        private void Search()
        {
            try
            {
                if (CommonGlobalUtil.EngineUnconnectioned(this))
                {
                    return;
                }

                CheckStoreSummaryPage listPage = CommonGlobalCache.ServerProxy.GetCheckStoreSummaryPage(this.pagePara);
                dataGridViewPagingSumCtrl.OrderPara = pagePara;
                dataGridViewPagingSumCtrl.Initialize(listPage);
                BindingCheckStoreSummaryBindingSource(listPage);
            }
            catch (Exception ee)
            {
                ShowError(ee);
            }
            finally
            {
                UnLockPage();
            }
        }