o2oa api: x-游戏厅捕鱼达人

source

mwf.xdesktop.requireapp("process.xform", "$module", null, false);
//mwf.xdesktop.requireapp("process.xform", "widget.monitor", null, false);
/** @class monitor 流程图组件。
 * @o2cn 流程图
 * @example
 * //可以在脚本中获取该组件
 * //方法1:
 * var attachment = this.form.get("name"); //获取组件
 * //方法2
 * var attachment = this.target; //在组件事件脚本中获取
 * @extends mwf.xapplication.process.xform.$module
 * @o2category formcomponents
 * @o2range {process}
 * @hideconstructor
 */
mwf.xapplication.process.xform.monitor = mwf.appmonitor =  new class(
    /** @lends mwf.xapplication.process.xform.monitor# */
    {
    extends: mwf.app$module,
    _loaduserinterface: function(){
        this.node.empty();
        mwf.xdesktop.requireapp("process.xform", "widget.monitor", function(){
        //    debugger;
            var process = (this.form.businessdata.work) ? this.form.businessdata.work.process : this.form.businessdata.workcompleted.process;
            /**
             * @summary 流程图对象,是一个 mwf.xapplication.process.xform.widget.monitor 类实例
             */
            this.monitor = new mwf.xapplication.process.xform.widget.monitor(this.node, this.form.businessdata.workloglist, this.form.businessdata.recordlist, process,{
                "onpostload" : function(){
                    this.fireevent("postload");
                }.bind(this)
            }, this);
        }.bind(this), false);
    }
});
网站地图