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

META-INF.resources.modules.sys.dictionary.ctrl.dictionary.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 DictionaryAdd = require('../ctrl/dictionary.add');
    var DictionaryEdit = require('../ctrl/dictionary.edit');
    var DictionaryItem = require('../ctrl/dictionary.item');
    var DictionaryRemove = require('../ctrl/dictionary.remove');
	
    // 数据字典列表
	var Dictionary = Page.extend(function() {
		
		this.injecte([
          new DictionaryAdd('dictionary_add'), 
          new DictionaryEdit('dictionary_edit'), 
          new DictionaryItem('dictionary_item'),
          new DictionaryRemove('dictionary_remove')
        ]);
		
		// @override
		this.load = function(panel) {

			panel.find('table').cdatagrid({
				// 必须要加此项!!
				controller: this,
//				onClickRow:function(row,data){
//					console.log(data);
//				}
			});
		};
	});
	
	return Dictionary;
});




© 2015 - 2024 Weber Informatics LLC | Privacy Policy