|
|
@@ -98,74 +98,31 @@ namespace BPASmartClient.Academy |
|
|
|
private void MenuInit() |
|
|
|
{ |
|
|
|
#region 配方管理菜单 |
|
|
|
ObservableCollection<SubMenumodel> RecipeManage = new ObservableCollection<SubMenumodel>(); |
|
|
|
RecipeManage.Add(new SubMenumodel() |
|
|
|
{ |
|
|
|
SubMenuName = "配方管理", |
|
|
|
SubMenuPermission = new Permission[] { Permission.管理员, Permission.操作员, Permission.观察员, Permission.技术员 }, |
|
|
|
AssemblyName = "BPASmartClient.Academy", |
|
|
|
ToggleWindowPath = "View.RecipeSettingsView" |
|
|
|
}); |
|
|
|
|
|
|
|
RecipeManage.Add(new SubMenumodel() |
|
|
|
{ |
|
|
|
SubMenuName = "配方下发", |
|
|
|
SubMenuPermission = new Permission[] { Permission.管理员, Permission.操作员, Permission.观察员, Permission.技术员 }, |
|
|
|
AssemblyName = "BPASmartClient.Academy", |
|
|
|
ToggleWindowPath = "View.RecipeControlView" |
|
|
|
}); |
|
|
|
|
|
|
|
MenuManage.GetInstance.menuModels.Add(new MenuModel() |
|
|
|
{ |
|
|
|
MainMenuIcon = "", |
|
|
|
MainMenuPermission = new Permission[] { Permission.管理员, Permission.操作员, Permission.观察员, Permission.技术员 }, |
|
|
|
MainMenuName = "配方管理", |
|
|
|
Alias = "Recipe Management", |
|
|
|
subMenumodels = RecipeManage, |
|
|
|
}); |
|
|
|
#endregion |
|
|
|
|
|
|
|
#region 消息日志 |
|
|
|
ObservableCollection<SubMenumodel> InfoLog = new ObservableCollection<SubMenumodel>(); |
|
|
|
InfoLog.Add(new SubMenumodel() |
|
|
|
{ |
|
|
|
SubMenuName = "操作日志", |
|
|
|
SubMenuPermission = new Permission[] { Permission.管理员, Permission.操作员, Permission.观察员, Permission.技术员 }, |
|
|
|
AssemblyName = "BPASmartClient.CustomResource", |
|
|
|
ToggleWindowPath = "Pages.View.UserLogView" |
|
|
|
}); |
|
|
|
|
|
|
|
InfoLog.Add(new SubMenumodel() |
|
|
|
{ |
|
|
|
SubMenuName = "运行日志", |
|
|
|
SubMenuPermission = new Permission[] { Permission.管理员, Permission.操作员, Permission.观察员, Permission.技术员 }, |
|
|
|
AssemblyName = "BPASmartClient.CustomResource", |
|
|
|
ToggleWindowPath = "Pages.View.RunLogView" |
|
|
|
}); |
|
|
|
|
|
|
|
InfoLog.Add(new SubMenumodel() |
|
|
|
{ |
|
|
|
SubMenuName = "报警记录", |
|
|
|
SubMenuPermission = new Permission[] { Permission.管理员, Permission.操作员, Permission.观察员, Permission.技术员 }, |
|
|
|
AssemblyName = "BPASmartClient.CustomResource", |
|
|
|
ToggleWindowPath = "Pages.View.AlarmView" |
|
|
|
}); |
|
|
|
|
|
|
|
InfoLog.Add(new SubMenumodel() |
|
|
|
{ |
|
|
|
SubMenuName = "调试日志", |
|
|
|
SubMenuPermission = new Permission[] { Permission.管理员, Permission.操作员, Permission.观察员, Permission.技术员 }, |
|
|
|
AssemblyName = "BPASmartClient.CustomResource", |
|
|
|
ToggleWindowPath = "Pages.View.DebugLogView" |
|
|
|
}); |
|
|
|
MenuManage.GetInstance.menuModels.Add(new MenuModel() |
|
|
|
{ |
|
|
|
MainMenuIcon = "", |
|
|
|
MainMenuName = "消息日志", |
|
|
|
MainMenuPermission = new Permission[] { Permission.管理员, Permission.操作员, Permission.观察员, Permission.技术员 }, |
|
|
|
Alias = "Message Log", |
|
|
|
subMenumodels = InfoLog, |
|
|
|
}); |
|
|
|
//ObservableCollection<SubMenumodel> RecipeManage = new ObservableCollection<SubMenumodel>(); |
|
|
|
//RecipeManage.Add(new SubMenumodel() |
|
|
|
//{ |
|
|
|
// SubMenuName = "配方管理", |
|
|
|
// SubMenuPermission = new Permission[] { Permission.管理员, Permission.操作员, Permission.观察员, Permission.技术员 }, |
|
|
|
// AssemblyName = "BPASmartClient.Academy", |
|
|
|
// ToggleWindowPath = "View.RecipeSettingsView" |
|
|
|
//}); |
|
|
|
|
|
|
|
//RecipeManage.Add(new SubMenumodel() |
|
|
|
//{ |
|
|
|
// SubMenuName = "配方下发", |
|
|
|
// SubMenuPermission = new Permission[] { Permission.管理员, Permission.操作员, Permission.观察员, Permission.技术员 }, |
|
|
|
// AssemblyName = "BPASmartClient.Academy", |
|
|
|
// ToggleWindowPath = "View.RecipeControlView" |
|
|
|
//}); |
|
|
|
|
|
|
|
//MenuManage.GetInstance.menuModels.Add(new MenuModel() |
|
|
|
//{ |
|
|
|
// MainMenuIcon = "", |
|
|
|
// MainMenuPermission = new Permission[] { Permission.管理员, Permission.操作员, Permission.观察员, Permission.技术员 }, |
|
|
|
// MainMenuName = "配方管理", |
|
|
|
// Alias = "Recipe Management", |
|
|
|
// subMenumodels = RecipeManage, |
|
|
|
//}); |
|
|
|
#endregion |
|
|
|
|
|
|
|
#region 硬件设备监控 |
|
|
@@ -234,6 +191,49 @@ namespace BPASmartClient.Academy |
|
|
|
subMenumodels = UserManager, |
|
|
|
}); |
|
|
|
#endregion |
|
|
|
|
|
|
|
#region 消息日志 |
|
|
|
ObservableCollection<SubMenumodel> InfoLog = new ObservableCollection<SubMenumodel>(); |
|
|
|
InfoLog.Add(new SubMenumodel() |
|
|
|
{ |
|
|
|
SubMenuName = "操作日志", |
|
|
|
SubMenuPermission = new Permission[] { Permission.管理员, Permission.操作员, Permission.观察员, Permission.技术员 }, |
|
|
|
AssemblyName = "BPASmartClient.CustomResource", |
|
|
|
ToggleWindowPath = "Pages.View.UserLogView" |
|
|
|
}); |
|
|
|
|
|
|
|
InfoLog.Add(new SubMenumodel() |
|
|
|
{ |
|
|
|
SubMenuName = "运行日志", |
|
|
|
SubMenuPermission = new Permission[] { Permission.管理员, Permission.操作员, Permission.观察员, Permission.技术员 }, |
|
|
|
AssemblyName = "BPASmartClient.CustomResource", |
|
|
|
ToggleWindowPath = "Pages.View.RunLogView" |
|
|
|
}); |
|
|
|
|
|
|
|
InfoLog.Add(new SubMenumodel() |
|
|
|
{ |
|
|
|
SubMenuName = "报警记录", |
|
|
|
SubMenuPermission = new Permission[] { Permission.管理员, Permission.操作员, Permission.观察员, Permission.技术员 }, |
|
|
|
AssemblyName = "BPASmartClient.CustomResource", |
|
|
|
ToggleWindowPath = "Pages.View.AlarmView" |
|
|
|
}); |
|
|
|
|
|
|
|
InfoLog.Add(new SubMenumodel() |
|
|
|
{ |
|
|
|
SubMenuName = "调试日志", |
|
|
|
SubMenuPermission = new Permission[] { Permission.管理员, Permission.操作员, Permission.观察员, Permission.技术员 }, |
|
|
|
AssemblyName = "BPASmartClient.CustomResource", |
|
|
|
ToggleWindowPath = "Pages.View.DebugLogView" |
|
|
|
}); |
|
|
|
MenuManage.GetInstance.menuModels.Add(new MenuModel() |
|
|
|
{ |
|
|
|
MainMenuIcon = "", |
|
|
|
MainMenuName = "消息日志", |
|
|
|
MainMenuPermission = new Permission[] { Permission.管理员, Permission.操作员, Permission.观察员, Permission.技术员 }, |
|
|
|
Alias = "Message Log", |
|
|
|
subMenumodels = InfoLog, |
|
|
|
}); |
|
|
|
#endregion |
|
|
|
} |
|
|
|
|
|
|
|
private void DataInit() |
|
|
|