private void QueryByGoodsName_Click(object sender, EventArgs e) { if (Goods.Text == "") { MessageBox.Show("请输入完整信息!"); return; } update(orderService.QueryByGoodsName(Goods.Text)); }