251029
This commit is contained in:
165
FATrace.WPLApp/Services/NavigationServices.cs
Normal file
165
FATrace.WPLApp/Services/NavigationServices.cs
Normal file
@@ -0,0 +1,165 @@
|
||||
using FATrace.WPLApp.ModelDto;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FATrace.WPLApp.Services
|
||||
{
|
||||
/// <summary>
|
||||
/// 导航服务类
|
||||
/// </summary>
|
||||
public class NavigationServices
|
||||
{
|
||||
public NavigationServices()
|
||||
{
|
||||
NavItemDtos = new ObservableCollection<NavItemDto>()
|
||||
{
|
||||
// 看板导航项
|
||||
new NavItemDto()
|
||||
{
|
||||
Name = "Dashboard",
|
||||
CmdPar = "Dashboard",
|
||||
Icon = "\ued78",
|
||||
IsParent = false,
|
||||
},
|
||||
|
||||
// 工艺监控导航项(父级)
|
||||
new NavItemDto()
|
||||
{
|
||||
Name = "工艺监控",
|
||||
CmdPar = "",
|
||||
Icon = "\uea12",
|
||||
IsParent = true,
|
||||
ChildrenNavItemDtos = new ObservableCollection<NavItemDto>()
|
||||
{
|
||||
// 基础数据的子项
|
||||
new NavItemDto()
|
||||
{
|
||||
Name = "3D工艺流程",
|
||||
CmdPar = "3D工艺流程",
|
||||
Icon = "\uee12",
|
||||
IsParent = false,
|
||||
},
|
||||
new NavItemDto()
|
||||
{
|
||||
Name = "管道线路",
|
||||
CmdPar = "管道线路",
|
||||
Icon = "\ue650",
|
||||
IsParent = false,
|
||||
},
|
||||
}
|
||||
},
|
||||
|
||||
// 生产管理导航项(父级) - 新增测试导航
|
||||
new NavItemDto()
|
||||
{
|
||||
Name = "数据管理",
|
||||
CmdPar = "",
|
||||
Icon = "\ue62c",
|
||||
IsParent = true,
|
||||
ChildrenNavItemDtos = new ObservableCollection<NavItemDto>()
|
||||
{
|
||||
new NavItemDto()
|
||||
{
|
||||
Name = "报表数据",
|
||||
CmdPar = "报表数据",
|
||||
Icon = "\uec55",
|
||||
IsParent = false,
|
||||
},
|
||||
new NavItemDto()
|
||||
{
|
||||
Name = "原料使用查询",
|
||||
CmdPar = "原料使用查询",
|
||||
Icon = "\ue62c",
|
||||
IsParent = false,
|
||||
},
|
||||
new NavItemDto()
|
||||
{
|
||||
Name = "原料入库查询",
|
||||
CmdPar = "原料入库查询",
|
||||
Icon = "\uec55",
|
||||
IsParent = false,
|
||||
},
|
||||
new NavItemDto()
|
||||
{
|
||||
Name = "历史报警",
|
||||
CmdPar = "历史报警",
|
||||
Icon = "\uec60;",
|
||||
IsParent = false,
|
||||
},
|
||||
}
|
||||
},
|
||||
|
||||
// 系统设置导航项(父级)
|
||||
new NavItemDto()
|
||||
{
|
||||
Name = "系统",
|
||||
CmdPar = "",
|
||||
Icon = "\ue62b",
|
||||
IsParent = true,
|
||||
ChildrenNavItemDtos = new ObservableCollection<NavItemDto>()
|
||||
{
|
||||
// 系统设置的子项
|
||||
new NavItemDto()
|
||||
{
|
||||
Name = "日志信息",
|
||||
CmdPar = "日志信息",
|
||||
Icon = "\uec46",
|
||||
IsParent = false,
|
||||
},
|
||||
// 系统设置的子项
|
||||
new NavItemDto()
|
||||
{
|
||||
Name = "用户登录",
|
||||
CmdPar = "用户登录",
|
||||
Icon = "\ueb22",
|
||||
IsParent = false,
|
||||
},
|
||||
new NavItemDto()
|
||||
{
|
||||
Name = "使用手册",
|
||||
CmdPar = "使用手册",
|
||||
Icon = "\ue8c3",
|
||||
IsParent = false,
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
//// 生产管理导航项(父级) - 新增测试导航
|
||||
//new NavItemDto()
|
||||
//{
|
||||
// Name = "生产管理",
|
||||
// CmdPar = "",
|
||||
// Icon = "\ue650",
|
||||
// IsParent = true,
|
||||
// ChildrenNavItemDtos = new ObservableCollection<NavItemDto>()
|
||||
// {
|
||||
// new NavItemDto()
|
||||
// {
|
||||
// Name = "生产计划",
|
||||
// CmdPar = "生产计划",
|
||||
// Icon = "\ue650",
|
||||
// IsParent = false,
|
||||
// },
|
||||
// new NavItemDto()
|
||||
// {
|
||||
// Name = "工艺参数",
|
||||
// CmdPar = "工艺参数",
|
||||
// Icon = "\ue650",
|
||||
// IsParent = false,
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
};
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 导航服务类集合数据
|
||||
/// </summary>
|
||||
public ObservableCollection<NavItemDto> NavItemDtos { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user