using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using CY.BLL; using CY.BLL.Sys; using CY.Model; using CY.Infrastructure.Query; using CY.Infrastructure.Common; using CY.BLL.EC; using CY.Model.Inquiry; using CY.Infrastructure.Cache; namespace CY.WebForm.Pages.business { //吴辉 //行政管理 public partial class DeliverWorkBookLiShiAnPaiList : BasePage { CoreDeliverOrderBLL _CoreDeliverOrderBLL = null; OA_StaffBLL bll_OA_StaffBLL = null; EC_OrderBasicBLL bll_EC_OrderBasicBLL = null; public string xiala = ""; private static ICacheStrategy CACHE = null;//缓存接口对象 public string biaotou = ""; public string biaowei = ""; CoreCmsPlanOrderBLL bll_CoreCmsPlanOrderBLL = null; CoreCmsPlanOrderItemBLL bll_CoreCmsPlanOrderItemBLL = null; EC_OrderPrintParameterBLL _eC_OrderPrintParameterBLL = null; //初始化 public DeliverWorkBookLiShiAnPaiList() { bll_OA_StaffBLL = new OA_StaffBLL(); _CoreDeliverOrderBLL = new CoreDeliverOrderBLL(); bll_EC_OrderBasicBLL = new EC_OrderBasicBLL(); bll_CoreCmsPlanOrderBLL = new CoreCmsPlanOrderBLL(); bll_CoreCmsPlanOrderItemBLL = new CoreCmsPlanOrderItemBLL(); _eC_OrderPrintParameterBLL = new EC_OrderPrintParameterBLL(); CacheFactory.InitializeCacheFactory(new DefaultCacheStrategy());//初始化缓存工厂 CACHE = CacheFactory.GetCacher();//创建缓存 CACHE.TimeOut = 6000; } //页面加载 protected void Page_Load(object sender, EventArgs e) { // UCPager1.AspNetPager.PageChanged += AspNetPager1_PageChanged; if (!IsPostBack) { this.selDriver.DataSource = bll_OA_StaffBLL.SelectListByFirmId(CurrentUser.MemberId, false, false).Where(x => x.SM_Post == "司机"); ; this.selDriver.DataTextField = "Name"; this.selDriver.DataValueField = "Keyid"; this.selDriver.DataBind(); this.selDriver.Items.Insert(0, new ListItem("全部", "")); this.selBuyerName.DataSource = bll_EC_OrderBasicBLL.GetOrderByPrintTypeId(37).Where(x => x.OrderState == 4 || x.OrderState == 2 || x.OrderState == 3).OrderByDescending(x=>x.CreateTime); this.selBuyerName.DataTextField = "BuyerName"; this.selBuyerName.DataValueField = "Keyid"; this.selBuyerName.DataBind(); //this.selBuyerName.Items.Insert(0, new ListItem("全部", "")); this.txtEndDate.Value = DateTime.Now.ToString("yyyy-MM-dd"); var stringBuyerName = CACHE.RetrieveObject(CurrentUser.TrueMemberId+ "BuyerName") as string;//从缓存中获取数据访问实现层程序集 if (null != stringBuyerName) { this.selBuyerName.Value = stringBuyerName; } 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 += "