Пример #1
0
    private void BindList(TF_TABLE condObj, int curPage)
    {
        if (condObj.af_PageByAttributeItem == null)//如果不存在用户定义的分页排序属性,则用主键属性排序
        {
            condObj.af_PageBy(TF_TABLE.Attribute.TB_ID, Order.Desc);
        }

        #region//数据权限条件

        #endregion
        //condObj.PID = decimal.Parse(pid);

        listObj = BLLTable <TF_TABLE> .Factory(conn).SelectByPage(valObj, condObj, aspPager.PageSize, curPage, ref recount);

        repList.DataSource = listObj;
        repList.DataBind();
        aspPager.RecordCount = recount;

        head_TB_ID.Visible = false;

        foreach (RepeaterItem item in repList.Items)
        {
            Label    lblid = item.FindControl("lid") as Label;
            Repeater rp    = item.FindControl("repx") as Repeater;
            //rp.DataSource = listObj;
            //rp.DataBind();
            //DataTable dt2 = bll.GetList(0, "Classid=" + lblid.Text + "", "SortId asc").Tables[0];
            //if (dt2.Rows.Count != 0)
            //{
            //    rp.DataSource = dt2;
            //    rp.DataBind();
            //}
        }
    }
Пример #2
0
    private void BindList(TF_TABLE condObj, int curPage)
    {
        if (condObj.af_PageByAttributeItem == null)//如果不存在用户定义的分页排序属性,则用主键属性排序
        {
            condObj.af_PageBy(TF_TABLE.Attribute.TB_ID, Order.Desc);
        }

        #region//数据权限条件

        #endregion
        //condObj.PID = decimal.Parse(pid);

        listObj = BLLTable <TF_TABLE> .Factory(conn).SelectByPage(valObj, condObj, aspPager.PageSize, curPage, ref recount);

        repList.DataSource = listObj;
        repList.DataBind();
        aspPager.RecordCount = recount;
    }
Пример #3
0
    private void BindList(TF_TABLE condObj, int curPage)
    {
        if (condObj.af_PageByAttributeItem == null)//����������û�����ķ�ҳ�������ԣ�����������������
            condObj.af_PageBy(TF_TABLE.Attribute.TB_ID, Order.Desc);

        #region//����Ȩ������

        #endregion
        //condObj.PID = decimal.Parse(pid);

        listObj = BLLTable<TF_TABLE>.Factory(conn).SelectByPage(valObj, condObj, aspPager.PageSize, curPage, ref recount);
        repList.DataSource = listObj;
        repList.DataBind();
        aspPager.RecordCount = recount;

        head_TB_ID.Visible = false;

        foreach (RepeaterItem item in repList.Items)
        {
            Label lblid = item.FindControl("lid") as Label;
            Repeater rp = item.FindControl("repx") as Repeater;
            //rp.DataSource = listObj;
            //rp.DataBind();
            //DataTable dt2 = bll.GetList(0, "Classid=" + lblid.Text + "", "SortId asc").Tables[0];
            //if (dt2.Rows.Count != 0)
            //{
            //    rp.DataSource = dt2;
            //    rp.DataBind();
            //}

        }
    }
Пример #4
0
    private void BindList(TF_TABLE condObj, int curPage)
    {
        if (condObj.af_PageByAttributeItem == null)//����������û�����ķ�ҳ�������ԣ�����������������
            condObj.af_PageBy(TF_TABLE.Attribute.TB_ID, Order.Desc);

        #region//����Ȩ������

        #endregion
        //condObj.PID = decimal.Parse(pid);

        listObj = BLLTable<TF_TABLE>.Factory(conn).SelectByPage(valObj, condObj, aspPager.PageSize, curPage, ref recount);
        repList.DataSource = listObj;
        repList.DataBind();
        aspPager.RecordCount = recount;
    }