Exemplo n.º 1
0
        private void cancelOutMenu(Guid orderMenuId, DXInfo.Models.MenuDeskInfo deskInfo,
                                   string printer, string invName, string comment)
        {
            try
            {
                dmf.dtOperDate = DateTime.Now;
                dmf.CancelOutMenu(orderMenuId, deskInfo.DeskId);

                MenuPrintObject mpo = new MenuPrintObject(printer,
                                                          invName, comment, deskInfo.DeskCode + "(取消出菜)",
                                                          Oper.FullName, dmf.dtOperDate);
                mpo.Print();
            }
            catch (Exception ex)
            {
                Helper.ShowErrorMsg(ex.Message);
                Helper.HandelException(ex);
            }
            UpdateOrderMenuData();
            //UpdateOrderMenuDataComplete();
            UpdateInfoData();
        }
Exemplo n.º 2
0
        private void NoCtOutMenuExecute()
        {
            if (this.SelectedMenuInfo != null && this.SelectedMenuInfo.SelectedDesk != null)
            {
                try
                {
                    dmf.dtOperDate = DateTime.Now;
                    dmf.OutMenu(this.SelectedMenuInfo.OrderMenuId, this.SelectedMenuInfo.SelectedDesk.DeskId);

                    MenuPrintObject mpo = new MenuPrintObject(this.SelectedMenuInfo.Printer,
                                                              this.SelectedMenuInfo.InvName, this.SelectedMenuInfo.Comment, this.SelectedMenuInfo.SelectedDesk.DeskCode + "(出菜)",
                                                              Oper.FullName, dmf.dtOperDate);
                    mpo.Print();
                }
                catch (Exception ex)
                {
                    Helper.ShowErrorMsg(ex.Message);
                    Helper.HandelException(ex);
                }
                UpdateOrderMenuData();
                //UpdateOrderMenuDataComplete();
                UpdateInfoData();
            }
        }