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

        if (txtBlockid.Value != "")
            condObj.Like(Ec_blocks.Attribute.Blockid, Convert.ToInt32(txtBlockid.Value));

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

        if (txtBlocklabel.Value != "")
            condObj.Like(Ec_blocks.Attribute.Blocklabel, Convert.ToString(txtBlocklabel.Value));

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

        if (txtShow_title.Value != "")
            condObj.Like(Ec_blocks.Attribute.Show_title, Convert.ToInt32(txtShow_title.Value));

        if (txtVisible.Value != "")
            condObj.Like(Ec_blocks.Attribute.Visible, Convert.ToInt32(txtVisible.Value));

        if (txtCreate_view.Value != "")
            condObj.Like(Ec_blocks.Attribute.Create_view, Convert.ToInt32(txtCreate_view.Value));

        if (txtEdit_view.Value != "")
            condObj.Like(Ec_blocks.Attribute.Edit_view, Convert.ToInt32(txtEdit_view.Value));

        if (txtDetail_view.Value != "")
            condObj.Like(Ec_blocks.Attribute.Detail_view, Convert.ToInt32(txtDetail_view.Value));

        hidCondition.Value = condObj.ToJson(20);

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

        if(txtBlockid.Value !="" )
            condObj.Like_OR(Ec_blocks.Attribute.Blockid, Convert.ToInt32(txtBlockid.Value));

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

        if(txtBlocklabel.Value !="" )
            condObj.Like_OR(Ec_blocks.Attribute.Blocklabel, Convert.ToString(txtBlocklabel.Value));

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

        if(txtShow_title.Value !="" )
            condObj.Like_OR(Ec_blocks.Attribute.Show_title, Convert.ToInt32(txtShow_title.Value));

        if(txtVisible.Value !="" )
            condObj.Like_OR(Ec_blocks.Attribute.Visible, Convert.ToInt32(txtVisible.Value));

        if(txtCreate_view.Value !="" )
            condObj.Like_OR(Ec_blocks.Attribute.Create_view, Convert.ToInt32(txtCreate_view.Value));

        if(txtEdit_view.Value !="" )
            condObj.Like_OR(Ec_blocks.Attribute.Edit_view, Convert.ToInt32(txtEdit_view.Value));

        if(txtDetail_view.Value !="" )
            condObj.Like_OR(Ec_blocks.Attribute.Detail_view, Convert.ToInt32(txtDetail_view.Value));

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

            listObj = BLLTable<Ec_blocks>.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_blocks();


        if (txtBlockid.Value != "")
        {
            condObj.Like_OR(Ec_blocks.Attribute.Blockid, Convert.ToInt32(txtBlockid.Value));
        }


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


        if (txtBlocklabel.Value != "")
        {
            condObj.Like_OR(Ec_blocks.Attribute.Blocklabel, Convert.ToString(txtBlocklabel.Value));
        }


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


        if (txtShow_title.Value != "")
        {
            condObj.Like_OR(Ec_blocks.Attribute.Show_title, Convert.ToInt32(txtShow_title.Value));
        }


        if (txtVisible.Value != "")
        {
            condObj.Like_OR(Ec_blocks.Attribute.Visible, Convert.ToInt32(txtVisible.Value));
        }


        if (txtCreate_view.Value != "")
        {
            condObj.Like_OR(Ec_blocks.Attribute.Create_view, Convert.ToInt32(txtCreate_view.Value));
        }


        if (txtEdit_view.Value != "")
        {
            condObj.Like_OR(Ec_blocks.Attribute.Edit_view, Convert.ToInt32(txtEdit_view.Value));
        }


        if (txtDetail_view.Value != "")
        {
            condObj.Like_OR(Ec_blocks.Attribute.Detail_view, Convert.ToInt32(txtDetail_view.Value));
        }

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

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

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



        if (txtBlockid.Value != "")
        {
            condObj.Like(Ec_blocks.Attribute.Blockid, Convert.ToInt32(txtBlockid.Value));
        }


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


        if (txtBlocklabel.Value != "")
        {
            condObj.Like(Ec_blocks.Attribute.Blocklabel, Convert.ToString(txtBlocklabel.Value));
        }


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


        if (txtShow_title.Value != "")
        {
            condObj.Like(Ec_blocks.Attribute.Show_title, Convert.ToInt32(txtShow_title.Value));
        }


        if (txtVisible.Value != "")
        {
            condObj.Like(Ec_blocks.Attribute.Visible, Convert.ToInt32(txtVisible.Value));
        }


        if (txtCreate_view.Value != "")
        {
            condObj.Like(Ec_blocks.Attribute.Create_view, Convert.ToInt32(txtCreate_view.Value));
        }


        if (txtEdit_view.Value != "")
        {
            condObj.Like(Ec_blocks.Attribute.Edit_view, Convert.ToInt32(txtEdit_view.Value));
        }


        if (txtDetail_view.Value != "")
        {
            condObj.Like(Ec_blocks.Attribute.Detail_view, Convert.ToInt32(txtDetail_view.Value));
        }

        hidCondition.Value = condObj.ToJson(20);

        BindList(condObj, 1);
    }