Beispiel #1
0
        private void dataGridViewPagingSumCtrl_CurrentPageIndexChanged(int index)
        {
            try
            {
                if (this.pagePara == null)
                {
                    return;
                }
                if (GlobalUtil.EngineUnconnectioned(this))
                {
                    return;
                }
                pagePara.PageIndex = index;
                CarriageCostTemplatePage listPage = GlobalCache.EMallServerProxy.GetCarriageCostTemplatePage(this.pagePara);

                this.BindingDataSource(listPage);
            }
            catch (Exception ee)
            {
                GlobalUtil.ShowError(ee);
            }
            finally
            {
                GlobalUtil.UnLockPage(this);
            }
        }
Beispiel #2
0
        private void baseButtonSearch_Click(object sender, EventArgs e)
        {
            try
            {
                if (GlobalUtil.EngineUnconnectioned(this))
                {
                    return;
                }

                this.pagePara = new Core.Dev.InteractEntity.CarriageCostTemplatePagePara()
                {
                    IsValid   = -1,
                    Name      = skinTextBoxTitle.Text,
                    PageIndex = 0,
                    PageSize  = dataGridViewPagingSumCtrl.PageSize,
                };
                CarriageCostTemplatePage listPage = GlobalCache.EMallServerProxy.GetCarriageCostTemplatePage(pagePara);
                dataGridViewPagingSumCtrl.OrderPara = pagePara;
                dataGridViewPagingSumCtrl.Initialize(listPage);
                this.BindingDataSource(listPage);
            }
            catch (Exception ex)
            {
                GlobalUtil.ShowError(ex);
            }
            finally
            {
                GlobalUtil.UnLockPage(this);
            }
        }
Beispiel #3
0
 private void BindingDataSource(CarriageCostTemplatePage listPage)
 {
     if (listPage != null && listPage.CarriageCostTemplates != null)
     {
         foreach (var item in listPage.CarriageCostTemplates)
         {
             item.LastOperatorUserName = GlobalCache.GetUserName(item.LastOperatorUserID);
         }
     }
     this.dataGridViewPagingSumCtrl.BindingDataSource(listPage?.CarriageCostTemplates, null, listPage?.TotalEntityCount);
 }