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

        if(txtID.Value !="" )
            condObj.Like(SYS_GUSETBOOK.Attribute.ID, Convert.ToDecimal(txtID.Value));

        if(txtTYPE.Value !="" )
            condObj.TYPE = Convert.ToInt32(txtTYPE.Value);

        if(txtMEMO.Value !="" )
            condObj.Like(SYS_GUSETBOOK.Attribute.MEMO, Convert.ToString(txtMEMO.Value));

        if(txtEMAIL.Value !="" )
            condObj.Like(SYS_GUSETBOOK.Attribute.EMAIL, Convert.ToString(txtEMAIL.Value));

        if(txtMOBIL.Value !="" )
            condObj.Like(SYS_GUSETBOOK.Attribute.MOBIL, Convert.ToString(txtMOBIL.Value));

        if(txtADDTIME.Value !="" )
            condObj.Like(SYS_GUSETBOOK.Attribute.ADDTIME, Convert.ToDateTime(txtADDTIME.Value));

        if(txtANSWER.Value !="" )
            condObj.Like(SYS_GUSETBOOK.Attribute.ANSWER, Convert.ToString(txtANSWER.Value));

        if(txtUSERNAME.Value !="" )
            condObj.Like(SYS_GUSETBOOK.Attribute.USERNAME, Convert.ToString(txtUSERNAME.Value));

        hidCondition.Value = condObj.ToJson(20);

        BindList(condObj, 1);
    }
Esempio n. 2
0
    protected void btnFind_Click(object sender, EventArgs e)
    {
        condObj = new SYS_GUSETBOOK();



        if (txtID.Value != "")
        {
            condObj.Like(SYS_GUSETBOOK.Attribute.ID, Convert.ToDecimal(txtID.Value));
        }


        if (txtTYPE.Value != "")
        {
            condObj.TYPE = Convert.ToInt32(txtTYPE.Value);
        }


        if (txtMEMO.Value != "")
        {
            condObj.Like(SYS_GUSETBOOK.Attribute.MEMO, Convert.ToString(txtMEMO.Value));
        }


        if (txtEMAIL.Value != "")
        {
            condObj.Like(SYS_GUSETBOOK.Attribute.EMAIL, Convert.ToString(txtEMAIL.Value));
        }


        if (txtMOBIL.Value != "")
        {
            condObj.Like(SYS_GUSETBOOK.Attribute.MOBIL, Convert.ToString(txtMOBIL.Value));
        }


        if (txtADDTIME.Value != "")
        {
            condObj.Like(SYS_GUSETBOOK.Attribute.ADDTIME, Convert.ToDateTime(txtADDTIME.Value));
        }


        if (txtANSWER.Value != "")
        {
            condObj.Like(SYS_GUSETBOOK.Attribute.ANSWER, Convert.ToString(txtANSWER.Value));
        }


        if (txtUSERNAME.Value != "")
        {
            condObj.Like(SYS_GUSETBOOK.Attribute.USERNAME, Convert.ToString(txtUSERNAME.Value));
        }

        hidCondition.Value = condObj.ToJson(20);

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

        if(txtID.Value !="" )
            condObj.Like_OR(SYS_GUSETBOOK.Attribute.ID, Convert.ToDecimal(txtID.Value));

        if(txtTYPE.Value !="" )
            condObj.TYPE = Convert.ToInt32(txtTYPE.Value);

        if(txtMEMO.Value !="" )
            condObj.Like_OR(SYS_GUSETBOOK.Attribute.MEMO, Convert.ToString(txtMEMO.Value));

        if(txtEMAIL.Value !="" )
            condObj.Like_OR(SYS_GUSETBOOK.Attribute.EMAIL, Convert.ToString(txtEMAIL.Value));

        if(txtMOBIL.Value !="" )
            condObj.Like_OR(SYS_GUSETBOOK.Attribute.MOBIL, Convert.ToString(txtMOBIL.Value));

        if(txtADDTIME.Value !="" )
            condObj.Like_OR(SYS_GUSETBOOK.Attribute.ADDTIME, Convert.ToDateTime(txtADDTIME.Value));

        if(txtANSWER.Value !="" )
            condObj.Like_OR(SYS_GUSETBOOK.Attribute.ANSWER, Convert.ToString(txtANSWER.Value));

        if(txtUSERNAME.Value !="" )
            condObj.Like_OR(SYS_GUSETBOOK.Attribute.USERNAME, Convert.ToString(txtUSERNAME.Value));

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

            listObj = BLLTable<SYS_GUSETBOOK>.SelectByPage(valObj, condObj, aspPager.PageSize, 1, ref recount);
            repList.DataSource = listObj;
            repList.DataBind();
        }
        catch (Exception ex)
        {
             litWarn.Text = ex.Message;
        }
    }
Esempio n. 4
0
    protected void btnFind_Click(object sender, EventArgs e)
    {
        condObj = new SYS_GUSETBOOK();


        if (txtID.Value != "")
        {
            condObj.Like_OR(SYS_GUSETBOOK.Attribute.ID, Convert.ToDecimal(txtID.Value));
        }


        if (txtTYPE.Value != "")
        {
            condObj.TYPE = Convert.ToInt32(txtTYPE.Value);
        }


        if (txtMEMO.Value != "")
        {
            condObj.Like_OR(SYS_GUSETBOOK.Attribute.MEMO, Convert.ToString(txtMEMO.Value));
        }


        if (txtEMAIL.Value != "")
        {
            condObj.Like_OR(SYS_GUSETBOOK.Attribute.EMAIL, Convert.ToString(txtEMAIL.Value));
        }


        if (txtMOBIL.Value != "")
        {
            condObj.Like_OR(SYS_GUSETBOOK.Attribute.MOBIL, Convert.ToString(txtMOBIL.Value));
        }


        if (txtADDTIME.Value != "")
        {
            condObj.Like_OR(SYS_GUSETBOOK.Attribute.ADDTIME, Convert.ToDateTime(txtADDTIME.Value));
        }


        if (txtANSWER.Value != "")
        {
            condObj.Like_OR(SYS_GUSETBOOK.Attribute.ANSWER, Convert.ToString(txtANSWER.Value));
        }


        if (txtUSERNAME.Value != "")
        {
            condObj.Like_OR(SYS_GUSETBOOK.Attribute.USERNAME, Convert.ToString(txtUSERNAME.Value));
        }

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

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

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