添加角色处理

This commit is contained in:
yubaolee
2015-11-19 21:49:39 +08:00
parent 6906e969ac
commit 119948ccb7
24 changed files with 1763 additions and 899 deletions

View File

@@ -0,0 +1,16 @@
using System.Collections.Generic;
using System.Linq;
namespace OpenAuth.Domain.Interface
{
public interface IRoleRepository :IRepository<Role>
{
IEnumerable<Role> LoadRoles(int pageindex, int pagesize);
int GetRoleCntInOrgs(params int[] orgIds);
IEnumerable<Role> LoadInOrgs(int pageindex, int pagesize, params int[] orgIds);
void Delete(int id);
}
}

View File

@@ -44,6 +44,7 @@
<ItemGroup>
<Compile Include="Interface\IOrgRepository.cs" />
<Compile Include="Interface\IRepository.cs" />
<Compile Include="Interface\IRoleRepository.cs" />
<Compile Include="Interface\IUserRepository.cs" />
<Compile Include="Module.cs" />
<Compile Include="ModuleElement.cs" />

View File

@@ -17,7 +17,7 @@ namespace OpenAuth.Domain
public int Id { get; set; }
/// <summary>
/// 组织名称
/// 名称
/// </summary>
/// <returns></returns>
public string Name { get; set; }
@@ -47,16 +47,22 @@ namespace OpenAuth.Domain
public string CreateId { get; set; }
/// <summary>
/// 创建人所属部门流水号
/// 所属部门流水号
/// </summary>
/// <returns></returns>
public int CreateOrgId { get; set; }
public int OrgId { get; set; }
/// <summary>
/// 创建人所属部门节点语义ID
/// 所属部门节点语义ID
/// </summary>
/// <returns></returns>
public string CreateOrgCascadeId { get; set; }
public string OrgCascadeId { get; set; }
/// <summary>
/// 所属部门名称
/// </summary>
/// <returns></returns>
public string OrgName { get; set; }
public Role()
@@ -67,8 +73,9 @@ namespace OpenAuth.Domain
this.Type= 0;
this.CreateTime= DateTime.Now;
this.CreateId= string.Empty;
this.CreateOrgId= 0;
this.CreateOrgCascadeId= string.Empty;
this.OrgId= 0;
this.OrgCascadeId= string.Empty;
this.OrgName= string.Empty;
}