提交 1ea5aa93 编写于 作者: 蔡祥熠

Merge branch 'fix/Process.add_event' into 'wrdp'

Merge of fix/Process.add_event 流程表单的保存增加了beforeSaveWork 事件和 afterSaveWork 事件 to wrdp

See merge request o2oa/o2oa!2296
......@@ -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));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册