示例#1
0
        private void FrmAddMoney_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (labSumMoney.Text != "" && !string.IsNullOrEmpty(labSumMoney.Text))
            {
                var bll   = new OrderInfoBLL();
                var id    = Convert.ToInt32(labOrderId.Text);
                var money = Convert.ToInt32(labSumMoney.Text);

                if (bll.UpdateMoneyByOrderId(id, money) == false)
                {
                    MessageBox.Show("保存订单总消费失败");
                }
            }
        }