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

META-INF.resources.modules.sys.deptuserinfo.ctrl.deptuserinfo.unit.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 UserInfoUnitAdd = require('../ctrl/deptuserinfo.unit.add');
	var UserInfoUnitEdit = require('../ctrl/deptuserinfo.unit.edit');
	var UserInfoUnitRemove = require('../ctrl/deptuserinfo.unit.remove');
	
	var UserInfoUnit = Page.extend(function() {
		var _self = this;
		
		this.injecte([
		  new UserInfoUnitAdd('deptuserinfo_unit_add'),   
		  new UserInfoUnitEdit('deptuserinfo_unit_edit'),
		  new UserInfoUnitRemove('deptuserinfo_unit_remove')
		]);
		
		// @override
		this.load = function(panel, data) {
			this.data = data;
			
			var form = panel.find('form').form('load', data);
			var table =this.table= panel.find('table');
			table.cdatagrid({
				controller: _self,
				url: Config.ContextPath+'system/userunit/userunits/'+data.userCode
			})
		};
	});
	
	return UserInfoUnit;
});




© 2015 - 2024 Weber Informatics LLC | Privacy Policy