Monitor.js 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. MWF.xDesktop.requireApp("process.Xform", "$Module", null, false);
  2. //MWF.xDesktop.requireApp("process.Xform", "widget.Monitor", null, false);
  3. /** @class Monitor 流程图组件。
  4. * @o2cn 流程图
  5. * @example
  6. * //可以在脚本中获取该组件
  7. * //方法1:
  8. * var attachment = this.form.get("name"); //获取组件
  9. * //方法2
  10. * var attachment = this.target; //在组件事件脚本中获取
  11. * @extends MWF.xApplication.process.Xform.$Module
  12. * @o2category FormComponents
  13. * @o2range {Process}
  14. * @hideconstructor
  15. */
  16. MWF.xApplication.process.Xform.Monitor = MWF.APPMonitor = new Class(
  17. /** @lends MWF.xApplication.process.Xform.Monitor# */
  18. {
  19. Extends: MWF.APP$Module,
  20. _loadUserInterface: function(){
  21. this.node.empty();
  22. MWF.xDesktop.requireApp("process.Xform", "widget.Monitor", function(){
  23. // debugger;
  24. var process = (this.form.businessData.work) ? this.form.businessData.work.process : this.form.businessData.workCompleted.process;
  25. /**
  26. * @summary 流程图对象,是一个 MWF.xApplication.process.Xform.widget.Monitor 类实例
  27. */
  28. this.monitor = new MWF.xApplication.process.Xform.widget.Monitor(this.node, this.form.businessData.workLogList, this.form.businessData.recordList, process,{
  29. "onPostLoad" : function(){
  30. this.fireEvent("postLoad");
  31. }.bind(this)
  32. }, this);
  33. }.bind(this), false);
  34. }
  35. });