예제 #1
0
    protected void btnFind_Click(object sender, EventArgs e)
    {
        condObj = new WEC_REQUEST();

        if(txtTID.Value !="" )
            condObj.Like_OR(WEC_REQUEST.Attribute.TID, Convert.ToDecimal(txtTID.Value));

        if(txtAID.Value !="" )
            condObj.Like_OR(WEC_REQUEST.Attribute.AID, Convert.ToDecimal(txtAID.Value));

        if(txtKEYWORD.Value !="" )
            condObj.Like_OR(WEC_REQUEST.Attribute.KEYWORD, Convert.ToString(txtKEYWORD.Value));

        if(txtMATCH_TYPE.Value !="" )
            condObj.MATCH_TYPE = Convert.ToInt32(txtMATCH_TYPE.Value);

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

        if(txtKIND.Value !="" )
            condObj.KIND = Convert.ToInt32(txtKIND.Value);

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

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

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

            listObj = BLLTable<WEC_REQUEST>.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_REQUEST();


        if (txtTID.Value != "")
        {
            condObj.Like_OR(WEC_REQUEST.Attribute.TID, Convert.ToDecimal(txtTID.Value));
        }


        if (txtAID.Value != "")
        {
            condObj.Like_OR(WEC_REQUEST.Attribute.AID, Convert.ToDecimal(txtAID.Value));
        }


        if (txtKEYWORD.Value != "")
        {
            condObj.Like_OR(WEC_REQUEST.Attribute.KEYWORD, Convert.ToString(txtKEYWORD.Value));
        }


        if (txtMATCH_TYPE.Value != "")
        {
            condObj.MATCH_TYPE = Convert.ToInt32(txtMATCH_TYPE.Value);
        }


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


        if (txtKIND.Value != "")
        {
            condObj.KIND = Convert.ToInt32(txtKIND.Value);
        }


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


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

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

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

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