DictionaryExplorer.js 1.8 KB

1234567891011121314151617181920212223242526272829303132333435
  1. MWF.xDesktop.requireApp("process.ProcessManager", "DictionaryExplorer", null, false);
  2. MWF.xApplication.process.Application.DictionaryExplorer = new Class({
  3. Extends: MWF.xApplication.process.ProcessManager.DictionaryExplorer,
  4. _getItemObject: function(item){
  5. debugger;
  6. return new MWF.xApplication.process.Application.DictionaryExplorer.Dictionary(this, item);
  7. }
  8. });
  9. MWF.xApplication.process.Application.DictionaryExplorer.Dictionary = new Class({
  10. Extends: MWF.xApplication.process.ProcessManager.DictionaryExplorer.Dictionary,
  11. _open: function(e){
  12. var _self = this;
  13. var options = {
  14. "onQueryLoad": function(){
  15. debugger;
  16. this.actions = _self.explorer.actions;
  17. this.category = _self;
  18. this.options.id = _self.data.id;
  19. this.application = _self.explorer.app.options.application;
  20. this.actions.application = this.application;
  21. this.options.noModifyName = _self.explorer.options.noModifyName;
  22. this.options.readMode = _self.explorer.options.readMode
  23. }
  24. };
  25. this.explorer.app.desktop.openApplication(e, "process.DictionaryDesigner", options);
  26. },
  27. _getLnkPar: function(){
  28. return {
  29. "icon": this.explorer.path+this.explorer.options.style+"/dictionaryIcon/lnk.png",
  30. "title": this.data.name,
  31. "par": "process.DictionaryDesigner#{\"id\": \""+this.data.id+"\", \"applicationId\": \""+this.explorer.app.options.application.id+"\", \"options\": {\"action\": \"Application\",\"noCreate\": "+this.explorer.options.noCreate+", \"noDelete\": "+this.explorer.options.noDelete+", \"noModifyName\": "+this.explorer.options.noModifyName+", \"readMode\": "+this.explorer.options.readMode+"}}"
  32. };
  33. }
  34. });