Exemplo n.º 1
0
    protected void btnFind_Click(object sender, EventArgs e)
    {
        condObj = new SYS_ROLE();

        if(txtROLE_NAME.Value !="" )
            condObj.Like(SYS_ROLE.Attribute.ROLE_NAME, Convert.ToString(txtROLE_NAME.Value));
        if(txtCREATER.Value !="" )
            condObj.Like(SYS_ROLE.Attribute.CREATER, Convert.ToString(txtCREATER.Value));
        hidCondition.Value = condObj.ToJson(20);

        BindList(condObj, 1);
    }
Exemplo n.º 2
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, aspPager.PageSize, curPage, ref recount);

        repList.DataSource = listObj;
        repList.DataBind();
        aspPager.RecordCount = recount; hidCondition.Value = condObj.ToJson(20);
    }
Exemplo n.º 3
0
    protected void btnFind_Click(object sender, EventArgs e)
    {
        condObj = new SYS_ROLE();

        if (txtROLE_NAME.Value != "")
        {
            condObj.Like(SYS_ROLE.Attribute.ROLE_NAME, Convert.ToString(txtROLE_NAME.Value));
        }
        if (txtCREATER.Value != "")
        {
            condObj.Like(SYS_ROLE.Attribute.CREATER, Convert.ToString(txtCREATER.Value));
        }
        hidCondition.Value = condObj.ToJson(20);

        BindList(condObj, 1);
    }
Exemplo 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);

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

        repList.DataSource = listObj;
        repList.DataBind();
        aspPager.RecordCount = recount; hidCondition.Value = condObj.ToJson(20);
    }