DictionaryExplorer.js 1.8 KB

123456789101112131415161718192021222324252627282930313233
  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. return new MWF.xApplication.process.Application.DictionaryExplorer.Dictionary(this, item);
  6. }
  7. });
  8. MWF.xApplication.process.Application.DictionaryExplorer.Dictionary = new Class({
  9. Extends: MWF.xApplication.process.ProcessManager.DictionaryExplorer.Dictionary,
  10. _open: function(e){
  11. var _self = this;
  12. var options = {
  13. "onQueryLoad": function(){
  14. this.actions = _self.explorer.actions;
  15. this.category = _self;
  16. this.options.id = _self.data.id;
  17. this.application = _self.explorer.app.options.application;
  18. this.actions.application = this.application;
  19. this.options.noModifyName = _self.explorer.options.noModifyName;
  20. this.options.readMode = _self.explorer.options.readMode
  21. }
  22. };
  23. this.explorer.app.desktop.openApplication(e, "process.DictionaryDesigner", options);
  24. },
  25. _getLnkPar: function(){
  26. return {
  27. "icon": this.explorer.path+this.explorer.options.style+"/dictionaryIcon/lnk.png",
  28. "title": this.data.name,
  29. "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+"}}"
  30. };
  31. }
  32. });