private void BindList(IM_STORAGE condObj, int curPage) { if (condObj.af_PageByAttributeItem == null)//如果不存在用户定义的分页排序属性,则用主键属性排序 { condObj.af_PageBy(IM_STORAGE.Attribute.STOR_ID, Order.Desc); } listObj = BLLTable <IM_STORAGE> .Factory(conn).SelectByPage(valObj, condObj, aspPager.PageSize, curPage, ref recount); repList.DataSource = listObj; repList.DataBind(); aspPager.RecordCount = recount; }
private void BindList(IM_STORAGE condObj, int curPage) { if (condObj.af_PageByAttributeItem == null)//如果不存在用户定义的分页排序属性,则用主键属性排序 { condObj.af_PageBy(IM_STORAGE.Attribute.STOR_ID, Order.Desc); } #region//数据权限条件 //string user_data_ids=UserHelper.GetUserDataIDS(userBase, HR_ORG.Attribute.ORG_ID); //if (!string.IsNullOrEmpty(user_data_ids)) { // condObj.In(IM_STORAGE.Attribute.ORG_ID, user_data_ids); //} #endregion condObj.PID = decimal.Parse(pid); listObj = BLLTable <IM_STORAGE> .Factory(conn).SelectByPage(valObj, condObj, aspPager.PageSize, curPage, ref recount); repList.DataSource = listObj; repList.DataBind(); aspPager.RecordCount = recount; }
private void BindList(IM_STORAGE condObj, int curPage) { if (condObj.af_PageByAttributeItem == null)//����������û�����ķ�ҳ�������ԣ����������������� condObj.af_PageBy(IM_STORAGE.Attribute.STOR_ID, Order.Desc); listObj = BLLTable<IM_STORAGE>.Factory(conn).SelectByPage(valObj, condObj, aspPager.PageSize, curPage, ref recount); repList.DataSource = listObj; repList.DataBind(); aspPager.RecordCount = recount; }
private void BindList(IM_STORAGE condObj, int curPage) { if (condObj.af_PageByAttributeItem == null)//����������û�����ķ�ҳ�������ԣ����������������� condObj.af_PageBy(IM_STORAGE.Attribute.STOR_ID, Order.Desc); #region//����Ȩ������ //string user_data_ids=UserHelper.GetUserDataIDS(userBase, HR_ORG.Attribute.ORG_ID); //if (!string.IsNullOrEmpty(user_data_ids)) { // condObj.In(IM_STORAGE.Attribute.ORG_ID, user_data_ids); //} #endregion condObj.PID = decimal.Parse(pid); listObj = BLLTable<IM_STORAGE>.Factory(conn).SelectByPage(valObj, condObj, aspPager.PageSize, curPage, ref recount); repList.DataSource = listObj; repList.DataBind(); aspPager.RecordCount = recount; }