1.0正式版

修复beta版未能解决的BUG;
全面修改页面结构,采用面向对象JS开发;
优化进出库管理示例,对资源的应用更加清晰;
完整的SQL初始数据;
This commit is contained in:
yubaolee
2016-04-21 15:48:38 +08:00
parent 2d13810c82
commit 2de1fb6433
13 changed files with 423 additions and 82 deletions

View File

@@ -38,5 +38,19 @@ namespace OpenAuth.Repository
return Find(u => u.CascadeId.Contains(cascadeId) && u.Id != orgId);
}
public IEnumerable<Org> GetSubWithOwn(int orgId)
{
string cascadeId = "0.";
if (orgId != 0)
{
var org = FindSingle(u => u.Id == orgId);
if (org == null)
throw new Exception("未能找到指定对象信息");
cascadeId = org.CascadeId;
}
return Find(u => u.CascadeId.Contains(cascadeId));
}
}
}