routine update

This commit is contained in:
yubaolee 2015-11-25 22:02:12 +08:00
parent 5d3d246165
commit dd9c401a1e
4 changed files with 19 additions and 14 deletions

View File

@ -53,12 +53,6 @@ namespace OpenAuth.Mvc.Controllers
return JsonHelper.Instance.Serialize(_app.Load(orgId, pageCurrent, pageSize));
}
//获取组织下面用户个数
public int GetCount(int orgId)
{
return _app.GetRoleCntInOrg(orgId);
}
public string Delete(string Id)
{
try

View File

@ -52,12 +52,6 @@ namespace OpenAuth.Mvc.Controllers
return JsonHelper.Instance.Serialize(_app.Load(orgId, pageCurrent, pageSize));
}
//获取组织下面用户个数
public int GetCount(int orgId)
{
return _app.GetUserCntInOrg(orgId);
}
public string Delete(string Id)
{
try

View File

@ -84,7 +84,7 @@
}
],
dataUrl: 'RoleManager/Load?orgId=' + selectedId,
delUrl: 'Role/Delete',
delUrl: 'RoleManager/Delete',
delPK: "Id",
fullGrid: true,
showLinenumber: true,

View File

@ -37,7 +37,8 @@
toolbarItem: 'refresh, |, del',
toolbarCustom: '<a href="/UserManager/Add" class="btn btn-green" data-icon ="plus" ' +
'data-toggle="dialog" data-id="dialog-mask" data-mask="true" data-on-close="refreshGrid">添加</a>' +
'<button class=" btn-green" onclick="editOrg()" data-icon="pencil" type="button">编辑</button>',
'<button class=" btn-green" onclick="editOrg()" data-icon="pencil" type="button">编辑</button>'+
'<button class=" btn-green" onclick="accessMenu()" data-icon="pencil" type="button">用户菜单授权</button>',
columns: [
{
name: 'Id',
@ -173,6 +174,22 @@
}
//自定义的编辑按钮
function accessMenu() {
var selected = getSelected(2);
if (selected == null) return;
$(this).dialog({
id: 'editDialog',
url: '/UserManager/Add?id=' + selected,
title: '编辑',
onClose: function () {
refreshGrid();
}
});
}
function refreshGrid() {
$('#@_gridId').datagrid('refresh');
// loadDataGrid();