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

META-INF.resources.modules.sys.innermsg.ctrl.innermsg.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 InnerMsgView = require('../ctrl/innermsg.view');
	var OutBoxView=require('../ctrl/outbox.view');
    var InnerMsgRemove = require('../ctrl/innermsg.remove');
    var OutBoxRemove=require('../ctrl/outbox.remove');
    var InnerMsgReply = require('../ctrl/innermsg.reply');
    var InnerMsgWrite = require('../ctrl/innermsg.write');
	var InnerMsgNotice=require('../ctrl/innermsg.notice');
	var NotifyAdd=require('../ctrl/innermsg.notice.add');
    // 数据字典列表
	var InnerMsg = Page.extend(function() {
		
		this.injecte([
          new InnerMsgView('innermsg_view'), 
          new InnerMsgRemove('innermsg_remove'),
          new InnerMsgReply('innermsg_reply'),
          new InnerMsgWrite('innermsg_write'),
          new NotifyAdd('notice_add'),
          new InnerMsgNotice('innermsg_notice'),
          new OutBoxView('outbox_view'),
          new OutBoxRemove('outbox_remove')
        ]);
		
		// @override
		this.load = function(panel) {
			var table=this.table=panel.find('table');
			table.cdatagrid({
				// 必须要加此项!!
				controller: this,
				
				rowStyler: function(index, row) {
					if (row.msgState == 'U') {
						return {'class':'mask'};	
					}
				}
			});
		};
	});
	
	return InnerMsg;
});




© 2015 - 2024 Weber Informatics LLC | Privacy Policy