using System; using System.Text; using System.Collections.Generic; using System.Data; using System.Runtime.Serialization; using System.ComponentModel.DataAnnotations; namespace IStation.Model { /// /// 菜单 /// public partial class Menu : System.ICloneable { /// /// /// public Menu() { } /// /// /// public Menu(Menu rhs) { this.ID = rhs.ID; this.SoftType = rhs.SoftType; this.SoftTag = rhs.SoftTag; this.ParentIds = rhs.ParentIds?.ToList(); this.Name = rhs.Name; this.Type = rhs.Type; this.Icon = rhs.Icon; this.Router = rhs.Router; this.Component = rhs.Component; this.Permission = rhs.Permission; this.OpenType = rhs.OpenType; this.Visible = rhs.Visible; this.Link = rhs.Link; this.Redirect = rhs.Redirect; this.Weight = rhs.Weight; this.Paras = rhs.Paras == null ? null : new Dictionary(rhs.Paras); this.TagName = rhs.TagName; this.SortCode = rhs.SortCode; this.UseStatus = rhs.UseStatus; this.Description = rhs.Description; this.CreateUserID = rhs.CreateUserID; this.CreateTime = rhs.CreateTime; this.UpdateTime = rhs.UpdateTime; this.UpdateUserID = rhs.UpdateUserID; } /// /// /// public void Reset(Menu rhs) { this.ID = rhs.ID; this.SoftType = rhs.SoftType; this.SoftTag = rhs.SoftTag; this.ParentIds = rhs.ParentIds?.ToList(); this.Name = rhs.Name; this.Type = rhs.Type; this.Icon = rhs.Icon; this.Router = rhs.Router; this.Component = rhs.Component; this.Permission = rhs.Permission; this.OpenType = rhs.OpenType; this.Visible = rhs.Visible; this.Link = rhs.Link; this.Redirect = rhs.Redirect; this.Weight = rhs.Weight; this.Paras = rhs.Paras == null ? null : new Dictionary(rhs.Paras); this.TagName = rhs.TagName; this.SortCode = rhs.SortCode; this.UseStatus = rhs.UseStatus; this.Description = rhs.Description; this.CreateUserID = rhs.CreateUserID; this.CreateTime = rhs.CreateTime; this.UpdateTime = rhs.UpdateTime; this.UpdateUserID = rhs.UpdateUserID; } /// /// 标识 /// public long ID { get; set; } /// /// 类型 /// public string SoftType { get; set; } /// /// 标签 /// public string SoftTag { get; set; } /// /// 父节点标识 /// public List ParentIds { get; set; } /// /// 名称 /// public string Name { get; set; } /// /// 字典 (1 模块 2 目录 3 菜单 4按钮) /// public int Type { get; set; } /// /// 图标 /// public string Icon { get; set; } /// /// 路由地址 /// public string Router { get; set; } /// /// 组件地址 /// public string Component { get; set; } /// /// 权限标识 /// public string Permission { get; set; } /// /// 打开方式(字典 0无 1组件 2内链 3外链) /// public int OpenType { get; set; } /// /// 是否可见 /// public bool Visible { get; set; } /// /// 内链地址 /// public string Link { get; set; } /// /// 重定向地址 /// public string Redirect { get; set; } /// /// 权重(字典 1系统权重 2业务权重) /// public int Weight { get; set; } /// /// 参数 /// public Dictionary Paras { get; set; } /// /// 标签名称 /// public string TagName { get; set; } /// /// 排序 /// public int SortCode { get; set; } /// /// 使用状态 /// public eUseStatus UseStatus { get; set; } /// /// 说明 /// public string Description { get; set; } /// /// 创建用户标识 /// public long CreateUserID { get; set; } /// /// 创建时间 /// public DateTime CreateTime { get; set; } /// /// 更新用户标识 /// public long? UpdateUserID { get; set; } /// /// 更新时间 /// public DateTime? UpdateTime { get; set; } /// /// /// public Menu Clone() { return (Menu)this.MemberwiseClone(); } object ICloneable.Clone() { return this.MemberwiseClone(); } } }