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);
            }
        }
Esempio 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);
            }
        }
Esempio n. 3
0
        public static void Load()
        {
            if (pfCustomerList == null)
            {
                GetPfCustomerPagePara pfPara = new GetPfCustomerPagePara()
                {
                    PageIndex = 0,
                    PageSize  = int.MaxValue
                };

                pfCustomerList = PfCustomerCache.ServerProxy.GetPfCustomerPage(pfPara)?.PfCustomers;
                if (pfCustomerList != null && pfCustomerList.Count > 0)
                {
                    foreach (var item in pfCustomerList)
                    {
                        if (string.IsNullOrEmpty(item.FirstCharSpell))
                        {
                            item.FirstCharSpell = DisplayUtil.GetPYString(item.Name);
                        }
                    }
                }
            }
        }