private void BindList(WEC_MODEL condObj, int curPage) { valObj.af_PageBy(WEC_MODEL.Attribute.TYPE, Order.Asc); //if (condObj.af_PageByAttributeItem == null)//如果不存在用户定义的分页排序属性,则用主键属性排序 // condObj.af_PageBy(WEC_MODEL.Attribute.ID, Order.Desc); #region//数据权限条件 #endregion //condObj.PID = decimal.Parse(pid); valObj.setConn(conn).setModule(ModuleName); List <ITableImplement> valueList; List <Relation> relationList; if (valObj.GetModule(out valueList, out relationList) > 0) { listObj = BLLTable <WEC_MODEL> .Factory(conn).SelectByPage(valObj, relationList, valueList, condObj, aspPager.PageSize, curPage, ref recount); } else { listObj = BLLTable <WEC_MODEL> .Factory(conn).SelectByPage(valObj, condObj, aspPager.PageSize, curPage, ref recount); } repList.DataSource = listObj; repList.DataBind(); aspPager.RecordCount = recount; }