Пример #1
0
    protected void btnFind_Click(object sender, EventArgs e)
    {
        condObj = new SYS_BILL();

        if(txtBILL_NAME.Value !="" )
            condObj.Like(SYS_BILL.Attribute.BILL_NAME, Convert.ToString(txtBILL_NAME.Value));

        if(txtBILL_TYPE.Value !="" )
            condObj.Like(SYS_BILL.Attribute.BILL_TYPE, Convert.ToString(txtBILL_TYPE.Value));

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

        if(txtADDER.Value !="" )
            condObj.Like(SYS_BILL.Attribute.ADDER, Convert.ToString(txtADDER.Value));

        if(txtTABLE_NAME.Value !="" )
            condObj.Like(SYS_BILL.Attribute.TABLE_NAME, Convert.ToString(txtTABLE_NAME.Value));

        hidCondition.Value = condObj.ToJson(20);

        BindList(condObj, 1);
    }
Пример #2
0
    protected void btnFind_Click(object sender, EventArgs e)
    {
        condObj = new SYS_BILL();


        if (txtBILL_NAME.Value != "")
        {
            condObj.Like(SYS_BILL.Attribute.BILL_NAME, Convert.ToString(txtBILL_NAME.Value));
        }


        if (txtBILL_TYPE.Value != "")
        {
            condObj.Like(SYS_BILL.Attribute.BILL_TYPE, Convert.ToString(txtBILL_TYPE.Value));
        }

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

        if (txtADDER.Value != "")
        {
            condObj.Like(SYS_BILL.Attribute.ADDER, Convert.ToString(txtADDER.Value));
        }


        if (txtTABLE_NAME.Value != "")
        {
            condObj.Like(SYS_BILL.Attribute.TABLE_NAME, Convert.ToString(txtTABLE_NAME.Value));
        }

        hidCondition.Value = condObj.ToJson(20);

        BindList(condObj, 1);
    }
Пример #3
0
    protected void btnFind_Click(object sender, EventArgs e)
    {
        try
        {
            condObj = new SYS_BILL();

            if(txtTABLE_NAME.Value !="" )
                condObj.Like(SYS_BILL.Attribute.TABLE_NAME, Convert.ToString(txtTABLE_NAME.Value));

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


            if (txtTABLE_NAME.Value != "")
            {
                condObj.Like(SYS_BILL.Attribute.TABLE_NAME, Convert.ToString(txtTABLE_NAME.Value));
            }


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

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