Routine Update

This commit is contained in:
yubaolee
2015-11-16 23:18:51 +08:00
parent 7acef13ce2
commit e320ba7da8
3 changed files with 127 additions and 12 deletions

View File

@@ -27,7 +27,7 @@ namespace OpenAuth.Mvc.Controllers
return View(_app.Find(id));
}
//添加组织提交
//添加或修改组织
[HttpPost]
public string Add(UserView view)
{

View File

@@ -35,7 +35,7 @@
filterThead: false,
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">添加</a>' +
'data-toggle="dialog" data-id="dialog-mask" data-mask="true" data-on-close="loadDataGrid">添加</a>' +
'<button class=" btn-green" onclick="editOrg()" data-icon="pencil" type="button">编辑</button>',
columns: [
{
@@ -88,8 +88,6 @@
dataUrl: 'UserManager/Load?orgId=' + selectedId,
delUrl: 'UserManager/Delete',
delPK: "Id",
editUrl: 'UserManager/Edit',
editMode: 'dialog',
fullGrid: true,
showLinenumber: true,
showCheckboxcol: true,
@@ -103,13 +101,6 @@
else {
$(this).alertmsg('warn', delResult.message);
}
},
editCallback: function (delResult) {
if (delResult.statusCode == "200")
loadDataGrid();
else {
$(this).alertmsg('warn', delResult.message);
}
}
});
}
@@ -170,7 +161,14 @@
var selected = getSelected(2);
if (selected == null) return;
$(this).dialog({ id: 'editDialog', url: '/UserManager/Add?id='+selected, title: '编辑' });
$(this).dialog({
id: 'editDialog',
url: '/UserManager/Add?id=' + selected,
title: '编辑',
onClose:function() {
loadDataGrid();
}
});
}
//@@ sourceURL=userManagerIndex.js