예제 #1
0
        /// <summary>
        /// 查询
        /// </summary>
        private void DoSelect()
        {
            if (!SearchCriterion.Orders.Exists(en => en.PropertyName == "PName"))
            {
                SearchCriterion.Orders.Add(new OrderCriterionItem("PName", true));
            }

            ents = ProductDetail.FindAll(SearchCriterion);
            this.PageState.Add("ProductList", ents);
        }
예제 #2
0
        /// <summary>
        /// 查询
        /// </summary>
        private void DoSelect()
        {
            SearchCriterion.AutoOrder = false;
            string ProductId = RequestData.Get <string>("ProductId");

            if (!string.IsNullOrEmpty(ProductId))
            {
                SearchCriterion.Searches.AddSearch("PId", ProductId);
            }
            ents = ProductDetail.FindAll(SearchCriterion);
            this.PageState.Add("ProductList", ents);
        }