private void FrmAddConsumption_FormClosing(object sender, FormClosingEventArgs e) { //更新总价 if (!string.IsNullOrEmpty(labSumMoney.Text)) { OrderInfoBLL obll = new OrderInfoBLL(); obll.UpdateOrderMoneyAndBeginTimeByOrderId(Convert.ToInt32(labOrderId.Text), Convert.ToDouble(labSumMoney.Text)); //不用提示吧? } }