Esempio n. 1
0
    protected void btnFind_Click(object sender, EventArgs e)
    {
        condObj = new TF_FORM();

        if(txtFORM_ID.Value !="" )
            condObj.Like(TF_FORM.Attribute.FORM_ID, Convert.ToInt32(txtFORM_ID.Value));

        if(txtF_NAME.Value !="" )
            condObj.Like(TF_FORM.Attribute.F_NAME, Convert.ToString(txtF_NAME.Value));

        if(txtTB_ID.Value !="" )
            condObj.Like(TF_FORM.Attribute.TB_ID, Convert.ToInt32(txtTB_ID.Value));

        if(txtTPL_EDIT.Value !="" )
            condObj.Like(TF_FORM.Attribute.TPL_EDIT, Convert.ToString(txtTPL_EDIT.Value));

        if(txtTPL_SHOW.Value !="" )
            condObj.Like(TF_FORM.Attribute.TPL_SHOW, Convert.ToString(txtTPL_SHOW.Value));

        if(txtTPL_PRINT.Value !="" )
            condObj.Like(TF_FORM.Attribute.TPL_PRINT, Convert.ToString(txtTPL_PRINT.Value));

        if(txtTPL_LIST.Value !="" )
            condObj.Like(TF_FORM.Attribute.TPL_LIST, Convert.ToString(txtTPL_LIST.Value));

        if(txtTB_IDS.Value !="" )
            condObj.Like(TF_FORM.Attribute.TB_IDS, Convert.ToString(txtTB_IDS.Value));

        hidCondition.Value = condObj.ToJson(20);

        BindList(condObj, 1);
    }
Esempio n. 2
0
    protected void btnFind_Click(object sender, EventArgs e)
    {
        try
        {
            condObj = new TF_FORM();



            if (txtF_NAME.Value != "")
            {
                condObj.Like(TF_FORM.Attribute.F_NAME, Convert.ToString(txtF_NAME.Value));
            }


            if (condObj.af_PageByAttributeItem == null)//如果不存在用户定义的分页排序属性,则用主键属性排序
            {
                condObj.af_PageBy(TF_FORM.Attribute.FORM_ID, Order.Desc);
            }
            listObj = BLLTable <TF_FORM> .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;
    }
Esempio n. 3
0
    protected void btnFind_Click(object sender, EventArgs e)
    {
        condObj = new TF_FORM();



        if (txtFORM_ID.Value != "")
        {
            condObj.Like(TF_FORM.Attribute.FORM_ID, Convert.ToInt32(txtFORM_ID.Value));
        }


        if (txtF_NAME.Value != "")
        {
            condObj.Like(TF_FORM.Attribute.F_NAME, Convert.ToString(txtF_NAME.Value));
        }


        if (txtTB_ID.Value != "")
        {
            condObj.Like(TF_FORM.Attribute.TB_ID, Convert.ToInt32(txtTB_ID.Value));
        }


        if (txtTPL_EDIT.Value != "")
        {
            condObj.Like(TF_FORM.Attribute.TPL_EDIT, Convert.ToString(txtTPL_EDIT.Value));
        }


        if (txtTPL_SHOW.Value != "")
        {
            condObj.Like(TF_FORM.Attribute.TPL_SHOW, Convert.ToString(txtTPL_SHOW.Value));
        }


        if (txtTPL_PRINT.Value != "")
        {
            condObj.Like(TF_FORM.Attribute.TPL_PRINT, Convert.ToString(txtTPL_PRINT.Value));
        }


        if (txtTPL_LIST.Value != "")
        {
            condObj.Like(TF_FORM.Attribute.TPL_LIST, Convert.ToString(txtTPL_LIST.Value));
        }


        if (txtTB_IDS.Value != "")
        {
            condObj.Like(TF_FORM.Attribute.TB_IDS, Convert.ToString(txtTB_IDS.Value));
        }

        hidCondition.Value = condObj.ToJson(20);

        BindList(condObj, 1);
    }
Esempio n. 4
0
    protected void btnFind_Click(object sender, EventArgs e)
    {
        try
        {
            condObj = new TF_FORM();

            if(txtF_NAME.Value !="" )
                condObj.Like(TF_FORM.Attribute.F_NAME, Convert.ToString(txtF_NAME.Value));

            listObj = BLLTable<TF_FORM>.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;
    }