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

META-INF.resources.modules.sys.dictionary.ctrl.zidian.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 ZiDianAdd = require('../ctrl/zidian.add');
    var ZiDianEdit = require('../ctrl/zidian.edit');
    var ZiDianItem = require('../ctrl/zidian.item');
    var ZiDianRemove = require('../ctrl/zidian.remove');
	
    // 数据字典列表
	var ZiDian = Page.extend(function() {
		this.injecte([
          new ZiDianAdd('zidian_add'), 
          new ZiDianEdit('zidian_edit'), 
          new ZiDianItem('zidian_item'),
          new ZiDianRemove('zidian_remove')
        ]);
		
		// @override
		this.load = function(panel) {

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy