示例#1
0
        public VmIeScanItemEngine GetScanItemAsNestEngine()
        {
            VmIeScanItemEngine engine = new VmIeScanItemEngine();
            engine.LogoBitmap = LogoBitmap;
            engine.SpacerBitmap = SpacerBitmap;
            engine.ModuleBitmap = ModuleBitmap;
            engine.DoExitDelegate =
                delegate(VmPickerEngine pe)
                {
                    VmApplication.Default.ShowMainPanel();
                };
            // kludge (err) - Language
            engine.Instructions = "Scan Item in Nest to Empty:";
            VmEmptyDelegateEventManager im = new VmEmptyDelegateEventManager(
                VmAirportData.Default.AirportOutputData.GetEmptyDelegateEventFile(
                    VmAirportData.Default.AirportOutputData.IdentityFile.GetNextIdentity()));
            engine.AssignEventMangers(
                im,
                null);

            engine.DoneBitmap = VmImageManager.Default.GetHomeImage();
            engine.DoneText = VmLanguage.Default.GetHome();
            engine.BuildNestFlag = false;
            return engine;
        }
示例#2
0
        public override void InitializeScanDelegateEngine()
        {
            VmIeScanItemEngine engine = new VmIeScanItemEngine();
            IntializeDeliverWithCommonDone(engine);

            // kludge (err) - Language
            engine.Instructions = "Deliver Item as Nest:";
            VmDeliverItemAsNestManager im = new VmDeliverItemAsNestManager(
                VmAirportData.Default.AirportOutputData.GetDeliverItemAsNestEventFile(
                    VmAirportData.Default.AirportOutputData.IdentityFile.GetNextIdentity()));
            engine.AssignEventMangers( im,null);

            _scanItemAsNestEngine = engine;
        }
示例#3
0
        public void InitializeScanItemEngine()
        {
            VmIeScanItemEngine e = new VmIeScanItemEngine();
            e.InitializeFromParentEngine(this);
            // kludge (err) - Language
            e.Instructions = "Receive Item:";

            e.AssignEventMangers(
                ReceiveEventManager,
                ReceiveAliasEventManager);

            e.ShowNestFlag = true;
            e.CollectUnknownWeightFlag =
                JwUtility.IsEqual(
                    VmProperties.Default.GetMobileTagUnknownWeightCollectionPolicy(),
                    "now");
            e.BuildNestFlag = true;
            e.ShouldWarnOfMissingPlannedRoutesFlag = VmProperties.Default.ShouldWarnMissingPlannedRoutesReceive();
            e.ShouldValidateCloseOutFlag = VmProperties.Default.ShouldWarnIfPastCloseOutDuringReceive();
            e.ShouldStageFlag = VmProperties.Default.ShouldStageDuringReceive();

            if( VmProperties.Default.ShouldAllowCloseNest() )
            {
                e.DoneBitmap = VmImageManager.Default.GetCloseNestImage();
                e.DoneText = VmLanguage.Default.GetCloseNest();
                e.DoExitDelegate =
                    delegate(VmPickerEngine pe)
                    {
                        VmIeScanItemEngine scanItemEngine = (VmIeScanItemEngine)pe;
                        CloseNestEngine.Nest = scanItemEngine.Nest;
                        CloseNestEngine.ShowFirstPanel();
                    };
            }
            else
            {
                e.DoneBitmap = VmImageManager.Default.GetHomeImage();
                e.DoneText = VmLanguage.Default.GetHome();
                e.DoExitDelegate =
                    delegate(VmPickerEngine pe)
                    {
                        VmIeScanItemEngine scanItemEngine = (VmIeScanItemEngine)pe;
                        VmApplication.Default.ShowMainPanel();
                    };
            }
            if( VmProperties.Default.ShouldAllowReturnMail() )
            {
                e.AlternateActionBitmap = VmImageManager.Default.GetReturnMailImage();
                e.AlternateActionText = VmLanguage.Default.GetReturn();
                e.AlternateActionDelegate =
                    delegate(VmPickerEngine pe)
                    {
                        ReturnItemEngine.ShowFirstPanel();
                    };
            }
            _scanItemEngine = e;
        }
示例#4
0
        public void InitializeReturnItemEngine()
        {
            VmIeScanItemEngine e = new VmIeScanItemEngine();
            e.InitializeFromParentEngine(this);
            VmReturnItemEventManager im = new VmReturnItemEventManager(
                VmAirportData.Default.AirportOutputData.CreateReturnItemEventFile());
            VmReturnAliasEventManager am = new VmReturnAliasEventManager(
                VmAirportData.Default.AirportOutputData.CreateReturnAliasEventFile());
            e.AssignEventMangers(
                im,
                am);

            e.DoExitDelegate =
                delegate(VmPickerEngine pe)
                {
                    ScanItemEngine.ShowFirstPanel();
                };
            // kludge (err) - Language
            e.Instructions = "Return Item to Post:";
            e.DoneBitmap = VmImageManager.Default.GetReceiveModuleImage();
            e.DoneText = VmLanguage.Default.GetReceive();
            _returnItemEngine = e;
        }
示例#5
0
        public override void InitializeScanDelegateEngine()
        {
            VmIeScanItemEngine engine = new VmIeScanItemEngine();
            engine.LogoBitmap = LogoBitmap;
            engine.SpacerBitmap = SpacerBitmap;
            engine.ModuleBitmap = ModuleBitmap;
            engine.DoExitDelegate =
                delegate(VmPickerEngine pe)
                {
                    VmApplication.Default.ShowMainPanel();
                };
            // kludge (err) - Language
            engine.Instructions = "Handover Nest:";
            VmGiveDelegateEventManager im = new VmGiveDelegateEventManager(
                VmAirportData.Default.AirportOutputData.CreateGiveDelegateEventFile());
            engine.AssignEventMangers(
                im,
                null);
            im.CarrierCode = CarrierCode;
            engine.DoneBitmap = VmImageManager.Default.GetHomeImage();
            engine.DoneText = VmLanguage.Default.GetHome();
            engine.BuildNestFlag = false;

            ScanItemAsNestEngine = engine;
        }
        public VmIeScanItemEngine GetScanItemEngine()
        {
            VmIeScanItemEngine engine = new VmIeScanItemEngine();
            engine.LogoBitmap = LogoBitmap;
            engine.SpacerBitmap = SpacerBitmap;
            engine.ModuleBitmap = ModuleBitmap;
            // kludge (err) - Language
            engine.Instructions = "Remove Item from Nest:";

            VmRemoveItemFromNestManager im = new VmRemoveItemFromNestManager(
                VmAirportData.Default.AirportOutputData.CreateRemoveItemFromNestEventFile());
            VmRemoveAliasFromNestManager am = new VmRemoveAliasFromNestManager(
                VmAirportData.Default.AirportOutputData.CreateRemoveAliasFromNestEventFile());

            engine.AssignEventMangers(
                im,
                am);

            if( VmProperties.Default.ShouldAllowCloseNest() )
            {
                engine.DoneBitmap = VmImageManager.Default.GetCloseNestImage();
                engine.DoneText = VmLanguage.Default.GetCloseNest();
                engine.DoExitDelegate =
                    delegate(VmPickerEngine pe)
                    {
                        VmIeScanItemEngine scanItemEngine = (VmIeScanItemEngine)pe;
                        VmCnCloseNestEngine closeNestEngine = GetCloseNestEngine();
                        closeNestEngine.Nest = scanItemEngine.Nest;
                        closeNestEngine.ShowFirstPanel();
                    };
            }
            else
            {
                engine.DoneBitmap = VmImageManager.Default.GetHomeImage();
                engine.DoneText = VmLanguage.Default.GetHome();
                engine.DoExitDelegate =
                    delegate(VmPickerEngine pe)
                    {
                        VmApplication.Default.ShowMainPanel();
                    };
            }
            engine.ShowNestFlag = false;
            engine.BuildNestFlag = false;
            return engine;
        }
示例#7
0
        public void InitializeUnloadItemEngine()
        {
            VmIeScanItemEngine e = new VmIeScanItemEngine();
            e.Flight = Flight;

            VmUnloadItemEventManager im = new VmUnloadItemEventManager(
                VmAirportData.Default.AirportOutputData.CreateUnloadItemEventFile());
            VmUnloadAliasEventManager am = new VmUnloadAliasEventManager(
                VmAirportData.Default.AirportOutputData.CreateUnloadAliasEventFile());

            e.AssignEventMangers(
                im,
                am);

            im.Flight = Flight;
            am.Flight = Flight;
            e.Flight = Flight;

            e.LogoBitmap = LogoBitmap;
            e.SpacerBitmap = SpacerBitmap;
            e.ModuleBitmap = ModuleBitmap;
            e.DoExitDelegate =
                delegate(VmPickerEngine pe)
                {
                    ScanItemEngine.ShowFirstPanel();
                };
            // kludge (err) - Language
            e.Instructions = "Unload Item:";
            e.DoneBitmap = VmImageManager.Default.GetLoadModuleImage();
            e.DoneText = VmLanguage.Default.GetLoad();
            e.BuildNestFlag = false;
            _unloadItemEngine = e;
        }
示例#8
0
        public void InitializeUnloadDelegateEngine()
        {
            VmIeScanItemEngine e = new VmIeScanItemEngine();
            e.Flight = Flight;

            VmUnloadDelegateEventManager manager = new VmUnloadDelegateEventManager(
                VmAirportData.Default.AirportOutputData.GetUnloadDelegateEventFile(
                    VmAirportData.Default.AirportOutputData.IdentityFile.GetNextIdentity()));
            manager.Flight = Flight;

            e.AssignEventMangers(
                manager,
                null);

            e.LogoBitmap = LogoBitmap;
            e.SpacerBitmap = SpacerBitmap;
            e.ModuleBitmap = ModuleBitmap;
            e.DoExitDelegate =
                delegate(VmPickerEngine pe)
                {
                    ScanItemEngine.ShowFirstPanel();
                };
            // kludge (err) - Language
            e.Instructions = "Unload Nest:";
            e.DoneBitmap = VmImageManager.Default.GetLoadModuleImage();
            e.DoneText = VmLanguage.Default.GetLoad();
            e.BuildNestFlag = false;
            _unloadDelegateEngine = e;
        }
示例#9
0
        //# __________ PROTOCOL :: PRIVATE (ITEM)  __________ #//
        public override void InitializeScanItemEngine()
        {
            VmIeScanItemEngine engine = new VmIeScanItemEngine();
            engine.LogoBitmap = LogoBitmap;
            engine.SpacerBitmap = SpacerBitmap;
            engine.ModuleBitmap = ModuleBitmap;
            engine.DoExitDelegate =
                delegate(VmPickerEngine pe)
                {
                    VmApplication.Default.ShowMainPanel();
                };
            // kludge (err) - Language
            engine.Instructions = "Load Item:";

            VmLoadItemManager im = new VmLoadItemManager(
                VmAirportData.Default.AirportOutputData.CreateLoadItemEventFile());

            VmLoadAliasManager am = new VmLoadAliasManager(
                VmAirportData.Default.AirportOutputData.CreateLoadAliasEventFile());

            engine.AssignEventMangers(
                im,
                am);

            im.Flight = Flight;
            am.Flight = Flight;
            engine.DoneBitmap = VmImageManager.Default.GetHomeImage();
            engine.DoneText = VmLanguage.Default.GetHome();

            if( VmProperties.Default.ShouldAllowUnload() )
            {
                engine.AlternateActionBitmap = VmImageManager.Default.GetUnloadImage();
                engine.AlternateActionText = VmLanguage.Default.GetUnload();
                engine.AlternateActionDelegate =
                    delegate(VmPickerEngine pe)
                    {
                        UnloadItemEngine.ShowFirstPanel();
                    };
            }
            engine.BuildNestFlag = false;
            _scanItemEngine = engine;
        }
示例#10
0
        public void InitializeScanItemEngine()
        {
            VmIeScanItemEngine e = new VmIeScanItemEngine();
            e.LogoBitmap = LogoBitmap;
            e.SpacerBitmap = SpacerBitmap;
            e.ModuleBitmap = ModuleBitmap;
            // kludge (err) - Language
            e.Instructions = "Take Item:";
            e.AssignEventMangers(
                TakeItemEventManager,
                TakeAliasEventManager);

            e.ShowNestFlag = true;
            e.BuildNestFlag = true;
            e.ShouldStageFlag = VmProperties.Default.ShouldStageDuringTake();
            if( VmProperties.Default.ShouldAllowCloseNest() )
            {
                e.DoneBitmap = VmImageManager.Default.GetCloseNestImage();
                e.DoneText = VmLanguage.Default.GetCloseNest();
                e.DoExitDelegate =
                    delegate(VmPickerEngine pe)
                    {
                        VmIeScanItemEngine scanItemEngine = (VmIeScanItemEngine)pe;
                        CloseNestEngine.Nest = scanItemEngine.Nest;
                        CloseNestEngine.ShowFirstPanel();
                    };
            }
            else
            {
                e.DoneBitmap = VmImageManager.Default.GetHomeImage();
                e.DoneText = VmLanguage.Default.GetHome();
                e.DoExitDelegate =
                    delegate(VmPickerEngine pe)
                    {
                        VmIeScanItemEngine scanItemEngine = (VmIeScanItemEngine)pe;
                        VmApplication.Default.ShowMainPanel();
                    };
            }
            _scanItemEngine = e;
        }
示例#11
0
        //# __________ PROTOCOL :: PRIVATE (SCAN ENGINES)  __________ #//
        public override void InitializeScanItemEngine()
        {
            VmIeScanItemEngine engine = new VmIeScanItemEngine();
            IntializeDeliverWithCommonDone(engine);
            engine.UseIdentifyExistingNestMode();

            // kludge (err) - Language
            engine.Instructions = "Deliver Item:";

            VmDeliverItemManager im = new VmDeliverItemManager(
                VmAirportData.Default.AirportOutputData.CreateDeliverItemEventFile());
            VmDeliverAliasManager am = new VmDeliverAliasManager(
                VmAirportData.Default.AirportOutputData.CreateDeliverAliasEventFile());
            engine.AssignEventMangers(
                im,
                am);
            engine.BuildNestFlag = false;

            _scanItemEngine = engine;
        }