Exemplo n.º 1
0
 private void BindTypes()
 {
     ProductTypeQuery query = new ProductTypeQuery();
     query.TypeName = searchkey;
     query.PageIndex = pager.PageIndex;
     query.PageSize = pager.PageSize;
     DbQueryResult productTypes = ProductTypeHelper.GetProductTypes(query);
     grdProductTypes.DataSource = productTypes.Data;
     grdProductTypes.DataBind();
     pager.TotalRecords = productTypes.TotalRecords;
 }
Exemplo n.º 2
0
 private void BindTypes()
 {
     ProductTypeQuery query = new ProductTypeQuery {
         TypeName = this.searchkey,
         PageIndex = this.pager.PageIndex,
         PageSize = this.pager.PageSize
     };
     DbQueryResult productTypes = ProductTypeHelper.GetProductTypes(query);
     this.grdProductTypes.DataSource = productTypes.Data;
     this.grdProductTypes.DataBind();
     this.pager.TotalRecords = productTypes.TotalRecords;
 }
Exemplo n.º 3
0
 public DbQueryResult GetProductTypes(ProductTypeQuery query)
 {
     return DataHelper.PagingByTopsort(query.PageIndex, query.PageSize, query.SortBy, query.SortOrder, query.IsCount, "Hishop_ProductTypes", "TypeId", string.IsNullOrEmpty(query.TypeName) ? string.Empty : string.Format("TypeName LIKE '%{0}%'", DataHelper.CleanSearchString(query.TypeName)), "*");
 }
Exemplo n.º 4
0
 public static DbQueryResult GetProductTypes(ProductTypeQuery query)
 {
     return ProductProvider.Instance().GetProductTypes(query);
 }
Exemplo n.º 5
0
 public static DbQueryResult GetProductTypes(ProductTypeQuery query)
 {
     return new ProductTypeDao().GetProductTypes(query);
 }
Exemplo n.º 6
0
 public abstract DbQueryResult GetProductTypes(ProductTypeQuery query);