日期:2014-05-17 浏览次数:20397 次
Create Table Departments
(
DepartmentId int identity primary key,
DepartmentName nvarchar(50) not null,
DepartmentNumber nvarchar(50) not null default '',
---上级部门id
UpDepartmentId int not null default 0,
DepartmentDepth int not null default 1 ,
--0-超管 1-院系,2-行政,3-实训中心.
DepartmentType tinyint not null default 1,
--激活状态, 0-false ,1-yes
Status tinyint default 1,
--权限字符串,值为SPMRight表中的id用,隔开
RightValue nvarchar(max)
)
/// <summary>
/// 获取所有部门,类似select * from [Department],未做筛选和投影
/// </summary>
/// <returns></returns>
public static List<Department> GetAll()
{
return DepartmentServices.GetAllDepartments();
}