Example #1
0
    protected void btnFind_Click(object sender, EventArgs e)
    {
        condObj = new SYS_APP();

        if(txtAPP_ID.Value !="" )
            condObj.Like_OR(SYS_APP.Attribute.APP_ID, Convert.ToString(txtAPP_ID.Value));

        if(txtAPP_ID.Value !="" )
            condObj.Like_OR(SYS_APP.Attribute.APP_ID, Convert.ToString(txtAPP_ID.Value));

        if(txtAPP_ID.Value !="" )
            condObj.Like_OR(SYS_APP.Attribute.APP_ID, Convert.ToString(txtAPP_ID.Value));

        if(txtAPP_ID.Value !="" )
            condObj.Like_OR(SYS_APP.Attribute.APP_ID, Convert.ToString(txtAPP_ID.Value));

        if(txtAPP_ID.Value !="" )
            condObj.Like_OR(SYS_APP.Attribute.APP_ID, Convert.ToString(txtAPP_ID.Value));

        if(txtAPP_ID.Value !="" )
            condObj.APP_ID = Convert.ToString(txtAPP_ID.Value);

        if(txtAPP_ID.Value !="" )
            condObj.Like_OR(SYS_APP.Attribute.APP_ID, Convert.ToString(txtAPP_ID.Value));

        if(txtAPP_ID.Value !="" )
            condObj.Like_OR(SYS_APP.Attribute.APP_ID, Convert.ToString(txtAPP_ID.Value));

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

            listObj = BLLTable<SYS_APP>.Factory(conn).SelectByPage(valObj, condObj, aspPager.PageSize, 1, ref recount);
            repList.DataSource = listObj;
            repList.DataBind();
        }
        catch (Exception ex)
        {
             litWarn.Text = ex.Message;
        }
    }