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);
    }
예제 #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);
    }
예제 #3
0
    protected void btnFind_Click(object sender, EventArgs e)
    {
        try
        {
            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));

            listObj = BLLTable<SYS_GUSETBOOK>.SelectByPage(valObj, condObj, aspPager.PageSize, 1, ref recount);
            repCus.DataSource = listObj;
            repCus.DataBind();
        }
        catch (Exception ex)
        {
            litWarn.Text = ex.Message;
        }
        aspPager.RecordCount = recount;
    }
예제 #4
0
    protected void btnFind_Click(object sender, EventArgs e)
    {
        try
        {
            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));
            }

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

            repCus.DataSource = listObj;
            repCus.DataBind();
        }
        catch (Exception ex)
        {
            litWarn.Text = ex.Message;
        }
        aspPager.RecordCount = recount;
    }