Пример #1
0
 public void DeleteItems(int ManagerId, int EmployeeId, int QueueId, int TableId, int CheckId, int ReasonId)
 {
     SendToVideo.DeleteItem(CheckId);
     if (iniFile.CustomerDisplayEnabled)
     {
         RemoteCommands.CustomerDisplayEventSender.AddSendChkToCustDispToQueue(CheckId, false);
     }
 }
Пример #2
0
 public void DeleteComp(int ManagerId, int EmployeeId, int QueueId, int TableId, int CheckId, int CompTypeId, int CompId)
 {
     SendToVideo.DeleteComp(CheckId, CompTypeId);
     if (iniFile.CustomerDisplayEnabled)
     {
         RemoteCommands.CustomerDisplayEventSender.AddSendChkToCustDispToQueue(CheckId, true);
     }
 }
Пример #3
0
 internal static void AddItem(int EmployeeId, int QueueId, int TableId, int CheckId, int EntryId)
 {
     if (iniFile.CustomerDisplayEnabled)
     {
         RemoteCommands.CustomerDisplayEventSender.AddSendChkToCustDispToQueue(CheckId, false);
     }
     DisplayBoardClass.AddDishEvent(CheckId, EntryId);
     SendToVideo.AddItem(CheckId, EntryId);
     CheckAddBonusCard(EmployeeId, QueueId, TableId, CheckId, EntryId);
 }
Пример #4
0
 public void LogIn(int EmployeeId, string Name)
 {
     //   AlohaTSClass.ShowMessage("Привет");
     try
     {
         AlohaTSClass.CurentWaiter = EmployeeId;
         EventSenderClass.SendAlohaAsincEvent(PDiscountCard.StopListService.AlohaEventType.Login, "", EmployeeId, 0, Name, 0, 0, 0);
     }
     catch { }
     SendToVideo.LogIn(EmployeeId);
 }
Пример #5
0
 public void EndOfDay(int IsMaster)
 {
     AlohaEventVoids.EOD();
     SendToVideo.EOD();
     try
     {
         AlohaTSClass.ShowMessageInternal("Засыпаю");
         Thread.Sleep(30000);
         AlohaTSClass.ShowMessageInternal("Просыпаюсь");
     }
     catch
     { }
 }
Пример #6
0
        public void ApplyComp(int ManagerId, int EmployeeId, int QueueId, int TableId, int CheckId, int CompTypeId, int CompId)
        {
            try
            {
                AlohaTSClass.WriteToDebout("Событие Применена скидка тип: " + CompTypeId + ", чек: " + (new Check(CheckId)).CheckNum + " Официант: " + EmployeeId);
            }
            catch
            { }
            if (iniFile.CustomerDisplayEnabled)
            {
                RemoteCommands.CustomerDisplayEventSender.AddSendChkToCustDispToQueue(CheckId, true);
            }

            SendToVideo.ApplyComp(CheckId, CompTypeId);
        }
Пример #7
0
        public void CloseCheck(int EmployeeId, int QueueId, int TableId, int CheckId)
        {
            if (QueueId == 5)
            {
                Utils.ToLog($"CheckId ={CheckId} Чек из очереди №5. Это иp хаба Закрываем без Джестори. В Джестори отправит хаб", 2);
                return;
            }

            if (iniFile.CustomerDisplayEnabled)
            {
                RemoteCommands.CustomerDisplayEventSender.AddSendCloseChkToCustDisp(CheckId);
            }

            EventSenderClass.SendAlohaAsincEvent(PDiscountCard.StopListService.AlohaEventType.CloseCheck, "", 0, EmployeeId, "", 0, TableId, CheckId);
            AlohaEventVoids.CloseCheck(EmployeeId, QueueId, TableId, CheckId);
            SendToVideo.CloseCheck(CheckId);

            //  AlohaTSClass.CloseTable(AlohaTSClass.GetTermNum(), TableId);
        }
Пример #8
0
 public void ApplyPayment(int ManagerId, int EmployeeId, int QueueId, int TableId, int CheckId, int TenderId, int PaymentId)
 {
     if (iniFile.CustomerDisplayEnabled)
     {
         RemoteCommands.CustomerDisplayEventSender.AddSendChkToCustDispToQueue(CheckId, true);
     }
     try
     {
         //DisplayBoardClass.ApplyPaymentEvent(CheckId);
         DisplayBoardClass.ApplyPaymentEvent();
         SendToVideo.ApplyPayment(CheckId, TenderId);
         AlohaEventVoids.ApplyCardPayment(ManagerId, EmployeeId, QueueId, TableId, CheckId, TenderId, PaymentId);
     }
     catch (Exception e)
     {
         string Mess = "Ошибка программы " + e.Message + Environment.NewLine + "Призведите оплату вручную";
         AlohaTSClass.ShowMessage(Mess);
         Utils.ToCardLog(Mess);
         MainClass.PlasticTransactionInProcess = false;
     }
 }
Пример #9
0
 public void LogOut(int EmployeeId, string Name)
 {
     DisplayBoardClass.InitDisplayBoard();
     SendToVideo.LogOut(EmployeeId);
 }