private void BaseButtonQuery_Click(object sender, EventArgs e) { try { if (GlobalUtil.EngineUnconnectioned(this)) { return; } para = new GetPfCustomerPage4DistributorPara() { DistributorID = item.ID, PageIndex = 0, PageSize = dataGridViewPagingSumCtrl.PageSize }; PfCustomerPage page = GlobalCache.ServerProxy.GetPfCustomerPage4Distributor(para); dataGridViewPagingSumCtrl.OrderPara = para; dataGridViewPagingSumCtrl.Initialize(page); BindingDataSource(page); } catch (Exception ex) { GlobalUtil.ShowError(ex); } finally { GlobalUtil.UnLockPage(this); } }
private void BaseButton_Search_Click(object sender, EventArgs e) { try { if (GlobalUtil.EngineUnconnectioned(this)) { return; } GetPfCustomerPagePara para = new GetPfCustomerPagePara() { PageIndex = 0, PageSize = int.MaxValue }; PfCustomerPage listPage = GlobalCache.ServerProxy.GetPfCustomerPage(para); this.BindingSource(listPage?.PfCustomers); } catch (Exception ee) { GlobalUtil.ShowError(ee); } finally { GlobalUtil.UnLockPage(this); } }
private void BaseButtonQuery_Click(object sender, EventArgs e) { try { if (GlobalUtil.EngineUnconnectioned(this)) { return; } this.para = new GetPfCustomerPagePara() { IdOrName = this.skinTextBoxName.SkinTxt.Text, PageIndex = 0, PageSize = dataGridViewPagingSumCtrl.PageSize, }; dataGridViewPagingSumCtrl.OrderPara = para; PfCustomerPage listPage = GlobalCache.ServerProxy.GetPfCustomerPage(para); this.dataGridViewPagingSumCtrl.Initialize(listPage); this.BindingCostumeStoreDataSource(listPage); } catch (Exception ex) { GlobalUtil.ShowError(ex); } finally { GlobalUtil.UnLockPage(this); } }
private void dataGridViewPagingSumCtrl_CurrentPageIndexChanged(int index) { if (this.para != null) { para.PageIndex = index; PfCustomerPage page = GlobalCache.ServerProxy.GetPfCustomerPage(para); this.BindingCostumeStoreDataSource(page); } }
private void dataGridViewPagingSumCtrl_CurrentPageIndexChanged(int index) { try { if (this.para == null) { return; } this.para.PageIndex = index; PfCustomerPage page = GlobalCache.ServerProxy.GetPfCustomerPage4Distributor(para); this.BindingDataSource(page); } catch (Exception ee) { CommonGlobalUtil.ShowError(ee); } }
private void BindingDataSource(PfCustomerPage page) { dataGridViewPagingSumCtrl.BindingDataSource(page?.PfCustomers, null, page?.TotalEntityCount); }
private void BindingCostumeStoreDataSource(PfCustomerPage listPage) { dataGridViewPagingSumCtrl.BindingDataSource(listPage?.PfCustomers, null, listPage?.TotalEntityCount); }