mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-07-15 23:13:40 +08:00
check bugs
This commit is contained in:
parent
aab16e28aa
commit
01f130be1b
@ -68,12 +68,26 @@ namespace OpenAuth.Mvc.Controllers
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 加载组织下面的所有用户
|
||||
/// 加载节点下面的所有<%=ModuleName %>s
|
||||
/// </summary>
|
||||
public string Load(int orgId, int pageCurrent = 1, int pageSize = 30)
|
||||
public string Load(int parentidId, int pageCurrent = 1, int pageSize = 30)
|
||||
{
|
||||
return JsonHelper.Instance.Serialize(_app.Load(orgId, pageCurrent, pageSize));
|
||||
return JsonHelper.Instance.Serialize(_app.Load(parentidId, pageCurrent, pageSize));
|
||||
}
|
||||
|
||||
public string LoadForTree()
|
||||
{
|
||||
var models = _app.LoadAll();
|
||||
//添加根节点
|
||||
models.Add(new <%=ModuleName %>
|
||||
{
|
||||
Id = 0,
|
||||
ParentId = -1,
|
||||
Name = "根结点",
|
||||
CascadeId = "0"
|
||||
});
|
||||
return JsonHelper.Instance.Serialize(models);
|
||||
}
|
||||
|
||||
public string Delete(int Id)
|
||||
{
|
||||
|
@ -71,7 +71,7 @@ Description: Create a list of properties from a database table
|
||||
},
|
||||
<% } %>
|
||||
],
|
||||
dataUrl: '<%=ModuleName%>Manager/Load?orgId=' + selectedId,
|
||||
dataUrl: '<%=ModuleName%>Manager/Load?parentId=' + selectedId,
|
||||
fullGrid: true,
|
||||
showLinenumber: true,
|
||||
showCheckboxcol: true,
|
||||
@ -104,7 +104,7 @@ Description: Create a list of properties from a database table
|
||||
},
|
||||
callback: {onClick: zTreeOnClick}
|
||||
};
|
||||
$.getJSON('<%=ModuleName%>Manager/LoadModuleWithRoot', function (json) {
|
||||
$.getJSON('<%=ModuleName%>Manager/LoadForTree', function (json) {
|
||||
var zTreeObj = $.fn.zTree.init($('#@_treeId'), setting, json);
|
||||
zTreeObj.expandAll(true);
|
||||
});
|
||||
@ -115,7 +115,7 @@ Description: Create a list of properties from a database table
|
||||
var selected = getSelected('#@_gridId',2);
|
||||
if (selected == null) return;
|
||||
|
||||
$.get('<%=ModuleName%>Manager/Delete?Id=' + selected, function (data) {
|
||||
$.getJSON('<%=ModuleName%>Manager/Delete?Id=' + selected, function (data) {
|
||||
if (data.statusCode == "200")
|
||||
loadDataGrid();
|
||||
else {
|
||||
|
@ -129,7 +129,7 @@
|
||||
var selected = getSelected('#@_gridId',2);
|
||||
if (selected == null) return;
|
||||
|
||||
$.get('CategoryManager/Delete?Id=' + selected, function (data) {
|
||||
$.getJSON('CategoryManager/Delete?Id=' + selected, function (data) {
|
||||
if (data.statusCode == "200")
|
||||
loadDataGrid();
|
||||
else {
|
||||
|
@ -131,7 +131,7 @@
|
||||
var selected = getSelected('#@_gridId',2);
|
||||
if (selected == null) return;
|
||||
|
||||
$.get('ModuleManager/Delete?Id=' + selected, function (data) {
|
||||
$.getJSON('ModuleManager/Delete?Id=' + selected, function (data) {
|
||||
if (data.statusCode == "200")
|
||||
loadDataGrid();
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user