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

META-INF.resources.modules.sys.deptpow.ctrl.deptpow.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 UnitInfoUserAdd = require('modules/sys/deptpow/ctrl/deptpow.user.add');
	var UnitInfoUserEdit = require('modules/sys/deptpow/ctrl/deptpow.user.edit');
	var UnitInfoUserRemove = require('modules/sys/deptpow/ctrl/deptpow.user.remove');

	var DeptPowUser = Page.extend(function() {
		var _self = this;

		this.injecte([
		  new UnitInfoUserAdd('deptpow_user_add'),
		  new UnitInfoUserEdit('deptpow_user_edit'),
		  new UnitInfoUserRemove('deptpow_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/userunit/unitusers/'+data.unitCode
			})
		};
	});

	return DeptPowUser;
});




© 2015 - 2024 Weber Informatics LLC | Privacy Policy