{ id : 'adduser', text : '导入用户到机构', iconCls : 'icon-customers', handler : addUserByOrg }
//导入用户 function addUserByOrg() { var url = 'user/chooseUser.do'; $.farm.openWindow( { id : 'chooseUserWin', width : 600, height : 400, modal : true, url : url, title : '导入用户' }); chooseWindowCallBackHandle = function(row) { var userids; $(row).each(function(i, obj) { if (userids) { userids = userids + ',' + obj.ID; } else { userids = obj.ID; } }); $(gridPostUser).datagrid('loading'); $.post('organization/addOrgUser.do', { 'userids' : userids, id : '${ids}' }, function(flag) { if (flag.STATE == 0) { $('#chooseUserWin').window('close'); $(gridPostUser).datagrid('reload'); } else { $.messager.alert(MESSAGE_PLAT.ERROR, flag.MESSAGE, 'error'); } }, 'json'); }; }
organization/addOrgUser.do