Ejemplo n.º 1
0
    private void BindList(TF_F_COLUMN_ITEM condObj, int curPage)
    {
        if (condObj.af_PageByAttributeItem == null)//����������û�����ķ�ҳ�������ԣ�����������������
            condObj.af_PageBy(TF_F_COLUMN_ITEM.Attribute.ITEM_ID, Order.Desc);

        if (colid!="")
        {
            condObj.COLUMN_ID = int.Parse(colid);
            listObj = BLLTable<TF_F_COLUMN_ITEM>.Factory(conn).Select(valObj, condObj);
            repList.DataSource = listObj;
            repList.DataBind();
        }
    }
Ejemplo n.º 2
0
    private void BindList(TF_F_COLUMN_ITEM condObj, int curPage)
    {
        if (condObj.af_PageByAttributeItem == null)//如果不存在用户定义的分页排序属性,则用主键属性排序
        {
            condObj.af_PageBy(TF_F_COLUMN_ITEM.Attribute.ITEM_ID, Order.Desc);
        }

        if (colid != "")
        {
            condObj.COLUMN_ID = int.Parse(colid);
            listObj           = BLLTable <TF_F_COLUMN_ITEM> .Factory(conn).Select(valObj, condObj);

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

        //hideFindColumnList = new List<AttributeItem>();
        //hideFindColumnList.Add(TF_F_COLUMN_ITEM.Attribute.EXP1);
        //hideFindColumnList.Add(TF_F_COLUMN_ITEM.Attribute.EXP2);
        //hideFindColumnList.Add(TF_F_COLUMN_ITEM.Attribute.EXP3);
        #endregion
        //多级数据表页面才用到
        if (Request["PID"] != null)
        {
            pid = Request["PID"];
        }
        title      = valObj._ZhName + "选择";
        Page.Title = title;
        if (!IsPostBack)
        {
            aspPager.CurrentPageIndex = 1;
            aspPager.PageSize         = 20;
            try
            {
                listObj = BLLTable <TF_F_COLUMN_ITEM> .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;
        }
    }