Beispiel #1
0
 private void dataGridViewPagingSumCtrl_CurrentPageIndexChanged(int index)
 {
     try
     {
         if (CommonGlobalUtil.EngineUnconnectioned(this))
         {
             return;
         }
         if (this.pagePara == null)
         {
             return;
         }
         this.pagePara.PageIndex = index;
         InboundOrderPage listPage = CommonGlobalCache.ServerProxy.GetInboundOrderPage(this.pagePara);
         this.BindingInboundOrderSource(listPage);
     }
     catch (Exception ee)
     {
         ShowError(ee);
     }
     finally
     {
         UnLockPage();
     }
 }
Beispiel #2
0
 /// <summary>
 /// 绑定InboundOrder数据源
 /// </summary>
 /// <param name="listPage"></param>
 private void BindingInboundOrderSource(InboundOrderPage listPage)
 {
     if (listPage != null && listPage.InboundOrderList != null && listPage.InboundOrderList.Count > 0)
     {
         //将名称赋值,用于显示
         foreach (InboundOrder order in listPage.InboundOrderList)
         {
             order.GuideName    = CommonGlobalCache.GetUserName(order.OperatorUserID);
             order.DeskShopName = CommonGlobalCache.GetShopName(order.ShopID);
         }
     }
     this.dataGridViewPagingSumCtrl.BindingDataSource(listPage?.InboundOrderList, null, listPage?.TotalEntityCount, listPage?.InboundOrderSum);
     this.skinSplitContainer1.Panel2Collapsed = true;
     this.dataGridView1.Refresh();
 }
Beispiel #3
0
        private void BaseButton_Search_Click(object sender, EventArgs e)
        {
            try
            {
                if (CommonGlobalUtil.EngineUnconnectioned(this))
                {
                    return;
                }
                string orderID   = string.IsNullOrEmpty(this.skinTextBox_OrderID.SkinTxt.Text) ? null : this.skinTextBox_OrderID.SkinTxt.Text;
                string costumeID = string.IsNullOrEmpty(this.CostumeCurrentShopTextBox1.SkinTxt.Text) ? null : this.CostumeCurrentShopTextBox1.SkinTxt.Text;

                this.pagePara = new InboundOrderPagePara()
                {
                    OrderID    = orderID,
                    CostumeID  = costumeID,
                    IsOpenDate = true,
                    StartDate  = new CJBasic.Date(this.dateTimePicker_Start.Value),
                    EndDate    = new CJBasic.Date(this.dateTimePicker_End.Value),
                    PageIndex  = 0,
                    PageSize   = this.dataGridViewPagingSumCtrl.PageSize,
                    ShopID     = IsPos ? CommonGlobalCache.CurrentShopID : null
                };
                InboundOrderPage listPage = CommonGlobalCache.ServerProxy.GetInboundOrderPage(this.pagePara);
                dataGridViewPagingSumCtrl.OrderPara = pagePara;
                this.dataGridViewPagingSumCtrl.Initialize(listPage);
                this.BindingInboundOrderSource(listPage);
            }
            catch (Exception ee)
            {
                ShowError(ee);
            }
            finally
            {
                UnLockPage();
            }
        }