コード例 #1
0
    protected void btnFind_Click(object sender, EventArgs e)
    {
        condObj = new WEC_MODEL();


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


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


        if (txtPIC_URL.Value != "")
        {
            condObj.Like_OR(WEC_MODEL.Attribute.PIC_URL, Convert.ToString(txtPIC_URL.Value));
        }


        if (txtPATH.Value != "")
        {
            condObj.Like_OR(WEC_MODEL.Attribute.PATH, Convert.ToString(txtPATH.Value));
        }


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


        if (txtSTATUS.Value != "")
        {
            condObj.STATUS = Convert.ToInt32(txtSTATUS.Value);
        }


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

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

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

            repList.DataSource = listObj;
            repList.DataBind();
        }
        catch (Exception ex)
        {
            litWarn.Text = ex.Message;
        }
    }
コード例 #2
0
    protected void btnFind_Click(object sender, EventArgs e)
    {
        condObj = new WEC_MODEL();

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

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

        if(txtPIC_URL.Value !="" )
            condObj.Like(WEC_MODEL.Attribute.PIC_URL, Convert.ToString(txtPIC_URL.Value));

        if(txtPATH.Value !="" )
            condObj.Like(WEC_MODEL.Attribute.PATH, Convert.ToString(txtPATH.Value));

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

        if(txtSTATUS.Value !="" )
            condObj.STATUS = Convert.ToInt32(txtSTATUS.Value);

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

        hidCondition.Value = condObj.ToJson(20);

        BindList(condObj, 1);
    }
コード例 #3
0
    protected void btnFind_Click(object sender, EventArgs e)
    {
        condObj = new WEC_MODEL();



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


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


        if (txtPIC_URL.Value != "")
        {
            condObj.Like(WEC_MODEL.Attribute.PIC_URL, Convert.ToString(txtPIC_URL.Value));
        }


        if (txtPATH.Value != "")
        {
            condObj.Like(WEC_MODEL.Attribute.PATH, Convert.ToString(txtPATH.Value));
        }


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


        if (txtSTATUS.Value != "")
        {
            condObj.STATUS = Convert.ToInt32(txtSTATUS.Value);
        }


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

        hidCondition.Value = condObj.ToJson(20);

        BindList(condObj, 1);
    }
コード例 #4
0
    protected void btnFind_Click(object sender, EventArgs e)
    {
        condObj = new WEC_MODEL();

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

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

        if(txtPIC_URL.Value !="" )
            condObj.Like_OR(WEC_MODEL.Attribute.PIC_URL, Convert.ToString(txtPIC_URL.Value));

        if(txtPATH.Value !="" )
            condObj.Like_OR(WEC_MODEL.Attribute.PATH, Convert.ToString(txtPATH.Value));

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

        if(txtSTATUS.Value !="" )
            condObj.STATUS = Convert.ToInt32(txtSTATUS.Value);

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

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

            listObj = BLLTable<WEC_MODEL>.SelectByPage(valObj, condObj, aspPager.PageSize, 1, ref recount);
            repList.DataSource = listObj;
            repList.DataBind();
        }
        catch (Exception ex)
        {
             litWarn.Text = ex.Message;
        }
    }