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

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

        if(txtNAME.Value !="" )
            condObj.Like(SYS_TEMPUSER.Attribute.NAME, Convert.ToString(txtNAME.Value));

        if(txtCONAME.Value !="" )
            condObj.Like(SYS_TEMPUSER.Attribute.CONAME, Convert.ToString(txtCONAME.Value));

        if(txtPHONE.Value !="" )
            condObj.Like(SYS_TEMPUSER.Attribute.PHONE, Convert.ToString(txtPHONE.Value));

        if(txtIP.Value !="" )
            condObj.Like(SYS_TEMPUSER.Attribute.IP, Convert.ToString(txtIP.Value));

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

        if(txtLOGINNAME.Value !="" )
            condObj.Like(SYS_TEMPUSER.Attribute.LOGINNAME, Convert.ToString(txtLOGINNAME.Value));

        if(txtPWD.Value !="" )
            condObj.Like(SYS_TEMPUSER.Attribute.PWD, Convert.ToString(txtPWD.Value));

        if(txtUSER_ID.Value !="" )
            condObj.Like(SYS_TEMPUSER.Attribute.USER_ID, Convert.ToDecimal(txtUSER_ID.Value));

        hidCondition.Value = condObj.ToJson(20);

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

        
        
        if(txtID.Value !="" )
            condObj.Like(SYS_TEMPUSER.Attribute.ID, Convert.ToDecimal(txtID.Value));
        
        
        if(txtNAME.Value !="" )
            condObj.Like(SYS_TEMPUSER.Attribute.NAME, Convert.ToString(txtNAME.Value));
        
        
        if(txtCONAME.Value !="" )
            condObj.Like(SYS_TEMPUSER.Attribute.CONAME, Convert.ToString(txtCONAME.Value));
        
        
        if(txtPHONE.Value !="" )
            condObj.Like(SYS_TEMPUSER.Attribute.PHONE, Convert.ToString(txtPHONE.Value));
        
        
        if(txtIP.Value !="" )
            condObj.Like(SYS_TEMPUSER.Attribute.IP, Convert.ToString(txtIP.Value));
        
        
        if(txtADDTIME.Value !="" )
            condObj.Like(SYS_TEMPUSER.Attribute.ADDTIME, Convert.ToDateTime(txtADDTIME.Value));
        
        
        if(txtLOGINNAME.Value !="" )
            condObj.Like(SYS_TEMPUSER.Attribute.LOGINNAME, Convert.ToString(txtLOGINNAME.Value));
        
        
        if(txtPWD.Value !="" )
            condObj.Like(SYS_TEMPUSER.Attribute.PWD, Convert.ToString(txtPWD.Value));
        
        
        if(txtUSER_ID.Value !="" )
            condObj.Like(SYS_TEMPUSER.Attribute.USER_ID, Convert.ToDecimal(txtUSER_ID.Value));

        hidCondition.Value = condObj.ToJson(20);

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

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

            if(txtNAME.Value !="" )
                condObj.Like(SYS_TEMPUSER.Attribute.NAME, Convert.ToString(txtNAME.Value));

            if(txtCONAME.Value !="" )
                condObj.Like(SYS_TEMPUSER.Attribute.CONAME, Convert.ToString(txtCONAME.Value));

            if(txtPHONE.Value !="" )
                condObj.Like(SYS_TEMPUSER.Attribute.PHONE, Convert.ToString(txtPHONE.Value));

            if(txtIP.Value !="" )
                condObj.Like(SYS_TEMPUSER.Attribute.IP, Convert.ToString(txtIP.Value));

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

            if(txtLOGINNAME.Value !="" )
                condObj.Like(SYS_TEMPUSER.Attribute.LOGINNAME, Convert.ToString(txtLOGINNAME.Value));

            if(txtPWD.Value !="" )
                condObj.Like(SYS_TEMPUSER.Attribute.PWD, Convert.ToString(txtPWD.Value));

            if(txtUSER_ID.Value !="" )
                condObj.Like(SYS_TEMPUSER.Attribute.USER_ID, Convert.ToDecimal(txtUSER_ID.Value));

            listObj = BLLTable<SYS_TEMPUSER>.SelectByPage(valObj, condObj, aspPager.PageSize, 1, ref recount);
            repCus.DataSource = listObj;
            repCus.DataBind();
        }
        catch (Exception ex)
        {
            litWarn.Text = ex.Message;
        }
        aspPager.RecordCount = recount;
    }
Beispiel #4
0
    protected void btnFind_Click(object sender, EventArgs e)
    {
        try
        {
            condObj = new SYS_TEMPUSER();



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


            if (txtNAME.Value != "")
            {
                condObj.Like(SYS_TEMPUSER.Attribute.NAME, Convert.ToString(txtNAME.Value));
            }


            if (txtCONAME.Value != "")
            {
                condObj.Like(SYS_TEMPUSER.Attribute.CONAME, Convert.ToString(txtCONAME.Value));
            }


            if (txtPHONE.Value != "")
            {
                condObj.Like(SYS_TEMPUSER.Attribute.PHONE, Convert.ToString(txtPHONE.Value));
            }


            if (txtIP.Value != "")
            {
                condObj.Like(SYS_TEMPUSER.Attribute.IP, Convert.ToString(txtIP.Value));
            }


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


            if (txtLOGINNAME.Value != "")
            {
                condObj.Like(SYS_TEMPUSER.Attribute.LOGINNAME, Convert.ToString(txtLOGINNAME.Value));
            }


            if (txtPWD.Value != "")
            {
                condObj.Like(SYS_TEMPUSER.Attribute.PWD, Convert.ToString(txtPWD.Value));
            }


            if (txtUSER_ID.Value != "")
            {
                condObj.Like(SYS_TEMPUSER.Attribute.USER_ID, Convert.ToDecimal(txtUSER_ID.Value));
            }

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

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