You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

154 lines
5.0 KiB
C#

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using System;
using System.Collections.Generic;
using System.Web;
namespace DSWeb.Models
{
/// <summary>
/// 功能模块表
/// </summary>
public class ModuleEntity
{
#region 私有成员
private string _gid = "";//主键唯一值
private string _name = "";//模块系统名称
private string _description = "";//模块中文名称
private string _url = "";//模块链接地址
private string _icon = "";//模块图标文件全名
private string _parentid = "";//父模块GID标识父节点,通过这个字段与父模块关联,如果值为”0”则当前模块为父模块或者是顶层模块,如果不为0则应是模块GID值
private int _sort = 0;//模块排序值
private int _state = 1;//模块状态值
private int _showroot = 0;//是否显示模块根菜单和顶部菜单状态栏,如果当前模块为顶级模块并且模块为非主显示菜单当值为0时显示Root菜单如果值为1时自动隐藏Root菜单和顶部显示菜单信息栏
private int _type = 0;//标识当前模块所显示位置0表示现在主界面模块1表示模块只在操作界面内显示不在主界面显示
private string _create_user;//创建人
private DateTime _create_time;//创建时间
private string _modified_user;//最后一次更新操作人GID
private DateTime _modified_time;//最后一次更新操作时间
#endregion
#region 构造函数
/// <summary>
/// 不带参数构造函数
/// </summary>
public ModuleEntity()
{
}
#endregion
#region 读写属性
/// <summary>
/// 主键唯一值
/// </summary>
public string Gid
{
get { return _gid; }
set { _gid = value; }
}
/// <summary>
/// 模块系统名称
/// </summary>
public string ModuleName
{
get { return _name; }
set { _name = value; }
}
/// <summary>
/// 模块中文名称
/// </summary>
public string ModuleDescription
{
get { return _description; }
set { _description = value; }
}
/// <summary>
/// 模块链接地址
/// </summary>
public string ModuleUrl
{
get { return _url; }
set { _url = value; }
}
/// <summary>
/// 模块图标文件全名
/// </summary>
public string ModuleIcon
{
get { return _icon; }
set { _icon = value; }
}
/// <summary>
/// 父模块GID标识父节点,通过这个字段与父模块关联,如果值为”0”则当前模块为父模块或者是顶层模块,如果不为0则应是模块GID值
/// </summary>
public string ParentID
{
get { return _parentid; }
set { _parentid = value; }
}
/// <summary>
/// 模块状态值
/// </summary>
public int ModuleState
{
get { return _state; }
set { _state = value; }
}
/// <summary>
/// 模块排序值
/// </summary>
public int ModuleSort
{
get { return _sort; }
set { _sort = value; }
}
/// <summary>
/// 是否显示模块根菜单和顶部菜单状态栏
/// 如果当前模块为顶级模块并且模块为非主显示菜单当值为0时显示Root菜单如果值为1时自动隐藏Root菜单和顶部显示菜单信息栏
/// </summary>
public int ShowRootState
{
get { return _showroot; }
set { _showroot = value; }
}
/// <summary>
/// 标识当前模块所显示位置0表示现在主界面模块1表示模块只在操作界面内显示不在主界面显示
/// </summary>
public int ModuleType
{
get { return _type; }
set { _type = value; }
}
/// <summary>
/// 创建人
/// </summary>
public string CreateUser
{
get { return _create_user; }
set { _create_user = value; }
}
/// <summary>
/// 创建时间
/// </summary>
public DateTime CreateTime
{
get { return _create_time; }
set { _create_time = value; }
}
/// <summary>
/// 最后一次更新操作人GID
/// </summary>
public string ModifiedUser
{
get { return _modified_user; }
set { _modified_user = value; }
}
/// <summary>
/// 最后一次更新操作时间
/// </summary>
public DateTime ModifiedTime
{
get { return _modified_time; }
set { _modified_time = value; }
}
#endregion
}
}