Exemple #1
0
        private void BaseButton_Search_Click(object sender, EventArgs e)
        {
            try
            {
                if (CommonGlobalUtil.EngineUnconnectioned(this))
                {
                    return;
                }

                pagePara = new CashRecordPagePara()
                {
                    ShopID            = ValidateUtil.CheckEmptyValue(this.skinComboBox_DestShop.SelectedValue),
                    StartDate         = new CJBasic.Date(this.dateTimePicker_Start.Value),
                    EndDate           = new CJBasic.Date(this.dateTimePicker_End.Value),
                    PageIndex         = 0,
                    PageSize          = this.dataGridViewPagingSumCtrl.PageSize,
                    CashRecordFeeType = (CashRecordFeeType)this.skinComboBox_FeeType.SelectedValue,
                };
                dataGridViewPagingSumCtrl.OrderPara = pagePara;
                CashRecordPage listPage = CommonGlobalCache.ServerProxy.GetCashRecordPage(this.pagePara);
                dataGridViewPagingSumCtrl.Initialize(listPage);
                BindingSource(listPage);
            }
            catch (Exception ee)
            {
                ShowError(ee);
            }
            finally
            {
                UnLockPage();
            }
        }
Exemple #2
0
 private void dataGridViewPagingSumCtrl_CurrentPageIndexChanged(int index)
 {
     try
     {
         if (this.pagePara == null)
         {
             return;
         }
         this.pagePara.PageIndex = index;
         CashRecordPage listPage = CommonGlobalCache.ServerProxy.GetCashRecordPage(this.pagePara);
         this.BindingSource(listPage);
     }
     catch (Exception ee)
     {
         CommonGlobalUtil.ShowError(ee);
     }
 }
Exemple #3
0
 private void BindingSource(CashRecordPage listPage)
 {
     dataGridViewPagingSumCtrl.BindingDataSource(listPage?.CashRecordList, new string[] { "MoneyCash" }, listPage?.TotalEntityCount, listPage?.CashRecordSum);
 }