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

        #region//数据权限条件

        #endregion


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

        repList.DataSource = listObj;
        repList.DataBind();
        aspPager.RecordCount = recount;
    }
Exemple #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        valObj.af_PageBy(WF_INFO.Attribute.FORM_ID, Order.Desc);
        #region//默认隐藏的列
        //hideTableColumnList = new List<AttributeItem>();
        //hideTableColumnList.Add(WF_INFO.Attribute.EXP1);
        //hideTableColumnList.Add(WF_INFO.Attribute.EXP2);
        //hideTableColumnList.Add(WF_INFO.Attribute.EXP3);
        //valObj.LoadAllAttributes(true);//暂时加此代码,以后框架更新将不需要
        //valObj.Remove(hideTableColumnList);

        //hideFindColumnList = new List<AttributeItem>();
        //hideFindColumnList.Add(WF_INFO.Attribute.EXP1);
        //hideFindColumnList.Add(WF_INFO.Attribute.EXP2);
        //hideFindColumnList.Add(WF_INFO.Attribute.EXP3);
        #endregion
        //多级数据表页面才用到

        title      = valObj._ZhName + "选择";
        Page.Title = title;
        if (!IsPostBack)
        {
            aspPager.CurrentPageIndex = 1;
            aspPager.PageSize         = 20;
            try
            {
                listObj = BLLTable <WF_INFO> .Factory(conn).SelectByPage(valObj, condObj, aspPager.PageSize, 1, ref recount);

                repCus.DataSource = listObj;
                repCus.DataBind();
            }
            catch (Exception ex)
            {
                litWarn.Text = ex.Message;
            }
            aspPager.RecordCount = recount;
        }
    }
    private void BindList(WF_INFO condObj, int curPage)
    {
        if (condObj.af_PageByAttributeItem == null)//����������û�����ķ�ҳ�������ԣ�����������������
            condObj.af_PageBy(WF_INFO.Attribute.WFID, Order.Desc);

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

        #endregion

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