|
在流转框中添加了一个常用语的按钮,点击之后调用的是OA里面的$UI/OA/common/process/commonWords/mainActivity.w的页面,双击某一条数据就会自动把数据回显到流转框中。、现在需要把常用语页面的信息回显到流转框中的附言中进行累加,不是覆盖。
常用语页面的JS如下:
Model.prototype.OKBtnClick = function(event) {
var result = this.getSelected();
this.comp('windowReceiver').windowEnsure(this.getSelected());
};
系统的/UI2/system_X/service/process/dialog/processDialog.m.w的JS中的windowReceiveReceive 方法如下:
Model.prototype.windowReceiveReceive = function(event){
var event_action=event.params.data.action;
var data = event.data || {};
this.task = data.task;
taskData = this.comp("taskData");
taskData.setFilter("filter", "SA_Task ='"+data.task+"'");
taskData.refreshData();
// taskData.setValue("sESField05", '同意');
this.action = data.action;
this.agentPerson = data.agentPerson;
this.flowToExecutorReadonly = (this.action === "backQuery");
this.options = data.options;
this.control = data.control;
this.control.reset();
this.reset(); //将来可以放到process组件中
this.setTitle(data.title || "");
this.initControlData(this.control,event_action);
//进入时初始值为false
end_flag=false;
end_flag_selected=false;
activity_temp="";
this.initActivityData(this.control);
this.initFlowToData(this.control);
this.initNoticeData(this.control);
};
|
|