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

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

        if(txtORG_ID.Value !="" )
            condObj.Like_OR(HR_CHECKWORKDEVICE.Attribute.ORG_ID, Convert.ToString(txtORG_ID.Value));

        if(txtUSE_FLAG.Value !="" )
            condObj.USE_FLAG = Convert.ToString(txtUSE_FLAG.Value);

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

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



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

        if (txtDeviceName.Value != "")
        {
            condObj.Like(HR_CHECKWORKDEVICE.Attribute.DeviceName, Convert.ToString(txtDeviceName.Value));
        }


        if (!string.IsNullOrEmpty(wucSelORG1.ORG_ID) && !string.IsNullOrEmpty(wucSelORG1.ORG_NAME))
        {
            condObj.ORG_ID = wucSelORG1.ORG_ID;
        }


        if (txtUSE_FLAG.Value != "")
        {
            condObj.USE_FLAG = Convert.ToString(txtUSE_FLAG.Value);
        }

        hidCondition.Value = condObj.ToJson(20);

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

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

        if (txtDeviceName.Value != "")
            condObj.Like(HR_CHECKWORKDEVICE.Attribute.DeviceName, Convert.ToString(txtDeviceName.Value));

        if (!string.IsNullOrEmpty(wucSelORG1.ORG_ID) && !string.IsNullOrEmpty(wucSelORG1.ORG_NAME))
            condObj.ORG_ID = wucSelORG1.ORG_ID;

        if(txtUSE_FLAG.Value !="" )
            condObj.USE_FLAG = Convert.ToString(txtUSE_FLAG.Value);

        hidCondition.Value = condObj.ToJson(20);

        BindList(condObj, 1);
    }
Exemplo n.º 4
0
    protected void btnFind_Click(object sender, EventArgs e)
    {
        condObj = new HR_CHECKWORKDEVICE();


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


        if (txtORG_ID.Value != "")
        {
            condObj.Like_OR(HR_CHECKWORKDEVICE.Attribute.ORG_ID, Convert.ToString(txtORG_ID.Value));
        }


        if (txtUSE_FLAG.Value != "")
        {
            condObj.USE_FLAG = Convert.ToString(txtUSE_FLAG.Value);
        }

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

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

            repList.DataSource = listObj;
            repList.DataBind();
        }
        catch (Exception ex)
        {
            litWarn.Text = ex.Message;
        }
    }