All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.modules.sys.roleinfo.ctrl.roleinfo.user.js Maven / Gradle / Ivy

There is a newer version: 5.0.2101
Show newest version
define(function(require) {
	var Config = require('config');
	var Core = require('core/core');
	var Page = require('core/page');
	
	var RoleinfoUserAdd = require('../ctrl/roleinfo.user.add');
	var RoleinfoUserEdit = require('../ctrl/roleinfo.user.edit');
	var RoleinfoUserRemove = require('../ctrl/roleinfo.user.remove');
	
	var RoleInfoUser = Page.extend(function() {
		var _self = this;
		
		this.injecte([
		  new RoleinfoUserAdd('roleinfo_user_add'),   
		  new RoleinfoUserEdit('roleinfo_user_edit'),
		  new RoleinfoUserRemove('roleinfo_user_remove')
		]);
		
		// @override
		this.load = function(panel, data) {
			this.data = data;
			var form = panel.find('form').form('load', data);
			var table = panel.find('table');
			table.cdatagrid({
				controller: _self,
				url: Config.ContextPath+'system/userrole/roleusers/'+data.roleCode+'?s_userCode_isValid=T'
			})
		};
	});
	
	return RoleInfoUser;
});




© 2015 - 2024 Weber Informatics LLC | Privacy Policy