Security.js 1.1 KB

123456789101112131415161718192021222324252627
  1. MWF.xApplication.process.FormDesigner.Module = MWF.xApplication.process.FormDesigner.Module || {};
  2. MWF.xDesktop.requireApp("process.FormDesigner", "Module.Select", null, false);
  3. MWF.xApplication.process.FormDesigner.Module.Security = MWF.FCSecurity = new Class({
  4. Extends: MWF.FCSelect,
  5. Implements: [Options, Events],
  6. options: {
  7. "style": "default",
  8. "type": "security",
  9. "path": "../x_component_process_FormDesigner/Module/Security/",
  10. "propertyPath": "../x_component_process_FormDesigner/Module/Security/security.html"
  11. },
  12. _getNewId: function(){
  13. var id = "objectSecurityClearance";
  14. return (this.form.json.moduleList[id]) ? "" : id;
  15. },
  16. create: function(data, e, group){
  17. data.moduleGroup = group;
  18. this.json = data;
  19. this.json.id = this._getNewId();
  20. if (this.json.id){
  21. this._createMoveNode();
  22. this._setNodeMove(e, "create");
  23. }else{
  24. this.form.designer.notice(this.form.designer.lp.modules.securityInfo, "error", this.form.node);
  25. }
  26. }
  27. });