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

        if(txtRelation_id.Value !="" )
            condObj.Like(Ec_relatedlists.Attribute.Relation_id, Convert.ToInt32(txtRelation_id.Value));

        if(txtTabid.Value !="" )
            condObj.Like(Ec_relatedlists.Attribute.Tabid, Convert.ToInt32(txtTabid.Value));

        if(txtRelated_tabid.Value !="" )
            condObj.Like(Ec_relatedlists.Attribute.Related_tabid, Convert.ToInt32(txtRelated_tabid.Value));

        if(txtName.Value !="" )
            condObj.Like(Ec_relatedlists.Attribute.Name, Convert.ToString(txtName.Value));

        if(txtSequence.Value !="" )
            condObj.Like(Ec_relatedlists.Attribute.Sequence, Convert.ToInt32(txtSequence.Value));

        if(txtLabel.Value !="" )
            condObj.Like(Ec_relatedlists.Attribute.Label, Convert.ToString(txtLabel.Value));

        if(txtPresence.Value !="" )
            condObj.Like(Ec_relatedlists.Attribute.Presence, Convert.ToInt32(txtPresence.Value));

        if(txtTabTableName.Value !="" )
            condObj.Like(Ec_relatedlists.Attribute.TabTableName, Convert.ToString(txtTabTableName.Value));

        if(txtColumnName_PK.Value !="" )
            condObj.Like(Ec_relatedlists.Attribute.ColumnName_PK, Convert.ToString(txtColumnName_PK.Value));

        if(txtColumnName_FK.Value !="" )
            condObj.Like(Ec_relatedlists.Attribute.ColumnName_FK, Convert.ToString(txtColumnName_FK.Value));

        if(txtRelated_tabTableName.Value !="" )
            condObj.Like(Ec_relatedlists.Attribute.Related_tabTableName, Convert.ToString(txtRelated_tabTableName.Value));

        hidCondition.Value = condObj.ToJson(20);

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


        if (txtRelation_id.Value != "")
        {
            condObj.Like_OR(Ec_relatedlists.Attribute.Relation_id, Convert.ToInt32(txtRelation_id.Value));
        }


        if (txtTabid.Value != "")
        {
            condObj.Like_OR(Ec_relatedlists.Attribute.Tabid, Convert.ToInt32(txtTabid.Value));
        }


        if (txtRelated_tabid.Value != "")
        {
            condObj.Like_OR(Ec_relatedlists.Attribute.Related_tabid, Convert.ToInt32(txtRelated_tabid.Value));
        }


        if (txtName.Value != "")
        {
            condObj.Like_OR(Ec_relatedlists.Attribute.Name, Convert.ToString(txtName.Value));
        }


        if (txtSequence.Value != "")
        {
            condObj.Like_OR(Ec_relatedlists.Attribute.Sequence, Convert.ToInt32(txtSequence.Value));
        }


        if (txtLabel.Value != "")
        {
            condObj.Like_OR(Ec_relatedlists.Attribute.Label, Convert.ToString(txtLabel.Value));
        }


        if (txtPresence.Value != "")
        {
            condObj.Like_OR(Ec_relatedlists.Attribute.Presence, Convert.ToInt32(txtPresence.Value));
        }


        if (txtTabTableName.Value != "")
        {
            condObj.Like_OR(Ec_relatedlists.Attribute.TabTableName, Convert.ToString(txtTabTableName.Value));
        }


        if (txtColumnName_PK.Value != "")
        {
            condObj.Like_OR(Ec_relatedlists.Attribute.ColumnName_PK, Convert.ToString(txtColumnName_PK.Value));
        }


        if (txtColumnName_FK.Value != "")
        {
            condObj.Like_OR(Ec_relatedlists.Attribute.ColumnName_FK, Convert.ToString(txtColumnName_FK.Value));
        }


        if (txtRelated_tabTableName.Value != "")
        {
            condObj.Like_OR(Ec_relatedlists.Attribute.Related_tabTableName, Convert.ToString(txtRelated_tabTableName.Value));
        }

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

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

            repList.DataSource = listObj;
            repList.DataBind();
        }
        catch (Exception ex)
        {
            litWarn.Text = ex.Message;
        }
    }
    protected void btnFind_Click(object sender, EventArgs e)
    {
        condObj = new Ec_relatedlists();

        if(txtRelation_id.Value !="" )
            condObj.Like_OR(Ec_relatedlists.Attribute.Relation_id, Convert.ToInt32(txtRelation_id.Value));

        if(txtTabid.Value !="" )
            condObj.Like_OR(Ec_relatedlists.Attribute.Tabid, Convert.ToInt32(txtTabid.Value));

        if(txtRelated_tabid.Value !="" )
            condObj.Like_OR(Ec_relatedlists.Attribute.Related_tabid, Convert.ToInt32(txtRelated_tabid.Value));

        if(txtName.Value !="" )
            condObj.Like_OR(Ec_relatedlists.Attribute.Name, Convert.ToString(txtName.Value));

        if(txtSequence.Value !="" )
            condObj.Like_OR(Ec_relatedlists.Attribute.Sequence, Convert.ToInt32(txtSequence.Value));

        if(txtLabel.Value !="" )
            condObj.Like_OR(Ec_relatedlists.Attribute.Label, Convert.ToString(txtLabel.Value));

        if(txtPresence.Value !="" )
            condObj.Like_OR(Ec_relatedlists.Attribute.Presence, Convert.ToInt32(txtPresence.Value));

        if(txtTabTableName.Value !="" )
            condObj.Like_OR(Ec_relatedlists.Attribute.TabTableName, Convert.ToString(txtTabTableName.Value));

        if(txtColumnName_PK.Value !="" )
            condObj.Like_OR(Ec_relatedlists.Attribute.ColumnName_PK, Convert.ToString(txtColumnName_PK.Value));

        if(txtColumnName_FK.Value !="" )
            condObj.Like_OR(Ec_relatedlists.Attribute.ColumnName_FK, Convert.ToString(txtColumnName_FK.Value));

        if(txtRelated_tabTableName.Value !="" )
            condObj.Like_OR(Ec_relatedlists.Attribute.Related_tabTableName, Convert.ToString(txtRelated_tabTableName.Value));

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

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



        if (txtRelation_id.Value != "")
        {
            condObj.Like(Ec_relatedlists.Attribute.Relation_id, Convert.ToInt32(txtRelation_id.Value));
        }


        if (txtTabid.Value != "")
        {
            condObj.Like(Ec_relatedlists.Attribute.Tabid, Convert.ToInt32(txtTabid.Value));
        }


        if (txtRelated_tabid.Value != "")
        {
            condObj.Like(Ec_relatedlists.Attribute.Related_tabid, Convert.ToInt32(txtRelated_tabid.Value));
        }


        if (txtName.Value != "")
        {
            condObj.Like(Ec_relatedlists.Attribute.Name, Convert.ToString(txtName.Value));
        }


        if (txtSequence.Value != "")
        {
            condObj.Like(Ec_relatedlists.Attribute.Sequence, Convert.ToInt32(txtSequence.Value));
        }


        if (txtLabel.Value != "")
        {
            condObj.Like(Ec_relatedlists.Attribute.Label, Convert.ToString(txtLabel.Value));
        }


        if (txtPresence.Value != "")
        {
            condObj.Like(Ec_relatedlists.Attribute.Presence, Convert.ToInt32(txtPresence.Value));
        }


        if (txtTabTableName.Value != "")
        {
            condObj.Like(Ec_relatedlists.Attribute.TabTableName, Convert.ToString(txtTabTableName.Value));
        }


        if (txtColumnName_PK.Value != "")
        {
            condObj.Like(Ec_relatedlists.Attribute.ColumnName_PK, Convert.ToString(txtColumnName_PK.Value));
        }


        if (txtColumnName_FK.Value != "")
        {
            condObj.Like(Ec_relatedlists.Attribute.ColumnName_FK, Convert.ToString(txtColumnName_FK.Value));
        }


        if (txtRelated_tabTableName.Value != "")
        {
            condObj.Like(Ec_relatedlists.Attribute.Related_tabTableName, Convert.ToString(txtRelated_tabTableName.Value));
        }

        hidCondition.Value = condObj.ToJson(20);

        BindList(condObj, 1);
    }