コード例 #1
0
        private void BindDistributorGrade()
        {
            DistributorGradeQuery entity = new DistributorGradeQuery
            {
                Name      = this.m_txtName,
                SortBy    = "GradeID",
                SortOrder = SortAction.Asc
            };

            Globals.EntityCoding(entity, true);
            entity.PageIndex = this.pager.PageIndex;
            entity.PageSize  = this.pager.PageSize;
            DbQueryResult distributorGradeRequest = DistributorGradeBrower.GetDistributorGradeRequest(entity);

            this.rptList.DataSource = distributorGradeRequest.Data;
            this.rptList.DataBind();
            this.pager.TotalRecords = distributorGradeRequest.TotalRecords;
        }
コード例 #2
0
        private void BindData()
        {
            DistributorGradeQuery distributorGradeQuery = new DistributorGradeQuery();

            distributorGradeQuery.Name      = this.Name;
            distributorGradeQuery.SortBy    = "GradeID";
            distributorGradeQuery.SortOrder = SortAction.Asc;
            Globals.EntityCoding(distributorGradeQuery, true);
            distributorGradeQuery.PageIndex = 1;
            distributorGradeQuery.PageSize  = 100;
            DbQueryResult distributorGradeRequest = DistributorGradeBrower.GetDistributorGradeRequest(distributorGradeQuery);

            if (this.GradeCountDic == null)
            {
                this.GradeCountDic = DistributorGradeBrower.GetGradeCount("0");
            }
            this.rptList.DataSource = distributorGradeRequest.Data;
            this.rptList.DataBind();
        }