Beispiel #1
0
    protected void btnFind_Click(object sender, EventArgs e)
    {
        try
        {
            condObj = new WF_TYPE();

            if (txtTYPE_NAME.Value != "")
            {
                condObj.Like(WF_TYPE.Attribute.TYPE_NAME, Convert.ToString(txtTYPE_NAME.Value));
            }


            if (txtCREATER.Value != "")
            {
                condObj.Like(WF_TYPE.Attribute.CREATER, Convert.ToString(txtCREATER.Value));
            }

            listObj = BLLTable <WF_TYPE> .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;
    }
    protected void btnFind_Click(object sender, EventArgs e)
    {
        condObj = new WF_TYPE();

        if(txtTYPE_NAME.Value !="" )
            condObj.Like(WF_TYPE.Attribute.TYPE_NAME, Convert.ToString(txtTYPE_NAME.Value));

        if(txtCREATER.Value !="" )
            condObj.Like(WF_TYPE.Attribute.CREATER, Convert.ToString(txtCREATER.Value));

        hidCondition.Value = condObj.ToJson(20);

        BindList(condObj, 1);
    }
Beispiel #3
0
    protected void btnFind_Click(object sender, EventArgs e)
    {
        condObj = new WF_TYPE();


        if (txtTYPE_NAME.Value != "")
        {
            condObj.Like(WF_TYPE.Attribute.TYPE_NAME, Convert.ToString(txtTYPE_NAME.Value));
        }


        if (txtCREATER.Value != "")
        {
            condObj.Like(WF_TYPE.Attribute.CREATER, Convert.ToString(txtCREATER.Value));
        }


        hidCondition.Value = condObj.ToJson(20);

        BindList(condObj, 1);
    }
Beispiel #4
0
    protected void btnFind_Click(object sender, EventArgs e)
    {
        try
        {
            condObj = new WF_TYPE();

            if(txtTYPE_NAME.Value !="" )
                condObj.Like(WF_TYPE.Attribute.TYPE_NAME, Convert.ToString(txtTYPE_NAME.Value));

            if(txtCREATER.Value !="" )
                condObj.Like(WF_TYPE.Attribute.CREATER, Convert.ToString(txtCREATER.Value));

            listObj = BLLTable<WF_TYPE>.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;
    }