username@email.com
2 天以前 e4ee60ed94d24e394a7895daa9fb98df813e5953
CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverWorkBookLiShiAnPaiList.aspx.cs
@@ -20,6 +20,8 @@
    {
        CoreDeliverOrderBLL _CoreDeliverOrderBLL = null;
        OA_StaffBLL bll_OA_StaffBLL = null;
        EC_OrderBasicBLL bll_EC_OrderBasicBLL = null;
        public string xiala = "";
        //初始化
        public DeliverWorkBookLiShiAnPaiList()
@@ -27,6 +29,7 @@
            
            bll_OA_StaffBLL = new OA_StaffBLL();
            _CoreDeliverOrderBLL = new CoreDeliverOrderBLL();
            bll_EC_OrderBasicBLL = new EC_OrderBasicBLL();
        }
        //页面加载
@@ -41,23 +44,32 @@
                this.selDriver.DataBind();
                this.selDriver.Items.Insert(0, new ListItem("全部", ""));
                BindList();
                BindList("shifou");
            }
             
        }
        //绑定数据
        private void BindList()
        private void BindList(string shifou="")
        {
            var eC_OrderBasics = bll_EC_OrderBasicBLL.GetOrderByPrintTypeId(37).Where(x => x.OrderState == 4);
            foreach (var eC_OrderBasic in eC_OrderBasics)
            {
                xiala += "<option value=\"" + eC_OrderBasic.BuyerName + "\">";
            }
            Pagination pa = new Pagination();
            pa.PageSize = UCPager1.AspNetPager.PageSize;
            pa.PageIndex = UCPager1.AspNetPager.CurrentPageIndex;
            var coreDeliverOrders = _CoreDeliverOrderBLL.SelectModelPageLishi(pa, CurrentUser.MemberId, this.selDriver.Value.ToInt32(),this.txtXuexiao.Value.Trim(),this.txtBuyerName.Value.Trim(), this.txtBeginDate.Value.Trim(), this.txtEndDate.Value.Trim(),this.selOrderState.Value);
            var coreDeliverOrders = _CoreDeliverOrderBLL.SelectModelPageLishi(pa, CurrentUser.MemberId, this.selDriver.Value.ToInt32(),this.txtXuexiao.Value.Trim(),this.txtBuyerName.Value.Trim(), this.txtBeginDate.Value.Trim(), this.txtEndDate.Value.Trim(),this.selOrderState.Value, shifou);
            foreach (var coreDeliverOrder in coreDeliverOrders)
            {
                if (coreDeliverOrder.DriverId.HasValue)
@@ -75,6 +87,10 @@
                    {
                        coreDeliverOrder.DriverName = oA_Staff1.Name;
                    }
                    else
                    {
                        coreDeliverOrder.DriverName = coreDeliverOrder.DeliveryMoble;
                    }
                }
                     
            }