|
|
using System;
|
|
|
using System.Data;
|
|
|
using System.Configuration;
|
|
|
using System.Linq;
|
|
|
using System.Web;
|
|
|
using System.Web.Security;
|
|
|
using System.Web.UI;
|
|
|
using System.Web.UI.HtmlControls;
|
|
|
using System.Web.UI.WebControls;
|
|
|
using System.Web.UI.WebControls.WebParts;
|
|
|
using System.Xml.Linq;
|
|
|
|
|
|
namespace DSWeb.Models
|
|
|
{
|
|
|
/// <summary>
|
|
|
/// 角色表
|
|
|
/// </summary>
|
|
|
public class RoleEntity
|
|
|
{
|
|
|
#region 私有成员
|
|
|
private string _gid;//主键,惟一值
|
|
|
private string _name;//角色名称,只能使用英文字符,开头单词首字母小写,后边单词所有首字母大写,例如(isOperator)
|
|
|
private string _description;//角色中文名称
|
|
|
private string _create_userid;//创建人GID
|
|
|
private DateTime _create_time;//创建时间
|
|
|
private string _modified_userid;//记录最后一次更新操作人的GID
|
|
|
private DateTime _modified_time;//记录最后一次更新时间
|
|
|
private int _state;//角色状态值,值为0表示当前角色可用,如果为1表示角色不可用
|
|
|
private int _sort;//根据排序值由小到大顺序显示角色信息(0,1,2……N)
|
|
|
#endregion
|
|
|
|
|
|
public RoleEntity()
|
|
|
{
|
|
|
}
|
|
|
|
|
|
#region 读写属性
|
|
|
/// <summary>
|
|
|
/// 主键,惟一值
|
|
|
/// </summary>
|
|
|
public string GID
|
|
|
{
|
|
|
get { return _gid; }
|
|
|
set { _gid = value; }
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 角色名称,只能使用英文字符,开头单词首字母小写,后边单词所有首字母大写,例如(isOperator)
|
|
|
/// </summary>
|
|
|
public string RoleName
|
|
|
{
|
|
|
get { return _name; }
|
|
|
set { _name = value; }
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 角色中文名称
|
|
|
/// </summary>
|
|
|
public string RoleDescription
|
|
|
{
|
|
|
get { return _description; }
|
|
|
set { _description = value; }
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 创建人GID
|
|
|
/// </summary>
|
|
|
public string CreateUserID
|
|
|
{
|
|
|
get { return _create_userid; }
|
|
|
set { _create_userid = value; }
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 创建时间
|
|
|
/// </summary>
|
|
|
public DateTime CreateTime
|
|
|
{
|
|
|
get { return _create_time; }
|
|
|
set { _create_time = value; }
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 记录最后一次更新操作人的GID
|
|
|
/// </summary>
|
|
|
public string ModifiedUserID
|
|
|
{
|
|
|
get { return _modified_userid; }
|
|
|
set { _modified_userid = value; }
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 记录最后一次更新时间
|
|
|
/// </summary>
|
|
|
public DateTime ModifiedTime
|
|
|
{
|
|
|
get { return _modified_time; }
|
|
|
set { _modified_time = value; }
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 角色状态值,值为0表示当前角色可用,如果为1表示角色不可用
|
|
|
/// </summary>
|
|
|
public int State
|
|
|
{
|
|
|
get { return _state; }
|
|
|
set { _state = value; }
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 根据排序值由小到大顺序显示角色信息(0,1,2……N)
|
|
|
/// </summary>
|
|
|
public int Sort
|
|
|
{
|
|
|
get { return _sort; }
|
|
|
set { _sort = value; }
|
|
|
}
|
|
|
#endregion
|
|
|
}
|
|
|
}
|