private LoadOperation <ProductManager.Web.Model.project> LoadProjectEntities() { EntityQuery <ProductManager.Web.Model.project> lQuery; if (IsFilter && SelectList == "项目负责人") { lQuery = this.ProductDomainContext.GetProjectByRespPersonNameQuery(FilterContent); } else { lQuery = this.ProductDomainContext.GetProjectByRespPersonNameQuery(""); } if (IsFilter) { if (SelectList == "生产令号") { lQuery = lQuery.Where(c => c.manufacture_number.ToLower().Contains(FilterContent.ToLower())); } if (SelectList == "项目名称") { lQuery = lQuery.Where(c => c.project_name.ToLower().Contains(FilterContent.ToLower())); } } if (IsNotOutput) { lQuery = lQuery.Where(c => !c.delivery_time.HasValue); } return(this.ProductDomainContext.Load(lQuery.SortAndPageBy(this.projectView))); }
private LoadOperation <ProductManager.Web.Model.project_responsible> LoadProjectResponsibleEntities() { EntityQuery <ProductManager.Web.Model.project_responsible> lQuery = this.ProductDomainContext.GetProject_responsibleQuery(); if (IsFilter && SelectList == "项目负责人") { lQuery = lQuery.Where(c => c.responsible_persionName.ToLower().Contains(FilterContent.ToLower())); } return(this.ProductDomainContext.Load(lQuery.SortAndPageBy(this.projectResponsibleView))); }