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

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

        if(txtWEC_CUSTOM_MODEL_SET_A_ID.Value !="" )
            condObj.Like(WEC_CUSTOM_MODEL_SET.Attribute.A_ID, Convert.ToDecimal(txtWEC_CUSTOM_MODEL_SET_A_ID.Value));

        if(txtWEC_CUSTOM_MODEL_SET_M_ID.Value !="" )
            condObj.Like(WEC_CUSTOM_MODEL_SET.Attribute.M_ID, Convert.ToDecimal(txtWEC_CUSTOM_MODEL_SET_M_ID.Value));

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

            listObj = BLLTable<WEC_CUSTOM_MODEL_SET>.Factory(conn).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_CUSTOM_MODEL_SET();

        if(txtWEC_CUSTOM_MODEL_SET_A_ID.Value != "" )
            condObj.Like(WEC_CUSTOM_MODEL_SET.Attribute.A_ID, Convert.ToDecimal(txtWEC_CUSTOM_MODEL_SET_A_ID.Value));

        hidCondition.Value = condObj.ToJson(20);

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

        if (txtWEC_CUSTOM_MODEL_SET_A_ID.Value != "")
        {
            condObj.Like(WEC_CUSTOM_MODEL_SET.Attribute.A_ID, Convert.ToDecimal(txtWEC_CUSTOM_MODEL_SET_A_ID.Value));
        }


        hidCondition.Value = condObj.ToJson(20);

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


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


        if (txtWEC_CUSTOM_MODEL_SET_A_ID.Value != "")
        {
            condObj.Like(WEC_CUSTOM_MODEL_SET.Attribute.A_ID, Convert.ToDecimal(txtWEC_CUSTOM_MODEL_SET_A_ID.Value));
        }


        if (txtWEC_CUSTOM_MODEL_SET_M_ID.Value != "")
        {
            condObj.Like(WEC_CUSTOM_MODEL_SET.Attribute.M_ID, Convert.ToDecimal(txtWEC_CUSTOM_MODEL_SET_M_ID.Value));
        }

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

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

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