Esempio n. 1
0
 private void BindingDataSource(CustomerRetailPage listPage)
 {
     if (listPage?.PfCustomerRetailOrders != null)
     {
         foreach (var item in listPage?.PfCustomerRetailOrders)
         {
             item.PfCustomerName = PfCustomerCache.GetPfCustomerName(item.PfCustomerID);
         }
     }
     dataGridViewPagingSumCtrl.BindingDataSource(listPage?.PfCustomerRetailOrders, null, listPage?.TotalEntityCount);
 }
Esempio n. 2
0
        private void PageControlPanel21_CurrentPageIndexChanged(int index)
        {
            if (this.para == null)
            {
                return;
            }
            para.PageIndex = index;
            CustomerRetailPage page = GlobalCache.ServerProxy.GetCustomerRetailPage(para);

            if (this.para.PfCustomerID == null)
            {
                PfCustomerID.Visible = true;
            }
            else
            {
                PfCustomerID.Visible = false;
            }
            BindingDataSource(page);
        }
Esempio n. 3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="para">内部调用的话不传</param>
        public void Search(GetCustomerRetailPagePara para = null)
        {
            if (para != null)
            {
                this.para = para;
                SetQueryCondition();
            }
            try
            {
                if (CommonGlobalUtil.EngineUnconnectioned(this))
                {
                    return;
                }

                CustomerRetailPage listPage = GlobalCache.ServerProxy.GetCustomerRetailPage(this.para);
                dataGridViewPagingSumCtrl.Initialize(listPage);

                if (this.para.PfCustomerID == null)
                {
                    PfCustomerID.Visible = true;
                }
                else
                {
                    PfCustomerID.Visible = false;
                }

                BindingDataSource(listPage);
            }
            catch (Exception ee)
            {
                ShowError(ee);
            }
            finally
            {
                UnLockPage();
            }
        }