示例#1
0
        private void BindData()
        {
            ProductQuery productQuery = new ProductQuery();

            productQuery.PageSize      = this.pager.PageSize;
            productQuery.PageIndex     = this.pager.PageIndex;
            productQuery.ProductCode   = this.productCode;
            productQuery.Keywords      = this.name;
            productQuery.ProductLineId = this.lineId;
            productQuery.SortOrder     = SortAction.Desc;
            productQuery.SortBy        = "DisplaySequence";
            Globals.EntityCoding(productQuery, true);
            DbQueryResult authorizeProducts = SubSiteProducthelper.GetAuthorizeProducts(productQuery, true);

            this.grdAuthorizeProducts.DataSource = authorizeProducts.Data;
            this.grdAuthorizeProducts.DataBind();
            this.pager.TotalRecords  = authorizeProducts.TotalRecords;
            this.pager1.TotalRecords = authorizeProducts.TotalRecords;
        }
示例#2
0
        private void BindData()
        {
            ProductQuery entity = new ProductQuery();

            entity.PageSize      = this.pager.PageSize;
            entity.PageIndex     = this.pager.PageIndex;
            entity.ProductCode   = this.productCode;
            entity.Keywords      = this.name;
            entity.ProductLineId = this.lineId;
            if (this.grdAuthorizeProducts.SortOrder.ToLower() == "desc")
            {
                entity.SortOrder = SortAction.Desc;
            }
            entity.SortBy = this.grdAuthorizeProducts.SortOrderBy;
            Globals.EntityCoding(entity, true);
            DbQueryResult authorizeProducts = SubSiteProducthelper.GetAuthorizeProducts(entity, false);

            this.grdAuthorizeProducts.DataSource = authorizeProducts.Data;
            this.grdAuthorizeProducts.DataBind();
            this.pager.TotalRecords  = authorizeProducts.TotalRecords;
            this.pager1.TotalRecords = authorizeProducts.TotalRecords;
        }
        private void BindData()
        {
            ProductQuery entity = new ProductQuery();

            entity.PageSize      = pager.PageSize;
            entity.PageIndex     = pager.PageIndex;
            entity.ProductCode   = productCode;
            entity.Keywords      = name;
            entity.ProductLineId = lineId;
            entity.SortOrder     = SortAction.Desc;
            entity.SortBy        = "DisplaySequence";//grdAuthorizeProducts.SortOrderBy;//

            Globals.EntityCoding(entity, true);

            DbQueryResult authorizeProducts = SubSiteProducthelper.GetAuthorizeProducts(entity, true);

            grdAuthorizeProducts.DataSource = authorizeProducts.Data;

            grdAuthorizeProducts.DataBind();

            pager.TotalRecords = authorizeProducts.TotalRecords;

            pager1.TotalRecords = authorizeProducts.TotalRecords;
        }