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

        if(txtGroupId.Value !="" )
            condObj.Like(HR_CHKWKDIVKEYVALUE.Attribute.GroupId, Convert.ToInt32(txtGroupId.Value));

        if(txtDeviceID.Value !="" )
            condObj.Like(HR_CHKWKDIVKEYVALUE.Attribute.DeviceID, Convert.ToString(txtDeviceID.Value));

        if(txtAIOTableName.Value !="" )
            condObj.Like(HR_CHKWKDIVKEYVALUE.Attribute.AIOTableName, Convert.ToString(txtAIOTableName.Value));

        if(txtAIOKeyFieldName.Value !="" )
            condObj.Like(HR_CHKWKDIVKEYVALUE.Attribute.AIOKeyFieldName, Convert.ToString(txtAIOKeyFieldName.Value));

        if(txtOtherKeyFieldName.Value !="" )
            condObj.Like(HR_CHKWKDIVKEYVALUE.Attribute.OtherKeyFieldName, Convert.ToString(txtOtherKeyFieldName.Value));

        if(txtAIOKeyValue.Value !="" )
            condObj.Like(HR_CHKWKDIVKEYVALUE.Attribute.AIOKeyValue, Convert.ToString(txtAIOKeyValue.Value));

        if(txtOtherKeyValue.Value !="" )
            condObj.Like(HR_CHKWKDIVKEYVALUE.Attribute.OtherKeyValue, Convert.ToString(txtOtherKeyValue.Value));

        hidCondition.Value = condObj.ToJson(20);

        BindList(condObj, 1);
    }
Example #2
0
    protected void btnFind_Click(object sender, EventArgs e)
    {
        condObj = new HR_CHKWKDIVKEYVALUE();


        if (txtGroupId.Value != "")
        {
            condObj.Like_OR(HR_CHKWKDIVKEYVALUE.Attribute.GroupId, Convert.ToInt32(txtGroupId.Value));
        }


        if (txtDeviceID.Value != "")
        {
            condObj.Like_OR(HR_CHKWKDIVKEYVALUE.Attribute.DeviceID, Convert.ToString(txtDeviceID.Value));
        }


        if (txtAIOTableName.Value != "")
        {
            condObj.Like_OR(HR_CHKWKDIVKEYVALUE.Attribute.AIOTableName, Convert.ToString(txtAIOTableName.Value));
        }


        if (txtAIOKeyFieldName.Value != "")
        {
            condObj.Like_OR(HR_CHKWKDIVKEYVALUE.Attribute.AIOKeyFieldName, Convert.ToString(txtAIOKeyFieldName.Value));
        }


        if (txtOtherKeyFieldName.Value != "")
        {
            condObj.Like_OR(HR_CHKWKDIVKEYVALUE.Attribute.OtherKeyFieldName, Convert.ToString(txtOtherKeyFieldName.Value));
        }


        if (txtAIOKeyValue.Value != "")
        {
            condObj.Like_OR(HR_CHKWKDIVKEYVALUE.Attribute.AIOKeyValue, Convert.ToString(txtAIOKeyValue.Value));
        }


        if (txtOtherKeyValue.Value != "")
        {
            condObj.Like_OR(HR_CHKWKDIVKEYVALUE.Attribute.OtherKeyValue, Convert.ToString(txtOtherKeyValue.Value));
        }

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

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

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



        if (txtGroupId.Value != "")
        {
            condObj.Like(HR_CHKWKDIVKEYVALUE.Attribute.GroupId, Convert.ToInt32(txtGroupId.Value));
        }


        if (txtDeviceID.Value != "")
        {
            condObj.Like(HR_CHKWKDIVKEYVALUE.Attribute.DeviceID, Convert.ToString(txtDeviceID.Value));
        }


        if (txtAIOTableName.Value != "")
        {
            condObj.Like(HR_CHKWKDIVKEYVALUE.Attribute.AIOTableName, Convert.ToString(txtAIOTableName.Value));
        }


        if (txtAIOKeyFieldName.Value != "")
        {
            condObj.Like(HR_CHKWKDIVKEYVALUE.Attribute.AIOKeyFieldName, Convert.ToString(txtAIOKeyFieldName.Value));
        }


        if (txtOtherKeyFieldName.Value != "")
        {
            condObj.Like(HR_CHKWKDIVKEYVALUE.Attribute.OtherKeyFieldName, Convert.ToString(txtOtherKeyFieldName.Value));
        }


        if (txtAIOKeyValue.Value != "")
        {
            condObj.Like(HR_CHKWKDIVKEYVALUE.Attribute.AIOKeyValue, Convert.ToString(txtAIOKeyValue.Value));
        }


        if (txtOtherKeyValue.Value != "")
        {
            condObj.Like(HR_CHKWKDIVKEYVALUE.Attribute.OtherKeyValue, Convert.ToString(txtOtherKeyValue.Value));
        }

        hidCondition.Value = condObj.ToJson(20);

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

        if(txtGroupId.Value !="" )
            condObj.Like_OR(HR_CHKWKDIVKEYVALUE.Attribute.GroupId, Convert.ToInt32(txtGroupId.Value));

        if(txtDeviceID.Value !="" )
            condObj.Like_OR(HR_CHKWKDIVKEYVALUE.Attribute.DeviceID, Convert.ToString(txtDeviceID.Value));

        if(txtAIOTableName.Value !="" )
            condObj.Like_OR(HR_CHKWKDIVKEYVALUE.Attribute.AIOTableName, Convert.ToString(txtAIOTableName.Value));

        if(txtAIOKeyFieldName.Value !="" )
            condObj.Like_OR(HR_CHKWKDIVKEYVALUE.Attribute.AIOKeyFieldName, Convert.ToString(txtAIOKeyFieldName.Value));

        if(txtOtherKeyFieldName.Value !="" )
            condObj.Like_OR(HR_CHKWKDIVKEYVALUE.Attribute.OtherKeyFieldName, Convert.ToString(txtOtherKeyFieldName.Value));

        if(txtAIOKeyValue.Value !="" )
            condObj.Like_OR(HR_CHKWKDIVKEYVALUE.Attribute.AIOKeyValue, Convert.ToString(txtAIOKeyValue.Value));

        if(txtOtherKeyValue.Value !="" )
            condObj.Like_OR(HR_CHKWKDIVKEYVALUE.Attribute.OtherKeyValue, Convert.ToString(txtOtherKeyValue.Value));

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

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