protected override void BuildViews()
        {
            searchPanelView = WorkItem.SmartParts.AddNew <PickZoneMonitorSearchPanelView>();
            searchPanelView.RefreshDataOnShow = false;
            searchPanelView.IsVisible         = false;

            pickZoneMonitorOverviewViewLoader                   = WorkItem.SmartParts.AddNew <DynamicViewLoader>("Imi.SupplyChain.ActivityMonitor.UX.Views.ActivityMonitor.IPickZoneMonitorOverviewView");
            pickZoneMonitorOverviewViewLoader.ViewType          = typeof(PickZoneMonitorOverviewView);
            pickZoneMonitorOverviewViewLoader.RefreshDataOnShow = false;
            if (parameters != null)
            {
                pickZoneMonitorOverviewViewLoader.Update(parameters);
            }

            pickZoneMonitorOverviewViewLoader.IsDetailView = false;
            pickZoneMonitorOverviewViewLoader.Title        = Imi.SupplyChain.ActivityMonitor.UX.Modules.PickZone.ResourceManager.str_b54f04b1_e8ed_476e_8851_37bffa4b866e_Title;
            pickZoneMonitorOverviewViewLoader.ViewLoaded  += (s, e) =>
            {
                pickZoneMonitorOverviewView = e.Data as IPickZoneMonitorOverviewView;

                if (!string.IsNullOrEmpty(_favoriteId))
                {
                    UXSettingsService favoriteSettingsService = WorkItem.Items.AddNew <UXSettingsService>(_favoriteId);
                    favoriteSettingsService.ContainerName = _favoriteId;
                    favoriteSettingsService.AddProvider(pickZoneMonitorOverviewView, new PickZoneMonitorControllerSettingsProvider());
                    favoriteSettingsService.LoadSettings();
                    WorkItem.Items.Remove(favoriteSettingsService);
                }
            };
        }
        public void Activate(MovementMonitorOverviewViewParameters parameters, string favoriteId)
        {
            _favoriteId = favoriteId;

            if (movementMonitorOverviewView != null && !string.IsNullOrEmpty(_favoriteId))
            {
                UXSettingsService favoriteSettingsService = WorkItem.Items.AddNew <UXSettingsService>(_favoriteId);
                favoriteSettingsService.ContainerName = _favoriteId;
                favoriteSettingsService.AddProvider(movementMonitorOverviewView, new MovementMonitorControllerSettingsProvider());
                favoriteSettingsService.LoadSettings();
                WorkItem.Items.Remove(favoriteSettingsService);
            }

            Activate(parameters);
        }
示例#3
0
        protected override void BuildViews()
        {
            searchPanelView = WorkItem.SmartParts.AddNew <DepartureMonitorSearchPanelView>();
            searchPanelView.RefreshDataOnShow = false;
            searchPanelView.IsVisible         = false;

            departureMonitorOverviewViewLoader                   = WorkItem.SmartParts.AddNew <DynamicViewLoader>("Imi.SupplyChain.ActivityMonitor.UX.Views.ActivityMonitor.IDepartureMonitorOverviewView");
            departureMonitorOverviewViewLoader.ViewType          = typeof(DepartureMonitorOverviewView);
            departureMonitorOverviewViewLoader.RefreshDataOnShow = false;
            if (parameters != null)
            {
                departureMonitorOverviewViewLoader.Update(parameters);
            }

            departureMonitorOverviewViewLoader.IsDetailView = false;
            departureMonitorOverviewViewLoader.Title        = Imi.SupplyChain.ActivityMonitor.UX.Modules.Departure.ResourceManager.str_ae5218a2_136b_4eee_a2a5_07a866505018_Title;
            departureMonitorOverviewViewLoader.ViewLoaded  += (s, e) =>
            {
                departureMonitorOverviewView = e.Data as IDepartureMonitorOverviewView;
                actionProviderService.RegisterDrillDownAction(departureMonitorOverviewView, WorkItem.Items.FindByType <DepartureMonitorActions>().First().DepartureMonitorOverviewShowWarehouseDeparture, Imi.SupplyChain.ActivityMonitor.UX.Modules.Departure.ResourceManager.str_bd626d5e_63ca_4f60_b211_23bf73610d22_Caption, DepartureMonitorActions.DepartureMonitorOverviewShowWarehouseDepartureOperation);
                departureMonitorOverviewView.EnableDrillDown(new DrillDownArgs()
                {
                    FieldName = "DepartureId", Caption = Imi.SupplyChain.ActivityMonitor.UX.Modules.Departure.ResourceManager.str_bd626d5e_63ca_4f60_b211_23bf73610d22_Caption, ActionId = WorkItem.Items.FindByType <DepartureMonitorActions>().First().DepartureMonitorOverviewShowWarehouseDeparture, Type = DrillDownType.JumpTo
                });

                if (!string.IsNullOrEmpty(_favoriteId))
                {
                    UXSettingsService favoriteSettingsService = WorkItem.Items.AddNew <UXSettingsService>(_favoriteId);
                    favoriteSettingsService.ContainerName = _favoriteId;
                    favoriteSettingsService.AddProvider(departureMonitorOverviewView, new DepartureMonitorControllerSettingsProvider());
                    favoriteSettingsService.LoadSettings();
                    WorkItem.Items.Remove(favoriteSettingsService);
                }
            };

            departureMonitorDetailViewLoader             = WorkItem.SmartParts.AddNew <DynamicViewLoader>("Imi.SupplyChain.ActivityMonitor.UX.Views.ActivityMonitor.IDepartureMonitorDetailView");
            departureMonitorDetailViewLoader.ViewType    = typeof(DepartureMonitorDetailView);
            departureMonitorDetailViewLoader.Title       = Imi.SupplyChain.ActivityMonitor.UX.Views.ActivityMonitor.ResourceManager.str_27c919e6_a54a_4b8f_87f9_d302a0f9da56_Title;
            departureMonitorDetailViewLoader.ViewLoaded += (s, e) =>
            {
                departureMonitorDetailView = e.Data as IDepartureMonitorDetailView;
                actionProviderService.RegisterDrillDownAction(departureMonitorDetailView, WorkItem.Items.FindByType <DepartureMonitorActions>().First().DepartureMonitorDetailShowWarehouseDeparture, Imi.SupplyChain.ActivityMonitor.UX.Modules.Departure.ResourceManager.str_bd626d5e_63ca_4f60_b211_23bf73610d22_Caption, DepartureMonitorActions.DepartureMonitorDetailShowWarehouseDepartureOperation);
                departureMonitorDetailView.EnableDrillDown(new DrillDownArgs()
                {
                    FieldName = "DepartureId", Caption = Imi.SupplyChain.ActivityMonitor.UX.Modules.Departure.ResourceManager.str_bd626d5e_63ca_4f60_b211_23bf73610d22_Caption, ActionId = WorkItem.Items.FindByType <DepartureMonitorActions>().First().DepartureMonitorDetailShowWarehouseDeparture, Type = DrillDownType.JumpTo
                });
            };
        }
        public void OnChooseDefaultOutputManagerDialog(object sender, EventArgs args)
        {
            try
            {
                IChooseDefaultOutputManagerView chooseOutputManager = WorkItem.SmartParts.AddNew <ChooseDefaultOutputManagerView>();

                UXSettingsService settingsServiceLoad = WorkItem.Items.AddNew <UXSettingsService>("IChooseDefaultOutputManagerView");
                settingsServiceLoad.ContainerName = "IChooseDefaultOutputManagerView";
                settingsServiceLoad.AddProvider(chooseOutputManager, new ChooseDefaultOutputManagerSettingsProvider());
                settingsServiceLoad.LoadSettings();
                WorkItem.Items.Remove(settingsServiceLoad);

                if (chooseOutputManager.ShowDialog() == true)
                {
                    _OutputManagerUserSessionService.OutputManagerId = chooseOutputManager.SelectedOutputManagerId;

                    UXSettingsService settingsService = WorkItem.Items.AddNew <UXSettingsService>("IChooseDefaultOutputManagerView");
                    settingsService.ContainerName = "IChooseDefaultOutputManagerView";
                    settingsService.AddProvider(chooseOutputManager, new ChooseDefaultOutputManagerSettingsProvider());
                    settingsService.SaveSettings();
                    WorkItem.Items.Remove(settingsService);


                    EventTopic userSettingsTopic = WorkItem.EventTopics.Get(Imi.SupplyChain.UX.UXEventTopicNames.UserSettingsChangedTopic);

                    if (userSettingsTopic != null)
                    {
                        UserSettingsChangedEventArgs userSettingsChangedEventArgs = new UserSettingsChangedEventArgs(true);
                        userSettingsTopic.Fire(this, userSettingsChangedEventArgs, WorkItem, PublicationScope.Descendants);
                    }
                }
            }
            finally
            {
                if (_OutputManagerUserSessionService.OutputManagerId == null)
                {
                    ShellInteractionService.ShowMessageBox(LocalResources.ChangeUserSettings_Caption, LocalResources.ChangeUserSettings_Message, null, Imi.SupplyChain.UX.Infrastructure.MessageBoxButton.Ok, Imi.SupplyChain.UX.Infrastructure.MessageBoxImage.Warning);
                }
            }
        }
        protected override void BuildViews()
        {
            searchPanelView = WorkItem.SmartParts.AddNew <MovementMonitorSearchPanelView>();
            searchPanelView.RefreshDataOnShow = false;
            searchPanelView.IsVisible         = false;

            movementMonitorOverviewViewLoader                   = WorkItem.SmartParts.AddNew <DynamicViewLoader>("Imi.SupplyChain.ActivityMonitor.UX.Views.ActivityMonitor.IMovementMonitorOverviewView");
            movementMonitorOverviewViewLoader.ViewType          = typeof(MovementMonitorOverviewView);
            movementMonitorOverviewViewLoader.RefreshDataOnShow = false;
            if (parameters != null)
            {
                movementMonitorOverviewViewLoader.Update(parameters);
            }

            movementMonitorOverviewViewLoader.IsDetailView = false;
            movementMonitorOverviewViewLoader.Title        = Imi.SupplyChain.ActivityMonitor.UX.Modules.Movement.ResourceManager.str_c177bbdc_91be_40a0_8eb2_4b7c4537108e_Title;
            movementMonitorOverviewViewLoader.ViewLoaded  += (s, e) =>
            {
                movementMonitorOverviewView = e.Data as IMovementMonitorOverviewView;

                if (!string.IsNullOrEmpty(_favoriteId))
                {
                    UXSettingsService favoriteSettingsService = WorkItem.Items.AddNew <UXSettingsService>(_favoriteId);
                    favoriteSettingsService.ContainerName = _favoriteId;
                    favoriteSettingsService.AddProvider(movementMonitorOverviewView, new MovementMonitorControllerSettingsProvider());
                    favoriteSettingsService.LoadSettings();
                    WorkItem.Items.Remove(favoriteSettingsService);
                }
            };

            movementMonitorDataDetailViewLoader             = WorkItem.SmartParts.AddNew <DynamicViewLoader>("Imi.SupplyChain.ActivityMonitor.UX.Views.ActivityMonitor.IMovementMonitorDataDetailView");
            movementMonitorDataDetailViewLoader.ViewType    = typeof(MovementMonitorDataDetailView);
            movementMonitorDataDetailViewLoader.Title       = Imi.SupplyChain.ActivityMonitor.UX.Views.ActivityMonitor.ResourceManager.str_bff16481_1567_4d13_aece_77caa709314e_Title;
            movementMonitorDataDetailViewLoader.ViewLoaded += (s, e) =>
            {
                movementMonitorDataDetailView = e.Data as IMovementMonitorDataDetailView;
            };
        }
        protected override void BuildViews()
        {
            searchPanelView = WorkItem.SmartParts.AddNew <ReceiveMonitorSearchPanelView>();
            searchPanelView.RefreshDataOnShow = false;
            searchPanelView.IsVisible         = false;

            receiveMonitorOverviewViewLoader                   = WorkItem.SmartParts.AddNew <DynamicViewLoader>("Imi.SupplyChain.ActivityMonitor.UX.Views.ActivityMonitor.IReceiveMonitorOverviewView");
            receiveMonitorOverviewViewLoader.ViewType          = typeof(ReceiveMonitorOverviewView);
            receiveMonitorOverviewViewLoader.RefreshDataOnShow = false;
            if (parameters != null)
            {
                receiveMonitorOverviewViewLoader.Update(parameters);
            }

            receiveMonitorOverviewViewLoader.IsDetailView = false;
            receiveMonitorOverviewViewLoader.Title        = Imi.SupplyChain.ActivityMonitor.UX.Modules.Receive.ResourceManager.str_0759801e_9ba2_4f20_8383_5549a777f9ab_Title;
            receiveMonitorOverviewViewLoader.ViewLoaded  += (s, e) =>
            {
                receiveMonitorOverviewView = e.Data as IReceiveMonitorOverviewView;

                if (!string.IsNullOrEmpty(_favoriteId))
                {
                    UXSettingsService favoriteSettingsService = WorkItem.Items.AddNew <UXSettingsService>(_favoriteId);
                    favoriteSettingsService.ContainerName = _favoriteId;
                    favoriteSettingsService.AddProvider(receiveMonitorOverviewView, new ReceiveMonitorControllerSettingsProvider());
                    favoriteSettingsService.LoadSettings();
                    WorkItem.Items.Remove(favoriteSettingsService);
                }
            };

            receiveMonitorDataDetailViewLoader             = WorkItem.SmartParts.AddNew <DynamicViewLoader>("Imi.SupplyChain.ActivityMonitor.UX.Views.ActivityMonitor.IReceiveMonitorDataDetailView");
            receiveMonitorDataDetailViewLoader.ViewType    = typeof(ReceiveMonitorDataDetailView);
            receiveMonitorDataDetailViewLoader.Title       = Imi.SupplyChain.ActivityMonitor.UX.Views.ActivityMonitor.ResourceManager.str_cb503856_28ed_43a1_a1f3_e5cc4a00bfc8_Title;
            receiveMonitorDataDetailViewLoader.ViewLoaded += (s, e) =>
            {
                receiveMonitorDataDetailView = e.Data as IReceiveMonitorDataDetailView;
            };
        }
示例#7
0
        protected override void BuildViews()
        {
            searchPanelView = WorkItem.SmartParts.AddNew <OutboundStagingMonitorSearchPanelView>();
            searchPanelView.RefreshDataOnShow = false;
            searchPanelView.IsVisible         = false;

            outboundStagingMonitorOverviewViewLoader                   = WorkItem.SmartParts.AddNew <DynamicViewLoader>("Imi.SupplyChain.ActivityMonitor.UX.Views.ActivityMonitor.IOutboundStagingMonitorOverviewView");
            outboundStagingMonitorOverviewViewLoader.ViewType          = typeof(OutboundStagingMonitorOverviewView);
            outboundStagingMonitorOverviewViewLoader.RefreshDataOnShow = false;
            if (parameters != null)
            {
                outboundStagingMonitorOverviewViewLoader.Update(parameters);
            }

            outboundStagingMonitorOverviewViewLoader.IsDetailView = false;
            outboundStagingMonitorOverviewViewLoader.Title        = Imi.SupplyChain.ActivityMonitor.UX.Modules.OutboundStaging.ResourceManager.str_d1f71448_4043_40d7_b223_c7660c6a8e20_Title;
            outboundStagingMonitorOverviewViewLoader.ViewLoaded  += (s, e) =>
            {
                outboundStagingMonitorOverviewView = e.Data as IOutboundStagingMonitorOverviewView;

                if (!string.IsNullOrEmpty(_favoriteId))
                {
                    UXSettingsService favoriteSettingsService = WorkItem.Items.AddNew <UXSettingsService>(_favoriteId);
                    favoriteSettingsService.ContainerName = _favoriteId;
                    favoriteSettingsService.AddProvider(outboundStagingMonitorOverviewView, new OutboundStagingMonitorControllerSettingsProvider());
                    favoriteSettingsService.LoadSettings();
                    WorkItem.Items.Remove(favoriteSettingsService);
                }
            };

            outboundStagingMonitorDataDetailViewLoader             = WorkItem.SmartParts.AddNew <DynamicViewLoader>("Imi.SupplyChain.ActivityMonitor.UX.Views.ActivityMonitor.IOutboundStagingMonitorDataDetailView");
            outboundStagingMonitorDataDetailViewLoader.ViewType    = typeof(OutboundStagingMonitorDataDetailView);
            outboundStagingMonitorDataDetailViewLoader.Title       = Imi.SupplyChain.ActivityMonitor.UX.Views.ActivityMonitor.ResourceManager.str_897cffcd_7660_4f85_975f_d9317cabeef1_Title;
            outboundStagingMonitorDataDetailViewLoader.ViewLoaded += (s, e) =>
            {
                outboundStagingMonitorDataDetailView = e.Data as IOutboundStagingMonitorDataDetailView;
            };
        }
        protected override void BuildViews()
        {
            searchPanelView = WorkItem.SmartParts.AddNew <AssemblyMonitorSearchPanelView>();
            searchPanelView.RefreshDataOnShow = false;
            searchPanelView.IsVisible         = false;

            assemblyMonitorOverviewViewLoader                   = WorkItem.SmartParts.AddNew <DynamicViewLoader>("Imi.SupplyChain.ActivityMonitor.UX.Views.ActivityMonitor.IAssemblyMonitorOverviewView");
            assemblyMonitorOverviewViewLoader.ViewType          = typeof(AssemblyMonitorOverviewView);
            assemblyMonitorOverviewViewLoader.RefreshDataOnShow = false;
            if (parameters != null)
            {
                assemblyMonitorOverviewViewLoader.Update(parameters);
            }

            assemblyMonitorOverviewViewLoader.IsDetailView = false;
            assemblyMonitorOverviewViewLoader.Title        = Imi.SupplyChain.ActivityMonitor.UX.Modules.LightAssembly.ResourceManager.str_607b9c40_8433_47ff_87f0_6b7dfac9739a_Title;
            assemblyMonitorOverviewViewLoader.ViewLoaded  += (s, e) =>
            {
                assemblyMonitorOverviewView = e.Data as IAssemblyMonitorOverviewView;

                if (!string.IsNullOrEmpty(_favoriteId))
                {
                    UXSettingsService favoriteSettingsService = WorkItem.Items.AddNew <UXSettingsService>(_favoriteId);
                    favoriteSettingsService.ContainerName = _favoriteId;
                    favoriteSettingsService.AddProvider(assemblyMonitorOverviewView, new AssemblyMonitorControllerSettingsProvider());
                    favoriteSettingsService.LoadSettings();
                    WorkItem.Items.Remove(favoriteSettingsService);
                }
            };

            assemblyMonitorDataDetailViewLoader             = WorkItem.SmartParts.AddNew <DynamicViewLoader>("Imi.SupplyChain.ActivityMonitor.UX.Views.ActivityMonitor.IAssemblyMonitorDataDetailView");
            assemblyMonitorDataDetailViewLoader.ViewType    = typeof(AssemblyMonitorDataDetailView);
            assemblyMonitorDataDetailViewLoader.Title       = Imi.SupplyChain.ActivityMonitor.UX.Views.ActivityMonitor.ResourceManager.str_9d57f38f_d712_4e56_a4bf_6b6bc5be301d_Title;
            assemblyMonitorDataDetailViewLoader.ViewLoaded += (s, e) =>
            {
                assemblyMonitorDataDetailView = e.Data as IAssemblyMonitorDataDetailView;
            };
        }
示例#9
0
        protected override void BuildViews()
        {
            searchPanelView = WorkItem.SmartParts.AddNew <CasePickMonitorSearchPanelView>();
            searchPanelView.RefreshDataOnShow = false;
            searchPanelView.IsVisible         = false;

            casePickMonitorOverviewViewLoader                   = WorkItem.SmartParts.AddNew <DynamicViewLoader>("Imi.SupplyChain.ActivityMonitor.UX.Views.ActivityMonitor.ICasePickMonitorOverviewView");
            casePickMonitorOverviewViewLoader.ViewType          = typeof(CasePickMonitorOverviewView);
            casePickMonitorOverviewViewLoader.RefreshDataOnShow = false;
            if (parameters != null)
            {
                casePickMonitorOverviewViewLoader.Update(parameters);
            }

            casePickMonitorOverviewViewLoader.IsDetailView = false;
            casePickMonitorOverviewViewLoader.Title        = Imi.SupplyChain.ActivityMonitor.UX.Modules.CasePick.ResourceManager.str_24cd9629_716f_4e53_9969_22f7a444c534_Title;
            casePickMonitorOverviewViewLoader.ViewLoaded  += (s, e) =>
            {
                casePickMonitorOverviewView = e.Data as ICasePickMonitorOverviewView;

                if (!string.IsNullOrEmpty(_favoriteId))
                {
                    UXSettingsService favoriteSettingsService = WorkItem.Items.AddNew <UXSettingsService>(_favoriteId);
                    favoriteSettingsService.ContainerName = _favoriteId;
                    favoriteSettingsService.AddProvider(casePickMonitorOverviewView, new CasePickMonitorControllerSettingsProvider());
                    favoriteSettingsService.LoadSettings();
                    WorkItem.Items.Remove(favoriteSettingsService);
                }
            };

            casePickMonitorDataDetailViewLoader             = WorkItem.SmartParts.AddNew <DynamicViewLoader>("Imi.SupplyChain.ActivityMonitor.UX.Views.ActivityMonitor.ICasePickMonitorDataDetailView");
            casePickMonitorDataDetailViewLoader.ViewType    = typeof(CasePickMonitorDataDetailView);
            casePickMonitorDataDetailViewLoader.Title       = Imi.SupplyChain.ActivityMonitor.UX.Views.ActivityMonitor.ResourceManager.str_1e68c425_2a36_4e9d_a074_8927a5b6c881_Title;
            casePickMonitorDataDetailViewLoader.ViewLoaded += (s, e) =>
            {
                casePickMonitorDataDetailView = e.Data as ICasePickMonitorDataDetailView;
            };
        }
        protected override void BuildViews()
        {
            searchPanelView = WorkItem.SmartParts.AddNew <LoadingMonitorSearchPanelView>();
            searchPanelView.RefreshDataOnShow = false;
            searchPanelView.IsVisible         = false;

            loadingMonitorOverviewViewLoader                   = WorkItem.SmartParts.AddNew <DynamicViewLoader>("Imi.SupplyChain.ActivityMonitor.UX.Views.ActivityMonitor.ILoadingMonitorOverviewView");
            loadingMonitorOverviewViewLoader.ViewType          = typeof(LoadingMonitorOverviewView);
            loadingMonitorOverviewViewLoader.RefreshDataOnShow = false;
            if (parameters != null)
            {
                loadingMonitorOverviewViewLoader.Update(parameters);
            }

            loadingMonitorOverviewViewLoader.IsDetailView = false;
            loadingMonitorOverviewViewLoader.Title        = Imi.SupplyChain.ActivityMonitor.UX.Modules.Loading.ResourceManager.str_2b50c1d8_19fe_41dc_ba6b_05e86c87a9d8_Title;
            loadingMonitorOverviewViewLoader.ViewLoaded  += (s, e) =>
            {
                loadingMonitorOverviewView = e.Data as ILoadingMonitorOverviewView;

                if (!string.IsNullOrEmpty(_favoriteId))
                {
                    UXSettingsService favoriteSettingsService = WorkItem.Items.AddNew <UXSettingsService>(_favoriteId);
                    favoriteSettingsService.ContainerName = _favoriteId;
                    favoriteSettingsService.AddProvider(loadingMonitorOverviewView, new LoadingMonitorControllerSettingsProvider());
                    favoriteSettingsService.LoadSettings();
                    WorkItem.Items.Remove(favoriteSettingsService);
                }
            };

            loadingMonitorDataDetailViewLoader             = WorkItem.SmartParts.AddNew <DynamicViewLoader>("Imi.SupplyChain.ActivityMonitor.UX.Views.ActivityMonitor.ILoadingMonitorDataDetailView");
            loadingMonitorDataDetailViewLoader.ViewType    = typeof(LoadingMonitorDataDetailView);
            loadingMonitorDataDetailViewLoader.Title       = Imi.SupplyChain.ActivityMonitor.UX.Views.ActivityMonitor.ResourceManager.str_5bb4b3f1_c5f6_4ea0_8690_1be5827c7e4b_Title;
            loadingMonitorDataDetailViewLoader.ViewLoaded += (s, e) =>
            {
                loadingMonitorDataDetailView = e.Data as ILoadingMonitorDataDetailView;
            };
        }
        protected override void BuildViews()
        {
            searchPanelView = WorkItem.SmartParts.AddNew <PackMonitorSearchPanelView>();
            searchPanelView.RefreshDataOnShow = false;
            searchPanelView.IsVisible         = false;

            packMonitorOverviewViewLoader                   = WorkItem.SmartParts.AddNew <DynamicViewLoader>("Imi.SupplyChain.ActivityMonitor.UX.Views.ActivityMonitor.IPackMonitorOverviewView");
            packMonitorOverviewViewLoader.ViewType          = typeof(PackMonitorOverviewView);
            packMonitorOverviewViewLoader.RefreshDataOnShow = false;
            if (parameters != null)
            {
                packMonitorOverviewViewLoader.Update(parameters);
            }

            packMonitorOverviewViewLoader.IsDetailView = false;
            packMonitorOverviewViewLoader.Title        = Imi.SupplyChain.ActivityMonitor.UX.Modules.Pack.ResourceManager.str_37b749b8_18c9_498b_abc8_3d0ee722bd93_Title;
            packMonitorOverviewViewLoader.ViewLoaded  += (s, e) =>
            {
                packMonitorOverviewView = e.Data as IPackMonitorOverviewView;

                if (!string.IsNullOrEmpty(_favoriteId))
                {
                    UXSettingsService favoriteSettingsService = WorkItem.Items.AddNew <UXSettingsService>(_favoriteId);
                    favoriteSettingsService.ContainerName = _favoriteId;
                    favoriteSettingsService.AddProvider(packMonitorOverviewView, new PackMonitorControllerSettingsProvider());
                    favoriteSettingsService.LoadSettings();
                    WorkItem.Items.Remove(favoriteSettingsService);
                }
            };

            packMonitorDataDetailViewLoader             = WorkItem.SmartParts.AddNew <DynamicViewLoader>("Imi.SupplyChain.ActivityMonitor.UX.Views.ActivityMonitor.IPackMonitorDataDetailView");
            packMonitorDataDetailViewLoader.ViewType    = typeof(PackMonitorDataDetailView);
            packMonitorDataDetailViewLoader.Title       = Imi.SupplyChain.ActivityMonitor.UX.Views.ActivityMonitor.ResourceManager.str_08aaca54_f7a9_4897_8134_67427bea5459_Title;
            packMonitorDataDetailViewLoader.ViewLoaded += (s, e) =>
            {
                packMonitorDataDetailView = e.Data as IPackMonitorDataDetailView;
            };
        }
示例#12
0
        protected override void BuildViews()
        {
            searchPanelView = WorkItem.SmartParts.AddNew <PickPaceMonitorSearchPanelView>();
            searchPanelView.RefreshDataOnShow = false;
            searchPanelView.IsVisible         = false;

            pickPaceMonitorOverviewViewLoader                   = WorkItem.SmartParts.AddNew <DynamicViewLoader>("Imi.SupplyChain.ActivityMonitor.UX.Views.ActivityMonitor.IPickPaceMonitorOverviewView");
            pickPaceMonitorOverviewViewLoader.ViewType          = typeof(PickPaceMonitorOverviewView);
            pickPaceMonitorOverviewViewLoader.RefreshDataOnShow = false;
            if (parameters != null)
            {
                pickPaceMonitorOverviewViewLoader.Update(parameters);
            }

            pickPaceMonitorOverviewViewLoader.IsDetailView = false;
            pickPaceMonitorOverviewViewLoader.Title        = Imi.SupplyChain.ActivityMonitor.UX.Modules.PickPace.ResourceManager.str_121ad164_ddc9_495b_a470_c8b6a9e55001_Title;
            pickPaceMonitorOverviewViewLoader.ViewLoaded  += (s, e) =>
            {
                pickPaceMonitorOverviewView = e.Data as IPickPaceMonitorOverviewView;

                if (!string.IsNullOrEmpty(_favoriteId))
                {
                    UXSettingsService favoriteSettingsService = WorkItem.Items.AddNew <UXSettingsService>(_favoriteId);
                    favoriteSettingsService.ContainerName = _favoriteId;
                    favoriteSettingsService.AddProvider(pickPaceMonitorOverviewView, new PickPaceMonitorControllerSettingsProvider());
                    favoriteSettingsService.LoadSettings();
                    WorkItem.Items.Remove(favoriteSettingsService);
                }
            };

            pickPaceMonitorDetailViewLoader             = WorkItem.SmartParts.AddNew <DynamicViewLoader>("Imi.SupplyChain.ActivityMonitor.UX.Views.ActivityMonitor.IPickPaceMonitorDetailView");
            pickPaceMonitorDetailViewLoader.ViewType    = typeof(PickPaceMonitorDetailView);
            pickPaceMonitorDetailViewLoader.Title       = Imi.SupplyChain.ActivityMonitor.UX.Views.ActivityMonitor.ResourceManager.str_486bcfcc_6cd6_4e65_a5c6_5a6b7a7ae67a_Title;
            pickPaceMonitorDetailViewLoader.ViewLoaded += (s, e) =>
            {
                pickPaceMonitorDetailView = e.Data as IPickPaceMonitorDetailView;
            };
        }