Explorar o código

增加saveWork事件

unknown %!s(int64=5) %!d(string=hai) anos
pai
achega
4ce7d2ed57
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      o2web/source/x_component_process_Xform/Form.js

+ 2 - 0
o2web/source/x_component_process_Xform/Form.js

@@ -1154,12 +1154,14 @@ MWF.xApplication.process.Xform.Form = MWF.APPForm = new Class({
 
         if (this.businessData.control["allowSave"]) {
             this.fireEvent("beforeSave");
+            this.fireEvent("beforeSaveWork");
 
             if (this.app && this.app.fireEvent) this.app.fireEvent("beforeSave");
             this.saveFormData(function (json) {
                 if (this.app && !silent) this.app.notice(MWF.xApplication.process.Xform.LP.dataSaved, "success");
                 if (callback && typeOf(callback) === "function") callback();
                 this.fireEvent("afterSave");
+                this.fireEvent("afterSaveWork");
                 if (this.app && this.app.fireEvent) this.app.fireEvent("afterSave");
             }.bind(this));