Exemple #1
0
        public void Search()
        {
            this.dataGridViewPagingSumCtrl.SetDataSource <PfAccountRecord>(null);

            if (this.pagePara != null)
            {
                this.pagePara.PfCustomerID = pfCustomer?.ID;
            }
            else
            {
                this.pagePara = new PfCollectionManagePara()
                {
                    PfCustomerID = pfCustomer?.ID,
                    StartDate    = new CJBasic.Date(this.dateTimePicker_Start.Value),
                    EndDate      = new CJBasic.Date(this.dateTimePicker_End.Value),
                    PageIndex    = 0,
                    PageSize     = this.dataGridViewPagingSumCtrl.PageSize,
                    PayType      = (PfAccountRecordType)this.skinComboBox1.SelectedValue,
                };

                if (pfCustomer != null)
                {
                    skinComboBoxSupplier.SelectedValue = pfCustomer?.ID;
                }
                Search(this.pagePara);
            }
        }
Exemple #2
0
        private void BaseButton_Search_Click(object sender, EventArgs e)
        {
            if (pfCustomer == null)
            {
                GlobalMessageBox.Show("客户不存在,请重新选择!");
                skinComboBoxSupplier.Focus();
                return;
            }

            this.pagePara = new PfCollectionManagePara()
            {
                PfCustomerID = pfCustomer?.ID,
                StartDate    = new CJBasic.Date(this.dateTimePicker_Start.Value),
                EndDate      = new CJBasic.Date(this.dateTimePicker_End.Value),
                PageIndex    = 0,
                PayType      = (PfAccountRecordType)this.skinComboBox1.SelectedValue,
                PageSize     = this.dataGridViewPagingSumCtrl.PageSize,
            };
            Search(pagePara);
        }
Exemple #3
0
 public void Search(PfCollectionManagePara para)
 {
     try
     {
         if (GlobalUtil.EngineUnconnectioned(this))
         {
             return;
         }
         InteractResult <PfAccountRecordPage> listPage = GlobalCache.ServerProxy.PfCollectionManage(this.pagePara);
         dataGridViewPagingSumCtrl.OrderPara = pagePara;
         this.dataGridViewPagingSumCtrl.Initialize(listPage.Data);
         this.BindingSource(listPage.Data);
     }
     catch (Exception ee)
     {
         GlobalUtil.ShowError(ee);
     }
     finally
     {
         GlobalUtil.UnLockPage(this);
     }
 }