protected void btnFind_Click(object sender, EventArgs e)
    {
        condObj = new TF_F_COLUMN();

        if(txtCTRL_TYPE.Value !="" )
            condObj.Like(TF_F_COLUMN.Attribute.CTRL_TYPE, Convert.ToString(txtCTRL_TYPE.Value));

        if(txtIS_NEED.Value !="" )
            condObj.Like(TF_F_COLUMN.Attribute.IS_NEED, Convert.ToInt32(txtIS_NEED.Value));

        hidCondition.Value = condObj.ToJson(20);

        BindList(condObj, 1);
    }
    protected void btnFind_Click(object sender, EventArgs e)
    {
        condObj = new TF_F_COLUMN();

        if (txtCTRL_TYPE.Value != "")
        {
            condObj.Like(TF_F_COLUMN.Attribute.CTRL_TYPE, Convert.ToString(txtCTRL_TYPE.Value));
        }

        if (txtIS_NEED.Value != "")
        {
            condObj.Like(TF_F_COLUMN.Attribute.IS_NEED, Convert.ToInt32(txtIS_NEED.Value));
        }


        hidCondition.Value = condObj.ToJson(20);

        BindList(condObj, 1);
    }
    protected void btnFind_Click(object sender, EventArgs e)
    {
        condObj = new TF_F_COLUMN();

        if(txtCOLUMN_ID.Value !="" )
            condObj.Like_OR(TF_F_COLUMN.Attribute.COLUMN_ID, Convert.ToInt32(txtCOLUMN_ID.Value));

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

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

        if(txtFIELD_ID.Value !="" )
            condObj.Like_OR(TF_F_COLUMN.Attribute.FIELD_ID, Convert.ToInt32(txtFIELD_ID.Value));

        if(txtSHOW_NAME.Value !="" )
            condObj.Like_OR(TF_F_COLUMN.Attribute.SHOW_NAME, Convert.ToString(txtSHOW_NAME.Value));

        if(txtCTRL_TYPE.Value !="" )
            condObj.Like_OR(TF_F_COLUMN.Attribute.CTRL_TYPE, Convert.ToString(txtCTRL_TYPE.Value));

        if(txtMAX_VAL.Value !="" )
            condObj.Like_OR(TF_F_COLUMN.Attribute.MAX_VAL, Convert.ToInt32(txtMAX_VAL.Value));

        if(txtMIN_VAL.Value !="" )
            condObj.Like_OR(TF_F_COLUMN.Attribute.MIN_VAL, Convert.ToInt32(txtMIN_VAL.Value));

        if(txtIS_NEED.Value !="" )
            condObj.Like_OR(TF_F_COLUMN.Attribute.IS_NEED, Convert.ToInt32(txtIS_NEED.Value));

        if(txtCAL_FORMULA.Value !="" )
            condObj.Like_OR(TF_F_COLUMN.Attribute.CAL_FORMULA, Convert.ToString(txtCAL_FORMULA.Value));

        if(txtSUM_FIELD_ID.Value !="" )
            condObj.Like_OR(TF_F_COLUMN.Attribute.SUM_FIELD_ID, Convert.ToString(txtSUM_FIELD_ID.Value));

        if(txtSORT_NO.Value !="" )
            condObj.Like_OR(TF_F_COLUMN.Attribute.SORT_NO, Convert.ToInt32(txtSORT_NO.Value));

        try
        {
            hidCondition.Value = condObj.ToJson(20);

            listObj = BLLTable<TF_F_COLUMN>.Factory(conn).SelectByPage(valObj, condObj, aspPager.PageSize, 1, ref recount);
            repList.DataSource = listObj;
            repList.DataBind();
        }
        catch (Exception ex)
        {
             litWarn.Text = ex.Message;
        }
    }
Beispiel #4
0
    protected void btnFind_Click(object sender, EventArgs e)
    {
        condObj = new TF_F_COLUMN();


        if (txtCOLUMN_ID.Value != "")
        {
            condObj.Like_OR(TF_F_COLUMN.Attribute.COLUMN_ID, Convert.ToInt32(txtCOLUMN_ID.Value));
        }


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


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


        if (txtFIELD_ID.Value != "")
        {
            condObj.Like_OR(TF_F_COLUMN.Attribute.FIELD_ID, Convert.ToInt32(txtFIELD_ID.Value));
        }


        if (txtSHOW_NAME.Value != "")
        {
            condObj.Like_OR(TF_F_COLUMN.Attribute.SHOW_NAME, Convert.ToString(txtSHOW_NAME.Value));
        }


        if (txtCTRL_TYPE.Value != "")
        {
            condObj.Like_OR(TF_F_COLUMN.Attribute.CTRL_TYPE, Convert.ToString(txtCTRL_TYPE.Value));
        }


        if (txtMAX_VAL.Value != "")
        {
            condObj.Like_OR(TF_F_COLUMN.Attribute.MAX_VAL, Convert.ToInt32(txtMAX_VAL.Value));
        }


        if (txtMIN_VAL.Value != "")
        {
            condObj.Like_OR(TF_F_COLUMN.Attribute.MIN_VAL, Convert.ToInt32(txtMIN_VAL.Value));
        }


        if (txtIS_NEED.Value != "")
        {
            condObj.Like_OR(TF_F_COLUMN.Attribute.IS_NEED, Convert.ToInt32(txtIS_NEED.Value));
        }


        if (txtCAL_FORMULA.Value != "")
        {
            condObj.Like_OR(TF_F_COLUMN.Attribute.CAL_FORMULA, Convert.ToString(txtCAL_FORMULA.Value));
        }


        if (txtSUM_FIELD_ID.Value != "")
        {
            condObj.Like_OR(TF_F_COLUMN.Attribute.SUM_FIELD_ID, Convert.ToString(txtSUM_FIELD_ID.Value));
        }


        if (txtSORT_NO.Value != "")
        {
            condObj.Like_OR(TF_F_COLUMN.Attribute.SORT_NO, Convert.ToInt32(txtSORT_NO.Value));
        }

        try
        {
            hidCondition.Value = condObj.ToJson(20);

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

            repList.DataSource = listObj;
            repList.DataBind();
        }
        catch (Exception ex)
        {
            litWarn.Text = ex.Message;
        }
    }