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.
DS7/HomeService/Models/Module.cs

170 lines
5.4 KiB
C#

3 years ago
using System;
using System.Data;
using System.Collections;
using System.Collections.Generic;
using HcUtility.Core;
using Newtonsoft.Json;
namespace HomeService.Models
{
[JsonObject]
public class Module : ModelObjectBillHead
{
#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 Module()
{
TableName = "sys_module";
}
#endregion
#region 读写属性
/// <summary>
/// 主键唯一值
/// </summary>
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string Gid
{
get { return _gid; }
set { _gid = value; }
}
/// <summary>
/// 模块系统名称
/// </summary>
[ModelDB]
public string ModuleName
{
get { return _name; }
set { _name = value; }
}
/// <summary>
/// 模块中文名称
/// </summary>
[ModelDB]
public string ModuleDescription
{
get { return _description; }
set { _description = value; }
}
/// <summary>
/// 模块链接地址
/// </summary>
[ModelDB]
public string ModuleUrl
{
get { return _url; }
set { _url = value; }
}
/// <summary>
/// 模块图标文件全名
/// </summary>
[ModelDB]
public string ModuleIcon
{
get { return _icon; }
set { _icon = value; }
}
/// <summary>
/// 父模块GID标识父节点,通过这个字段与父模块关联,如果值为”0”则当前模块为父模块或者是顶层模块,如果不为0则应是模块GID值
/// </summary>
[ModelDB]
public string ParentID
{
get { return _parentid; }
set { _parentid = value; }
}
/// <summary>
/// 模块状态值
/// </summary>
[ModelDB]
public int ModuleState
{
get { return _state; }
set { _state = value; }
}
/// <summary>
/// 模块排序值
/// </summary>
[ModelDB]
public int ModuleSort
{
get { return _sort; }
set { _sort = value; }
}
/// <summary>
/// 是否显示模块根菜单和顶部菜单状态栏
/// 如果当前模块为顶级模块并且模块为非主显示菜单当值为0时显示Root菜单如果值为1时自动隐藏Root菜单和顶部显示菜单信息栏
/// </summary>
[ModelDB]
public int ShowRootState
{
get { return _showroot; }
set { _showroot = value; }
}
/// <summary>
/// 标识当前模块所显示位置0表示现在主界面模块1表示模块只在操作界面内显示不在主界面显示
/// </summary>
[ModelDB]
public int ModuleType
{
get { return _type; }
set { _type = value; }
}
/// <summary>
/// 创建人
/// </summary>
[ModelDB]
public string CreateUser
{
get { return _create_user; }
set { _create_user = value; }
}
/// <summary>
/// 创建时间
/// </summary>
[ModelDB]
public DateTime CreateTime
{
get { return _create_time; }
set { _create_time = value; }
}
/// <summary>
/// 最后一次更新操作人GID
/// </summary>
[ModelDB]
public string ModifiedUser
{
get { return _modified_user; }
set { _modified_user = value; }
}
/// <summary>
/// 最后一次更新操作时间
/// </summary>
[ModelDB]
public DateTime ModifiedTime
{
get { return _modified_time; }
set { _modified_time = value; }
}
#endregion
}
}