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
{
///
/// 导航服务类
///
public class NavigationServices
{
public NavigationServices()
{
NavItemDtos = new ObservableCollection()
{
// 看板导航项
new NavItemDto()
{
Name = "Dashboard",
CmdPar = "Dashboard",
Icon = "\ued78",
IsParent = false,
},
// 生产管理导航项(父级) - 新增测试导航
new NavItemDto()
{
Name = "数据管理",
CmdPar = "",
Icon = "\ue62c",
IsParent = true,
ChildrenNavItemDtos = new ObservableCollection()
{
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()
{
// 系统设置的子项
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()
// {
// new NavItemDto()
// {
// Name = "生产计划",
// CmdPar = "生产计划",
// Icon = "\ue650",
// IsParent = false,
// },
// new NavItemDto()
// {
// Name = "工艺参数",
// CmdPar = "工艺参数",
// Icon = "\ue650",
// IsParent = false,
// }
// }
//}
};
}
///
/// 导航服务类集合数据
///
public ObservableCollection NavItemDtos { get; set; }
}
}