public void CallTicketManuel(int _TicketNo, int _TicketID, int _GrupID, bool _IsTransfer, bool _IsFiktif, bool _IsAssistGroup, bool _IsMainGroup) { BiletId = _TicketID; BiletNo = _TicketNo; Fiktif = _IsFiktif; GrupId = _GrupID; Transfer = _IsTransfer; YardimGrubundan = _IsAssistGroup; var ticketHasMainGroups = _IsMainGroup; var callingSuccess = TCPIPCommunicating.CallTicket(BiletNo, terminal.ElTerminalID); if (!callingSuccess) { if (TicketCallingFalied != null) { TicketCallingFalied(); } return; } PopQueue(); var currentTicket = new Bilet { TerminalID = terminal.TID, IslemBaslangicSaati = DateTime.Now }; currentTicket.SetTicketOnProcess(BiletId); terminal.SetActiveTicketID(BiletId); terminal.SetTerminalState(Terminaller.TerminalDurum.MusteriIleMesgul); if (NextTicketDetected != null) { NextTicketDetected(new NextTicketDetectedEventArgs(this)); } if (!ticketHasMainGroups) { return; } if (!Transfer) { terminal.ToIncreaseOrResetCallRatio(terminal.TID, GrupId); } else { terminal.ToIncreaseOrResetTransferRatio(terminal.TID, GrupId); } if (!YardimGrubundan) { terminal.SetLastCallingGroup(terminal.TID, GrupId, Transfer); } }
private void CallTicket() { var callingSuccess = TCPIPCommunicating.CallTicket(BiletNo, terminal.ElTerminalID); if (!callingSuccess) { TicketCallingFalied.Invoke(); return; } PopQueue(); var currentTicket = new Bilet { TerminalID = terminal.TID, IslemBaslangicSaati = DateTime.Now }; currentTicket.SetTicketOnProcess(BiletId); terminal.SetActiveTicketID(BiletId); terminal.SetTerminalState(Terminaller.TerminalDurum.MusteriIleMesgul); if (!Transfer) { terminal.ToIncreaseOrResetCallRatio(terminal.TID, GrupId); } else { terminal.ToIncreaseOrResetTransferRatio(terminal.TID, GrupId); } if (!YardimGrubundan) { terminal.SetLastCallingGroup(terminal.TID, GrupId, Transfer); } if (NextTicketDetected != null) { NextTicketDetected(new NextTicketDetectedEventArgs(this)); } }