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);
    }
Ejemplo n.º 2
0
    protected void btnFind_Click(object sender, EventArgs e)
    {
        try
        {
            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));
            }

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

            repCus.DataSource = listObj;
            repCus.DataBind();
        }
        catch (Exception ex)
        {
            litWarn.Text = ex.Message;
        }
        aspPager.RecordCount = recount;
    }
Ejemplo n.º 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)
    {
        try
        {
            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));

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