private void SaveBeforePrintReceipt() { OrderService.OrderService service = new OrderService.OrderService(); string result; if (!takeOutMode) { result = service.SendOrderPrint(orderInfo, null, false); int orderID = 0; try { orderID = int.Parse(result); service.SetTableReference(orderID, tableIDList); } catch (Exception ex) { MessageBox.Show(ex.ToString()); orderID = 0; } } else result = service.SendOrderPrint(orderInfo, FieldCustName.Text, false); }
private void SaveBeforePrintReceipt() { string str; smartRestaurant.OrderService.OrderService service = new smartRestaurant.OrderService.OrderService(); if (!this.takeOutMode) { str = service.SendOrderPrint(this.orderInfo, 0, null, false); int orderID = 0; try { orderID = int.Parse(str); service.SetTableReference(orderID, this.tableIDList); } catch (Exception exception) { MessageBox.Show(exception.ToString()); orderID = 0; } } else { str = service.SendOrderPrint(this.orderInfo, this.takeOutCustID, this.FieldCustName.Text, false); } }