private void BindList(KM_SUB_STRU condObj) { if (condObj.af_PageByAttributeItem == null)//����������û�����ķ�ҳ�������ԣ����������������� condObj.af_PageBy(KM_SUB_STRU.Attribute.SUB_ID, Order.Desc); listObj = BLLTable<KM_SUB_STRU>.Factory(conn).Select(valObj, condObj); repList.DataSource = listObj; repList.DataBind(); }
private void BindList(KM_SUB_STRU condObj, int curPage) { if (condObj.af_PageByAttributeItem == null)//如果不存在用户定义的分页排序属性,则用主键属性排序 { condObj.af_PageBy(KM_SUB_STRU.Attribute.SUB_ID, Order.Desc); } listObj = BLLTable <KM_SUB_STRU> .Factory(conn).SelectByPage(valObj, condObj, aspPager.PageSize, curPage, ref recount); repList.DataSource = listObj; repList.DataBind(); aspPager.RecordCount = recount; }
private void BindList(KM_SUB_STRU condObj) { if (condObj.af_PageByAttributeItem == null)//如果不存在用户定义的分页排序属性,则用主键属性排序 { condObj.af_PageBy(KM_SUB_STRU.Attribute.SUB_ID, Order.Desc); } listObj = BLLTable <KM_SUB_STRU> .Factory(conn).Select(valObj, condObj); repList.DataSource = listObj; repList.DataBind(); }
private void BindList(KM_SUB_STRU condObj, int curPage) { if (condObj.af_PageByAttributeItem == null)//����������û�����ķ�ҳ�������ԣ����������������� condObj.af_PageBy(KM_SUB_STRU.Attribute.SUB_ID, Order.Desc); listObj = BLLTable<KM_SUB_STRU>.Factory(conn).SelectByPage(valObj, condObj, aspPager.PageSize, curPage, ref recount); repList.DataSource = listObj; repList.DataBind(); aspPager.RecordCount = recount; }