2024-03-11 05:12:02 +00:00
|
|
|
|
using InSituLaboratory.Base;
|
|
|
|
|
|
using InSituLaboratory.IService;
|
2024-03-26 07:22:15 +00:00
|
|
|
|
using InSituLaboratory.IService.History;
|
2024-03-11 05:12:02 +00:00
|
|
|
|
using InSituLaboratory.ORM;
|
|
|
|
|
|
using InSituLaboratory.Service;
|
2024-03-26 07:22:15 +00:00
|
|
|
|
using InSituLaboratory.Service.History;
|
2024-03-11 05:12:02 +00:00
|
|
|
|
using InSituLaboratory.Views;
|
|
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
|
using Prism.Ioc;
|
|
|
|
|
|
using Prism.Regions;
|
|
|
|
|
|
using Prism.Unity;
|
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
|
using System.Configuration;
|
|
|
|
|
|
using System.Data;
|
|
|
|
|
|
using System.Windows;
|
|
|
|
|
|
|
|
|
|
|
|
namespace InSituLaboratory
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Interaction logic for App.xaml
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public partial class App : PrismApplication
|
|
|
|
|
|
{
|
|
|
|
|
|
protected override Window CreateShell()
|
|
|
|
|
|
{
|
|
|
|
|
|
return Container.Resolve<MainView>();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
protected override void InitializeShell(Window shell)
|
|
|
|
|
|
{
|
|
|
|
|
|
base.InitializeShell(shell);
|
|
|
|
|
|
|
|
|
|
|
|
Container.Resolve<IRegionManager>().RegisterViewWithRegion("MainRegion", "DashboardView");
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
protected override void RegisterTypes(IContainerRegistry containerRegistry)
|
|
|
|
|
|
{
|
|
|
|
|
|
containerRegistry.RegisterDialog<LoginView>();
|
|
|
|
|
|
containerRegistry.RegisterDialogWindow<DialogWindowEx>();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 注册相关的实体
|
|
|
|
|
|
containerRegistry.RegisterSingleton<DbContext, NoimptyDbContext>();
|
|
|
|
|
|
containerRegistry.Register<IUserService, UserService>();
|
|
|
|
|
|
containerRegistry.Register<IMenuService, MenuService>();
|
|
|
|
|
|
containerRegistry.Register<IRoleService, RoleService>();
|
2024-03-15 02:27:50 +00:00
|
|
|
|
containerRegistry.Register<ICavityOperationService, CavityOperationService>();
|
2024-03-26 07:22:15 +00:00
|
|
|
|
containerRegistry.Register<ICavityEnvironmentService, CavityEnvironmentService>();
|
|
|
|
|
|
containerRegistry.Register<ICavityOtputFeedBackService, CavityOtputFeedBackService>();
|
|
|
|
|
|
containerRegistry.Register<ICavityOtputStatusService, CavityOtputStatusService>();
|
|
|
|
|
|
containerRegistry.Register<ICavityOutputCurrentService, CavityOutputCurrentService>();
|
|
|
|
|
|
containerRegistry.Register<ICavityEnergyConversionService, CavityEnergyConversionService>();
|
|
|
|
|
|
containerRegistry.Register<ICavityBatteryLevelService, CavityBatteryLevelService>();
|
2024-04-09 08:17:44 +00:00
|
|
|
|
containerRegistry.Register<ISysSequentialService, SysSequentialService>();
|
|
|
|
|
|
containerRegistry.Register<IDeviceSvice, DeviceService>();
|
2024-03-11 05:12:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
containerRegistry.RegisterForNavigation<Views.Pages.DashboardView>();
|
|
|
|
|
|
containerRegistry.RegisterForNavigation<Views.Pages.MenuManagementView>();
|
|
|
|
|
|
containerRegistry.RegisterForNavigation<Views.Pages.UserManagementView>();
|
|
|
|
|
|
containerRegistry.RegisterForNavigation<Views.Pages.RoleView>();
|
2024-03-27 13:49:16 +00:00
|
|
|
|
containerRegistry.RegisterForNavigation<Views.Pages.SequentialDistributionView>();
|
2024-03-22 07:12:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
2024-03-26 07:22:15 +00:00
|
|
|
|
containerRegistry.RegisterForNavigation<Views.Pages.History.CavityOperationView>();
|
|
|
|
|
|
containerRegistry.RegisterForNavigation<Views.Pages.History.CavityEnvironmentView>();
|
|
|
|
|
|
containerRegistry.RegisterForNavigation<Views.Pages.History.CavityOtputFeedBackView>();
|
|
|
|
|
|
containerRegistry.RegisterForNavigation<Views.Pages.History.CavityOutputStatusView>();
|
|
|
|
|
|
containerRegistry.RegisterForNavigation<Views.Pages.History.CavityOtputCurrentView>();
|
|
|
|
|
|
containerRegistry.RegisterForNavigation<Views.Pages.History.CavityEnergyConversionView>();
|
|
|
|
|
|
containerRegistry.RegisterForNavigation<Views.Pages.History.CavityBatteryLevelView>();
|
2024-03-11 05:12:02 +00:00
|
|
|
|
|
|
|
|
|
|
containerRegistry.RegisterDialog<Views.Pages.Dialogs.ModifyMenuView>();
|
|
|
|
|
|
containerRegistry.RegisterDialog<Views.Pages.Dialogs.ModifyUserView>();
|
|
|
|
|
|
containerRegistry.RegisterDialog<Views.Pages.Dialogs.ModifyPasswordView>();
|
|
|
|
|
|
containerRegistry.RegisterDialog<Views.Pages.Dialogs.ModifyRoleView>();
|
|
|
|
|
|
containerRegistry.RegisterDialog<Views.Pages.Dialogs.SelectUserView>();
|
|
|
|
|
|
containerRegistry.RegisterDialog<Views.Pages.Dialogs.SelectRoleView>();
|
2024-03-27 13:49:16 +00:00
|
|
|
|
containerRegistry.RegisterDialog<Views.Pages.Dialogs.ModifySequentialView>();
|
2024-03-11 05:12:02 +00:00
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|