コード例 #1
0
ファイル: FrmVirtualTerminal.cs プロジェクト: realyemin/omes
        private void TmrOtoTicketCall_Tick(object sender, EventArgs e)
        {
            if (!SanalTerminal.OtomatikCagri)
            {
                TmrOtoTicketCall.Stop();
                return;
            }

            SetEnabledCommonControls(false);
            BtnNextTicket.Enabled = true;
            BtnNextTicket.PerformClick();
            SetEnabledCommonControls(true);
        }
コード例 #2
0
ファイル: FrmVirtualTerminal.cs プロジェクト: realyemin/omes
        private void yaziciAyarlariToolStripMenuItem_Click(object sender, EventArgs e)
        {
            TmrOtoTicketCall.Stop();
            //TmrWaitingCountRefresh.Stop();
            WPrinterSetup wprintSetupIT = new WPrinterSetup();

            wprintSetupIT.ShowDialog();

            if (_kuyruk.terminal.GetTerminalState() == Terminaller.TerminalDurum.Bosta)
            {
                TmrOtoTicketCall.Start();
            }

            MenuStripTop.Visible = false;
        }
コード例 #3
0
ファイル: FrmVirtualTerminal.cs プロジェクト: realyemin/omes
        private void kuyruk_NextTicketDetected(NextTicketDetectedEventArgs args)
        {
            LblIsFiktif.Text        = (args.Fiktif) ? "Yes" : "No";
            LblIsTransfer.Text      = (args.Transfer) ? "Yes" : "No";
            LblSisTar.Text          = args.AlinmaTarihi.ToString("HH:mm:ss");
            LblIslemSaati.Text      = args.IslemSaati.ToString("HH:mm:ss");
            LblTicketGroupName.Text = args.GrupAdi;
            LblTicketGroupName.Tag  = args.GrupID;
            LblTicketNo.Text        = args.BiletNo.ToString();
            LblTicketNo.Tag         = args.BiletNo;
            LblWaitingTickets.Text  = _kuyruk.GetWaitingTicketsCount().ToString();
            LblSisTar.Tag           = args.BiletID;
            SetWaitingLamb();
            DGVTicketLists.DataSource = GetAllTickets("");
            SetEnabledForTransferControls(true);
            TmrOtoTicketCall.Stop();
            //TmrWaitingCountRefresh.Stop();
            LblProcessTime.Text = "00:00:00";
            TmrTicketProcessCounter.Start();

            NotifiyCurrentState("Busy...", Color.Green);
            LblCallingCount.Text = (int.Parse(LblCallingCount.Text) + 1).ToString();
        }
コード例 #4
0
ファイル: FrmVirtualTerminal.cs プロジェクト: realyemin/omes
        private void BtnMola_Click(object sender, EventArgs e)
        {
            TmrOtoTicketCall.Stop();
            //TmrWaitingCountRefresh.Stop();
            if (!_startCoffeeBreak.Molada)
            {
                _startCoffeeBreak.PersonelID    = SanalTerminal.PersonelID;
                _startCoffeeBreak.MolaBaslangic = DateTime.Now;
                _startCoffeeBreak.LetsCoffeeBreak();

                TCPIPCommunicating.MakeLineOnDisplay(_kuyruk.terminal.ElTerminalID);

                if (Thread.CurrentThread.CurrentUICulture.Name == "tr-TR")
                {
                    NotifiyCurrentState("Molada...", Color.Red);
                }
                else
                {
                    NotifiyCurrentState("Takes Break...", Color.Red);
                }
                BtnMola.BackColor = Color.OrangeRed;
                BtnMola.FlatAppearance.BorderColor        = SystemColors.InactiveBorder;
                BtnMola.FlatAppearance.MouseDownBackColor = Color.Orange;
                BtnMola.FlatAppearance.MouseOverBackColor = Color.DarkOrange;
                ToolTipForProcess.SetToolTip(BtnMola, "End Break");

                SetEnabledCommonControls(false);
                BtnOutOfService.BackColor = SystemColors.InactiveBorder;
                BtnOutOfService.Enabled   = false;
                if (!string.IsNullOrEmpty(LblTicketNo.Text))
                {
                    _kuyruk.HasNotTicket();
                    ClearTicketInf();
                    TmrTicketProcessCounter.Stop();
                }

                _kuyruk.terminal.SetTerminalState(Terminaller.TerminalDurum.Molada);
            }
            else
            {
                _startCoffeeBreak.MolaBitis = DateTime.Now;
                _startCoffeeBreak.DoneCoffeeBreak();

                LblWaitingTickets.Text = _kuyruk.GetWaitingTicketsCount().ToString();

                SetWaitingLamb();
                _kuyruk.terminal.SetTerminalState(Terminaller.TerminalDurum.Bosta);

                NotifiyCurrentState("idled...", Color.Red);
                BtnMola.BackColor = SystemColors.InactiveCaption;
                BtnMola.FlatAppearance.BorderColor        = SystemColors.ActiveCaption;
                BtnMola.FlatAppearance.MouseDownBackColor = Color.SkyBlue;
                BtnMola.FlatAppearance.MouseOverBackColor = SystemColors.GradientInactiveCaption;
                ToolTipForProcess.SetToolTip(BtnMola, "Start Break");

                TmrOtoTicketCall.Start();

                SetEnabledCommonControls(true);
                BtnOutOfService.BackColor = SystemColors.InactiveCaption;
                BtnOutOfService.Enabled   = true;
                DGVTicketLists.DataSource = GetAllTickets("");
            }
        }
コード例 #5
0
ファイル: FrmVirtualTerminal.cs プロジェクト: realyemin/omes
        private void BtnOutOfService_Click(object sender, EventArgs e)
        {
            TmrOtoTicketCall.Stop();
            //TmrWaitingCountRefresh.Stop();
            if (_closeAndOpenService.ServisDisi)
            {
                _closeAndOpenService.ServisAcmaTarihi = DateTime.Now;
                _closeAndOpenService.OpenService();

                LblWaitingTickets.Text = _kuyruk.GetWaitingTicketsCount().ToString();

                SetWaitingLamb();
                _kuyruk.terminal.SetTerminalState(Terminaller.TerminalDurum.Bosta);

                NotifiyCurrentState("Boşta...", Color.Red);
                BtnOutOfService.BackColor = SystemColors.InactiveCaption;
                BtnOutOfService.FlatAppearance.BorderColor        = SystemColors.ActiveCaption;
                BtnOutOfService.FlatAppearance.MouseDownBackColor = Color.SkyBlue;
                BtnOutOfService.FlatAppearance.MouseOverBackColor = SystemColors.GradientInactiveCaption;

                TmrOtoTicketCall.Start();
                SetEnabledCommonControls(true);
                BtnMola.BackColor         = SystemColors.InactiveCaption;
                BtnMola.Enabled           = true;
                DGVTicketLists.DataSource = GetAllTickets("");
                return;
            }


            string outOfReason          = string.Empty;
            WOutOfServiceReason outOfIT = new WOutOfServiceReason();

            if (outOfIT.ShowDialog() == DialogResult.OK)
            {
                _closeAndOpenService.KapatmaSebebi       = outOfIT.TxtBxReason.Text.Trim();
                _closeAndOpenService.ServisKapatmaTarihi = DateTime.Now;
                _closeAndOpenService.CloseService();


                TCPIPCommunicating.MakeLineOnDisplay(_kuyruk.terminal.ElTerminalID);
                if (Thread.CurrentThread.CurrentUICulture.Name == "tr-TR")
                {
                    NotifiyCurrentState("Servis Dışı...", Color.OrangeRed);
                }
                else
                {
                    NotifiyCurrentState("Out Of Order...", Color.OrangeRed);
                }
                BtnOutOfService.BackColor = Color.OrangeRed;
                BtnOutOfService.FlatAppearance.BorderColor        = SystemColors.InactiveBorder;
                BtnOutOfService.FlatAppearance.MouseDownBackColor = Color.Orange;
                BtnOutOfService.FlatAppearance.MouseOverBackColor = Color.DarkOrange;

                SetEnabledCommonControls(false);
                BtnMola.BackColor = SystemColors.InactiveBorder;
                BtnMola.Enabled   = false;

                if (!string.IsNullOrEmpty(LblTicketNo.Text))
                {
                    _kuyruk.HasNotTicket();
                    ClearTicketInf();
                    TmrTicketProcessCounter.Stop();
                }

                _kuyruk.terminal.SetTerminalState(Terminaller.TerminalDurum.ServisDisi);
            }
            else
            {
            }
        }