Ejemplo n.º 1
0
 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);
     }
 }
Ejemplo n.º 2
0
        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);
            }
        }
Ejemplo n.º 3
0
        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);
            }
        }
Ejemplo n.º 4
0
 private void dataGridViewPagingSumCtrl_CurrentPageIndexChanged(int index)
 {
     if (this.para != null)
     {
         para.PageIndex = index;
         PfCustomerPage page = GlobalCache.ServerProxy.GetPfCustomerPage(para);
         this.BindingCostumeStoreDataSource(page);
     }
 }
Ejemplo n.º 5
0
 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);
     }
 }
Ejemplo n.º 6
0
 private void BindingDataSource(PfCustomerPage page)
 {
     dataGridViewPagingSumCtrl.BindingDataSource(page?.PfCustomers, null, page?.TotalEntityCount);
 }
Ejemplo n.º 7
0
 private void BindingCostumeStoreDataSource(PfCustomerPage listPage)
 {
     dataGridViewPagingSumCtrl.BindingDataSource(listPage?.PfCustomers, null, listPage?.TotalEntityCount);
 }