コード例 #1
0
ファイル: SelectingProcess.cs プロジェクト: AramisIT/FMCG
        private void selectProcess(long selectedIndex, string description)
        {
            if (MainProcess.User <= 0)
            {
                "Необхідно авторизуватися (відсканувати себе)!".Warning();
                return;
            }
            BusinessProcess process         = null;
            Processes       SelectedProcess = (Processes)selectedIndex;

            switch (SelectedProcess)
            {
            case Processes.Acceptance:
                MainProcess.ClearControls();
                process = new Acceptance();
                break;

            case Processes.Movement:
                MainProcess.ClearControls();
                process = new Movement();
                break;

            case Processes.Selection:
                process = tryStartPicking();
                break;

            case Processes.Inventory:
                MainProcess.ClearControls();
                process = new Inventory();
                break;

            case Processes.StickerRepeating:
                MainProcess.ClearControls();
                process = new StickerRepeating();
                break;

            case Processes.ReturnFromHaul:
                MainProcess.ClearControls();
                process = new ReturnFromHaul();
                break;

            case Processes.BarcodeChecking:
                MainProcess.ClearControls();
                process = new BarcodeChecking();
                break;

            case Processes.IsPalletFull:
                MainProcess.ClearControls();
                process = new IsPalletFull();
                break;
            }

            if (process != null)
            {
                MainProcess.Process = process;
            }
        }
コード例 #2
0
ファイル: SelectingProcess.cs プロジェクト: AramisIT/FMCG
        private void selectProcess(long selectedIndex, string description)
        {
            if (MainProcess.User <= 0)
                {
                "��������� �������������� (����������� ����)!".Warning();
                return;
                }
            BusinessProcess process = null;
            Processes SelectedProcess = (Processes)selectedIndex;

            switch (SelectedProcess)
                {
                case Processes.Acceptance:
                    MainProcess.ClearControls();
                    process = new Acceptance();
                    break;
                case Processes.Movement:
                    MainProcess.ClearControls();
                    process = new Movement();
                    break;
                case Processes.Selection:
                    process = tryStartPicking();
                    break;
                case Processes.Inventory:
                    MainProcess.ClearControls();
                    process = new Inventory();
                    break;
                case Processes.StickerRepeating:
                    MainProcess.ClearControls();
                    process = new StickerRepeating();
                    break;

                case Processes.ReturnFromHaul:
                    MainProcess.ClearControls();
                    process = new ReturnFromHaul();
                    break;

                case Processes.BarcodeChecking:
                    MainProcess.ClearControls();
                    process = new BarcodeChecking();
                    break;

                case Processes.IsPalletFull:
                    MainProcess.ClearControls();
                    process = new IsPalletFull();
                    break;
                }

            if (process != null)
                {
                MainProcess.Process = process;
                }
        }