Esempio n. 1
0
    private void BindList(SYS_ROLE condObj)
    {
        if (condObj.af_PageByAttributeItem == null)//����������û�����ķ�ҳ�������ԣ�����������������
            condObj.af_PageBy(SYS_ROLE.Attribute.ROLE_ID, Order.Desc);

        listObj = BLLTable<SYS_ROLE>.Factory(conn).Select(valObj, condObj);

        repList.DataSource = listObj;
        repList.DataBind();
    }
Esempio n. 2
0
    private void BindList(SYS_ROLE condObj)
    {
        if (condObj.af_PageByAttributeItem == null)//如果不存在用户定义的分页排序属性,则用主键属性排序
        {
            condObj.af_PageBy(SYS_ROLE.Attribute.ROLE_ID, Order.Desc);
        }

        listObj = BLLTable <SYS_ROLE> .Factory(conn).Select(valObj, condObj);

        repList.DataSource = listObj;
        repList.DataBind();
    }
Esempio n. 3
0
    private void BindList(SYS_ROLE condObj, int curPage)
    {
        if (condObj.af_PageByAttributeItem == null)//如果不存在用户定义的分页排序属性,则用主键属性排序
            condObj.af_PageBy(SYS_ROLE.Attribute.ROLE_ID, Order.Desc);

        condObj.PID = decimal.Parse(pid);
        listObj = BLLTable<SYS_ROLE>.Factory(conn).SelectByPage(valObj, condObj, 20, curPage, ref recount);

        cdcatalog.DataSource = listObj;
        cdcatalog.DataBind();
           // aspPager.RecordCount = recount; hidCondition.Value = condObj.ToJson(20);
    }
Esempio n. 4
0
    private void BindList(SYS_ROLE condObj, int curPage)
    {
        if (condObj.af_PageByAttributeItem == null)//如果不存在用户定义的分页排序属性,则用主键属性排序
        {
            condObj.af_PageBy(SYS_ROLE.Attribute.ROLE_ID, Order.Desc);
        }
        listObj = BLLTable <SYS_ROLE> .Factory(conn).SelectByPage(valObj, condObj, aspPager.PageSize, curPage, ref recount);

        repList.DataSource = listObj;
        repList.DataBind();
        aspPager.RecordCount = recount;
    }
Esempio n. 5
0
    private void BindList(SYS_ROLE condObj, int curPage)
    {
        if (condObj.af_PageByAttributeItem == null)//如果不存在用户定义的分页排序属性,则用主键属性排序
        {
            condObj.af_PageBy(SYS_ROLE.Attribute.ROLE_ID, Order.Desc);
        }

        condObj.PID = decimal.Parse(pid);
        listObj     = BLLTable <SYS_ROLE> .Factory(conn).SelectByPage(valObj, condObj, 20, curPage, ref recount);

        cdcatalog.DataSource = listObj;
        cdcatalog.DataBind();
        // aspPager.RecordCount = recount; hidCondition.Value = condObj.ToJson(20);
    }
Esempio n. 6
0
 private void BindList(SYS_ROLE condObj, int curPage)
 {
     if (condObj.af_PageByAttributeItem == null)//����������û�����ķ�ҳ�������ԣ�����������������
         condObj.af_PageBy(SYS_ROLE.Attribute.ROLE_ID, Order.Desc);
     listObj = BLLTable<SYS_ROLE>.Factory(conn).SelectByPage(valObj, condObj, aspPager.PageSize, curPage, ref recount);
     repList.DataSource = listObj;
     repList.DataBind();
     aspPager.RecordCount = recount;
 }