StatementSelector.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. MWF.xApplication.process.FormDesigner.Module = MWF.xApplication.process.FormDesigner.Module || {};
  2. MWF.xDesktop.requireApp("process.FormDesigner", "Module.$Element", null, false);
  3. MWF.xApplication.process.FormDesigner.Module.StatementSelector = MWF.FCStatementSelector = new Class({
  4. Extends: MWF.xApplication.process.FormDesigner.Module.Button,
  5. Implements: [Options, Events],
  6. options: {
  7. "style": "default",
  8. "propertyPath": "../x_component_process_FormDesigner/Module/StatementSelector/StatementSelector.html"
  9. },
  10. initialize: function(form, options){
  11. this.setOptions(options);
  12. this.path = "../x_component_process_FormDesigner/Module/StatementSelector/";
  13. this.cssPath = "../x_component_process_FormDesigner/Module/StatementSelector/"+this.options.style+"/css.wcss";
  14. this._loadCss();
  15. this.moduleType = "element";
  16. this.moduleName = "statementSelector";
  17. this.form = form;
  18. this.container = null;
  19. this.containerNode = null;
  20. },
  21. _checkView: function(callback){
  22. debugger;
  23. if( this.property && this.property.viewFilter ){
  24. if (this.json["queryStatement"] && this.json["queryStatement"]!="none"){
  25. this.property.viewFilter.resetStatementData( this.json["queryStatement"].id );
  26. }else{
  27. this.property.viewFilter.resetStatementData();
  28. }
  29. }
  30. }
  31. });