示例#1
0
        private void btn_search_Click(object sender, EventArgs e)
        {
            switch (cmb_search.Text)
            {
            case "订单号":
                Service.GetById(Int32.Parse(tb_search.Text));
                break;

            case "顾客名称":
                Service.QueryByCustomerName(tb_search.Text);
                break;

            case "总金额":
                Service.QueryByTotalAmount(float.Parse(tb_search.Text));
                break;

            case "商品名称":
                Service.QueryByGoodsName(tb_search.Text);
                break;

            default:
                break;
            }
        }