private bool TryUpdateOrderInfo() { OrderInfoBLL orderBll = new OrderInfoBLL(); OrderInfo order = orderBll.get(this.orderId); order.EndTime = DateTime.Now; order.OrderMoney = Convert.ToDouble(lblCheckMoney.Text); order.OrderState = (int)OrderStatus.Checked; if (cmbMember.SelectedIndex != 0) { MemberInfo member = (MemberInfo)cmbMember.SelectedItem; order.OrderMemberId = member.MemberId; order.DisCount = member.MemDiscount; } return(orderBll.update(order)); }